[issue12381] bytearray methods count, find, index don't support None as in slice notation

2011-06-20 Thread py.user
New submission from py.user : >>> bytearray(b'abc').count(bytearray(b''), None) Traceback (most recent call last): File "", line 1, in TypeError: slice indices must be integers or None or have an __index__ method >>> bytearray(b'abc').find(bytearray(b''), None) Traceback (most recent call last

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-06-20 Thread py.user
Changes by py.user : -- title: bytearray center, ljust, rjust don't accept a bytearray as the fill character -> bytearray methods center, ljust, rjust don't accept a bytearray as the fill character ___ Python tracker

[issue12380] bytearray center, ljust, rjust don't accept a bytearray as the fill character

2011-06-20 Thread py.user
New submission from py.user : >>> bytearray(b'abc').rjust(10, b'*') bytearray(b'***abc') >>> bytearray(b'abc').rjust(10, bytearray(b'*')) Traceback (most recent call last): File "", line 1, in TypeError: must be a byte string of length 1, not bytearray >>> -- components: Interpret

[issue12364] Timeout (1 hour) in test_concurrent_futures.tearDown() on sparc solaris10 gcc 3.x

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: Oh, I think that I found a deadlock (or something like that): import concurrent.futures import faulthandler import os import signal import time def work(n): time.sleep(0.1) def main(): faulthandler.register(signal.SIGUSR1)

[issue12364] Timeout (1 hour) in test_concurrent_futures.tearDown() on sparc solaris10 gcc 3.x

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: Ah, submit a new task after the manager shutdown fails with OSError(32, 'Broken pipe'). Example: --- from multiprocessing.managers import BaseManager class MathsClass(object): def foo(self): return 42 class MyManager(BaseManager):

[issue12364] Timeout (1 hour) in test_concurrent_futures.tearDown() on sparc solaris10 gcc 3.x

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: Connection._send_bytes() has a comment about broken pipes: def _send_bytes(self, buf): # For wire compatibility with 3.2 and lower n = len(buf) self._send(struct.pack("=i", len(buf))) # The condition is necessary to avoid "br

[issue12364] Timeout (1 hour) in test_concurrent_futures.tearDown() on sparc solaris10 gcc 3.x

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: Message on a stackoverflow thread: "I have suffered from the same problem, even if connecting on localhost in python 2.7.1. After a day of debugging i found the cause and a workaround: Cause: BaseProxy class has thread local storage which caches the connectio

[issue12378] smtplib.SMTP_SSL leaks socket connections on SSL error

2011-06-20 Thread R. David Murray
R. David Murray added the comment: 2.6 is in security-fix-only mode. By inspection the 2.7 and 3.x code have the same issue (though the 3.x code is very different, there still appears to be a lack of error recovery logic. Joe, do you have any interest in writing a unit test for this? I belie

[issue12363] test_signal.test_without_siginterrupt() sporadic failures on FreeBSD 6.4

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: > In the subprocess, why not use the standard 0 exit code > in case of success? Something outside my code may exit Python with the code 0. Even if it unlikely, I prefer to use uncommon exit codes, to ensure that the child process executed "correctly" my code.

[issue12363] test_signal.test_without_siginterrupt() sporadic failures on FreeBSD 6.4

2011-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 968b9ff9a059 by Victor Stinner in branch 'default': Close #12363: fix a race condition in siginterrupt() tests http://hg.python.org/cpython/rev/968b9ff9a059 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: op

[issue12363] test_signal.test_without_siginterrupt() sporadic failures on FreeBSD 6.4

2011-06-20 Thread Charles-François Natali
Charles-François Natali added the comment: The patch looks good to me. In the subprocess, why not use the standard 0 exit code in case of success? Also, points 1 and 3 could be handled simply by having the parent process send a signal to the child (but this wouldn't address the timeout issue).

[issue11610] Improved support for abstract base classes with descriptors

2011-06-20 Thread Daniel Urban
Daniel Urban added the comment: I've posted some comments on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: > what do you propose to do with Lib/plat-linux2 > (or, more generally, Lib/plat-*)? What are these directories? Are they still used? -- ___ Python tracker __

[issue9436] test_sysconfig failure: build a 32-bit Python a 64-bit OS

2011-06-20 Thread Roumen Petrov
Roumen Petrov added the comment: The test case is bogus. Until is removed you could use CC='gcc -m32'. -- nosy: +rpetrov ___ Python tracker ___ __

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: So people who say sys.platform shouldn't be used: what do you propose to do with Lib/plat-linux2 (or, more generally, Lib/plat-*)? -- ___ Python tracker

[issue3067] setlocale error message is confusing

2011-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset e72a2a60316f by Victor Stinner in branch '2.7': Revert d370d609d09b as requested by Terry Jan Reedy: http://hg.python.org/cpython/rev/e72a2a60316f -- ___ Python tracker

[issue12379] build outside source fail in head

2011-06-20 Thread Roumen Petrov
New submission from Roumen Petrov : correct is -I$(srcdir)/Include -- components: Build messages: 138755 nosy: rpetrov priority: normal severity: normal status: open title: build outside source fail in head versions: Python 3.3 ___ Python tracker

[issue12378] smtplib.SMTP_SSL leaks socket connections on SSL error

2011-06-20 Thread Joe Shaw
Joe Shaw added the comment: >From some experimentation, closing the underlying socket isn't enough. You >also need to close the SSL socket, so you'd need to do something like: new_socket = socket.create_connection((host, port), timeout) ssl_socket = ssl.wrap_socket(new_socket, self.keyfile,

[issue12378] smtplib.SMTP_SSL leaks socket connections on SSL error

2011-06-20 Thread Joe Shaw
New submission from Joe Shaw : Start a non-SSL server on port 2525: $ python -m smtpd -n -c DebuggingServer localhost:2525 In another terminal, fire up a python interpreter and run the following code: >>> import smtplib >>> s = smtplib.SMTP_SSL("localhost", 2525) [...] ssl.SSLError: [Errno 1]

[issue12240] Allow multiple setup_hooks

2011-06-20 Thread Erik Bray
Erik Bray added the comment: Good to know! The majority of my development is still on 2.x so it's easy to forget things like that. -- ___ Python tracker ___ ___

[issue12240] Allow multiple setup_hooks

2011-06-20 Thread Éric Araujo
Éric Araujo added the comment: The tests were failing on builbots with an ASCII locale. The config files have to be opened with an explicit encoding='utf-8' argument. Let’s remember it for the future :) -- ___ Python tracker

[issue11637] Add cwd to sys.path for hooks

2011-06-20 Thread Éric Araujo
Éric Araujo added the comment: See also #12375. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12377] Clean up use of packages_root/package_dir

2011-06-20 Thread Éric Araujo
Éric Araujo added the comment: I would rename it modules_root, but a related discussion last summer showed that using “modules” to refer to pure Python modules, extension modules and Python packages was not 100% ideal for 100% of users. -- assignee: tarek -> eric.araujo stage: -> nee

[issue12375] Add packages_root to sys.path for hooks

2011-06-20 Thread Erik Bray
Erik Bray added the comment: Added issue12377 for packages_root/package_dir cleanup. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue12377] Clean up packages_root option

2011-06-20 Thread Erik Bray
New submission from Erik Bray : This issue was first mentioned in issue12375. The Distribution.package_dir attribute (which also appears in a few commands) is not used in a consistent manner. Some code expects it to be a string, while other code expects it to be a dict. I believe the correc

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-20 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12375] Add packages_root to sys.path for hooks

2011-06-20 Thread Éric Araujo
Éric Araujo added the comment: +1. About packages_root usage: please file another bug. I think new code to deal with packages_root was added, but internally packages_dir was not cleaned up. Another problem is that these arguments affect all modules, not only packages, and are thus misnamed

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-20 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> docs@python components: +Documentation nosy: +docs@python, eric.araujo stage: -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker _

[issue12361] Memory Leak in File Logging

2011-06-20 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 2.7 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue5231] Change format of a memoryview

2011-06-20 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue12147] smtplib.send_message does not implement corectly rfc 2822

2011-06-20 Thread Nicolas Estibals
Nicolas Estibals added the comment: I wasn't aware of the problem of guessing which are the correct Resent-* field, tthis does not seem to be that easy, however taking only the first one should be a good heuristic for next release. I think we now agree on the "automatic processing" part, this

[issue12376] unittest.TextTestResult.__init__ breaks under complex __mro__

2011-06-20 Thread R. David Murray
Changes by R. David Murray : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12376] unittest.TextTestResult.__init__ breaks under complex __mro__

2011-06-20 Thread Ben Ranker
New submission from Ben Ranker : TextTestResult.__init__(...) calls super(TextTestResult, self).__init__() with no args. If a custom TextTestResult descendant has a complex inheritance hierarchy that puts another class between TextTestResult and TestResult in the __mro__, then that class doesn

[issue12147] smtplib.send_message does not implement corectly rfc 2822

2011-06-20 Thread R. David Murray
R. David Murray added the comment: Note that that RFC language is clearly directed at automatic processing on *receipt*, not during sending. The RFC doesn't address automatic processing during sending, it leaves that the to the SMTP RFC. -- ___ Py

[issue12147] smtplib.send_message does not implement corectly rfc 2822

2011-06-20 Thread R. David Murray
R. David Murray added the comment: Section 3.6.6 says: Resent fields are strictly informational. They MUST NOT be used in the normal processing of replies or other such automatic actions on messages. Further, since there is no specified order for the headers within a block, there is

[issue12352] multiprocessing.Value() hangs

2011-06-20 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks for reporting this. There's indeed a bug which can lead to this deadlock. Relevant code in Lib/multiprocessing/heap.py - the BufferWrapper class uses a single Heap() shared among instances, protected by a mutex (threading.Lock), from which block

[issue12147] smtplib.send_message does not implement corectly rfc 2822

2011-06-20 Thread Nicolas Estibals
Nicolas Estibals added the comment: Hi, Treating this as a bug is a good news, if we don't user of the function will ask for python 3.3 I also think the part concerning the Sender header is pretty clear and we can fix it easily. About the Resent-* fields, I'm not sure of the right thing to

[issue3067] setlocale error message is confusing

2011-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, the issue for 3.x, which remains, is to improve the error message. I also suggested a doc change, though I would like Mark or Martin's comments before I would make it. >But I think that the commit is just useless because we will have to wait until >P

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2011-06-20 Thread R. David Murray
Changes by R. David Murray : -- nosy: +amaury.forgeotdarc, belopolsky -theller title: find_library should search LD_LIBRARY_PATH on linux -> ctypes find_library should search LD_LIBRARY_PATH on linux ___ Python tracker

[issue12213] BufferedRandom, BufferedRWPair: issues with interlaced read-write

2011-06-20 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9998] find_library should search LD_LIBRARY_PATH on linux

2011-06-20 Thread Brian Larsen
Brian Larsen added the comment: Hey I have this problem too. I would love to see this fixed. -- nosy: +Brian.Larsen ___ Python tracker ___ __

[issue12375] Add packages_root to sys.path for hooks

2011-06-20 Thread Erik Bray
New submission from Erik Bray : I just saw issue11637 [Add cwd to sys.path for hooks] and was reminded that this would also be useful (and in fact necessary if hook code is in a package that's under some root other than cwd). On a related matter, the current use of Distribution.package_dir is

[issue12213] BufferedRandom, BufferedRWPair: issues with interlaced read-write

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: >> My patch tries to fix interlaced read-write by always calling flush(), > > Why do you need to call flush()? Can't you read from the buffer? Hum, my patch does not always call flush of the reader and the writer. On read, it flushs the writer. On write, it "f

[issue12285] Unexpected behavior for 0 or negative processes in multiprocessing.pool()

2011-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12285] Unexpected behavior for 0 or negative processes in multiprocessing.pool()

2011-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f171dd21bdb by Victor Stinner in branch '3.2': Issue #12285: multiprocessing.Pool() raises a ValueError if the number of http://hg.python.org/cpython/rev/1f171dd21bdb New changeset 1861683793d9 by Victor Stinner in branch 'default': (merge 3.2) Is

[issue12289] http.server.CGIHTTPRequestHandler doesn't check if a Python script is executable

2011-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset ecef74419d55 by Victor Stinner in branch 'default': Close #12289: Fix "is executable?" test in the CGI server http://hg.python.org/cpython/rev/ecef74419d55 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: ope

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-20 Thread R. David Murray
R. David Murray added the comment: Isn't 'definition time' vs 'execution time' an artificial distinction? I'm surprised that the main module is compiled differently than a regular module. Is that an artifact of the CPython implementation or a part of the language? If the latter it should c

[issue6584] gzip module has no custom exception

2011-06-20 Thread Éric Araujo
Éric Araujo added the comment: Ezio has found a few other things to improve (follow the “review” link to the right of the patch link). -- nosy: +eric.araujo ___ Python tracker _

[issue12289] http.server.CGIHTTPRequestHandler doesn't check if a Python script is executable

2011-06-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Both the changes suggested in the patch are fine. I think, it is okay to remove the executable function. It is undocumented as it is, and have not seen any standalone use of it. A note in NEWS can help. -- nosy: +orsenthil __

[issue10086] test_sysconfig failure when prefix matches /site

2011-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: > That's exactly my point. > Code checking sys.platform against 'linux2' is already broken, there's > no point in complicating the code further, or adding a new constant. > If you want to check for a specific operating system, there's already > platform.system()

[issue12090] 3.2: build --without-threads fails

2011-06-20 Thread Georg Brandl
Georg Brandl added the comment: It doesn't need to; this branch is inactive at the moment. -- status: open -> closed ___ Python tracker ___ _

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-20 Thread Nick Coghlan
New submission from Nick Coghlan : The current execution model documentation in the Language Reference doesn't clearly explain the multiple phases of code execution: 1. Compilation time (statement by statement in the main module and at the interactive prompt, all at once for module import and

[issue4841] io's close() not handling errors correctly

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: Status of this issue: - io.FileIO.close() raises IOError with Python 2.7, 3.1, 3.2 and 3.3 (e.g. if the underlying file descriptor has been closed), it doesn't with Python 2.6 - If FileIO constructor is called twice, the file is closed at the second call eve

[issue12365] URLopener should support context manager protocol

2011-06-20 Thread Jeff McNeil
Jeff McNeil added the comment: Isn't that snippet (contextlib.closing(...)) passing the result of urllib.urlopen to closing? The urlopen call is a factory function of sorts, so there's really no context to manage on its part? Maybe it's just a matter of making that clear? If you can share w

[issue4841] io's close() not handling errors correctly

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: fileio_close.patch should maybe use os.open() (to create the fd) and os.fstat() (to check that the fd is not closed). -- ___ Python tracker ___

[issue4841] io's close() not handling errors correctly

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: fileio_close.patch (for Python 3.3): Fix FileIO.__init__() to not close the file if closefd=False and the constructor is called twice (or more). -- Added file: http://bugs.python.org/file22417/fileio_close.patch ___

[issue12359] tutorial: Module search path description is incorrect

2011-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset a57134dd8688 by Senthil Kumaran in branch '3.2': Fix closes Issue12359 - Removing a confusing sentence from the previous change. http://hg.python.org/cpython/rev/a57134dd8688 New changeset 18ebc7809cb2 by Senthil Kumaran in branch 'default': merge

[issue5905] strptime fails in non-UTF locale

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: I close the issue because I am unable to reproduce it. -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue3067] setlocale error message is confusing

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: I fixed locale.setlocale() of Python 2.7 to accept Unicode string because it helps porting to Python 3... But I think that the commit is just useless because we will have to wait until Python 2.7.3 is released, and if you want to support older Python versions

[issue12370] Use of super overwrites use of __class__ in class namespace

2011-06-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Ah okay, I didn't see that in the changeset. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue3067] setlocale error message is confusing

2011-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset d370d609d09b by Victor Stinner in branch '2.7': Close #3067: locale.setlocale() accepts a Unicode locale. http://hg.python.org/cpython/rev/d370d609d09b -- nosy: +python-dev resolution: -> fixed stage: test needed -> committed/rejected stat

[issue3067] setlocale error message is confusing

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: > On Py3, locale.setlocale() should allow only unicode strings > and reject byte strings. I agree and it is the current behaviour (of Python 3.3). I don't see any use case of a byte strings in locale.setlocale() with Python 3.3, so I remove Python 3 from the

[issue11873] test_regexp() of test_compileall fails occassionally

2011-06-20 Thread R. David Murray
R. David Murray added the comment: I reopened the issue because I don't know the answer to your question but suspect that it is an issue. So it needs to be checked. And the regex should be cleaned up regardless, for clarity's sake. -- ___ Python

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: pyfile_fromfile_close.patch: patch based on issue7732_find_module_v2.diff, fixing this issue in Python 2.7 - PyFile_FromFile() closes the file on PyString_FromString() failure (note: unlikely failure) - call_find_module() doesn't close the file anymore, PyF

[issue3067] setlocale error message is confusing

2011-06-20 Thread vincent.chute
vincent.chute added the comment: "Since the module predates unicode strings (it is in 1.5) and since the locale string is passed to a C function, 'string' in the doc can just as well be taken to mean ascii byte string only, as the code requires." My only comment is that generally it doesn't s

[issue12370] Use of super overwrites use of __class__ in class namespace

2011-06-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: One reason is that it bumps the pyc magic number. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue12370] Use of super overwrites use of __class__ in class namespace

2011-06-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: That work around seems ugly. Why not back port the fix? It doesn't seem like it could break anything and it's not even arguably a new feature, right? -- nosy: +barry ___ Python tracker

[issue12370] Use of super overwrites use of __class__ in class namespace

2011-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: And to record the workaround for 3.1 and 3.2 (courtesy of Michael): Adding a "_super = super" alias at the module level and using the Python 2.x style long form invocation on _super() in affected methods will avoid the compiler games played when using super() d

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-20 Thread Charles-François Natali
Charles-François Natali added the comment: > However, it appears to me that vast majority of them is broken anyway, > because what they really mean to check is That's exactly my point. Code checking sys.platform against 'linux2' is already broken, there's no point in complicating the code furth

[issue12356] more argument error improving

2011-06-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12369] Revised core mentorship section of help.rst

2011-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: Added (with further adjustments) to devguide in http://hg.python.org/devguide/rev/63f3521fe8f8 -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue12373] Duplicate packets in Multicast Receiver

2011-06-20 Thread Charles-François Natali
Charles-François Natali added the comment: Note that the duplication is mandatory for multicast, but with unicast the kernel is free to do whatever he wants, most of the time only one socket will receive it. -- ___ Python tracker

[issue12373] Duplicate packets in Multicast Receiver

2011-06-20 Thread Charles-François Natali
Charles-François Natali added the comment: This is normal. You're binding twice to the same port thanks to SO_REUSEADDR, but in case of multiple binds to the same UDP port, all packets received are duplicated by the kernel to every socket. Closing as invalid. -- nosy: +neologix resolu

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: import_directory-py3k.patch: find_module_path_list() ignores silently directories matching requested filename pattern (like module_name + ".py"). I don't think that it is useful to emit a warning (or raise an error) here, the code checks for various file exte

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2011-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: > I wrote a similar patch to add PyModule_GetNameObject() > (I am working on another huge patch, to fix #3080) Issue #3080 added the PyModule_GetNameObject() function, so it simplify your patch. I commited your issue6697-lsprof.diff patch, I just fixed a ref

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2011-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset b87eac0369b5 by Victor Stinner in branch 'default': Issue #6697: _lsprof: normalizeUserObj() doesn't encode/decode (UTF-8) the http://hg.python.org/cpython/rev/b87eac0369b5 -- nosy: +python-dev ___ Pytho

[issue12090] 3.2: build --without-threads fails

2011-06-20 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > > Yes, this is fixed in 3.2. > > I just left the issue open as a reminder for the release branch. > > The issue is still open, can it be closed? What do you mean by "release > branch"? This one: http://hg.python.org/releasing/3.2.1/ The

[issue12090] 3.2: build --without-threads fails

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: > Yes, this is fixed in 3.2. > I just left the issue open as a reminder for the release branch. The issue is still open, can it be closed? What do you mean by "release branch"? -- ___ Python tracker

[issue11873] test_regexp() of test_compileall fails occassionally

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: > What about Windows? tempfile.mkdtemp(prefix='bar') can generate > ...\tmpxxbaxx\... Or compileall does first normalize the path? @r.david.murray: You reopened the issue, but you didn't answer to this question. And, is there a bug in your regex or not? -

[issue12337] Need real TextIOWrapper for stdin/stdout

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: > so there really was a bug. > If fixed in 3.2.1, this issue could be closed. This issue is a duplicate of #11272: upgrade to Python 3.2.1. -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue12367] select.error has no errno attribute

2011-06-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can't do this outside of a PEP (see PEP 3151). -- resolution: -> rejected status: open -> closed ___ Python tracker ___ __

[issue11439] subversion keyword breakage

2011-06-20 Thread Stefan Krah
Stefan Krah added the comment: Building matplotlib with the 2.7.2 release fails due to this issue: Traceback (most recent call last): File "setup.py", line 162, in if check_for_tk() or (options['build_tkagg'] is True): File "/home/stefan/src/matplotlib-1.0.1/setupext.py", line 832, in

[issue12367] select.error has no errno attribute

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: select_errno.patch: select.error now inherits from OSError and so have an errno attribute. I only ran the unit test on Linux, it should be tested on Windows. -- keywords: +patch Added file: http://bugs.python.org/file22414/select_errno.patch _

[issue12371] datetime.now() bug

2011-06-20 Thread STINNER Victor
STINNER Victor added the comment: str(datetime object) doesn't contain a dot if obj.microsecond equals zero. You can use obj=obj.replace(microsecond=0) to create a new datetime object using microsecond=0. Or just test that str(obj) contains a dot or not. It is not a bug in Python. --

[issue12373] Duplicate packets in Multicast Receiver

2011-06-20 Thread Aleksey Zhurbitsky
New submission from Aleksey Zhurbitsky : I use http://svn.python.org/projects/python/trunk/Demo/sockets/mcast.py to receive multicast stream. When i run one instance of this script to receive certain multicats stream all is fine, but when i run two instance of this script simultaneously to joi

[issue12359] tutorial: Module search path description is incorrect

2011-06-20 Thread anatoly techtonik
anatoly techtonik added the comment: I attach file for testing import if anybody needs it. Move module.py to your current directory, but out of the dir with script.py and execute script.py using relative path from there. -- Added file: http://bugs.python.org/file22413/portable-test.7z

[issue12359] tutorial: Module search path description is incorrect

2011-06-20 Thread anatoly techtonik
anatoly techtonik added the comment: On Mon, Jun 20, 2011 at 3:42 AM, Roundup Robot wrote: > > New changeset bf8b4c43fb94 by Senthil Kumaran in branch '3.2': > Fix closes Issue12359 - Minor update to module import description. > http://hg.python.org/cpython/rev/bf8b4c43fb94 1. There is a typo

[issue12372] semaphore errors on AIX 7.1

2011-06-20 Thread reshmi george
New submission from reshmi george : The same problem that was reported in issue 9700 is appearing on AIX 7.1. The following message has been seen when running multi-process python program: sem_trywait: Permission denied sem_post: Permission denied sem_wait: Permission denied sem_post: Permission

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Stephane, > I use HTTPConnection to simulate Apple Finder WebDAV client. When > this WebDAV client do PUT request, it transmit data in chunked > encoding mode and not set Content-Length HTTP field. > > Do you understand my context ? Is the server at f

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2011-06-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: We had support for chunked transfer encoding for POST method recently, which is exposed via urllib2 wrapper function. PUT is not exposed via urllib2 and users should use httplib. This feature of chunked transfer can be added to PUT by taking the body of the

[issue12365] URLopener should support context manager protocol

2011-06-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: well, urlopen does return an file like object for socket connection which closes itself when it goes out of scope, as you raised this bug, I think a more explicit context manager like behavior can be tried. But I am afraid that it would complex to implement

[issue12371] datetime.now() bug

2011-06-20 Thread olrait
New submission from olrait : Hello Everybody. I write you because I found a bug in datetime.now(). (tested in Python 2.6.6 -r266:84297, Aug 24 2010, 18:46:32-win32) This bug is that sometime doesn´t return milliseconds. The code to reproduce the bug is: you have to wait a lot of time (from 20