Re: [Python-Dev] Python-3000 upgrade path

2007-02-27 Thread Collin Winter
On 2/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: [snip] > 2to3 should take great care _tell_ you when it fails. One concern I have is > that the > source translation may subtly alter the *semantics* of unit test code, so > that the tests > are no longer effective and do not provide adequ

Re: [Python-Dev] Python-3000 upgrade path

2007-02-27 Thread glyph
On Sun, 25 Feb 2007 13:12:51 -0800, Thomas Wouters <[EMAIL PROTECTED]> wrote: >I'm sending this to python-dev instead of python-3000 for two reasons: It's >not about features to be added to Python 3.0, and it's not really >about 3.0at all -- it's about >2.6 and later. It's about how we get Python 2

Re: [Python-Dev] with_traceback

2007-02-27 Thread glyph
On Tue, 27 Feb 2007 13:37:21 +1300, Greg Ewing <[EMAIL PROTECTED]> wrote: >I don't like that answer. I can think of legitimate >reasons for wanting to pre-create exceptions, e.g. if >I'm intending to raise and catch a particular exception >frequently and I don't want the overhead of creating >a ne

Re: [Python-Dev] Integer division operator can give float result?

2007-02-27 Thread Fred L. Drake, Jr.
On Tuesday 27 February 2007 22:34, Greg Ewing wrote: > Is this intentional? I would have expected the > // operator to always give an integer result. Think "floor division", not "integer division". The result (r) may be a float, but it'll hold to the constraint: r == int(r) -Fred --

[Python-Dev] Integer division operator can give float result?

2007-02-27 Thread Greg Ewing
Is this intentional? I would have expected the // operator to always give an integer result. Python 2.3 (#1, Aug 5 2003, 15:52:30) [GCC 3.1 20020420 (prerelease)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 7.0 // 2 3.0 -- Greg __

[Python-Dev] zipfile patch (1121142) updated

2007-02-27 Thread Alan McIntyre
I posted what I hope can be the final update to patch 1121142 (adding an open() method to ZipFile that returns a read-only file-like object). If anybody has time to review and apply it I would appreciate it. https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1121142&group_id=5470 If I f

Re: [Python-Dev] Adding timeout option to httplib...connect()

2007-02-27 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > Guido, I looked at urllib2 and quickly gave up. I have no idea how that > code works (where is a lower level library's connection object instantiated, > for example?). I presume with timeouts in the lower level libraries someone > who knows how urllib2 works will be ab

[Python-Dev] A Reminder : A Survey on Defect Management Practices in Free/Open Source Software

2007-02-27 Thread Anu Gupta DCSA
Sir/Madam I seek help from designers, developers, testers,defect fixers,project managers or playing any other key role in Free/Open Source software development or maintenence in carrying out a study to identify practices and problems of defect management in various Free/Open Source Software pr

[Python-Dev] A Survey on Defect Management Practices in Free/Open Source Software

2007-02-27 Thread Anu Gupta DCSA
Sir/Madam I seek help from designers, developers, testers,defect fixers,project managers or playing any other key role in Free/Open Source software development or maintenence in carrying out a study to identify practices and problems of defect management in various Free/Open Source Software pr