Re: [Python-Dev] unittest's redundant assertions: asserts vs. failIf/Unlesses

2008-04-08 Thread Michael Foord
Guido van Rossum wrote: > On Wed, Mar 19, 2008 at 5:16 PM, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > >> On Wed, Mar 19, 2008 at 2:15 PM, <[EMAIL PROTECTED]> wrote: >> > >> > On 02:21 pm, [EMAIL PROTECTED] wrote: >> > >>OTOH, I'd rather there be OOWTDI so whatever the consensus is is fin

[Python-Dev] Changing all network-oriented tests to facilitate (virtually unlimited) parallel test execution [Issue#: 2550]

2008-04-08 Thread Trent Nelson
I've forwarding my most recent update to issue 2550 here such that the proposed patch (and in general, the approach to network-oriented test cases) can be vetted by a wider audience: http://bugs.python.org/file9980/trunk.2550-2.patch This patch works towards fixing a large proportion of the te

[Python-Dev] py3k: print function treats sep=None and end=None in an unintuitive way

2008-04-08 Thread Alessandro Guido
Can anybody please point me why print('a', 'b', sep=None, end=None) should produce "a b\n" instead of "ab"? I've read http://docs.python.org/dev/3.0/library/functions.html#print, pep-3105 and some ml threads but did not find a good reason justifying such a strange behaviour. Thanks. -Ale

Re: [Python-Dev] py3k: print function treats sep=None and end=None in an unintuitive way

2008-04-08 Thread Nick Coghlan
Alessandro Guido wrote: > Can anybody please point me why print('a', 'b', sep=None, end=None) should > produce "a b\n" instead of "ab"? > I've read http://docs.python.org/dev/3.0/library/functions.html#print, > pep-3105 and some > ml threads but did not find a good reason justifying such a strange

Re: [Python-Dev] py3k: print function treats sep=None and end=None in an unintuitive way

2008-04-08 Thread Eric Smith
Alessandro Guido wrote: > Can anybody please point me why print('a', 'b', sep=None, end=None) should > produce "a b\n" instead of "ab"? > I've read http://docs.python.org/dev/3.0/library/functions.html#print, > pep-3105 and some > ml threads but did not find a good reason justifying such a strange

Re: [Python-Dev] py3k: print function treats sep=None and end=None in an unintuitive way

2008-04-08 Thread Eric Smith
Alessandro Guido wrote: > Can anybody please point me why print('a', 'b', sep=None, end=None) should > produce "a b\n" instead of "ab"? > I've read http://docs.python.org/dev/3.0/library/functions.html#print, > pep-3105 and some > ml threads but did not find a good reason justifying such a strange

Re: [Python-Dev] py3k: print function treats sep=None and end=None in an unintuitive way

2008-04-08 Thread Eric Smith
Alessandro Guido wrote: > Can anybody please point me why print('a', 'b', sep=None, end=None) should > produce "a b\n" instead of "ab"? > I've read http://docs.python.org/dev/3.0/library/functions.html#print, > pep-3105 and some > ml threads but did not find a good reason justifying such a strange

Re: [Python-Dev] py3k: print function treats sep=None and end=None in an unintuitive way

2008-04-08 Thread Eric Smith
[Sorry for the dupes. Lesson: never try and send mail from a moving train.] Eric Smith wrote: > Alessandro Guido wrote: >> Can anybody please point me why print('a', 'b', sep=None, end=None) should >> produce "a b\n" instead of "ab"? >> I've read http://docs.python.org/dev/3.0/library/functions.h

[Python-Dev] [OT] Wingware IDE key for sprinters at PyCon

2008-04-08 Thread Trent Nelson
Anyone happen to have the key handy that Wingware were giving out to sprinters at PyCon? For the life of me, I can't find what I did with that piece of paper. If someone could forward me it off list, that'd be great. Trent. ___ Python-Dev mailing

Re: [Python-Dev] py3k: print function treats sep=N one and end=None in an unintuitive way

2008-04-08 Thread Alessandro Guido
Nick Coghlan wrote: > So that print(a, b) does the right thing (i.e. matches the Python 2.x > print statement's behaviour) AFAICS print(a, b) does the right thing because default values of "sep" and "end" are ' ' and '\n' respectively, doesn't it? Eric Smith wrote: > Because None means 'use the

Re: [Python-Dev] how to easily consume just the parts of eggs that are good for you

2008-04-08 Thread zooko
On Mar 26, 2008, at 7:34 PM, Chris McDonough wrote: > zooko wrote: http://mail.python.org/pipermail/python-dev/2008-March/078243.html >> Here is a simple proposal: make the standard Python "import" >> mechanism notice eggs on the PYTHONPATH and insert them (into the >> *same* location) on

Re: [Python-Dev] py3k: print function treats sep=None and end=None in an unintuitive way

2008-04-08 Thread Nick Coghlan
Alessandro Guido wrote: > «print strings 'a' and 'b' using the default separator and the default > terminator» > > However i'll just cope with it, Python is still the best language ;) I definitely recommend getting used to this idiom - None is used to indicate missing (i.e. 'use the default val

Re: [Python-Dev] how to easily consume just the parts of eggs that are good for you

2008-04-08 Thread Paul Moore
On 08/04/2008, zooko <[EMAIL PROTECTED]> wrote: > By the way, since I posted my proposal two weeks ago I have pointed a > couple of Python hackers who currently refuse to use eggs at the URL: > > http://mail.python.org/pipermail/python-dev/2008-March/078243.html > > They both agreed that it mad

Re: [Python-Dev] how to easily consume just the parts of eggs that are good for you

2008-04-08 Thread Chris McDonough
zooko wrote: > > On Mar 26, 2008, at 7:34 PM, Chris McDonough wrote: >> zooko wrote: > > http://mail.python.org/pipermail/python-dev/2008-March/078243.html > >>> Here is a simple proposal: make the standard Python "import" >>> mechanism notice eggs on the PYTHONPATH and insert them (into the

Re: [Python-Dev] how to easily consume just the parts of eggs that are good for you

2008-04-08 Thread Phillip J. Eby
At 10:01 AM 4/8/2008 -0700, zooko wrote: >On Mar 26, 2008, at 7:34 PM, Chris McDonough wrote: > > zooko wrote: > >http://mail.python.org/pipermail/python-dev/2008-March/078243.html > > >> Here is a simple proposal: make the standard Python "import" > >> mechanism notice eggs on the PYTHONPATH and

Re: [Python-Dev] [OT] Wingware IDE key for sprinters at PyCon

2008-04-08 Thread Trent Nelson
All sorted, thanks. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Trent Nelson > Sent: 08 April 2008 15:48 > To: python-dev@python.org > Subject: [Python-Dev] [OT] Wingware IDE key for sprinters at PyCon > > Anyone happen to have the key handy t

Re: [Python-Dev] [Distutils] how to easily consume just the parts of eggs that are good for you

2008-04-08 Thread zooko
On Apr 8, 2008, at 11:27 AM, Lloyd Kvam wrote: > > When I wear my sysadmin hat, eggs become a nuisance. ... > As a developer, eggs are great. ... > Fortunately, distutils includes tools like bdist_rpm so that python > modules can be packaged for easy processing by the system package > manager. So

Re: [Python-Dev] Changing all network-oriented tests to facilitate (virtually unlimited) parallel test execution [Issue#: 2550]

2008-04-08 Thread Gregory P. Smith
On Tue, Apr 8, 2008 at 5:00 AM, Trent Nelson <[EMAIL PROTECTED]> wrote: > > I've forwarding my most recent update to issue 2550 here such that the > proposed patch (and in general, the approach to network-oriented test cases) > can be vetted by a wider audience: > > http://bugs.python.org/file9980

Re: [Python-Dev] how to easily consume just the parts of eggs that are good for you

2008-04-08 Thread Greg Ewing
zooko wrote: > 1. You can't conveniently install eggs into a non-system directory, > such as ~/my-python-stuff. > > 2. If you allow even a single egg to be installed into your > PYTHONPATH, it will change the semantics of your PYTHONPATH. I discovered another annoyance with eggs the other

Re: [Python-Dev] Changing all network-oriented tests to facilitate (virtually unlimited) parallel test execution [Issue#: 2550]

2008-04-08 Thread Trent Nelson
Committed the patch in r62234. Hopefully the work paid off! (He says moments before all the buildbots turn red...) From: Gregory P. Smith [mailto:[EMAIL PROTECTED] Sent: 08 April 2008 20:58 To: Trent Nelson Cc: python-dev@python.org Subject: Re: [Python-Dev] Cha

Re: [Python-Dev] how to easily consume just the parts of eggs that are good for you

2008-04-08 Thread Ben Finney
zooko <[EMAIL PROTECTED]> writes: > I am skeptical that prorgammers are going to be willing to use a new > database format. They already have a database -- their filesystem -- > and they already have the tools to control it -- mv, rm, and > PYTHONPATH. Many of them already hate the existence the >

Re: [Python-Dev] py3k: print function treats sep=None and end=None in an unintuitive way

2008-04-08 Thread Scott David Daniels
Alessandro Guido wrote: > Nick Coghlan wrote: > Eric Smith wrote: >> Because None means 'use the default value'. You probably want: >> print('a', 'b', sep='', end='') > > I think this is a "not optimally designed" API > because you have to read the documentation to understand why Excuse me, I do

Re: [Python-Dev] unittest's redundant assertions: assertsvs. failIf/Unlesses

2008-04-08 Thread Terry Reedy
"Michael Foord" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | > Someone please open a bug for this task. | > | > | This sounds like a good compromise and I'm happy to take on the cleanup | - unless someone else beats me to it. I guess it should wait until 3.0 | final is out of the

Re: [Python-Dev] [Distutils] how to easily consume just the parts of eggs that are good for you

2008-04-08 Thread Phillip J. Eby
At 10:49 PM 4/8/2008 -0400, Stanley A. Klein wrote: >On Tue, April 8, 2008 9:37 pm, Ben Finney ><[EMAIL PROTECTED]> wrote: > > Date: Wed, 09 Apr 2008 11:37:07 +1000 > > From: Ben Finney <[EMAIL PROTECTED]> > > Subject: Re: [Distutils] how to easily consume just the parts of eggs > > thata

Re: [Python-Dev] unittest's redundant assertions: assertsvs. failIf/Unlesses

2008-04-08 Thread Fred Drake
On Apr 8, 2008, at 11:47 PM, Terry Reedy wrote: > I think, however, that the docs should be revised now, for 2.6/3.0. > In the list of methods under TestCase Objects, the preferred method > of each > pair (or triplit) should be given first and the others marked as > future > deprecations, not r