Re: [Python-Dev] Questions on unittest behaviour

2006-08-19 Thread Nick Coghlan
Collin Winter wrote: [Sorry for accidentally cross-posting this to python-list] While working on a test suite for unittest these past few weeks, I've run across some behaviours that, while not obviously wrong, don't strike me as quite right, either. Submitted for your consideration: 1)

Re: [Python-Dev] Questions on unittest behaviour

2006-08-19 Thread Jonathan Lange
On 8/19/06, Collin Winter [EMAIL PROTECTED] wrote: 1) TestCase.tearDown() is only run if TestCase.setUp() succeeded. It seems to me that tearDown() should always be run, regardless of any failures in setUp() or the test method itself. The case I'm considering is something like this, ie, a

Re: [Python-Dev] How does this help? Re: [Python-checkins] r51366 - python/trunk/Lib/idlelib/NEWS.txt python/trunk/Lib/idlelib/idlever.py

2006-08-19 Thread Anthony Baxter
On Saturday 19 August 2006 06:24, Jim Jewett wrote: This makes things more consistent for today, but does it really ease maintenance? Why not just change it to: from sys import version as IDLE_VERSION so that it can be ignored from now on? After the fuss about changing distutils' version

Re: [Python-Dev] One-line fix for urllib2 regression

2006-08-19 Thread Anthony Baxter
On Saturday 19 August 2006 15:28, Georg Brandl wrote: John J Lee wrote: Revision 50842 made a change to an undocumented interface of urllib2 that I'm sure will break real code. Patch 1542948 reverts the part of that commit that applied to urllib2, and adds a one-line fix in its place

Re: [Python-Dev] ctypes and win64

2006-08-19 Thread Tim Peters
[Steve Holden] Reasonable enough, but I suspect that Thomas' suggestion might save us from raising false hopes. I'd suggest that the final release announcement point out that this is the first release containing specific support for 64-bit architectures (if indeed it is) [Martin v. Löwis] It

Re: [Python-Dev] ctypes and win64

2006-08-19 Thread Steve Holden
Tim Peters wrote: [Steve Holden] Reasonable enough, but I suspect that Thomas' suggestion might save us from raising false hopes. I'd suggest that the final release announcement point out that this is the first release containing specific support for 64-bit architectures (if indeed it is)

Re: [Python-Dev] [Python-checkins] How does this help? Re: r51366 - python/trunk/Lib/idlelib/NEWS.txt python/trunk/Lib/idlelib/idlever.py

2006-08-19 Thread Kurt B. Kaiser
Anthony Baxter [EMAIL PROTECTED] writes: On Saturday 19 August 2006 06:24, Jim Jewett wrote: This makes things more consistent for today, but does it really ease maintenance? Why not just change it to: from sys import version as IDLE_VERSION so that it can be ignored from now on? After

Re: [Python-Dev] os.spawnlp() missing on Windows in 2.4?

2006-08-19 Thread Jack Diederich
On Sat, Aug 19, 2006 at 04:34:16AM +0100, Steve Holden wrote: Scott Dial wrote: Guido van Rossum wrote: I just got a report from a Windows user that os.spawnlp() is missing from Python 2.4, despite being mentioned in the docs. Can someone confirm this? My Windows box is resting. :-)

Re: [Python-Dev] ctypes and win64

2006-08-19 Thread Jack Diederich
On Sat, Aug 19, 2006 at 05:19:40AM -0400, Tim Peters wrote: [Steve Holden] Reasonable enough, but I suspect that Thomas' suggestion might save us from raising false hopes. I'd suggest that the final release announcement point out that this is the first release containing specific support

Re: [Python-Dev] Questions on unittest behaviour

2006-08-19 Thread Collin Winter
On 8/19/06, Nick Coghlan [EMAIL PROTECTED] wrote: Alternatively, someone who prefers your style (with a tearDown() method that can handle a partially executed call to the setUp() method), can just write it as: def setUp(self) try: lock_file(testfile) # open_socket(),

Re: [Python-Dev] os.spawnlp() missing on Windows in 2.4?

2006-08-19 Thread Terry Reedy
Jack Diederich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] *Availability: Unix: All, Windows: spawnl(), spawnle(), spawnv(), spawnve() only. New in version 1.6 Might as well positively list the half that is there instead of the half that isn't. Definitately. Succinct and

Re: [Python-Dev] Questions on unittest behaviour

2006-08-19 Thread Nick Coghlan
Collin Winter wrote: Any thoughts on the other four items? Generally speaking, I'm not sure it's worth the effort to do the input validation. All of the cases you suggest ruling out do indeed seem to be insane, but someone may have defined a subclass that does something based on the current

[Python-Dev] String formatting / unicode 2.5 bug?

2006-08-19 Thread John J Lee
Is this a bug? # run with 2.4 and then with 2.5 (I'm running release25-maint:51410) class a(object): def __getattribute__(self, name): print accessing %r.%s % (self, name) return object.__getattribute__(self, name) def __str__(self): print __str__

[Python-Dev] SSH Key Added

2006-08-19 Thread Jackilyn Hoxworth
Can I have this key added?-- Jackilyn Hoxworth jah_key.pub Description: Binary data ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] uuid module - byte order issue

2006-08-19 Thread Ka-Ping Yee
On Fri, 4 Aug 2006, Oren Tirosh wrote: Compatibility with Windows GUIDs may be one of the most important use cases for the UUID module. It's important to resolve this or users will have unpleasant surprises. I did. [...] alternatives: 1. Default is big endian byte order. Little endian is