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

2009-03-11 Thread Brett Cannon
Brett Cannon added the comment: If you want to work on it, Tennesse, then go for it! -- components: +Library (Lib) -Extension Modules priority: -> normal ___ Python tracker ___

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

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

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

2009-03-11 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg 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 tracker

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

2009-03-11 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg 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 to put some time into t

[issue444582] Finding programs in PATH, addition to os

2009-03-11 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg added the comment: +1 adding which to shutil -- nosy: +tleeuwenb...@gmail.com ___ Python tracker ___ ___ Pytho

[issue5477] Typo in itertools documentation

2009-03-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed. See r70317. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

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

2009-03-11 Thread Kouki Hashimoto
New submission from Kouki Hashimoto : 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 Element.getElementsByTagNameNS(namespaceU

[issue5223] infinite recursion in PyErr_WriteUnraisable

2009-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Amaury, there is a funny bug in the 3.0 implementation with very low recursion limits (#5392). -- nosy: +pitrou ___ Python tracker ___ _

[issue5434] datetime.MonthDelta

2009-03-11 Thread Jess Austin
Jess Austin 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: http://bugs.python.org/file13307/monthdelta.py __

[issue2610] string representation of range and dictionary views

2009-03-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Closing since this is now implemented. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ _

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

2009-03-11 Thread Brad Miller
Brad Miller 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 the patch as a

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Guido van Rossum
Guido van Rossum 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 section, just add it to

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! Reviewing now... -- assignee: georg.brandl -> gvanrossum ___ Python tracker ___ ___ Python

[issue5477] Typo in itertools documentation

2009-03-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: georg.brandl -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue2312] Update PEP 3135 (super())

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

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Guido van Rossum
Guido van Rossum 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? -- __

[issue5473] round(float, ndigits<0) sometimes rounds to odd

2009-03-11 Thread Christian Taylor
Christian Taylor 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* by powers of 10.

[issue5477] Typo in itertools documentation

2009-03-11 Thread Thomas Guest
New submission from Thomas Guest : 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: sum(map(operator.add, vect

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

2009-03-11 Thread David W. Lambert
David W. Lambert 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", "credits" or "licens

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

2009-03-11 Thread Barron Henderson
Changes by Barron Henderson : -- components: +Library (Lib) versions: +Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2009-03-11 Thread Barron Henderson
New submission from Barron Henderson : 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 1.2.1) and OS X 10.5

[issue3392] subprocess fails in select when descriptors are large

2009-03-11 Thread Mike Coleman
Mike Coleman 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 solution. Probably virtually all

[issue3099] On windows, "import nul" always succeed

2009-03-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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

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

2009-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I tried the patch on a 64-bit Linux system and it's ok. -- ___ Python tracker ___ ___ Python-bugs-li

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

2009-03-11 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r70308, r70310. Thx. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

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

2009-03-11 Thread Andreas Schawo
Changes by Andreas Schawo : Removed file: http://bugs.python.org/file13288/get_ulong_patch.diff ___ Python tracker ___ ___ Python-bugs-list mai

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

2009-03-11 Thread Andreas Schawo
Andreas Schawo 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 with some values and got the

[issue5475] urllib2.getproxies not documented

2009-03-11 Thread Tim Michelsen
New submission from Tim Michelsen : There is no documentation for the function in http://docs.python.org/search.html?q=getproxies&check_keywords=yes&area=default But the docstring shows: ul.getproxies? Type: function Base Class: String Form: Namespace: Interactive File

[issue5473] round(float, ndigits<0) sometimes rounds to odd

2009-03-11 Thread Mark Dickinson
Mark Dickinson 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 David Gay's code

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Lie Ryan
Lie Ryan 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 3.0.1 Probably no

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

2009-03-11 Thread Tarek Ziadé
Tarek Ziadé 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

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

2009-03-11 Thread Tim Golden
Tim Golden 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 ___ P

[issue5473] round(float, ndigits<0) sometimes rounds to odd

2009-03-11 Thread Mark Dickinson
Mark Dickinson 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 values losing that e

[issue1869] Builtin round function is sometimes inaccurate for floats

2009-03-11 Thread Mark Dickinson
Mark Dickinson added the comment: ...and issue 5473 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2009-03-11 Thread Rudd-O
Rudd-O 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: http://bugs.python.or