Re: [Python-Dev] Rewrite of cmath module?

2007-03-17 Thread Aahz
On Sun, Mar 18, 2007, Mark Dickinson wrote: > > I'm wondering whether anyone would be interested in a rewrite of the > cmath module. In theory, yes, but my observations of past discussions have been that they tend to founder on the issues of cross-platform support and long-term code maintenance.

[Python-Dev] Rewrite of cmath module?

2007-03-17 Thread Mark Dickinson
The current cmath module has some significant numerical problems, particularly in the inverse trig and inverse hyperbolic trig functions. I've listed a few of these below, but for now I'll just note the following upsetting result: >>> asin(-1e8) Traceback (most recent call last): File "", line 1

Re: [Python-Dev] Rationale for NamedTemporaryFile?

2007-03-17 Thread dustin
On Sun, Mar 18, 2007 at 11:49:55AM +1200, Greg Ewing wrote: > I've just discovered the hard way that NamedTemporaryFile > automatically deletes the file when you close it. That > doesn't seem very useful to me, since surely the reason > you're using NamedTemporaryFile instead of TemporaryFile > is

Re: [Python-Dev] Encouraging developers

2007-03-17 Thread Tony Meyer
On 8/03/2007, at 2:42 AM, Paul Moore wrote: > On 06/03/07, Scott Dial <[EMAIL PROTECTED]> wrote: >> Sadly the sf tracker doesn't let you search for "With comments >> by". The >> patch I was making reference to was 1410680. Someone else actually >> had >> wrote a patch that contained bugs and I

Re: [Python-Dev] Bug in inspect module

2007-03-17 Thread Collin Winter
On 3/17/07, Ewan Mellor <[EMAIL PROTECTED]> wrote: > I have a problem being reported (by Xen users) where inspect.stack() is > throwing IndexError. I think that this is a bug in inspect.py -- findsource > generally throws IOError when it can't find a particular source file, but in > the case where

[Python-Dev] Rationale for NamedTemporaryFile?

2007-03-17 Thread Greg Ewing
I've just discovered the hard way that NamedTemporaryFile automatically deletes the file when you close it. That doesn't seem very useful to me, since surely the reason you're using NamedTemporaryFile instead of TemporaryFile is that you want to do something else with it afterwards? What's the rati

[Python-Dev] Bug in inspect module

2007-03-17 Thread Ewan Mellor
All, I have a problem being reported (by Xen users) where inspect.stack() is throwing IndexError. I think that this is a bug in inspect.py -- findsource generally throws IOError when it can't find a particular source file, but in the case where it finds a source file, but that file is shorter tha

Re: [Python-Dev] Py2.6 ideas

2007-03-17 Thread Edward Loper
On Feb 15, 2007, at 2:59 PM, Raymond Hettinger wrote: > * Enhance doctest with a method that computes updated doctest > results. If the > only change I make to a matrix suite is to add commas to long > numbers in the > matrix repr(), then it would be nice to have an automated way to > update

Re: [Python-Dev] Py2.6 ideas

2007-03-17 Thread Edward Loper
Sorry, forgot to include the output of doctest_driver.py --help. Here it is: -Edward Usage: doctest_driver.py [options] NAME ... Options: --version show program's version number and exit -h, --helpshow this help message and exit Actions (default=check):

Re: [Python-Dev] Proposal to revert r54204 (splitext change)

2007-03-17 Thread Aahz
On Thu, Mar 15, 2007, "Martin v. L??wis" wrote: > > I'm not quite sure what "it" is, here. If "it" is that there be no > incompatible changes in Python: this is not policy, and not even > consensus. Instead, policy (as enforced by the release manager), and > consensus is that bug fix releases (2.x.

Re: [Python-Dev] Proposal to revert r54204 (splitext change)

2007-03-17 Thread Steve Holden
Patrick Maupin wrote: > On 3/16/07, Steve Holden <[EMAIL PROTECTED]> wrote: [...] >> Then I can stop wasting everyone's time. Even though I am no fonder of >> code breakage than I was. > > Fortunately, for new code (at least for this particular change!), you > don't have to worry about breakage.