[issue1580] Use shorter float repr when possible

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: [Raymond] > Is there a way to use SSE when available and x86 when it's not. I guess it's possible in theory, but I don't know of any way to do this in practice. I suppose one could trap the SIGILL generated by the attempted use of an SSE2 instruction on a no

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-19 Thread Christof
Christof added the comment: A compatibility break in a minor bugfix version is never a good idea I guess. I understand the reasoning but this change may break quite a few packages (at least it broke mine). A workaround in programs is easy but for already released and deployed versions simply not

[issue918368] urllib doesn't correct server returned urls

2009-04-19 Thread Senthil
Senthil added the comment: The attached patch fixes this issue and adds the test too. Followed John J Lee's suggestion for the patch.Can someone review this? For the other referenced issue1153027, bug is not reproducible in the trunk and I see that fix has been made in revision 43132. It follow

[issue5657] bad repr of itertools.count object with negative value on OS X 10.4 with 10.5 build

2009-04-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Fixed in r71743 (trunk), r71744 (2.6), r71746 (3.0), r71745 (3.1) -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1602133] non-framework built python fails to define environ properly

2009-04-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can reproduce this with a unix build of python2.5: * Install a unix build of python 2.5 (--with-pydebug) as /opt/python2.5-dbg * Install pyobjc 2.2-dev (from PyObjC's subversion repository) * Build the addressbook plugin example in pyobjc-framework-Addr

[issue5791] title information of unicodedata is wrong in some cases

2009-04-19 Thread Carl Friedrich Bolz
New submission from Carl Friedrich Bolz : There seems to be a problem with some unicode character's title information: $ python2.6 Python 2.6.2c1 (release26-maint, Apr 14 2009, 08:02:48) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> unichr(453)

[issue5791] title information of unicodedata is wrong in some cases

2009-04-19 Thread Martin v. Löwis
Martin v. Löwis added the comment: This is a duplicate of issue4971 -- nosy: +loewis resolution: -> duplicate status: open -> closed superseder: -> Incorrect title case ___ Python tracker

[issue5413] urllib ctypes error on Mac OS X Server 10.5

2009-04-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch is not entirely correct, I'm not yet uploading an updated patch because the fix is obvious. I cannot reproduce this with a the 2.6.2 installer (build on PPC) nor with a recent build from subversion (python-trunk, build on X86). My tests w

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: Is there a 2.6 release imminent? I thought I saw some discussion of a 2.6.3 release, but I'm not sure what the eventual decision was. If so, perhaps this change could be quickly reverted in the release26-maint branch? -- nosy: +marketdickinson

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-19 Thread Brian Quinlan
Changes by Brian Quinlan : Added file: http://bugs.python.org/file13721/totalseconds2.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-19 Thread Brian Quinlan
Brian Quinlan added the comment: Attached is a patch that implements .total_seconds as an instance method -- ___ Python tracker ___ __

[issue5792] Enable short float repr() on Solaris/x86

2009-04-19 Thread Mark Dickinson
New submission from Mark Dickinson : The short float repr() that's in 3.1 (probably) doesn't work on Solaris/x86 when using Sun's compiler to build. It would be nice to fix this. It probably works on Solaris/x86/gcc, though confirmation of that would be appreciated. Marking as easy, because

[issue5792] Enable short float repr() on Solaris/x86

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: See the comments in the Include/pyport.h file for an explanation of what's required. (Search for HAVE_PY_SET_53BIT_PRECISION.) -- ___ Python tracker ___

[issue5793] Rationalize isdigit / isalpha / tolower / ... uses throughout Python source

2009-04-19 Thread Mark Dickinson
New submission from Mark Dickinson : Problem: the standard C character handling functions from ctype.h (isalpha, isdigit, isxdigit, isspace, toupper, tolower, etc.) are locale aware, but for almost all uses CPython needs locale-unaware versions of these. There are various solutions in the cur

[issue5785] Condition.wait() does not respect its timeout

2009-04-19 Thread Stéphane
Stéphane added the comment: Ok I fixed the issue thanks to the help from Piet van Oostrum: I didn't call gobject.threads_init(), so that gave the unexpected behaviour. It is certainly bad documentation on the gobject side, but you may consider adding some kind of warning on the threading docu

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-19 Thread Daniel Diniz
Daniel Diniz added the comment: Setting as a release blocker so Barry can consider this for 2.6.3 (-committers seems to suggest that it'll be released soon). -- nosy: +ajaksu2 priority: -> release blocker stage: -> commit review type: -> behavior

[issue5793] Rationalize isdigit / isalpha / tolower / ... uses throughout Python source

2009-04-19 Thread Eric Smith
Eric Smith added the comment: I concur. I've also been bitten by forgetting Py_CHARMASK, so a single version that took this into account (and was locale-unaware) would be welcome. In private mail I'd mentioned that if these are functions, they should take int. But I now think that's incorrect,

[issue5463] Remove deprecated features from struct module

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. In 3.0 and 2.7, I get: >>> from struct import pack >>> pack('L', 123.0) sys:1: DeprecationWarning: integer argument expected, got float b'{\x00\x00\x00' So it looks like we already changed py3k to get rid of the DeprecationWarning. I think the idea was

[issue1530559] struct.pack raises TypeError where it used to convert

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: Stealing this from Bob. Bob, please steal it back it you want it! -- ___ Python tracker ___ ___

[issue1530559] struct.pack raises TypeError where it used to convert

2009-04-19 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: bob.ippolito -> marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5463] Remove deprecated features from struct module

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: Here's an updated version of your patch: all I've done is fix up get_(u)long, get_(u)longlong and get_pylong so that they only accept integers. -- Added file: http://bugs.python.org/file13722/cleanup_float_coerce_patch_v2.diff ___

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-04-19 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

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

2009-04-19 Thread Carl Witty
New submission from Carl Witty : When I try to pickle a recursive tuple (that recurses through a list), pickle can load the result but cPickle fails with "unpickling stack overflow". (I just downloaded and built Python 2.6.2 on 64-bit x86 Debian testing to verify this bug; it also fails on Pytho

[issue5463] Remove deprecated features from struct module

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: Committed part 3 in r71755. Thank you! Is there anything else you think we need to fix up here? -- resolution: -> accepted stage: test needed -> committed/rejected status: open -> pending ___ Python tracker

[issue5463] Remove deprecated features from struct module

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: That should be r71754, of course. -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-

[issue5463] Remove deprecated features from struct module

2009-04-19 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1530559] struct.pack raises TypeError where it used to convert

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: The deprecated struct features (float coercion, overflow wrapping) have been removed for py3k in r70497, r70688, r71754. I don't plan to backport this to 2.7; I'll just try to fix the behaviour in a minimal way there. One thing that's not clear to me: what'

[issue1741130] struct.pack("I", "foo"); struct.pack("L", "foo") should fail

2009-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: It looks as though this was sort-of fixed sometime between 2.6.1 and 2.6.2. In 2.6.2, I get the following (and results from trunk and 3.0.1 are similar): Python 2.6.2+ (release26-maint:71755, Apr 19 2009, 22:06:02) [GCC 4.0.1 (Apple Inc. build 5490)] on dar

[issue1530559] struct.pack raises TypeError where it used to convert

2009-04-19 Thread Bob Ippolito
Bob Ippolito added the comment: I believe that struct.error is just how it worked before 2.5 -- ___ Python tracker ___ ___ Python-b

[issue5795] test_distutils failure on the ppc Debian buildbot

2009-04-19 Thread Antoine Pitrou
New submission from Antoine Pitrou : The following test fails on the ppc Debian buildbot (trunk and py3k): test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase) ... gcc-4.3: x86_64: No such file or directory cc1: error: unrecognized command line option "-arch" ERROR =

[issue5795] test_distutils failure on the ppc Debian buildbot

2009-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Two strange things: - "-arch" doesn't exist, it should be "-march=" - why is there a reference to x86_64 on a ppc buildbot? -- nosy: +doko ___ Python tracker __

[issue5795] test_distutils failure on the ppc Debian buildbot

2009-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I assume "-arch x86_64" is a MacOS X-specific gcc flag. The problem could be with distutils.tests.test_util:test_get_platform which borks the environment variable CFLAGS by adding this flag. -- ___ Python tracker

[issue5796] test_posix, test_pty crash under Windows

2009-04-19 Thread Antoine Pitrou
New submission from Antoine Pitrou : This seems related to the import behaviour changes in regrtest. Re-running test 'test_posix' in verbose mode test test_posix crashed -- : No module named pwd Traceback (most recent call last): File "../lib/test/regrtest.py", line 569, in runtest_inner t

[issue5785] Condition.wait() does not respect its timeout

2009-04-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't think we need warnings about third party libraries in our docs. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue5670] Speed up pickling of dicts in cPickle

2009-04-19 Thread Kelvin Liang
Kelvin Liang added the comment: Can this patch be used or ported to 2.5.x? -- nosy: +feisan ___ Python tracker ___ ___ Python-bugs-lis

[issue5797] there is en exception om Create User page

2009-04-19 Thread nabeel
New submission from nabeel : there is en exception om Create User page -- messages: 86189 nosy: nabeel severity: normal status: open title: there is en exception om Create User page type: crash versions: Python 3.1 ___ Python tracker