Re: [Tutor] Testing a method in a class with nosetests

2013-04-21 Thread eryksun
On Sun, Apr 21, 2013 at 9:33 PM, Steven D'Aprano wrote: > > it's NOT because you failed to post plain text, since you actually did. Actually it's a multipart message with both plain text and HTML, with the digest quoted in each version. It helps that the HTML is using " " and that map directly t

Re: [Tutor] multiple versions of python on windows?

2013-04-21 Thread Jim Mooney
On 21 April 2013 22:47, School wrote: > You can install multiple versions. The programs use the version they were > assigned to, so there shouldn't be any conflict. This brings up the question of installing multiple versions of Wing 101 IDE. I forget the install but even if I can install in a di

Re: [Tutor] multiple versions of python on windows?

2013-04-21 Thread eryksun
On Sun, Apr 21, 2013 at 10:50 PM, Jim Mooney wrote: > My plan for starting on Py 3 may need some adjustment. I doiwnloaded > an irc client that needs Py 2.6 and I think Plone wants 2.7. > > Is it possible to install multiple versions of python on the same > machine or will windows choke? Installi

Re: [Tutor] is there an explicit eof to test in Py 3?

2013-04-21 Thread eryksun
On Sun, Apr 21, 2013 at 9:35 PM, Jim Mooney wrote: > I'm reading a book that suggests finding EOF when the readLine == "" > > But wouldn't that end erroneously on blank lines, that really contain > '\n', in which case more lines might follow? What 'empties' are > considered equal in Python? I'm c

Re: [Tutor] is there an explicit eof to test in Py 3?

2013-04-21 Thread Dave Angel
On 04/21/2013 09:35 PM, Jim Mooney wrote: I'm reading a book that suggests finding EOF when the readLine == "" But wouldn't that end erroneously on blank lines, that really contain '\n', in which case more lines might follow? What 'empties' are considered equal in Python? I'm coming from ja

[Tutor] multiple versions of python on windows?

2013-04-21 Thread Jim Mooney
My plan for starting on Py 3 may need some adjustment. I doiwnloaded an irc client that needs Py 2.6 and I think Plone wants 2.7. Is it possible to install multiple versions of python on the same machine or will windows choke? -- Jim Mooney Today is the day that would have been tomorrow if yest

[Tutor] is there an explicit eof to test in Py 3?

2013-04-21 Thread Jim Mooney
I'm reading a book that suggests finding EOF when the readLine == "" But wouldn't that end erroneously on blank lines, that really contain '\n', in which case more lines might follow? What 'empties' are considered equal in Python? I'm coming from javascript which has a cluster of rules for that

Re: [Tutor] Testing a method in a class with nosetests

2013-04-21 Thread Steven D'Aprano
On 22/04/13 10:49, Alex Baker wrote: Hello, I've been lurking tutor for the last couple months and have quite enjoyed it! Welcome, and congratulations on your first post! Unfortunately I have to start with a complaint :-( but it's NOT because you failed to post plain text, since you actually

Re: [Tutor] Testing a method in a class with nosetests (Alex Baker)

2013-04-21 Thread Alex Baker
next part -- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/tutor/attachments/20130421/f1a36fa0/attachment-0001.html> -- Message: 2 Date: Sun, 21 Apr 2013 16:05:42 -0400 From: Dave Angel To: tutor@python.org Subject: Re: [Tutor

[Tutor] Testing a method in a class with nosetests

2013-04-21 Thread Alex Baker
Hello, I've been lurking tutor for the last couple months and have quite enjoyed it! I'm having a problem testing a method using nosetests. The assignment (Learn Python the Hard Way) asks that I write tests for a package using assert_equal and assert_raises. I've conquered the assert_equals but

Re: [Tutor] Py 3 package maturity - good links

2013-04-21 Thread Dave Angel
On 04/21/2013 12:24 PM, Jim Mooney wrote: On the other hand, from the perspective of "When will the *majority* of publicly-available libraries and packages support Python 3, then the answer is "Right now". The Python 3 Wall of Shame turned mostly green some time ago, and is now known as the Pytho

[Tutor] Py 3 package maturity - good links

2013-04-21 Thread Jim Mooney
> On the other hand, from the perspective of "When will the *majority* of > publicly-available libraries and packages support Python 3, then the answer > is "Right now". The Python 3 Wall of Shame turned mostly green some time > ago, > and is now known as the Python 3 Wall of Superpowers: > > https

Re: [Tutor] Time frame for Py 3 Maturity

2013-04-21 Thread Alan Gauld
On 21/04/13 03:10, Jim Mooney wrote: This is why we tend to recommend 2.7 for anyone doing serious work in Python. Understood. I am in no rush, but what do you think it the time frame when Py 3 will be mature? As Steven has already pointed out Python 3 itself is mature. The problem i