[issue9815] test_tarfile sometimes ends with error Cannot remove dir

2010-09-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: The error went away when I commented out following line. Lib/unittest/case.py(133) self.exception = exc_value.with_traceback(None) I found this by brute force I noticed that test_tar_pipe_open_read_error_v2.py starts

[issue9815] test_tarfile sometimes ends with error Cannot remove dir

2010-09-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Here is the patch to fix this issue. (Please forget first patch) E:\python-devpy3k -m test.regrtest test_tarfile [1/1] test_tarfile 1 test OK. [85902 refs] E:\python-devpy3k test_assert_raises.py -- [('foo

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-09-14 Thread Andrew Bennetts
Andrew Bennetts s...@users.sourceforge.net added the comment: Here's a conservative fix for Python 2.7. It replaces the attempts to call baseclass.method with direct calls to the decorated object (i.e. replace socket.meth(self, ...) with self._sock.meth(...)). It also corrects a bunch of

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Note that if you add new directories under /Lib, you need to make the build system aware of them in several places (I don't remember all of them right now, one is in the Makefile). Otherwise they don't get shipped and/or installed, and tests

[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-09-14 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I am -1 on adding new methods to builtins in bugfix releases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9213 ___

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yep. But there are other files to edit for the Windows distribution. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9315 ___

[issue9851] multiprocessing socket timeout will break client

2010-09-14 Thread hume
New submission from hume hume...@gmail.com: when use multiprocessing managers, while use socket to communicate between server process and client process, if I used the global socket timeout feature(no matter how large the value is) the client will always say File

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: It looks like lots of 3.1 buildbots are unhappy with r84783. But the test passes on my local 3.1 checkout. == FAIL: test_trace_list_comprehension

[issue1633863] AIX: configure ignores $CC

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: cc_r does not seems to be able to compile py3k, so it seems to be a bad idea to force it by default. Python should be able to compile with any C89-compliant compiler, so it seems a good idea to open a bug for compile errors instead. In this

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nice, thank you. I will look at the patch and commit it if everything's fine. A nicer solution is to simply make socket.socket actually be a simple subclass of _socket.socket rather than the weird decorator it is now. This has already

[issue1926] NNTPS support in nntplib

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- dependencies: +nntplib cleanup ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1926 ___ ___

[issue9835] ZipFile unix external attributes incorrect for entry written with writestr

2010-09-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This has already been corrected by issue3394, and is at least present in python 2.6. -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed superseder: - zipfile.writestr doesn't set external attributes,

[issue6839] zipfile can't extract file

2010-09-14 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I'd prefer if the code no longer checked if the filename in the directory matches the name in the per-file header. The reason of that is that the two don't have to match: it is relatively cheap to rename a file in the zipfile by

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-14 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: MacOS9 is already unsupported, except for macpath all traces of OS9 support are gone with the possible exception of distutils (I removed traces of OS9 support code in 3.2 and those got restored when Tarek replaced distutils by the

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-09-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: For non-ascii directory name but ascii locale (eg. C locale), we have 3 choices: a- read Makefile as a binary file b- use the PEP 383 c- refuse to compile (a) doesn't seem easy because it looks like distutils use the unicode type

[issue6839] zipfile can't extract file

2010-09-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I agree with the change, but the code should be factorized in a function (normalize_filename for example) -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6006 ___ ___ Python-bugs-list mailing list

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The recvfrom() signature is wrong (it doesn't take an address argument). Here is an updated patch. -- Added file: http://bugs.python.org/file18880/issue9729-2.patch ___ Python tracker

[issue7657] test_ctypes failure on AIX 5.3

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7657 ___ ___

[issue713169] test_pty fails on HP-UX and AIX when run after test_openpty

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue713169 ___ ___

[issue8882] socketmodule.c`getsockaddrarg() should not check the length of sun_path

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8882 ___ ___

[issue5718] Problem compiling ffi part of build on AIX 5.3.

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5718 ___ ___

[issue1745108] 2.5.1 curses panel segfault in new_panel on aix 5.3

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745108 ___ ___

[issue1563807] _ctypes built with GCC on AIX 5.3 fails with ld ffi error

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1563807 ___ ___

[issue9853] Wrong signature for SSLSocket.recvfrom

2010-09-14 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: SSLSocket.recvfrom includes an `addr` argument in its signature, but socket.recvfrom doesn't take such an argument. It should be removed. (obviously, this method is neither tested nor used in the real-world...) In 2.7, this is taken care of by

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Updated Makefile in r84803 - r84805. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9315 ___

[issue9853] Wrong signature for SSLSocket.recvfrom and SSLSocket.sendto

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r84807 (3.x) and r84809 (3.1). -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9853

[issue1552] fromfd() and socketpair() should return wrapped sockets

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1552 ___ ___ Python-bugs-list mailing

[issue9855] Complex number slicing neither works nor causes an error on immediate use

2010-09-14 Thread Tom
New submission from Tom t...@littlemonster.co.uk: I hope the title of this makes sense. I've been out of things for a long time. Going through the Python tutorial (http://docs.python.org/tutorial/introduction.html) I departed from the script to try something. It gave neither of the results I

[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-09-14 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Sounds reasonable to me. I'll close this and the related 9212 (both fixes are already committed to the py3k branch). -- stage: patch review - committed/rejected status: open - closed

[issue9855] Complex number slicing neither works nor causes an error on immediate use

2010-09-14 Thread Tom
Tom t...@littlemonster.co.uk added the comment: Thanks! I'm not surprised that it was something stupidofme like that. Sorry to have troubled you. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9855

[issue1552] fromfd() and socketpair() should return wrapped sockets

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: socketpair() was fixed in 3.x in r84813. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue2292] Missing *-unpacking generalizations

2010-09-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Does yield *it mean yield iter(tuple(it)) or for i in it: yield i ? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The problem with RawIOBase.read is fixed in r84814. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9854 ___

[issue9848] setup.py contains needless references to built-in _weakref module

2010-09-14 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Fixed in r84819 for 3.2. No point in backporting since it doesn't hurt anything. Thanks for the report! -- assignee: - brett.cannon nosy: +brett.cannon resolution: - fixed status: open - closed ___

[issue9728] Docs point to FAQ Section 3, but FAQs are not numbered

2010-09-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the investigation! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9728 ___ ___

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. The tests are only run for unbuffered objects (buffering=0), since the behaviour of buffered objects is driven by BufferedReader and friends, not by the wrapped SocketIO. -- keywords: +patch nosy: +giampaolo.rodola

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file18883/sockio_nonblock.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9854 ___

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file18884/sockio_nonblock.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9854 ___

[issue9857] SkipTest in tearDown is reported an as an error

2010-09-14 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Raising SkipTest when in a tearDown method is reported as an error, rather than a skipped test. Now doing this sounds like a weird use case, but it would be actually useful when you have a worker thread, and the tearDown method collects the

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: The issue on 3.1 happens when Python is configured --with-computed-gotos. (this is the case on all 3.1 buildbots) But this issue does not happen on 3.x branch. On this branch computed-gotos is the default, but the switch

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-09-14 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: This is a regex bug, and it just bit me again :-( Because of this bug, you cannot currently build a bdist_egg (and therefore cannot install with easy_install) http://pypi.python.org/pypi/buildout-versions on windows. The only choice I

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I've never used socket.socket.makefile so I'm not sure, but its documentation says: The socket must be in blocking mode (it can not have a timeout). If the statement is there because EAGAIN/EWOULDBLOCK were originally raised then it

[issue7936] sys.argv contains only scriptname

2010-09-14 Thread Bill Hayes
Bill Hayes bhaye...@yahoo.com added the comment: I found this page while encountering the same problem (only one argument, the scriptname, being passed in from the command line), and wanted to post the following workaround. I'm running Vista and using Python 2.6. In summary I had to have

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le mardi 14 septembre 2010 à 23:19 +, Giampaolo Rodola' a écrit : I've never used socket.socket.makefile so I'm not sure, but its documentation says: The socket must be in blocking mode (it can not have a timeout). If the statement is

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-14 Thread Ned Deily
Ned Deily n...@acm.org added the comment: No problems noted with a quick test of posixpath_darwin.patch on 10.6 so looks good. It will get regression tested on more configurations sometime later. -- ___ Python tracker rep...@bugs.python.org

[issue2236] Distutils' mkpath implementation ignoring the mode parameter

2010-09-14 Thread Carlos Henrique Romano
Carlos Henrique Romano chrom...@gmail.com added the comment: Patch updated, now it includes test. -- nosy: +chromano Added file: http://bugs.python.org/file18885/python-distutils_mkpath_filemode-v1.diff ___ Python tracker rep...@bugs.python.org

[issue9851] multiprocessing socket timeout will break client

2010-09-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +asksol, jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9851 ___ ___

[issue9808] Implement os.getlogin on Windows

2010-09-14 Thread Jon Anglin
Jon Anglin jang...@fortresgrand.com added the comment: I went ahead and moved the test skip decorator to the class level as suggested by Brian Curtin, see issue9808-new.diff. -- Added file: http://bugs.python.org/file18886/issue9808-new.diff ___

[issue2236] Distutils' mkpath implementation ignoring the mode parameter

2010-09-14 Thread Carlos Henrique Romano
Changes by Carlos Henrique Romano chrom...@gmail.com: Removed file: http://bugs.python.org/file18885/python-distutils_mkpath_filemode-v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2236 ___