[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Jarek Sobieszek
New submission from Jarek Sobieszek : 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 status: open title: I

[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Walter Dörwald
Walter Dörwald 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() u'\x00' >>> imp

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

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

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

2009-04-24 Thread Mark Dickinson
Changes by Mark Dickinson : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2009-04-24 Thread Mark Dickinson
Mark Dickinson added the comment: Note: complex('1e-500') also produces ValueError in 2.6. That's definitely a bug. -- ___ Python tracker ___ __

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

2009-04-24 Thread Mark Dickinson
Mark Dickinson 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 longer accepted. Exampl

[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Walter Dörwald
Walter Dörwald 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: http://bugs.python.org/fi

[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The same change should be applied to _PyUnicode_ToTitlecase as well. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ _

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

2009-04-24 Thread Mark Dickinson
Mark Dickinson 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 : 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, since the

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

2009-04-24 Thread Mark Dickinson
Mark Dickinson 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 review -> commi

[issue5828] Invalid behavior of unicode.lower

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

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

2009-04-24 Thread Maxence
New submission from Maxence : In the documentation, the Timer() function of the threading class is described as a class. however, it's a function : >>> import threading >>> threading.Timer Cheers Maxence -- assignee: georg.brandl components: Documentation messages: 86409 nosy: georg.

[issue1205239] Let shift operators take any integer value

2009-04-24 Thread Mark Dickinson
Mark Dickinson 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 and right sh

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

2009-04-24 Thread R. David Murray
R. David Murray 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 commit introduced the T

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

2009-04-24 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5593] test_math.testFsum failure on release30-maint

2009-04-24 Thread Mark Dickinson
Mark Dickinson added the comment: Test fixed for 2.7, 3.1 in r71837, r71839 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Terry J. Reedy
Terry J. Reedy 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 online docs, found

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

2009-04-24 Thread Collin Winter
Collin Winter 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 "", line 1, in cPickle.UnpicklingError: unpickling stack underflow >>> cPick

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

2009-04-24 Thread Guilherme Polo
Guilherme Polo 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) solved the problem. I

[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 : 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 it. I added a check

[issue5161] wrong paths for ctypes cleanup

2009-04-24 Thread Thomas Heller
Thomas Heller 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

[issue4951] failure in test_httpservers

2009-04-24 Thread Mark Dickinson
Mark Dickinson 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 "/private/var/fol

[issue2774] ctypes documentation not effective

2009-04-24 Thread Thomas Heller
Thomas Heller added the comment: Unassigning; myself I will not rewrite the ctypes docs. -- assignee: theller -> ___ Python tracker ___ _

[issue4951] failure in test_httpservers

2009-04-24 Thread Mark Dickinson
Mark Dickinson 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 (distutils.tests.test_bdist_dumb.Bui

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

2009-04-24 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> michael.foord nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list m

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Martin v. Löwis
Martin v. Löwis 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. -- ___ Python tracker

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

2009-04-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed r71844 and 71845. -- assignee: -> rhettinger nosy: +rhettinger resolution: -> fixed status: open -> closed versions: +Python 3.1 ___ Python tracker _

[issue5828] Invalid behavior of unicode.lower

2009-04-24 Thread Terry J. Reedy
Terry J. Reedy 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 _

[issue4951] failure in test_httpservers

2009-04-24 Thread Mark Dickinson
Mark Dickinson 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", "copyright", "credits" or

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

2009-04-24 Thread Michael Foord
Michael Foord added the comment: Oops... sorry about that, will fix. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue5049] ctypes unwilling to allow pickling wide character

2009-04-24 Thread Thomas Heller
Thomas Heller 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, Python 3.1 _

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Terry J. Reedy
Terry J. Reedy 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 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 __

[issue3102] ctypes defines global symbols

2009-04-24 Thread Thomas Heller
Thomas Heller added the comment: BTW: The 'My_Unicode...' symbols are gone, too. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5833] readline update

2009-04-24 Thread J. Evans
New submission from J. Evans : 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 chars list to make the nex

[issue3102] ctypes defines global symbols

2009-04-24 Thread Thomas Heller
Thomas Heller added the comment: svn rev 71845, in py3k branch. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___

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

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

[issue4951] failure in test_httpservers

2009-04-24 Thread Mark Dickinson
Mark Dickinson 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 = os.environ in the setUp me

[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 added the comment: Fixed in r71855 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue2531] float compared to decimal is silently incorrect.

2009-04-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Closing since no one seems interested. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue2531] float compared to decimal is silently incorrect.

2009-04-24 Thread Jeremy Dunck
Jeremy Dunck 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. -- ___ Pyt

[issue3829] Tuple comparison masking exception

2009-04-24 Thread Raymond Hettinger
Raymond Hettinger 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 min/max/sorted/bisect/heapq/cmp and tu

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

2009-04-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- title: vars() no longer has a use __repr__ -> vars() no longer has a useful __repr__ ___ Python tracker ___

[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 : -- assignee: georg.brandl -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2009-04-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: When the datatype is the same, memcpy() should be used. -- nosy: +rhettinger priority: -> high ___ Python tracker ___ __

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

2009-04-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r71860. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Kurt B. Kaiser
Kurt B. Kaiser 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 3.0.1 is broken.

[issue5834] The word "error" used instead of "failure"

2009-04-24 Thread Kurt McKee
New submission from Kurt McKee : 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 word "error" should

[issue5783] IDLE cannot find windows chm file

2009-04-24 Thread Martin v. Löwis
Martin v. Löwis 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 closing it just