[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto [EMAIL PROTECTED]: Hello. I noticed test_mailbox (test_add) fails on my win2k machine. It's something like this. == ERROR: test_add (__main__.TestMbox)

[issue2222] Memory leak in os.rename?

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Fixed in r65745. Will be backported to py3k and release25-maint. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue

[issue3576] Demo/embed builds against old version

2008-08-17 Thread Matt Giuca
New submission from Matt Giuca [EMAIL PROTECTED]: The Python 2.6 version of Demo/embed/Makefile builds against libpython2.5.a, which doesn't exist in this version. Quick patch to let it build against libpython2.6.a. Commit log: Fixed Demo/embed/Makefile to build against libpython2.6.a.

[issue3535] zipfile has problem reading zip files over 2GB

2008-08-17 Thread alonwas
alonwas [EMAIL PROTECTED] added the comment: Antoine, I had a similar problem with zip version 2.32, but this is fixed in version 3.0 (or on 64-bit architectures). Would you be able to give it a try with the newer version (which can be obtained from info-zip.org)? Unfortunately, my upload

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Your patch looks right to me. It should also be backported to 2.6. -- components: +Library (Lib) nosy: +pitrou ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3575

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Well, MultibyteCodec_Decode() also uses Py_buffer in py3k but not in trunk. Is this also backported? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3575

[issue3577] Interpreter name: python vs. python-3.0

2008-08-17 Thread John J Lee
New submission from John J Lee [EMAIL PROTECTED]: The tutorial says: The Python interpreter is usually installed as /usr/local/bin/python on those machines where it is available Shouldn't that be python3 or python-3.0? And the same throughout the rest of the tutorial? make install seems to

[issue3535] zipfile has problem reading zip files over 2GB

2008-08-17 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Alon, can you try with the following patch? It seems to fix it here. -- keywords: +patch priority: - normal versions: +Python 2.6, Python 3.0 -Python 2.5 Added file: http://bugs.python.org/file11137/largezip.patch

[issue3577] Interpreter name: python vs. python-3.0

2008-08-17 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: make install actually installs as python3.0 (and not as python-3.0, nor python3, nor python). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3577 ___

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le dimanche 17 août 2008 à 11:44 +, Hirokazu Yamamoto a écrit : Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Well, MultibyteCodec_Decode() also uses Py_buffer in py3k but not in trunk. Is this also backported? It should be

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: OK, done. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3575 ___

[issue3419] multiprocessing module is racy

2008-08-17 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Here's a patch that fixes the incref problem for me. This *definitely* needs review from someone more familiar with the multiprocessing module than I am; I'm not at all confident that it won't break something else. The original problem:

[issue3578] 'dictionary changed size' error in test_multiprocessing

2008-08-17 Thread Mark Dickinson
New submission from Mark Dickinson [EMAIL PROTECTED]: Here's a report from Ismail Donmez (cartman), extracted from the issue 3419 discussion in an effort to avoid putting multiple problems under one tracker issue. [cartman] With trunk when running test_multiprocessing in a tight loop I saw

[issue3419] multiprocessing module is racy

2008-08-17 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: [jnoller] As for if this should block the release, it should be resolved before final, but should not block the next beta. So the priority should be 'deferred blocker', no? [cartman] With trunk when running test_multiprocessing in a

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Please state the revision numbers when closing an issue due to a commit; this makes it easier to find the change later. -- nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED]

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Sorry, fixed in r65760 and r65762. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3575 ___ ___

[issue2222] Memory leak in os.rename?

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Backported to py3k(r65746) release25-maint(r65747) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue ___

[issue1869] Builtin round function is sometimes inaccurate for floats

2008-08-17 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Thanks for the patch, George! This patch fixes the problem in some, but not all cases. I'd like to take this a little further. As far as I can see, getting correctly rounded results in all cases is out of reach without either writing lots

[issue1869] Builtin round function is sometimes inaccurate for floats

2008-08-17 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Hit submit too soon; sorry... But it would be reasonable to aim for correctly rounded results when the second argument to round is not too large (less than 22 in absolute value, for example), so that 10**abs(n) is exactly representable as a

[issue3579] Faites Attention en Utilisant Cette Merveille!

2008-08-17 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3579 ___

[issue3580] failures test_os

2008-08-17 Thread Antoine Pitrou
New submission from Antoine Pitrou [EMAIL PROTECTED]: I get failures under test_os when launched under Windows XP. More precisely, it's a Windows XP image inside qemu with the Python build dir in a Samba mount. == FAIL:

[issue3580] failures in test_os

2008-08-17 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- title: failures test_os - failures in test_os ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3580 ___

[issue3581] failures in test_uuid

2008-08-17 Thread Antoine Pitrou
New submission from Antoine Pitrou [EMAIL PROTECTED]: I get failures in test_uuid when run inside a qemu virtual machine. It is related to the fake MAC address used by qemu. == FAIL: test_ipconfig_getnode (__main__.TestUUID)

[issue3581] failures in test_uuid

2008-08-17 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- assignee: - pitrou components: +Tests priority: - normal type: - behavior versions: +Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3581

[issue3556] test_raiseMemError consumes an insane amount of memory

2008-08-17 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: After testing under Windows, fixed in r65773. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3556 ___ ___

[issue3556] test_raiseMemError consumes an insane amount of memory

2008-08-17 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3556 ___ ___

[issue3570] str.find docstring typo

2008-08-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This has been fixed in the trunk. -- nosy: +benjamin.peterson resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3570

[issue1869] Builtin round function is sometimes inaccurate for floats

2008-08-17 Thread George Boutsioukis
George Boutsioukis [EMAIL PROTECTED] added the comment: Hi Mark, Yes, I see where you are going with this and I agree. I think the py3k round function is a bit more accurate, any chance this can be backported to 2.7(after modifying the half-rounding)? Anyway, I was just playing around with the

[issue3580] failures in test_os

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Maybe will first test failure be fixed by attached patch? Sorry, this is my bug in issue1709599. :-( -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file11140/fix_test_1565150.patch

[issue3580] failures in test_os

2008-08-17 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: No, it doesn't fix it. But I've just tried manually, and GetVolumeInformation() returns NTFS for the Samba share. Apparently this is a Samba feature to work with Windows NT. :-) See http://lists.samba.org/archive/samba/2003-April/065027.html

[issue3582] thread_nt.c update

2008-08-17 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson [EMAIL PROTECTED]: Here is a suggested update to thread_nt.c. It has two significant changes: 1) it uses the new and safer _beginthreadex API to start a thread 2) it implements native TLS functions on NT, which are certain to be as fast as possible.

[issue3402] test_nis is hanging on Solaris

2008-08-17 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: Let's disable it and add it to the release notes. If nobody steps forward to fix it, we'll just leave it turned off for the final release. -- nosy: +barry ___ Python tracker [EMAIL PROTECTED]

[issue3444] add warnings for intra-package imports

2008-08-17 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: Has there been any progress on this? We can fix this after beta 3 if necessary. -- nosy: +barry ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3444

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2008-08-17 Thread Brett Cannon
New submission from Brett Cannon [EMAIL PROTECTED]: OpenDNS has a feature where if you enter an address that doesn't exist, you get a 404 and a Google-looking search page. Problem is that urllib.urlopen() does not raise any exception on a 404. Probably should just change the test such that if

[issue3473] In function call, keyword arguments could follow *args

2008-08-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Barry, is it still time for this to be included in 2.6b3? Guido already approved the idea: http://mail.python.org/pipermail/python-3000/2008-July/014506.html -- assignee: rhettinger - amaury.forgeotdarc nosy: +barry

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2008-08-17 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Another problem of using os.path.dirname is that for /A/B, it will return /A, and if /A is itself a symlink to a mount point itself, /A and /A/B will have different st_dev values... which will be wrongly interpreted as meaning that /A/B is a

[issue2464] urllib2 can't handle http://www.wikispaces.com

2008-08-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: i was pondering if it should go in urlparse instead. if it did, i think it should be part of urlparse.urlunparse to ensure that there is always a trailing slash after the host:port regardless of what the inputs are. anyways, agreed, this

[issue3402] test_nis is hanging on Solaris

2008-08-17 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: Does this affect 2.6 as well? It's hard to tell from the buildbot output. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3402 ___

[issue874900] threading module can deadlock after fork

2008-08-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: backported to release25-maint in r65789. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue874900

[issue874900] threading module can deadlock after fork

2008-08-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: One of tests is hanging in 3.0. -- resolution: fixed - status: closed - open versions: +Python 3.0 -Python 2.5 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue874900

[issue3309] missing lock release in BZ2File_iternext()

2008-08-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: backported to release25-maint in r65790 -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3309 ___

[issue3584] Exception for test_urllib2_localnet

2008-08-17 Thread Jim Hermann
New submission from Jim Hermann [EMAIL PROTECTED]: When I installed Python 2.5.2 on my Fedora Core 4 system, I ran 'make test and the process stopped at this point: test_urllib2_localnet Exception in thread Thread-1067: Traceback (most recent call last): File

[issue874900] threading module can deadlock after fork

2008-08-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: specifically, test_3_join_in_forked_from_thread hangs in py3k and is currently disabled. -- assignee: gregory.p.smith - ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue874900

[issue3385] cPickle to pickle conversion in py3k missing methods

2008-08-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Maybe I missed something, but the (subclassable) python implementation of Pickler is still available with another name: from pickle import _Pickler as Pickler class ForkingPickler(Pickler): dispatch = Pickler.dispatch.copy()

[issue2464] urllib2 can't handle http://www.wikispaces.com

2008-08-17 Thread Facundo Batista
Facundo Batista [EMAIL PROTECTED] added the comment: Maybe we can put it in urlunparse... do you all agree with this test cases? def test_alwayspath(self): u = urlparse.urlparse(http://netloc/path;params?query#fragment;) self.assertEqual(urlparse.urlunparse(u),

[issue2464] urllib2 can't handle http://www.wikispaces.com

2008-08-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: That test case looks good to me for 2.6 and 3.0. Also add a note to the documentation with a versionchanged 2.6 about urlunparse always ensuring there is a / between the netloc and the rest of the url. I would not back port the more general

[issue3585] pkg-config support

2008-08-17 Thread Clinton Roy
New submission from Clinton Roy [EMAIL PROTECTED]: This patch adds pkg-config support to the python build, a python.pc file is installed in the pkgconfig directory such that autoconf buildsystems can trivially link against the python library. Diff made against revision 65796 --

[issue2013] Long object free list optimization

2008-08-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: preventing this right now is that when i apply this to py3k today, it fails miserably in a debug build. first, my patch has an invalid assert(size 0) in it in _PyLong_New as 0 size is used when the value is 0. get rid of that line. then

[issue3576] Demo/embed builds against old version

2008-08-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Fixed in r65798. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3576

[issue2384] [Py3k] line number is wrong after encoding declaration

2008-08-17 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: While this is a bug, it's not serious enough to hold up the release. -- priority: release blocker - high ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2384

[issue3474] Using functools.reduce() does not stop DeprecationWarning when using -3

2008-08-17 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Reviewing the patch at http://codereview.appspot.com/2968 . ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3474 ___

[issue3474] Using functools.reduce() does not stop DeprecationWarning when using -3

2008-08-17 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Reviewed in Rietveld. Only a minor change is suggested. Otherwise I think the patch is ready to be committed, Benjamin. -- assignee: brett.cannon - benjamin.peterson ___ Python tracker [EMAIL

[issue3474] Using functools.reduce() does not stop DeprecationWarning when using -3

2008-08-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks for the review! Committed in r65802. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3474

[issue2919] Merge profile/cProfile in 3.0

2008-08-17 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: Can you get this done before beta 3? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2919 ___ ___

[issue3132] implement PEP 3118 struct changes

2008-08-17 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: It's looking pessimistic that this is going to make it by beta 3. If they can't get in by then, it's too late. -- nosy: +barry ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3132

[issue2013] Long object free list optimization

2008-08-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: attached is an updated patch that also works in debug mode. to do this i had to exclude all zero length (value = 0) PyLongObjects from the free list. i'm still not sure why, they all have the same underlying allocation size. simplifying it

[issue2013] Long object free list optimization

2008-08-17 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11144/py3k_longfreelist2_gps04.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2013 ___