[issue5474] distutils produces invalid RPM packages of prerelease python packages
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: http://bugs.python.org/file13302/python-2.4-distutils-bdist_rpm-svnversions.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5474 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1869] Builtin round function is sometimes inaccurate for floats
Mark Dickinson dicki...@gmail.com added the comment: ...and issue 5473 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1869 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5473] round(float, ndigits0) sometimes rounds to odd
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 values losing that exactness, so that the rounding direction is essentially random. Can you tell me why you think this issue is distinct from issue 1869? -- nosy: +marketdickinson resolution: - duplicate status: open - pending superseder: - Builtin round function is sometimes inaccurate for floats ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5472] distutils.test_util fails to restore os.uname; causes test_platform to fail
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5472 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5472] distutils.test_util fails to restore os.uname; causes test_platform to fail
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 http://bugs.python.org/issue5472 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2312] Update PEP 3135 (super())
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 3.0.1 Probably not related, but while playing with super, I noticed several things, I'm not sure about whether this is bug or design decision: - super() in normal function is SystemError, instead of SyntaxError or a more descriptive error btw, is __class__ related to __this_class__ alt implementation? I assume yes, so I removed the alt implementation for __this_class__ -- nosy: +lieryan Added file: http://bugs.python.org/file13303/pep3135 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5473] round(float, ndigits0) sometimes rounds to odd
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 David Gay's code for string - float conversions into Python. If these go in, then it would be straightforward to implement a fast, correctly-rounded round for floats based on a combination of Gay's strtod and dtoa functions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5475] urllib2.getproxies not documented
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 Form:function getproxies at 0x01096EF0 Namespace: Interactive File: c:\programme\pythonxy\python\lib\urllib.py Definition: ul.getproxies() Docstring: Return a dictionary of scheme - proxy server URL mappings. Returns settings gathered from the environment, if specified, or the registry. -- assignee: georg.brandl components: Documentation messages: 83464 nosy: georg.brandl, timmie severity: normal status: open title: urllib2.getproxies not documented versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5463] Compiler warning get_ulong is never used 3.x
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 with some values and got the expected overflow errors. So here's the new patch without overflow masking and deleted test_issue4228. The patch is just tested on windows. So when I get home I'll give it a try on Linux. -- Added file: http://bugs.python.org/file13304/struct_overflow_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5463 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5463] Compiler warning get_ulong is never used 3.x
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5472] distutils.test_util fails to restore os.uname; causes test_platform to fail
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3099] On windows, import nul always succeed
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 rep...@bugs.python.org http://bugs.python.org/issue3099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3392] subprocess fails in select when descriptors are large
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 solution. Probably virtually all uses of 'select' (both in Python and C) should be replaced under Linux with poll or epoll. (Also, until/unless this is fixed, it'd be nice to mention it in the 'communicate' doc.) -- nosy: +mkc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3392 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input
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 1.2.1) and OS X 10.5.6 (Py 2.5.1; 1.2.1).Test case below: from datetime import timedelta from numpy import int32 from numpy import int32 from datetime import timedelta assert timedelta(seconds = 36) == timedelta(seconds = int32(36)) print 'pass 36 sec' assert timedelta(microseconds = 36) == timedelta(microseconds = int32(36)) print 'pass 36 usec' assert timedelta(minutes = 35) == timedelta(minutes = int32(35)) print 'pass 35 min' assert timedelta(minutes = 36) == timedelta(minutes = int32(36)) print 'pass 36 min' # returns bad value assert timedelta(days = 36) == timedelta(days = int32(36)) print 'pass 36 days' # fails SystemError: Objects/longobject.c:223 -- messages: 83470 nosy: barronh severity: normal status: open title: datetime: timedelta(minutes = i) silently fails with numpy.int32 input ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5476 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input
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, credits or license for more information. import numpy numpy.version.version '0.9.8' from numpy import int32 from datetime import timedelta assert timedelta(seconds = 36) == timedelta(seconds = int32(36)) Traceback (most recent call last): File stdin, line 1, in ? TypeError: unsupported type for timedelta seconds component: int32scalar -- nosy: +LambertDW ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5476 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5477] Typo in itertools documentation
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: sum(map(operator.add, vector1, vector2)). I think there are two problems here. 1. I think this should read: the multiplication operator ... sum(map(operator.mul, vector1, vector2)). 2. This example has nothing to do with itertools! (At 3.n, map is a built in function) -- assignee: georg.brandl components: Documentation messages: 83472 nosy: georg.brandl, thomasguest severity: normal status: open title: Typo in itertools documentation versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5477 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5473] round(float, ndigits0) sometimes rounds to odd
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* by powers of 10. Thanks for clearing that up and sorry for the noise! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2312] Update PEP 3135 (super())
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? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2312] Update PEP 3135 (super())
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5477] Typo in itertools documentation
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2312] Update PEP 3135 (super())
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2312] Update PEP 3135 (super())
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 section, just add it to this bug.) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface
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 the patch as a unified diff to make it easier for others who might want to give it a try. The patch does a great job of scrolling through the history at the current prompt. This is a great improvement! Thanks. -- nosy: +bmiller Added file: http://bugs.python.org/file13306/PyShell.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2610] string representation of range and dictionary views
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5434] datetime.MonthDelta
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: http://bugs.python.org/file13307/monthdelta.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5223] infinite recursion in PyErr_WriteUnraisable
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5478] document mistake xml.dom.minidom.Element
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 Element.getElementsByTagNameNS(namespaceURI, tagName) -- assignee: georg.brandl components: Documentation messages: 83482 nosy: georg.brandl, hsmtkk severity: normal status: open title: document mistake xml.dom.minidom.Element versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5478 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5477] Typo in itertools documentation
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue444582] Finding programs in PATH, addition to os
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5236] time.strptime should reject bytes arguments on Py3
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 to put some time into this. -- components: +Extension Modules -Library (Lib), Unicode nosy: +tleeuwenb...@gmail.com ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5236 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5236] time.strptime should reject bytes arguments on Py3
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 tracker rep...@bugs.python.org http://bugs.python.org/issue5236 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5236] time.strptime should reject bytes arguments on Py3
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5236] time.strptime should reject bytes arguments on Py3
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com