[issue4111] Add DTrace probes

2009-04-24 Thread Robert Kern
Robert Kern robert.k...@gmail.com added the comment: Ah, I misread the Apple function-return probe code. Its extra argument is the type name of the return object or error if an exception was raised, not the returned object itself. Could be useful. --

[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Jarek Sobieszek
New submission from Jarek Sobieszek j.sobies...@neo.pl: u'\u1d79'.lower() returns u'\x00' I think it should return u'\u1d79', at least according to my understanding of UnicodeData.txt (the lowercase field is empty). -- components: Unicode messages: 86400 nosy: jarek severity: normal

[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: It *does* return u'\u1d79' for me on Python 2.5.2: u'\u1d79'.lower() u'\u1d79' import sys sys.version '2.5.2 (r252:60911, Apr 8 2008, 18:54:00) \n[GCC 3.3.5 (Debian 1:3.3.5-13)]' However on 2.6.2 it's broken: u'\u1d79'.lower()

[issue5829] float('1e500') - inf, complex('1e500') - ValueError

2009-04-24 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: In (for example) Python 2.6: float('1e500') inf complex('1e500') Traceback (most recent call last): File stdin, line 1, in module ValueError: float() out of range: 1e500 I'd say that one of these is a bug, but I'm not sure which one.

[issue5829] float('1e500') - inf, complex('1e500') - ValueError

2009-04-24 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5829 ___ ___ Python-bugs-list

[issue5829] float('1e500') - inf, complex('1e500') - ValueError

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Note: complex('1e-500') also produces ValueError in 2.6. That's definitely a bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5829

[issue5816] Simplify parsing of complex numbers and make complex('inf') valid.

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Backported to trunk in r71824. Leaving open, as I now need forward port some bits of r71824 which weren't in the r71818 checkin. Note that with this change, some strings which were previously accepted by the complex constructor are no

[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: The following patch fixes the problem for me, however it breaks the test suite. The change seems to have been introduced in r66362. Assigning to Martin. -- assignee: - loewis nosy: +loewis stage: - patch review Added file:

[issue5816] Simplify parsing of complex numbers and make complex('inf') valid.

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Extra bits forward ported in r71829. Python 3.1 and 2.7 now both accept the same strings for the complex constructor. -- resolution: - fixed status: open - closed ___ Python tracker

[issue5830] heapq item comparison problematic with sched's events

2009-04-24 Thread Kay F. Jahnke
New submission from Kay F. Jahnke k_...@web.de: scheduler uses heapq to schedule it's events. Heapq uses plain / comparisons on the events. Now that comparisons of incomparable data are no longer valid, the comparison fails if two events are scheduled for the same time with the same priority,

[issue5812] Fraction('1e6') should be valid.

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Applied in r71832 (trunk), r71834 (py3k). One nice aspect of this change is that Fraction(a, b) is now a safe alternative to a/b in places where a and b might be either Fractions or integers. -- resolution: - accepted stage: patch

[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: Updated the patch (diff2.txt) as requested by Amaury. -- Added file: http://bugs.python.org/file13759/diff2.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5828

[issue5831] Doc mistake : threading.Timer is *not* a class

2009-04-24 Thread Maxence
New submission from Maxence maxe...@dunnewind.net: In the documentation, the Timer() function of the threading class is described as a class. however, it's a function : import threading threading.Timer function Timer at 0x967495c Cheers Maxence -- assignee: georg.brandl components:

[issue1205239] Let shift operators take any integer value

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Rejecting this due to: - no activity for almost 4 years - lack of positive responses Also, I'm -1 on this change: for me, a x n that silently becomes x -n when n is negative would cause more harm than good. In most of my uses, left

[issue5831] Doc mistake : threading.Timer is *not* a class

2009-04-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The Timer function is a simple wrapper for creating an instance of the _Timer class. The Timer class was proposed in Issue428326 by Itamar and applied by Martin in r22972. In the original patch the class was exposed as Timer. Martin's

[issue5794] pickle/cPickle of recursive tuples create pickles that cPickle can't load

2009-04-24 Thread Collin Winter
Changes by Collin Winter coll...@gmail.com: -- nosy: +collinwinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5794 ___ ___ Python-bugs-list

[issue5593] test_math.testFsum failure on release30-maint

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Test fixed for 2.7, 3.1 in r71837, r71839 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5593

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Instead, I think such problems must be detected during beta testing. The fact that it hasn't been detected so far, even though it existed since 2.6.0, indicates that the problem can't be that serious. I believe I tried F1 Help once, got the

[issue5794] pickle/cPickle of recursive tuples create pickles that cPickle can't load

2009-04-24 Thread Collin Winter
Collin Winter coll...@gmail.com added the comment: Interestingly, it only fails with protocol 0: v = ([],) v[0].append(v) import pickle,cPickle cPickle.loads(pickle.dumps(v, 0)) Traceback (most recent call last): File stdin, line 1, in module cPickle.UnpicklingError: unpickling stack

[issue1111130] tkSimpleDialog broken on MacOS X (Aqua Tk)

2009-04-24 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I had temporary access to a mac to verify this, and it is really sad to see things like that. Anyway, I found out that by calling self.entry.update_idletasks in _QueryDialog.body right after calling self.entry.insert(0, self.initialvalue)

[issue5832] os.path.walk fails to descend into a directory whose name ends with a space

2009-04-24 Thread Stephen Gilbert
New submission from Stephen Gilbert linux...@gmail.com: I just ran into this using os.path.walk. I noticed it wouldn't find files inside a particular directory. In debugging, I found that the name of the directory was 'BBDO Atlanta ' os.path.walk would find the directory, but wouldn't enter

[issue5161] wrong paths for ctypes cleanup

2009-04-24 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Fixed in trunk svn rev. 71842, I will merge this into the py3k branch soon. -- resolution: - fixed status: open - closed versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue4951] failure in test_httpservers

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This looks like an interaction with test_distutils. On OS X 10.5.6 I get: Macintosh-4:py3k dickinsm$ ./python.exe Lib/test/regrtest.py test_distutils test_httpservers test_distutils test_httpservers Traceback (most recent call last): File

[issue2774] ctypes documentation not effective

2009-04-24 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Unassigning; myself I will not rewrite the ctypes docs. -- assignee: theller - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2774 ___

[issue4951] failure in test_httpservers

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's the verbose test output: Macintosh-4:py3k dickinsm$ ./python.exe Lib/test/regrtest.py -v test_distutils test_httpservers test_distutils test_formats (distutils.tests.test_bdist.BuildTestCase) ... ok test_simple_built

[issue5826] new unittest function listed as assertIsNotNot() instead of assertIsNotNone()

2009-04-24 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - michael.foord nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5826 ___

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Terry, I believe your issue (online docs not found in 3.0) is different from this issue, so please open a new issue. I'm leaving this open until the patches have been forward-ported. -- ___

[issue5830] heapq item comparison problematic with sched's events

2009-04-24 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed r71844 and 71845. -- assignee: - rhettinger nosy: +rhettinger resolution: - fixed status: open - closed versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Py3.0.1 '\u1d79'.lower() '\x00' I am guessing that this bug is in 2.7 and 3.1 as well. -- nosy: +tjreedy versions: +Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue4951] failure in test_httpservers

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: On my machine, the failure seems to come down to this: Macintosh-4:py3k dickinsm$ MACOSX_DEPLOYMENT_TARGET=10.4 ./python.exe Python 3.1a2+ (py3k:71845M, Apr 24 2009, 19:51:44) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type help,

[issue5826] new unittest function listed as assertIsNotNot() instead of assertIsNotNone()

2009-04-24 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Oops... sorry about that, will fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5826 ___

[issue5049] ctypes unwilling to allow pickling wide character

2009-04-24 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Thanks, amaury, for the patch. Fixed in trunk, release26-maint, release30-maint, py3k branch. SVN revisions 71847, 71848, 71849, 71851. -- keywords: -needs review resolution: - fixed status: open - closed versions: +Python 2.7,

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: My point, relative to this issue, was to explain why I had not commented before, but also to report that forward porting is needed, and not just a convenience. I just reported the breakage to webmas...@python.org. --

[issue3102] ctypes defines global symbols

2009-04-24 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Fixed in trunk (svn rev 71853). I'll leave this open until it is ported to py3k. -- resolution: - accepted versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue3102] ctypes defines global symbols

2009-04-24 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: BTW: The 'My_Unicode...' symbols are gone, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3102 ___

[issue5833] readline update

2009-04-24 Thread J. Evans
New submission from J. Evans jreva...@earthlink.net: Attached is a patch file that will update the readline functionality of python in the following ways: -- makes the tab-expand module be compatible with readline v6.x (fixes the annoying extra-space bug) -- removes '~$-/' from the completer

[issue3102] ctypes defines global symbols

2009-04-24 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: svn rev 71845, in py3k branch. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3102

[issue5832] os.path.walk fails to descend into a directory whose name ends with a space

2009-04-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: os.path.walk is deprecated. You should use os.walk. -- nosy: +benjamin.peterson resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue4951] failure in test_httpservers

2009-04-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Okay, I think I've got this figured out. It's a problem in the distutils tests: the mechanism for saving and restoring environment variables in Lib/distutils/tests/test_util.py doesn't work: after the line self.environ =

[issue5832] os.path.walk fails to descend into a directory whose name ends with a space

2009-04-24 Thread Peter Otten
Peter Otten __pete...@web.de added the comment: Is BBDO Atlanta a symbolic link?. These are skipped by os.path.walk(). (The behaviour of os.walk() can be specified with the followsymlinks argument.) -- nosy: +potten ___ Python tracker

[issue3521] file.readline: bad exception recovery

2009-04-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r71855 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3521 ___

[issue2531] float compared to decimal is silently incorrect.

2009-04-24 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Closing since no one seems interested. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2531

[issue2531] float compared to decimal is silently incorrect.

2009-04-24 Thread Jeremy Dunck
Jeremy Dunck jdu...@gmail.com added the comment: I'm interested. I just had already said my peace and didn't know my prior interest wasn't being counted. The patch uploaded by dmmartins seemed good to me. I'm probably biased, since this bug affected me. --

[issue3829] Tuple comparison masking exception

2009-04-24 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Daniel, you're basically on the money. No exception is getting masked. The rich comparison operations for sets are defined as subset/superset operations. So, those operations are not useful for total orderings used by

[issue5587] vars() no longer has a useful __repr__

2009-04-24 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- title: vars() no longer has a use __repr__ - vars() no longer has a useful __repr__ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5587

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-04-24 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: georg.brandl - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5479 ___

[issue5109] array.array constructor very slow when passed an array object.

2009-04-24 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: When the datatype is the same, memcpy() should be used. -- nosy: +rhettinger priority: - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5109

[issue5283] setting __class__ in __del__ is bad. mmkay. negative ref count! kaboom!

2009-04-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r71860. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5283 ___

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: The issue that Terry Reedy raised is due to 68801 being forward ported to py3k but not backported to 2.6-maint or 3.0-maint. Access in 2.6.2 happens to work because there's a redirect on the website which points to the correct doc release. But

[issue5834] The word error used instead of failure

2009-04-24 Thread Kurt McKee
New submission from Kurt McKee contac...@kurtmckee.org: In the unittest documentation a distinction is made between the word error and failure. However, the description for the TestCase.assertTrue() function reads: Signal a test failure if expr is false; the explanation for the error... The

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I used 'pending' in the Debian sense of: I'm working it, expect an upload soon. Unless I'm mistaken, there's no bot closing 'pending' like there was on SF. Actually, the Pending status is exactly the one as there was on SF. The bot