[issue5474] distutils produces invalid RPM packages of prerelease python packages

2009-03-11 Thread Rudd-O
Rudd-O rud...@rudd-o.com added the comment: the newest svnversions patch is to handle the case of people who want to build svn checkouts (usually versionnumbered by dev or dev-rXXXYYZZ). it overrides the release to be zero so they never upgrade alpha, beta packages. -- Added file:

[issue1869] Builtin round function is sometimes inaccurate for floats

2009-03-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: ...and issue 5473 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1869 ___ ___

[issue5473] round(float, ndigits0) sometimes rounds to odd

2009-03-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I think this *is* the same issue as 1869, at least in broad terms: the rounding code involves inexact floating-point operations (in this case a division by 10.0), which can result in a value that was *exactly* halfway between two rounded

[issue5472] distutils.test_util fails to restore os.uname; causes test_platform to fail

2009-03-11 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Adding Tarek to nosy list as he added the code earlier this month -- nosy: +tarek title: distutils.test_util fails to restore os.uname - distutils.test_util fails to restore os.uname; causes test_platform to fail

[issue5472] distutils.test_util fails to restore os.uname; causes test_platform to fail

2009-03-11 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Thanks for the patch, I'll apply it later today -- assignee: - tarek components: +Distutils versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Lie Ryan
Lie Ryan lie.1...@gmail.com added the comment: The possible new PEP 3135, however I'm not that familiar with the implementation of the new super, thus please review whether it is right w.r.t. reality. I'm writing only from whatever I can determine from observing the behavior of super in python

[issue5473] round(float, ndigits0) sometimes rounds to odd

2009-03-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: (in this case a division by 10.0) Of course, that's not true: division by 10.0 is harmless when the result is exactly representable. It's actually a multiplication by pow(10.0, -1), which is worse... I'm currently working on incorporating

[issue5475] urllib2.getproxies not documented

2009-03-11 Thread Tim Michelsen
New submission from Tim Michelsen timmichel...@gmx-topmail.de: There is no documentation for the function in http://docs.python.org/search.html?q=getproxiescheck_keywords=yesarea=default But the docstring shows: ul.getproxies? Type: function Base Class: type 'function' String

[issue5463] Compiler warning get_ulong is never used 3.x

2009-03-11 Thread Andreas Schawo
Andreas Schawo andreas.sch...@gmail.com added the comment: Hi Mark, I've removed all overflow masking from _struct.c. Running the regression test test_struct failed for test_issue4228 wich I think have to be removed too because it tests the deprecated feature. I've tested the constraints

[issue5463] Compiler warning get_ulong is never used 3.x

2009-03-11 Thread Andreas Schawo
Changes by Andreas Schawo andreas.sch...@gmail.com: Removed file: http://bugs.python.org/file13288/get_ulong_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5463 ___

[issue5472] distutils.test_util fails to restore os.uname; causes test_platform to fail

2009-03-11 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r70308, r70310. Thx. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5472 ___

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-03-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I tried the patch on a 64-bit Linux system and it's ok. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4258 ___

[issue3099] On windows, import nul always succeed

2009-03-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It's a problem with debug builds on Windows. Lowering priority. Also, it is likely that the new import library will correct the problem. -- priority: - low ___ Python tracker

[issue3392] subprocess fails in select when descriptors are large

2009-03-11 Thread Mike Coleman
Mike Coleman m...@users.sourceforge.net added the comment: I also ran into this bug. In my case I'm able to work around this by reserving some fds at the start of my program (open 20 reserved fds, open 2000 real fds, close 20 reserved fds), but this is both a kludge and not a general

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2009-03-11 Thread Barron Henderson
New submission from Barron Henderson barr...@gmail.com: Initializing a timedelta object with numpy.int32 arguments give mixed results; it fails for days keyword, gives bad results for minutes, and give correct results for seconds/microseconds. Failure confirmed on Linux i686 (Py 2.5.2; numpy

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2009-03-11 Thread Barron Henderson
Changes by Barron Henderson barr...@gmail.com: -- components: +Library (Lib) versions: +Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5476 ___

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2009-03-11 Thread David W. Lambert
David W. Lambert lamber...@corning.com added the comment: With older versions of each timedelta rejects the data type. Maybe that's a good resolution? $ /usr/local/bin/python2.4 Python 2.4.2 (#2, Jul 7 2006, 10:20:47) [GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2 Type help, copyright,

[issue5477] Typo in itertools documentation

2009-03-11 Thread Thomas Guest
New submission from Thomas Guest t...@wordaligned.org: http://docs.python.org/3.0/library/itertools.html says: The tools also work well with the high-speed functions in the operator module. For example, the plus-operator can be mapped across two vectors to form an efficient dot-product:

[issue5473] round(float, ndigits0) sometimes rounds to odd

2009-03-11 Thread Christian Taylor
Christian Taylor di...@chello.at added the comment: I see what you mean. I originally thought that intermediate numbers not being representable as floats was not the issue here, since for example 25.0/10.0 should give the exact result - despite issue 1869 clearly mentioning the *multiplication*

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Thanks for contributing. However since you reformatted the whole file it's kind of hard to see what you changed, which makes review laborious. Could you try to upload a unified diff relative to the PEP source code in Subversion? --

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Lie Ryan
Lie Ryan lie.1...@gmail.com added the comment: Here is the unified diff. -- keywords: +patch Added file: http://bugs.python.org/file13305/pep-3135.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2312

[issue5477] Typo in itertools documentation

2009-03-11 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: georg.brandl - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5477 ___

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Thanks! Reviewing now... -- assignee: georg.brandl - gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2312 ___

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Submitted as revision 70312, with some additional changes. I suppose it could use some more work (e.g. adding the penultimate proposal to the History section) but I'll leave that to others. (Lie, if you feel like writing that history

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-03-11 Thread Brad Miller
Brad Miller bonel...@gmail.com added the comment: I hand applied the patch because I hoped it would fix the problem of the cursor going all the way to the left of the in the Python shell when you press home or ctrl-a. The patch as it is does not solve this problem on the Mac. I've uploaded

[issue2610] string representation of range and dictionary views

2009-03-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Closing since this is now implemented. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2610

[issue5434] datetime.MonthDelta

2009-03-11 Thread Jess Austin
Jess Austin jess.aus...@gmail.com added the comment: This prototype python implementation passes the same tests that the C implementation in the patch does (modulo import differences). I'll probably backport this for 2.x versions. -- Added file:

[issue5223] infinite recursion in PyErr_WriteUnraisable

2009-03-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Amaury, there is a funny bug in the 3.0 implementation with very low recursion limits (#5392). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5223

[issue5478] document mistake xml.dom.minidom.Element

2009-03-11 Thread Kouki Hashimoto
New submission from Kouki Hashimoto hsm...@gmail.com: I found mistake in python documentation about xml.dom.minidom.Element class. http://docs.python.org/dev/py3k/library/xml.dom.html#module-xml.dom I think it is NOT Element.getElementsByTagNameNS(tagName) It SHOULD be

[issue5477] Typo in itertools documentation

2009-03-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed. See r70317. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5477 ___

[issue444582] Finding programs in PATH, addition to os

2009-03-11 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: +1 adding which to shutil -- nosy: +tleeuwenb...@gmail.com ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___

[issue5236] time.strptime should reject bytes arguments on Py3

2009-03-11 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: I believe this shouldn't be tagged as part of the Lib component... Also, I am happy to work on this issue, developing tests and a patch. Would that be appropriate? I may take a little while to get the hang of things, but I'm happy

[issue5236] time.strptime should reject bytes arguments on Py3

2009-03-11 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: My mistake, it is part of the Lib component ... I failed to see the callback to Python from timemodule.c and jumped to conclusions. In any case, I'm happy to work on this. -- ___ Python

[issue5236] time.strptime should reject bytes arguments on Py3

2009-03-11 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: See also thread http://mail.python.org/pipermail/python-dev/2009-March/087104.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5236

[issue5236] time.strptime should reject bytes arguments on Py3

2009-03-11 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: If you want to work on it, Tennesse, then go for it! -- components: +Library (Lib) -Extension Modules priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5236