[issue13376] readline: pre_input_hook not getting called

2011-11-08 Thread Sam Cates
New submission from Sam Cates : OS: Mac 10.7.2 Python: 2.7.1 Setting a pre input hook in readline has no effect. This simple example illustrates the problem: #!/usr/bin/python import readline def hook(): readline.insert_text(' from pre_input_hook') readline.redisplay() read

[issue13229] Improve tools for iterating over filesystem directories

2011-11-08 Thread Nick Coghlan
Nick Coghlan added the comment: A related idea is updating os.walk tuples to be a custom object offering a namedtuple style API (similar to sys.float_info). I created a separate issue for that: #13375 I've also updated the title of this issue to describe the problem it aims to address rather

[issue13375] Provide a namedtuple style interface for os.walk values

2011-11-08 Thread Nick Coghlan
Changes by Nick Coghlan : -- stage: -> needs patch type: -> feature request versions: +Python 3.3 ___ Python tracker ___ ___ Python-

[issue13375] Provide a namedtuple style interface for os.walk values

2011-11-08 Thread Nick Coghlan
New submission from Nick Coghlan : The 3-tuple values yielded by os.walk could be made easier to work with in some use cases by offering a namedtuple style interface (similar to what is done with sys.float_info). for dirinfo in os.walk(base_dir): print(dirinfo.path) print(dirinfo.subdi

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-11-08 Thread Ezio Melotti
Ezio Melotti added the comment: OK, now I got what you mean. I'll try to come up with a better patch then :) -- ___ Python tracker ___ __

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: >Would adding 'required' before 'positional' and 'optional' before 'keyword >arguments' be ok? No! What is false in the original and the above is the equation and confusion of 'required' with 'positional' and 'optional' with 'keyword'. Required/optional is a

[issue13370] test_ctypes fails on osx 10.7

2011-11-08 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11427] ctypes from_buffer no longer accepts bytes

2011-11-08 Thread Meador Inge
Meador Inge added the comment: I agree this is a regression. I am looking more into it now. -- stage: -> needs patch ___ Python tracker ___ ___

[issue11082] ValueError: Content-Length should be specified

2011-11-08 Thread Ezio Melotti
Ezio Melotti added the comment: I think the information in the patch should go in the urlopen doc, not in urlencode. Adding a note to urlencode that says that the result must be encoded is fine, but all the details about the default encoding and the fact that an extra Content-Type header is

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-11-08 Thread Ezio Melotti
Ezio Melotti added the comment: > +accepts one :term:`positional argument` (``voltage``) and three > +:term:`keyword arguments ` (``state``, ``action``, > +and ``type``). > > This is simply false. An argument for voltage is required, the other > three are optional. I suggest something like the

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'): +accepts one :term:`positional argument` (``voltage``) and three +:term:`keyword arguments ` (``state``, ``action``, +and ``type``). This is simply false. An argument for voltage is

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +loewis, mhammond ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-08 Thread STINNER Victor
STINNER Victor added the comment: Functions like os.execv() or os.readlink() are not deprecated because the underlying C function really uses a bytes API (execv and readlink). -- ___ Python tracker __

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-08 Thread STINNER Victor
STINNER Victor added the comment: The patch deprecates bytes filenames for the following functions: nt._getfullpathname nt._isdir os.access os.chdir os.chmod os.link os.listdir os.lstat os.mkdir os.open os.rename os.rmdir os.stat os.symlink os.unlink os.utime Oh, I forgot a test for os.open(by

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6bf07db23445 by Victor Stinner in branch 'default': Issue #13374: Use Unicode filenames instead of bytes filenames http://hg.python.org/cpython/rev/6bf07db23445 -- nosy: +python-dev ___ Python tracker <

[issue11082] ValueError: Content-Length should be specified

2011-11-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is the docs patch which will help us close the issue. Addressing Eric's last comment - I believe the what's new and News for this issue was added with the feature, this one was Exception msg change. -- Added file: http://bugs.python.org/file2364

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-08 Thread STINNER Victor
New submission from STINNER Victor : Attached patch deprecates the Windows ANSI API (bytes API) in the nt module. Use Unicode filenames instead of bytes filenames to not depend on the ANSI code page anymore and to support any Unicode filename. The patch changes also os.link(), os.rename() and

[issue8025] TypeError: string argument expected, got 'str'

2011-11-08 Thread Ezio Melotti
Ezio Melotti added the comment: This was fixed in #12434. -- assignee: -> ezio.melotti resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue12245] Document the meaning of FLT_ROUNDS constants for sys.float_info

2011-11-08 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM -- nosy: +ezio.melotti stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mail

[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +facundobatista, mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11682] PEP 380 reference implementation for 3.3

2011-11-08 Thread Yury Selivanov
Yury Selivanov added the comment: It looks like there is a memory leak bug (on StopIteration exception instances). Attached is the test to expose it. It seems that adding 'Py_DECREF(e);' after 'PyErr_SetObject(PyExc_StopIteration, e);' in 'genobject.c' fixes the leak. -- Added file:

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2011-11-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +flox type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11082] ValueError: Content-Length should be specified

2011-11-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11427] ctypes from_buffer no longer accepts bytes

2011-11-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7412] distutils install race condition

2011-11-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13373] Unexpected blocking call to multiprocessing.Queue.get with a timeout

2011-11-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix stage: -> patch review versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue13373] Unexpected blocking call to multiprocessing.Queue.get with a timeout

2011-11-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13373] Unexpected blocking call to multiprocessing.Queue.get with a timeout

2011-11-08 Thread Arnaud Ysmal
New submission from Arnaud Ysmal : Using get(timeout=1) on a multiprocessing.Queue sometimes leads to a blocking get. It seems that there is no check whether the timeout has expired after acquiring the lock but before the time.time(), which can cause a call to poll() with a negative timeout.

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-11-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-11-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: That was my point. If HTTPError is a subclass of URLError, then an HTTPError _is an_ URLError, and thus should implement the same public interface. The problem is better illustrated with this request: try: urllib.request.urlopen('http://api.wordnik.com/v4/

[issue5904] strftime docs do not explain locale effect on result string

2011-11-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch versions: +Python 2.7 -Python 2.6 ___ Python tracker ___ ___ Py

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-11-08 Thread Ezio Melotti
Ezio Melotti added the comment: Attached patch, please review. -- assignee: docs@python -> ezio.melotti keywords: +patch nosy: +eric.araujo, ezio.melotti stage: -> commit review versions: +Python 2.7 -Python 3.1 Added file: http://bugs.python.org/file23637/issue6570.diff _

[issue6397] Implementing Solaris "/dev/poll" in the "select" module

2011-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Please, check the new changeset, with all your feedback. Thanks!. -- ___ Python tracker ___ ___ Pyt

[issue6397] Implementing Solaris "/dev/poll" in the "select" module

2011-11-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23636/518b32ce893e.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6397] Implementing Solaris "/dev/poll" in the "select" module

2011-11-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file23635/c47a846bed1a.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1238cdd288d2 by Charles-François Natali in branch 'default': Back out changeset b6336ba796d4 until fix for #13303. http://hg.python.org/cpython/rev/1238cdd288d2 -- ___ Python tracker

[issue1677872] Efficient reverse line iterator

2011-11-08 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-11-08 Thread Petri Lehtinen
Petri Lehtinen added the comment: My impression was that because HTTPError is a subclass of URLError, it should have the same attributes, and maybe some extra. A user reading the docs doesn't know whether it calls the base class __init__ or not. -- _

[issue1677872] Efficient reverse line iterator

2011-11-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-11-08 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +Yury.Selivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue6397] Implementing Solaris "/dev/poll" in the "select" module

2011-11-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23635/c47a846bed1a.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-11-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Jason & Petri, urllib2.HTTPError never had a reason attribute. In the docs, it is mentioned that only URLError has the reason attribute. The HTTPError sublasses URLError and addinforurl class, but the further initialization happens only in the addinforur

[issue13292] missing versionadded for bytearray

2011-11-08 Thread Florent Xicluna
Florent Xicluna added the comment: Done by Eric, thank you. Because of a typo, the message was attached to the wrong ticket. New changeset 8ea34a74f118 by Éric Araujo in branch '2.7': Add missing versionadded (fixes #12392) http://hg.python.org/cpython/rev/8ea34a74f118 -- resolution:

[issue444582] Finding programs in PATH, adding shutil.which

2011-11-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-11-08 Thread Florent Xicluna
Changes by Florent Xicluna : -- Removed message: http://bugs.python.org/msg147102 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13372] handle_close called twice in poll2

2011-11-08 Thread Xavier de Gaye
New submission from Xavier de Gaye : When use_poll is True, test_handle_close in test_asyncore.py invokes twice the handle_close() method. The attached patch: modifies test_handle_close so that it fails when handle_close() is called more than once includes a fix that makes readwrit

[issue6397] Implementing Solaris "/dev/poll" in the "select" module

2011-11-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue13360] UnicodeWarning raised on sequence and set comparisons

2011-11-08 Thread Florent Xicluna
Florent Xicluna added the comment: Then we'll live with it, or work around when it's possible. For the purists, hopefully we have Python 3 which allows to mix bytes and strings in a set(). -- resolution: -> rejected status: open -> closed ___ Pytho

[issue13364] Duplicated code in decimal module

2011-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry, I'm closing this as rejected. It might possibly have been better to write the code this way to begin with, but the code is already there, it's working, and there's little to be gained by 'fixing' it at this point. -- assignee: -> mark.dickins

[issue13327] Update utime API to not require explicit None argument

2011-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8907d646e0df by Jesus Cea in branch 'default': Commit 59dca1e2363d for issue #13327 introduced a compilation warning http://hg.python.org/cpython/rev/8907d646e0df -- ___ Python tracker

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76b6b85e4b78 by Jesus Cea in branch '2.7': Solved a potential deadlock in test_telnetlib.py. Related to issue #11812 http://hg.python.org/cpython/rev/76b6b85e4b78 New changeset 554802e562fa by Jesus Cea in branch '2.7': Partial patch for issue #118

[issue13371] Some Carbon extensions don't build on OSX 10.7

2011-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: _Fm fails because the wrapped functionality is no longer present in the Headers (last seen in the QD.framework headers in the 10.6 SDK) likewise for _Qdoffs and _Qd. The attached patch changed the preprocessor guards around these bindings from #ifndef __LP

[issue13371] Some Carbon extensions don't build on OSX 10.7

2011-11-08 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Build ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Stupid mistake. Please, review b93657b239a5.diff (erroneous "sock.close()" > deleted) Looks good to me, thanks. -- ___ Python tracker ___ _

[issue13371] Some Carbon extensions don't build on OSX 10.7

2011-11-08 Thread Ronald Oussoren
New submission from Ronald Oussoren : A number of Carbon wrapper modules don't build on OSX 10.7: $ make ... Failed to build these modules: _Fm_Qd_Qdoffs This is with '--with-universal-archs=intel', which worked fine on OSX 10.6. A short part of the co

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Stupid mistake. Please, review b93657b239a5.diff (erroneous "sock.close()" deleted) -- ___ Python tracker ___ ___

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file23631/71ab454bfe19.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23632/b93657b239a5.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13370] test_ctypes fails on osx 10.7

2011-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: I should have included the failures in my first message, sorry about that. IIRC the workaround in PyObjC I mention in my initial message does explicit sign extension when needed. W.r.t to the first couple of failures, not that: struct.unpack('b', struct.

[issue13370] test_ctypes fails on osx 10.7

2011-11-08 Thread STINNER Victor
STINNER Victor added the comment: > test_ctypes fails when building and testing on OSX 10.7 (Lion). What is the error message? -- nosy: +haypo ___ Python tracker ___ __

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Please, review 71ab454bfe19.diff . I am not satisfied with the timeout approach, since the timeout time is arbitrary. I would rather do the fake connection in teardowm, to be sure the server died. Anyway, this seems to be the minimal patch to solve the prob

[issue13370] test_ctypes fails on osx 10.7

2011-11-08 Thread Ronald Oussoren
New submission from Ronald Oussoren : test_ctypes fails when building and testing on OSX 10.7 (Lion). This is likely caused by changes in the compiler w.r.t. the calling convention. I've worked around this problem in PyObjC, and will try to port that workaround to ctypes. BTW. Using --with-s

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23631/71ab454bfe19.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Consider too that if something goes bad enough in the test to skip the > teardown method, Such as? tearDown is normally like a "finally" block, it always gets executed (unless perhaps setUp fails). -- ___ Python t

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Consider too that if something goes bad enough in the test to skip the teardown method, the thread will be alive for a while, possibly contaminating some other tests, like you commented. This is actually unsolvable, I think. Code that NEED to be executed wit

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine: Then you would be satisfied if I increase the timeout from 3 > seconds to 60 seconds and clean the event signaling? Yes! -- ___ Python tracker

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Antoine: Then you would be satisfied if I increase the timeout from 3 seconds to 60 seconds and clean the event signaling?. The current event signaling code has a few race conditions with potential deadlocks. -- _

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, the problem with this test is the timeout. We can set an > arbitrary timeout, but how big is big enough?. I would say answering this question is your task, since you have access to that buildbot. > The only "cosmetic" problem is the risk of "leaking

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Antoine, the problem with this test is the timeout. We can set an arbitrary timeout, but how big is big enough?. My change doesn't need a timeout at all. Problem solved. The only "cosmetic" problem is the risk of "leaking" a thread. But it would not affect

[issue13238] Add shell command helpers to subprocess module

2011-11-08 Thread Nick Coghlan
Nick Coghlan added the comment: Éric, to answer your question, with the planned version of the new API, a "*.py" value interpolated with "{!u}" should indeed pick up all of those files, since the wildcard will be passed unmodified to the underlying shell, and all shells I am aware of will acc

[issue13238] Add shell command helpers to subprocess module

2011-11-08 Thread Nick Coghlan
Nick Coghlan added the comment: After working on the documentation updates to the subprocess module to emphasise the convenience functions, I've now changed my mind and think it makes sense to keep these additions in that module. Now that the shell helpers will default to using shlex.quote()

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If thread.join had a timeout , we could wait for a while and if the > thread is still active, do a fake connection and another join. What's wrong with a socket timeout exactly? Everything you're proposing is ten times more complicated, and more fragile.

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Please, review attached changeset. Doesn't look acceptable to me. -- ___ Python tracker ___ ___

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Antoine: Deleting the socket timeout doesn't hang the test if we set the thread to "daemon" and do not do a thread.join() (unneeded in the normal situation, since garbage collecting the test instance will collect the thread too). If you don't like this, I c

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23630/2b155a6d25bb.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Uh doing a fake connection in the teardown would be problematic if the socket is reused for something else in the meantime. The kernel is suppose to keep the socket in the "not reuse" state for a while, but... I am seeing too liberal mixing of suppor

[issue13237] subprocess docs should emphasise convenience functions

2011-11-08 Thread Nick Coghlan
Nick Coghlan added the comment: Well, that forward port was definitely more complicated than I expected. Additional reviews of both 3.2 and 3.3 (i.e. default) would be appreciated - there were quite a few adjustments needed to cope with changes between 2.7 and 3.2 and then additional changes

[issue13237] subprocess docs should emphasise convenience functions

2011-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset e929d2a96d9b by Nick Coghlan in branch '3.2': Issue #13237: Forward port subprocess module updates and explicitly document UTF-8 encoding assumption when universal_newlines=True http://hg.python.org/cpython/rev/e929d2a96d9b New changeset d3b159c43

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Anyway, we can keep using "localhost", but just delete the socket > timeout in the server. Please don't. Any problem might then hang the whole test suite. You can bump it up if you want, though. > About using getsockname(), the bind would bind to all IPs of

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Charles-François: The only way for the server thread being around would be if the test fails badly, not calling teardown (I would do a fake tcp connection to the server in the teardown, followed by a thread.join). In this case, the thread (being "daemon") w

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-11-08 Thread Petri Lehtinen
Petri Lehtinen added the comment: Ok. Sounds that you've already evaluated this alternative, so I'm fine with it. -- ___ Python tracker ___ _

[issue13254] maildir.items() broken

2011-11-08 Thread Petri Lehtinen
Petri Lehtinen added the comment: Even better would be to set skewfactor to something negative in this test, too. I was told that long sleeps in tests are frowned upon. -- ___ Python tracker __

[issue13369] timeout with exit code 0 while re-running failed tests

2011-11-08 Thread Florent Xicluna
New submission from Florent Xicluna : Seen on Windows 7 builder. http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/3949 This build is considered by buildbot. Actually, the exit code should not be 0. (...) [360/360/4] test_descr 324 tests OK. 4 tests failed: test

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-11-08 Thread Ned Deily
Ned Deily added the comment: Lucas, there is nothing particularly special about the configuration parameters that Michael used other than enabling debug. Prior to Xcode 4, Xcode supplied a "standard" (non-LLVM) gcc as the default compiler, 4.2 for 10.6 and 4.0 for 10.5 and 10.4. Python is r

[issue11828] startswith and endswith don't accept None as slice index

2011-11-08 Thread Guido van Rossum
Guido van Rossum added the comment: As I wrote in python-dev: I agree with Raymond that this should be treated as a feature request and not "fixed" in 2.7 / 3.2. (However the mention of 'find' in the error message for 'index' is a bug and should be fixed.) As for the feature request, I think

[issue9750] sqlite3 iterdump fails on column with reserved name

2011-11-08 Thread Lucas Sinclair
Lucas Sinclair added the comment: My patch contains two new dump tests which originally fail, and the fixes to the code that makes them pass. -- Added file: http://bugs.python.org/file23629/issue9750.patch ___ Python tracker

[issue11812] transient socket failure to connect to 'localhost'

2011-11-08 Thread Charles-François Natali
Charles-François Natali added the comment: > The server thread only waits for 3 seconds for the connection. If a > connection is not created before 3 seconds, the server suicides and when the > connection is tried, it will fail. This probably explain why the problem is > sporadic and seems to