Re: Python 3 May Become Relevant Now

2015-08-02 Thread Rick Johnson
On Sunday, August 2, 2015 at 7:25:37 PM UTC-5, Mark Lawrence wrote: > rr should have a field day with this one [...] You must be nuts if you think i'm going to click that link for an article that was written today, Hahaha! Quote the relevant bits. -- https://mail.python.org/mailman/listinfo/pyt

Re: Python 3 May Become Relevant Now

2015-08-03 Thread Rick Johnson
On Sunday, August 2, 2015 at 9:45:51 PM UTC-5, Chris Angelico wrote: > How do you know it was written today, if you didn't click it? Because i possess skills you can hardly fathom. There are always loopholes; back doors; knot holes; key holes; cracks; crevices; tells; Freudian slips; little white

Re: PEP8 and 4 spaces

2014-07-04 Thread Rick Johnson
On Thursday, July 3, 2014 12:31:04 PM UTC-5, Tobiah wrote: > Coworker takes PEP8 as gospel and uses 4 spaces I'm saddened that every one of these little "tabs versus spaces" arguments revolve more around selfishness and less around an understanding of what a "tabs" and "spaces" actually *are*, be

Re: PEP8 and 4 spaces

2014-07-04 Thread Rick Johnson
[A continuation of my last reply...] Here is a recent situation that occurred to me that showcases the tendency of humans to carelessly bind illogical terms to common objects, thereby creating a inverse esoteric of ubiquitous illogic, in this case, the term: "flash-light". ===

Re: Why is it different from the example on the tutorial?

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 8:38:41 AM UTC-5, rxj...@gmail.com wrote: > When I get match result: > py>pattern='abcd' > py>prog = re.compile(pattern) > py>string='abcd' > py>result = prog.match(string) > py>result > <_sre.SRE_Match object at 0x6eda5e0> > py>result.group(0) > 'abcd' > > It looks li

Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout,

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 4:05:10 AM UTC-5, gintare wrote: > The correct code: > f=open(,'r', encoding='utf-8') > linef=f.readlines() > print(repr(linef)) Yes but do you understand why? And even if you DO understand why, you should explain the details because the neophytes are always watching!

Re: OT: Flashlights [was Re: PEP8 and 4 spaces]

2014-07-06 Thread Rick Johnson
On Saturday, July 5, 2014 5:15:32 AM UTC-5, Steven D'Aprano wrote: > (By the way, outside of the USA, flashlights in the rest > of the English- speaking world are usually called > "torches", so called because, like the old-fashioned > burning torch, they provide light.) Well Steven all i can hope

Re: Why is it different from the example on the tutorial?

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 9:34:44 AM UTC-5, Roy Smith wrote: > * You can print dict(foo), which just prints out the attributes the > object has. Looks like a typo there. I think you probably meant to say "dir(foo)" INTERACTIVE SESSIO

Re: Why is it different from the example on the tutorial?

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 10:03:48 AM UTC-5, rxj...@gmail.com wrote: > Thanks. I do not want to waste everyone's time. Oh NOW you tell us! I could be ranting about flashlights, but here i am wasting time with you again! > For a jump start, there are small errors making me > frustrating. Your help

Re: Question about metacharacter '*'

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 10:50:13 AM UTC-5, Devin Jeanpierre wrote: > In related news, the regexp I gave for numbers will match "1a". Well of course it matched, because your pattern defines "one or more consecutive digits". So it will match the "1" of "1a" and the "11" of "11a" likewise. As an asi

Re: Question about metacharacter '*'

2014-07-06 Thread Rick Johnson
[CONTINUED FROM LAST REPLY...] Likewise if your intent is to filter out any match strings which contain non-digits, then define the start and stop points of the pattern: # Match only if all are digits >>> re.match(r'\d\d*$', '111aaa222') # fails # Match only if all are digits and, # allow leadin

Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout,

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 11:14:26 AM UTC-5, Terry Reedy wrote: > On 7/6/2014 10:52 AM, Rick Johnson wrote: > > So the direct reason for failure is due to the fact that the > > "print()" function ONLY handles strings, not list objects. > >>> print(object()) >

Re: Question about metacharacter '*'

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 11:47:38 AM UTC-5, Roy Smith wrote: > Even better, r"\d+" > >>> re.search(r'(\d\d*)', '111aaa222').groups() > ('111',) > >>> re.search(r'(\d+)', '111aaa222').groups() > ('111',) Yes, good catch! I had failed to reduce your original pattern down to it's most fundamental aspe

Re: Question about metacharacter '*'

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 12:38:23 PM UTC-5, Rick Johnson wrote: > r'\s*#[^\n]' Well, there i go not testing again! r'\s*#[^\n]*' -- https://mail.python.org/mailman/listinfo/python-list

Re: How do you use `help` when write your code

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 11:36:23 AM UTC-5, Shiyao Ma wrote: > I often heard people mention use help(ob) as a way of > documentation look up. Personally I seldom/never do that. > My normal workflow is use ipython, obj? or obj?? for quick > look up or use docs.python.org for a detailed read. Do you >

Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout,

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 1:14:38 PM UTC-5, wxjm...@gmail.com wrote: > Le dimanche 6 juillet 2014 18:53:34 UTC+2, Rick Johnson a écrit : > [...] > > > Seems like she'd better do the decoding before printing > No > > > or am i wrong again? > Yes > > &

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Wednesday, May 28, 2014 3:15:45 PM UTC-5, Chris Angelico wrote: > On Thu, May 29, 2014 at 5:58 AM, Larry Martell wrote: > > No company that I work for is using python 3 - they just > > have too much of an investment in a python 2 code base > > to switch. I'm just saying. > And that's not a probl

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Wednesday, May 28, 2014 7:41:53 PM UTC-5, Terry Reedy wrote: > Claim: "Python 3 languishes in disuse." > Fact: in 2013, there were around 14 million downloads of > windows installers for each of 2.7.x and 3.3.x. 3.3 is > over twice as popular as 3.2 (to be expected). Terry, you cannot simply ta

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Monday, July 14, 2014 5:47:14 PM UTC-5, MRAB wrote: > Why it should "they" withdraw it (whatever that means)? > "They" are entitled to keep it public if they want to. I'm not suggesting they *must* withdraw Python, I'm only suggesting that IF they wish to *prevent* dissent or scrutiny, then the

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Monday, July 14, 2014 6:28:19 PM UTC-5, Chris Angelico wrote: > And I know what would happen if the USA weren't here. > People in other countries would have made similar > improvements to the world. Yes, i wholeheartedly agree with that statement. Is the USA the *ONLY* country to have ever lib

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Monday, July 14, 2014 9:11:47 PM UTC-5, Chris Angelico wrote: > I dunno. It's not like Great Britain, Australia, or New > Zealand did anything significant in either war, is it. Most of Europe occupied, London bombed into the stone age; things were looking grim Chris! Maybe you should read up on

Re: Python 3 is killing Python

2014-07-15 Thread Rick Johnson
On Tuesday, July 15, 2014 9:31:31 AM UTC-5, Chris Angelico wrote: > [...] That said, though, I would advise you to give 2to3 a > shot. You never know, it might do exactly what you need > right out-of-the-box and give you a 3.x-compatible > codebase in one hit. Ha! Are you so foolish as to believ

Re: Python 3 is killing Python

2014-07-15 Thread Rick Johnson
On Tuesday, July 15, 2014 1:53:27 PM UTC-5, Steven D'Aprano wrote: > No software developer is obliged to support their software > forever, especially if they are giving it away for free > [...] Nobody but nobody is supporting Python 1.1 any more, > no matter how many security holes it has. Of cou

Re: Python 3 is killing Python

2014-07-15 Thread Rick Johnson
On Tuesday, July 15, 2014 5:40:29 PM UTC-5, Abhiram R wrote: > [snip excessive quotations] > Aah. Understood. Apologies for the "noobishness" :) Noobishness can be tolerated for a "reasonable" time, especially when the "noob" actively seeks to improve his skills, as you are doing, so kudos to you

Re: Python 3 is killing Python

2014-07-16 Thread Rick Johnson
On Wednesday, July 16, 2014 9:27:56 AM UTC-5, Frank Millman wrote: > 2. Those adversely affected by the change are very vocal, > but we hear very little from those who have benefited from > it. This is to be expected - they are just getting on with > developing in Python3 and have no need to get i

Re: Python 3 is killing Python

2014-07-16 Thread Rick Johnson
On Wednesday, July 16, 2014 6:00:16 PM UTC-5, Mark Lawrence wrote: > I'm not aware of any mass exodus from core Python 3 to the > fork that has consistently proposed to give the world > Python 2.8. Do you know something that I don't? Well, currently at least, we don't even *need* a Python 2.8, no

Re: Python 3 is killing Python

2014-07-16 Thread Rick Johnson
On Wednesday, July 16, 2014 10:16:00 PM UTC-5, Steven D'Aprano wrote: > If they are "shopping" for a scripting language, that > means they don't have one yet. Which means their users > have no existing scripts that need to be ported from > Python 2 to 3. Whatever language is chosen, whether it is >

Re: Python 3 is killing Python

2014-07-16 Thread Rick Johnson
On Wednesday, July 16, 2014 10:18:56 PM UTC-5, Tim Roberts wrote: > Steven D'Aprano wrote: > >For what little it is worth, if any one country won World War Two, it was > >the USSR. > I don't think that's quite accurate. It is certainly true > that the USSR suffered vastly more casualties than any

Re: I need an idea for practise!

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 4:59:11 AM UTC-5, Nicholas Cannon wrote: > Ok I would say I am almost a intermediate python > programer. I have made 2 programs(with GUI). And basically > they are quite boring(a text editor and calculator). I > love programming but i am lost of ideas i actually suck at >

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 12:48:38 AM UTC-5, alex23 wrote: > PHP regularly breaks compatibility between _minor_ version > releases: [...] more so with major releases: [...] yet I > never see anywhere near as much angst and agony as Python > 3.x has caused. Because you *IGNORE* the fact that peopl

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 5:12:23 AM UTC-5, Fabien wrote: > For non-informatic students [...] I don't think that's true. > Less general languages like Matlab appear much easier to > me: unified doc, unified IDE, unified debugger I'll agree that the lack of a "quality" IDE in Python is a point of

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
> On Fri, Jul 18, 2014 at 3:36 AM, Rick Johnson > This is a truly amazing demonstration. You have outdone > Gaelmaen for comprehensibly incorrect use of English. Of all my impassioned pleas, astute logical reasoning, and empathetic motivational speeches, of all of that "gold",

Re: I need an idea for practise!

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 12:20:13 PM UTC-5, Chris Angelico wrote: > By the way, one specific point about RR's advice: A > colorizer should *not* be written using regexps. It'd make > for an absolute nightmare of impossible-to-debug regexp > strings Just because *YOU* harbor irrational fears of r

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 1:44:20 PM UTC-5, Marko Rauhamaa wrote: > Rick Johnson : > > Sure, IDLE is not *useless*, however, it is in fact > > woefully inadequate and should be embarrassing to the > > whole community, both in it's buggy-ness and it's poorly >

Re: I need an idea for practise!

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 9:03:40 PM UTC-5, Chris Angelico wrote: > [colorizers] might well be able to *utilize* regexps [...] > but very few modern programming languages can be fully and > correctly defined within the limits of regexp syntax. We're not talking about "defining" or "interpreting"

Re: Python 3 is killing Python

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 9:15:15 PM UTC-5, Chris Angelico wrote: > For myself, though, I completely do not use the editor half of [IDLE]; but > it's spectacularly useful (with limitations) as my primary interactive > interpreter. Yes Chris, i also think that the IDLE shell is "spectacular" when

Re: I need an idea for practise!

2014-07-17 Thread Rick Johnson
On Thursday, July 17, 2014 10:23:50 PM UTC-5, Chris Angelico wrote: > And be sure *not* to colorize built-ins (but *do* colorize > keywords) in contexts where the tokens are actually > identifiers, like "x.open = 1". Just check for word boundaries on all your keywords and built-ins and you're *DO

Re: Python 3 is killing Python

2014-07-18 Thread Rick Johnson
On Friday, July 18, 2014 1:20:10 PM UTC-5, Steven D'Aprano wrote: > PyDev, Eric, Komodo, PyCharm, WingIDE, SPE, Ninja-IDE, > Geany, IEP, Spyder, Boa Constructor, PyScripter, NetBeans, > Emacs, KDevelop, BlackAdder, ... And tell me Steven, how many of those "quality" IDEs that you listed actually *

Re: Python 3 is killing Python

2014-07-19 Thread Rick Johnson
On Friday, July 18, 2014 8:21:36 PM UTC-5, Terry Reedy wrote: > What ancient version, or oddball system are you using? For > me, Win 7, both 2.7.8 and 3.4.1 "CONTROL+LEFT_ARROW" and > the cursor is before the 'a' of [>>> abc]. The HOME key > goes to the same place first, and they before >>> on the

Re: Python 3 is killing Python

2014-07-19 Thread Rick Johnson
[A missed point from my last reply...] Terry Reedy said: > I believe there is a proposal to be able to clear the > shell window. We just need to add "Clear and restart > shell". A command that allows clearing the *entire* shell display and also resets the global and local symbol tables, *WITHOUT

Re: Python 3 is killing Python

2014-07-19 Thread Rick Johnson
[A missed point from my last reply...] Terry Reedy said: > I believe there is a proposal to be able to clear the > shell window. We just need to add "Clear and restart > shell". A command that allows a user to clear the *ENTIRE* "shell IO" and *ALSO* resets the global and local symbol tables *WI

Re: Improving Idle (was Re: Python 3 ...)

2014-07-19 Thread Rick Johnson
On Saturday, July 19, 2014 3:45:07 PM UTC-5, Terry Reedy wrote: > On 7/19/2014 12:29 PM, Rick Johnson wrote: > [2.7.2 and 3.2.2] are ancient versions from years ago that > no one should be running Idle on now. I have just downloaded and installed versions 2.7.8 and 3.4.1, and i am happy

PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-20 Thread Rick Johnson
BUG 1: FileDialog Duplicity: If you open the IDLE application (either utilizing the "shell window" or "editor window") and then go to the "File" menu and choose the "Open" co

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-20 Thread Rick Johnson
On Sunday, July 20, 2014 4:40:59 PM UTC-5, Irmen de Jong wrote: > On 20-7-2014 23:14, Rick Johnson wrote: > > And since IDLE is not a "tabbed editor", only *1* > > document is going to be displayed at a time. > False. Idle opens any number of documents at the same ti

Re: Idle's Shell: prompts and indents (was ...) Idle users please read

2014-07-20 Thread Rick Johnson
On Sunday, July 20, 2014 4:52:36 PM UTC-5, Terry Reedy wrote: > On 7/19/2014 9:31 PM, Rick Johnson wrote: > > On Saturday, July 19, 2014 3:45:07 PM UTC-5, Terry Reedy wrote: > * The third paragraph below explains that Shell's prompt > is a statement prompt rather than li

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-20 Thread Rick Johnson
On Sunday, July 20, 2014 8:02:11 PM UTC-5, Chris Angelico wrote: > File dialogs can be modal or modeless. [...] and there are > good reasons for both operation styles [...] Are you > seriously unaware of standard GUI widget functionality? Chris i get so tired of your trolling, you cannot just post

Re: Tkinter grid autosize help

2014-08-02 Thread Rick Johnson
On Saturday, August 2, 2014 5:53:12 PM UTC-5, Nicholas Cannon wrote: > So i have a basic calculator program and i > have a label that i want to go across the top to show the > numbers and stuff like on a normal calculator. The only > way i can make the buttons look neat and then when i keep > press

Return of an old friend

2011-11-24 Thread Rick Johnson
Hello Fellow Pythonistas, I am very glad to be back after an unfortunate incident caused my Google account to be deleted. Unfortunately for those of you that have been following along and supporting my crusade to bring fairness and humility to the python community, my old posts under "rantingrick"

Re: sick of distribute, setup, and all the rest...

2011-11-26 Thread Rick Johnson
On Nov 26, 11:28 am, rusi wrote: > On Nov 26, 6:40 pm, kj wrote: > The only thing I disagree about is that GvR is 'top' enough to handle > this. For a concrete example of how uninterested Mr. Van Rossum has become, take a look at the gawd awful state of Tkinter and especially IDLE. Whist I appla

Re: Using the Python Interpreter as a Reference

2011-11-26 Thread Rick Johnson
On Nov 20, 6:46 pm, Travis Parks wrote: > Hello: > > I am currently working on designing a new programming language. It is > a compiled language, but I still want to use Python as a reference. > Python has a lot of similarities to my language, such as indentation > for code blocks, I hope you mea

Re: Using the Python Interpreter as a Reference

2011-11-26 Thread Rick Johnson
On Nov 26, 1:34 pm, Chris Angelico wrote: > On Sun, Nov 27, 2011 at 5:53 AM, Rick Johnson > > wrote: > > I hope you meant to say "*forced* indention for code blocks"! "Forced" > > being the key word here. What about tabs over spaces, have you decided &

Re: Questions about LISP and Python.

2011-12-06 Thread Rick Johnson
On Dec 5, 11:10 pm, Chris Angelico wrote: > On Tue, Dec 6, 2011 at 3:36 PM, Xah Lee wrote: > > i don't like python, and i prefer emacs lisp. The primary reason is > > that python is not functional, especially with python 3. The python > > community is full of fanatics with their drivels. In that

Re: Backspace does not erase in stdout

2011-12-06 Thread Rick Johnson
On Dec 6, 3:27 am, Nobody wrote: > On Mon, 05 Dec 2011 16:23:55 +, Grant Edwards wrote: > >> Emitting "\b \b" is one very common way to do a destructive backspace. > >> Inelegant? Perhaps, but a common inelegance. > > > That's pretty much the only way I've seen it done for the past 25 > > year

Re: Questions about LISP and Python.

2011-12-07 Thread Rick Johnson
On Dec 6, 10:58 am, Ian Kelly wrote: (snip... beautiful retort) Ian you make some damn good points and i could not help but laugh hysterically at your dissection of Xah's tutorial. I don't 100% agree with everything Mr. Lee rants about, like for instance, documents needing to hyper link every po

Re: Questions about LISP and Python.

2011-12-07 Thread Rick Johnson
On Dec 6, 9:52 pm, alex23 wrote: > (snip rambling nonsense) Alex, i hope you are being theatrical with all this. If not, i fear you may be putting too much stress on your heart. Please calm down. > The months in which you don't post are an absolute goddamn > _delight_ I am working on Python4000

Re: What is this widget?

2011-12-15 Thread Rick Johnson
On Dec 14, 12:47 pm, Muddy Coder wrote: > Hi Folks, > > I am trying to write letters on a photo that is opened in a canvas. So > I think I must need a widget to contain the letters I will type in. I > tried to use a Label, it worked. But, a Label covered part of the > photo underneath, so I can't

Re: What is this widget? -- again

2011-12-15 Thread Rick Johnson
On Dec 14, 8:17 pm, Muddy Coder wrote: > Hi Folks, > > Sorry for the unclear question in last post. Well, I am using Tkinter > to do GUI, and I just don't know what kind of widget can let me do > annotation on an image being displayed. An example is the Paint of > Windows: a dotted line box appear

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-18 Thread Rick Johnson
On Dec 17, 10:52 pm, buck wrote: > [...] > As for the separator, let's examine the available ascii punctuation. > Excluding valid variable characters, whitespace, and operators, we have: > > ! -- ok. No, there are better uses for that char. > " -- can't use this. Would look like a string. > # --

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-18 Thread Rick Johnson
On Dec 17, 11:33 pm, Evan Driscoll wrote: > On 12/17/2011 22:52, buck wrote:> Try these on for size. > > >      head, @tuple tail = sequence > >      def foo(@list args, @dict kwargs): pass > >      foo(@args, @kwargs) > > > For backward compatibility, we could say that the unary * is identical to

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-18 Thread Rick Johnson
On Dec 18, 8:35 am, Eelco wrote: > On Dec 18, 6:33 am, Evan Driscoll wrote: > Good point; technically the askeriskes could be kept for backwards > compatibility, but that would break 'there should only be one way to > do it'. I believe it's high time for the upper society of this community to r

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-18 Thread Rick Johnson
On Dec 18, 7:26 pm, Steven D'Aprano wrote: > Not everybody uses editors more advanced than Notepad. And they have no excuse for NOT using a better one. Well, except for a "foolish consistency" that is! > Even those who do > may not have an editor that understands Python keywords, or has an > obso

Re: Getting a patch accepted

2011-12-19 Thread Rick Johnson
On Dec 19, 11:13 am, Tycho Andersen wrote: > Hi all, > > A couple months ago I found a bug in a corner of the curses library > (http://bugs.python.org/issue13051) and filed it. Unfortunately, there > was nobody listed to cc on the noisy list, so it probably got lost in > the shuffle. (There is eve

The ever-expanding bubble of GREED

2011-12-19 Thread Rick Johnson
I just read an article[1] reporting that Apple has won a court case against Andoid (and others) over a patent infringement. Before i was able to see what all the hub-bub was about my mind started to wonder what "advanced technology" Google has stolen from Apple. To my great UNSURPRISE the so-calle

Re: Set initial size in TKinter

2011-12-20 Thread Rick Johnson
On Dec 20, 5:09 am, Gabor Urban wrote: > Hi, > > I am quite newbie with Tkinter and I could not find the way to set the > size of the application. Probably due to this haphazard coding style; why would you name an object "Application" that is an instance of Tkinter.Frame? That is just going to co

Re: Python education survey

2011-12-20 Thread Rick Johnson
On Dec 20, 2:14 am, Stefan Behnel wrote: > For teaching, I think it's better to come around with something simpler > than a full-blown IDE, so that you can show off interactive development, > help() and other introspection features. IMHO much better than hiding all > that behind an IDE, That is

Re: Set initial size in TKinter

2011-12-20 Thread Rick Johnson
On Dec 20, 9:20 am, Eric Brunel wrote: > Where did you find an example code looking like this? This looks like > veery old conventions for Tkinter programsŠ >[...] > And you should avoid creating only an instance of Frame. This actually > creates a window, but it's a side-effect. Two major p

Re: Learning Python 2.4

2011-12-20 Thread Rick Johnson
On Dec 20, 12:31 pm, kimma wrote: > Hi there, > > I am about to learn python with "how to think like a computer > scientist". This book is just available for python 2.4. Does it matter > for programming? > > Greetz Kimma, don't listen to either of these guys. Anything before Python 3.0 is now obs

Re: Learning Python 2.4

2011-12-20 Thread Rick Johnson
On Dec 20, 8:13 pm, Ashton Fagg wrote: > On 21 December 2011 10:31, Rick Johnson wrote: > I got the impression the OP was learning programming in general (i.e. > from scratch) and not merely "learning Python". If this is the case it > shouldn't matter if they're

Re: Why widgets become 'NoneType'?

2011-12-21 Thread Rick Johnson
On Dec 21, 6:59 am, Muddy Coder wrote: > Hi Folks, > > I was driven nuts by this thing: widgets lost their attributes, then I > can't configure them. Please take a look at the codes below: The problem is here... >     labels = [] >     for i in range(len(astr)): >         lbl = Label(win, text=

Re: How to check for single character change in a string?

2011-12-24 Thread Rick Johnson
On Dec 24, 11:09 am, Arnaud Delobelle wrote: > sum(map(str.__ne__, str1, str2)) Mirror, mirror, on the wall. Who's the cleanest of them all? -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-24 Thread Rick Johnson
On Dec 24, 6:24 pm, alex23 wrote: > That you're a condescending douchebag with nothing of value to > contribute? > > Crystal. Take it from me Eelco. Once Alex drops into your thread and starts name calling, it's over my friend. -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding an interface to existing classes

2011-12-24 Thread Rick Johnson
On Dec 22, 2:21 am, Spencer Pearson wrote: > I'm writing a geometry package, with Points and Lines and Circles and > so on, and eventually I want to be able to draw these things on the > screen. ...which is the main reason for creating a geometry package in the first place!. I mean, imaginary poi

Re: Plot seems weird

2011-12-25 Thread Rick Johnson
On Dec 25, 9:33 am, Yigit Turgut wrote: > Hi all, > > I have a text file as following; > > 0.200047        0.00 > 0.200053        0.16 > 0.200059        0.00 > 0.200065        0.08 > 0.200072        0.00 > 0.200078        0.16 > > And I am trying to plot it with ; > > filen

Re: Python education survey

2011-12-25 Thread Rick Johnson
On Dec 19, 9:51 pm, Raymond Hettinger wrote: > Do you use IDLE when teaching Python? > If not, what is the tool of choice? I believe IDLE has the potential to be a very useful teaching tool and even in it's current abysmal state, i find it to be quite useful. > Students may not be experienced wi

Re: Python education survey

2011-12-26 Thread Rick Johnson
On Dec 25, 9:27 pm, Chris Angelico wrote: > On Mon, Dec 26, 2011 at 4:44 AM, Rick Johnson > > [...] > Conversely, why write an IDE into IDLE when perfectly-good IDEs > already exist? I don't use IDLE for development per se; it's for > interactive Python execution, but

Re: Python education survey

2011-12-26 Thread Rick Johnson
On Dec 26, 10:11 am, Nathan Rice wrote: > On Mon, Dec 26, 2011 at 9:52 AM, Rick Johnson > > > > > > > > > > wrote: > > On Dec 25, 9:27 pm, Chris Angelico wrote: > >> On Mon, Dec 26, 2011 at 4:44 AM, Rick Johnson > >> > [...] > >

Re: Possible bug in string handling (with kludgy work-around)

2011-12-26 Thread Rick Johnson
On Dec 26, 4:23 pm, Charles Hixson wrote: > This doesn't cause a crash, but rather incorrect results. > > self.wordList    =    ["The", "quick", "brown", "fox", "carefully", >                  "jumps", "over", "the", "lazy", "dog", "as", "it", >                  "stealthily", "wends", "its", "way"

Re: Python education survey

2011-12-27 Thread Rick Johnson
On Dec 27, 12:14 am, Carl Smith wrote: > Do people seriously use IDLE? I thought it was just there for > scratchers, like turtle. I know for a fact that many folks use IDLE, even some rather "well known" folks around here. The fact is, more people use IDLE than admit to using IDLE. Of course, out

Re: Possible bug in string handling (with kludgy work-around)

2011-12-27 Thread Rick Johnson
-- Note: superfluous indention removed for clarity! -- On Dec 27, 8:53 am, Dennis Lee Bieber wrote: > You can get by without the backslash in this situation too, by using > triple quoting: I would not do that because: 1. Because Python already has TWO string literal delimiters (' and ") 2. Becau

Re: Python education survey

2011-12-27 Thread Rick Johnson
On Dec 27, 11:50 am, Lie Ryan wrote: > In case you haven't realised it, it is pretty > much impossible for a large open source project to "die"; even if Guido > decided to remove IDLE from the standard library I don't remember stating that Python would die if IDLE was removed (not sure if you mis

Re: Python education survey

2011-12-27 Thread Rick Johnson
On Dec 27, 11:59 am, K Richard Pixley wrote: > The problem is that IDLE is hard to set up.  (I've never managed it and > I'm a well seasoned veteran). Can you qualify that statement? Do you mean "difficult to set up on certain OS's"? Because for windows there is no difficulty. > And [IDLE is] p

Re: Python education survey

2011-12-27 Thread Rick Johnson
On Dec 27, 1:45 pm, Eelco wrote: > On Dec 27, 6:53 pm, Lie Ryan wrote: > > On 12/27/2011 10:41 PM, Eelco wrote: > > Before using VIM, I used to use gedit Eelco, please don't get offended, but can you (and everyone else) stop using silly verbage like "used to", "use to", "suppose to", "hard" whe

Re: Possible bug in string handling (with kludgy work-around)

2011-12-27 Thread Rick Johnson
On Dec 27, 3:38 pm, Terry Reedy wrote: > On 12/27/2011 1:04 PM, Rick Johnson wrote: > > > But this brings up a very important topic. Why do we even need triple > > quote string literals to span multiple lines? Good question, and one i > > have never really mused on until

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-27 Thread Rick Johnson
On Dec 27, 5:10 pm, Steven D'Aprano wrote: > On Sun, 25 Dec 2011 07:47:20 -0800, Eelco wrote: > Your original use-case, where you want to change the type of tail from a > list to something else, is simply solved by one extra line of code: > > head, *tail = sequence > tail = tuple(tail) i wonder i

Re: Python education survey

2011-12-27 Thread Rick Johnson
On Dec 27, 3:44 pm, Eelco wrote: > Despite the fact that you mis-attributed that quote to me, im going to > be a little bit offended in the name of its actual author anyway. > Thats a lot of words to waste on your linguistic preferences. > Personally, I reserve the right to botch my non-native la

Re: Python education survey

2011-12-27 Thread Rick Johnson
On Dec 27, 7:21 pm, 8 Dihedral wrote: > There are Dr.Python, Pycrust and  Notepadplus to support writing python > programs. I really like Pycrust. It's written in Python, it's code base is structured in a professional manner (IDLE you should be jealous!), and it works well. However, it is de

Re: Python education survey

2011-12-27 Thread Rick Johnson
On Dec 27, 8:21 pm, Tim Chase wrote: > I'm glad you're open to learning more about English as "used to" > is perfectly acceptable according to the World English Dictionary[1] > [...] > May you be found better for learning and come to give others the > benefit of the doubt. I don't care what ANY

Py-dea: Streamline string literals now!

2011-12-27 Thread Rick Johnson
Hello folks, In a recent thread i stumbled upon an epiphany of sorts concerning Python string literals, with implications that trickle down to all forms of string literals used in general programming, since, for the most part, the syntax is virtually the same! For all our lives we have been excep

Re: Py-dea: Streamline string literals now!

2011-12-27 Thread Rick Johnson
On Dec 27, 10:17 pm, Chris Angelico wrote: > On Wed, Dec 28, 2011 at 2:49 PM, Rick Johnson > > wrote: > > My proposal is to introduce a single delimiter for string literals. A > > new string literal that is just as good at spanning single lines as it > > is spanning mu

Re: Py-dea: Streamline string literals now!

2011-12-27 Thread Rick Johnson
On Dec 27, 9:49 pm, Rick Johnson wrote: > The fact is...even with the multi-line issue solved, we still have two > forms of literal delimiters that encompass two characters resulting in > *four* possible legal combinations of the exact same string! I don't > know about you guy

Re: Py-dea: Streamline string literals now!

2011-12-28 Thread Rick Johnson
On Dec 28, 12:58 am, Steven D'Aprano wrote: > On Tue, 27 Dec 2011 21:34:19 -0800, Rick Johnson wrote: > > I am also thinking that ANY quote char is a bad choice for string > > literal delimiters. Why? Well because it is often necessary to embed > > single or double qu

Re: .format vs. %

2012-01-02 Thread Rick Johnson
On Jan 2, 4:00 pm, Ethan Furman wrote: > %-style formatting isn't going away. You may want to freshen up on the definition of "deprecation". If it was NOT going away, why the need to deprecate it? hmm? It would be more beneficial if you DO NOT encourage continued usage of this "end- of-life" feat

Re: .format vs. %

2012-01-02 Thread Rick Johnson
On Dec 31 2011, 12:19 pm, davidfx wrote: > Hello everyone, > I just have a quick question about .format and %r %s %d. > > Should we always be using .format() for formatting strings or %? ALWAYS use the format method over the old and dumpy string interpolation. Why? Well because the format method

Re: Python education survey

2012-01-02 Thread Rick Johnson
On Dec 31 2011, 11:12 pm, Dominic Binks wrote: > I doubt you could validate or invalidate a word.  A word is, there is no > validation necessary.  You could potentially try to validate it's use > but again that's not in your power. Usage begets validation. By using words in a manner that is impr

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2012-01-02 Thread Rick Johnson
On Jan 2, 8:38 pm, alex23 wrote: > Conversely, you could pitch in behind Rick Johnson's Python 4000 fork, > I sure it's progressing nicely given how long Rick has been talking it > up. It's NOT a fork Alex. It IS in fact the next logical step in Python's future evolution. -- http://mail.python.

Re: help me get excited about python 3

2012-01-04 Thread Rick Johnson
On Jan 4, 9:56 am, Sean Wolfe wrote: > I am still living in the 2.x world because all the things I want to do > right now in python are in 2 (django, pygame). But I want to be > excited about the future of the language. Okay. So why not enjoy the best of both worlds (almost) and use version 2.7.2

Re: Spamming PyPI with stupid packages

2012-01-05 Thread Rick Johnson
On Jan 3, 8:42 pm, Ben Finney wrote: > Steven D'Aprano writes: > > On Wed, 04 Jan 2012 12:54:09 +1100, Ben Finney wrote: > > > It objectifies women. > > > So you claim. > > I'm sure you have a hundred ready rationalisations for why a joke that > has “girlfriend” as a fungible object, together wit

Re: Spamming PyPI with stupid packages

2012-01-05 Thread Rick Johnson
On Jan 3, 8:37 pm, Chris Angelico wrote: > On Wed, Jan 4, 2012 at 12:54 PM, Ben Finney > wrote: > > It objectifies women. If you can't see how that's harmful to women, I > > haven't the stamina to educate you. > > And "import pickle" objectifies pickles. It's deplorable how few > gherkins become

Re: Spamming PyPI with stupid packages

2012-01-05 Thread Rick Johnson
On Jan 1, 5:24 pm, Alexander Kapps wrote: > Uh oh, should I really send this? ... Yes. Yes, I should! Sorry, I > cannot resists. > > >>> allow everyone to do "import girlfriend" > > I'm betting on a joke, like antigravity only significantly less > > funny and more sexist. > > Absolutely not funny.

Re:

2012-01-08 Thread Rick Johnson
On Jan 8, 10:37 am, Sean Wolfe wrote: > is anybody out there? Oh yes, in fact there are many of us who are "out there". http://www.youtube.com/watch?v=bHNa_f28Q-s -- http://mail.python.org/mailman/listinfo/python-list

<    3   4   5   6   7   8   9   10   11   >