[issue11608] GzipFile cannot be used for streaming

2011-03-20 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nvawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11610] Improving property to accept abstract methods

2011-03-20 Thread Daniel Urban
Daniel Urban added the comment: I tried to test your patch, but the build dies with this error: Fatal Python error: Py_Initialize: can't initialize sys standard streams Traceback (most recent call last): File ".../cpython/Lib/io.py", line 60, in Aborted I don't know why is this, but I get th

[issue11608] GzipFile cannot be used for streaming

2011-03-20 Thread Ray.Allen
Ray.Allen added the comment: Looks like a duplicate issue of #9664 and #914340. And has been fixed in patch of #914340. -- nosy: +ysj.ray ___ Python tracker ___ ___

[issue7990] xml.etree.cElementTree lacks full dir() on Element

2011-03-20 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- versions: +Python 3.4 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue3080] Full unicode import system

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: http://www.python.org/dev/buildbot/all/builders/PPC%20Tiger%203.x/builds/1599/steps/test/logs/stdio == ERROR: testImpWrapper (test.test_importhooks.ImportHooksTestCase)

[issue3080] Full unicode import system

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: > mod = imp.load_module(fullname, self.file, self.filename, self.stuff) > TypeError: 'NoneType' object is not iterable The problem is that imp.find_module() now returns None as the filename, but imp.load_module() doesn't support None. --

[issue7913] Enhance Cmd support for docstrings and document it.

2011-03-20 Thread Daniel Urban
Daniel Urban added the comment: inspect.cleandoc (which is also used by inspect.getdoc and pydoc.getdoc) seems to do a similar thing. Maybe that could be used for this? -- nosy: +durban ___ Python tracker ___

[issue11613] test_subprocess fails under Windows

2011-03-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : There seem to be some buglets in the timeout code: http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/2783/steps/test/logs/stdio == ERROR: test_check_output_timeout

[issue4492] httplib code thinks it closes connection, but does not

2011-03-20 Thread Ray.Allen
Ray.Allen added the comment: Another fix could be making HTTPResponse to hold a reference to the HTTPConnection object and call its close() at the time of a bad chunk length was received. This can close the connection as soon as possible. -- ___ Pyt

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > There is one comment which I forgot to mention earlier. > > The current urlretrieve function is internally calling the URLOpener's > retrieve method. > > Those URLOpener class might need a DeprecationWarning while address > thing bug and that particular ret

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-03-20 Thread Daniel Urban
Daniel Urban added the comment: Here is a patch for list. It modifies the following C API functions: PyList_SetItem PyList_Insert PyList_Append PyList_SetSlice PyList_Sort PyList_Reverse _PyList_Extend It also includes tests (with ctypes). I plan to do next the same for dict, but first I'd wa

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Antoine Pitrou wrote: > Can you clarify the issue? URLopener which is an old class from the merge of urllib and urllib2 and it can be slowly and safely removed. If we go this line, then I assume it has to have a DeprecationWarning before we remove it. Should w

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > URLopener which is an old class from the merge of urllib and urllib2 > and it can be slowly and safely removed. If we go this line, then I > assume it has to have a DeprecationWarning before we remove it. Should > we or not? Yes, we should. > Change URLopene

[issue7908] remove leftover macos9 support code

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: I’ve just noticed this problem: --- a/Misc/BeOS-setup.py +++ b/Misc/BeOS-setup.py @@ -356,7 +356,7 @@ class PyBuildExt(build_ext): libraries = dblib) ) # Unix-only modules -if platf

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: > raise TypeError('Cannot subclass module') It is possible to subclass module. Ray: right, but 2.x still has a long life ahead of it, so we still want to improve its doc. -- nosy: +eric.araujo ___ Python tracker

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, making PyList_* an abstract API doesn't make sense to me. These functions do exactly what they say: they operate on concrete instances of list (they are documented as part of the concrete API). With that reasoning, we should have fallback paths in every

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-03-20 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9740] Support for HTTP 1.1 persistent connections throughout the standard library

2011-03-20 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9201455f950b by R David Murray in branch '3.1': #7198: really add newline='' to csv.writer docs. http://hg.python.org/cpython/rev/9201455f950b New changeset fa0563f3b7f7 by R David Murray in branch '3.2': Really merge #7198 http://hg.python.org/cpy

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-20 Thread R. David Murray
R. David Murray added the comment: OK, now it's really done (I hope!). -- status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue4492] httplib code thinks it closes connection, but does not

2011-03-20 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11610] Improving property to accept abstract methods

2011-03-20 Thread Darren Dale
Darren Dale added the comment: On Sun, Mar 20, 2011 at 5:18 AM, Daniel Urban wrote: > > Daniel Urban added the comment: > > I tried to test your patch, but the build dies with this error: > Fatal Python error: Py_Initialize: can't initialize sys standard streams > Traceback (most recent call l

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-20 Thread Skip Montanaro
Skip Montanaro added the comment: John> Skip, The changes that I suggested have NOT been made. Please John> re-read the doc page you pointed to. The "writer" paragraph does John> NOT mention that newline='' is required when writing. The "writer" John> examples do NOT include newline=

[issue11614] import __hello__ is broken in Python 3

2011-03-20 Thread STINNER Victor
New submission from STINNER Victor : import __hello__ doesn't print any message!!! -- messages: 131499 nosy: benjamin.peterson, georg.brandl, haypo priority: release blocker severity: normal status: open title: import __hello__ is broken in Python 3 versions: Python 3.1, Python 3.2, Pyth

[issue11614] import __hello__ is broken in Python 3

2011-03-20 Thread Andreas Stührk
Andreas Stührk added the comment: That was changed in [a2213060d9dd], see issue #1414. -- nosy: +Trundle ___ Python tracker ___ ___ P

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88876a264ebe by R David Murray in branch '3.1': Markup fixes for #7198 patch. http://hg.python.org/cpython/rev/88876a264ebe New changeset d0d1235cb66e by R David Murray in branch '3.2': Merge markup fixes for #7198 patch. http://hg.python.org/cpyth

[issue7913] Enhance Cmd support for docstrings and document it.

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: You can apply the patch (which includes tests) and edit the code of cmd.py to use cleandoc. -- versions: +Python 3.3 -Python 3.2 ___ Python tracker __

[issue11615] sporadic failure in test_posix

2011-03-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : >From >http://www.python.org/dev/buildbot/all/builders/PPC%20Ubuntu%203.x/builds/779/steps/test/logs/stdio == FAIL: test_fexecve (test.test_posix.PosixTester) ---

[issue11610] Improving property to accept abstract methods

2011-03-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think a better idea would be to override getter and friends on the abstractproperty class. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-20 Thread Jeff McNeil
Jeff McNeil added the comment: I'm not exactly sure what the steps are with respect to the DeprecationWarning. Is the common case just to raise the warning in the __init__ method? Are there related documentation changes? Thanks again! Learning a ton. Hopefully the next patch I submit will go

[issue11615] sporadic failure in test_posix

2011-03-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks for pointing that out. I'll just use waitpid() instead to wait on the desired pid only. -- ___ Python tracker ___ _

[issue11610] Improving property to accept abstract methods

2011-03-20 Thread Darren Dale
Darren Dale added the comment: On Sun, Mar 20, 2011 at 12:19 PM, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > I think a better idea would be to override getter and friends on the > abstractproperty class. I just suggested the same at python-ideas. I'll work on an alt

[issue11615] sporadic failure in test_posix

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset aedad9e14135 by Ross Lagerwall in branch 'default': Issue #11615: Fix sporadic buildbot failures related to #10812. http://hg.python.org/cpython/rev/aedad9e14135 -- nosy: +python-dev ___ Python tracker

[issue11567] http.server error message format

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Well, it is possible to disagree with the W3C on that particular point :) http://hixie.ch/advocacy/xhtml http://www.xml.com/pub/a/2004/07/21/dive.html http://www.cs.tut.fi/~jkorpela/html/empty.html http://diveintomark.org/archives/2004/01/14/thought_experiment --

[issue11616] reap_children should not use WNOHANG

2011-03-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : Using WNOHANG means that still-running children won't get collected. This seems to defeat the point of reap_children(). This patch seems to work: diff -r adbdb3e74461 Lib/test/support.py --- a/Lib/test/support.py Sun Mar 20 17:36:26 2011 +0100 +++ b/L

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Antoine: you’re right about not mixing concerns, sorry. Regarding deprecation, we should be cautious and maybe plan it across more than two versions. See thread starting at http://mail.python.org/pipermail/python-dev/2011-March/109450.html --

[issue11616] reap_children should not use WNOHANG

2011-03-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: I'm not sure. Was reap_children() meant to just reap zombie processes or wait for all children to finish? It seems like it was written to just reap zombie processes. Might this not cause hangs during testing sometimes if a subprocess that was started has its

[issue11616] reap_children should not use WNOHANG

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm not sure. Was reap_children() meant to just reap zombie processes > or wait for all children to finish? Apparently just to reap zombie processes. At least that was the initial intent. And it's true that we don't really need to collect all children immedia

[issue11617] Sporadic failure in test_httpservers

2011-03-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.2/builds/101/steps/test/logs/stdio test test_httpservers failed -- Traceback (most recent call last): File "/export/home/buildbot/32bits/3.2.cea-indiana-x86/build/Lib/test/test_httpserv

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread sbt
New submission from sbt : In thread_nt.h, when the WaitForSingleObject() call in EnterNonRecursiveMutex() fails with WAIT_TIMEOUT (or WAIT_FAILED) the mutex is left in an inconsistent state. Note that the first line of EnterNonRecursiveMutex() is the comment /* Assume that the thread waits

[issue3080] Full unicode import system

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Attached patch fixes a typo in Doc/c-api/import.rst. You can merge it in your next commit. -- Added file: http://bugs.python.org/file21305/typo.diff ___ Python tracker _

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +krisvale, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue8754] ImportError: quote bad module name in message

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Victor changed the code to use repr in some modules but not all in c4361bab6914. -- ___ Python tracker ___

[issue11610] Improving property to accept abstract methods

2011-03-20 Thread Darren Dale
Darren Dale added the comment: On Sun, Mar 20, 2011 at 5:18 AM, Daniel Urban wrote: > > Daniel Urban added the comment: > > I tried to test your patch, but the build dies with this error: > Fatal Python error: Py_Initialize: can't initialize sys standard streams > Traceback (most recent call l

[issue11610] Improving property to accept abstract methods

2011-03-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/3/20 Darren Dale : > > Darren Dale added the comment: > > On Sun, Mar 20, 2011 at 5:18 AM, Daniel Urban wrote: >> >> Daniel Urban added the comment: >> >> I tried to test your patch, but the build dies with this error: >> Fatal Python error: Py_Initia

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It appears that the thread_id field is never actually used > -- is it there to help with debugging? Perhaps it should just be > removed. True, I think we can remove it. > does this mean that in Python 3.2 > threads are only supported with pthreads and win32

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread sbt
sbt added the comment: First stab at a fix. Gets rid of mutex->thread_id and adds a mutex->timeouts counter. Does not try to prevent mutex->owned from overflowing. When no timeouts have occurred I don't think it changes behaviour, and it uses the same number of Interlocked functions. --

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2011-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whoops. That should be 'Cannot subclass a module' or 'Cannot subclass module %s' % modulename. Types.ModuleType can indeed by subclassed. I agree that this is not a pressing issue, but it will at least provide an answer to anyone searching the tracker for th

[issue11610] Improving property to accept abstract methods

2011-03-20 Thread Darren Dale
Darren Dale added the comment: Thank you Daniel and Benjamin for the helpful feedback. I think the attached patch is a much better approach. It only touches abc.abstractproperty (instead of the builtin property), and uses a class method as a factory to return instances of either property or a

[issue11610] Improving property to accept abstract methods

2011-03-20 Thread Darren Dale
Changes by Darren Dale : Removed file: http://bugs.python.org/file21293/property_with_abstractmethod.patch ___ Python tracker ___ ___ Python-

[issue11610] Improving property to accept abstract methods

2011-03-20 Thread Darren Dale
Changes by Darren Dale : Removed file: http://bugs.python.org/file21295/property_with_abstractmethod_v2.patch ___ Python tracker ___ ___ Pyth

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, Windows 2000 has semaphores, so why not use them? It makes the code much simpler. Patch attached (including test). -- nosy: +loewis Added file: http://bugs.python.org/file21308/semlocknt.patch ___ Python track

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread sbt
sbt added the comment: Have you tried benchmarking it? Interlocked functions are *much* faster than Win32 mutex/semaphores in the uncontended case. It only doubles the time taken for a "l.acquire(); l.release()" loop in Python code, but at the C level it is probably 10 times slower. Do

[issue4391] use proper gettext plurals forms in argparse and optparse

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a5782a2b074 by Éric Araujo in branch 'default': Use proper gettext plural forms in optparse (closes #4391). http://hg.python.org/cpython/rev/4a5782a2b074 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Have you tried benchmarking it? > > Interlocked functions are *much* faster than Win32 mutex/semaphores in > the uncontended case. Well, I'd rather have obviously correct code than difficult-to-understand "speedy" code. The patch I've posted takes less th

[issue2200] find_executable fails to find .bat files on win32

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Martin, could you please review patch file11359? -- nosy: +loewis versions: +Python 3.3 ___ Python tracker ___

[issue11615] sporadic failure in test_posix

2011-03-20 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Interestingly, it used to be a Semaphore up to [5e6e9e893acd]; in [cde4da18c4fa], Yakov Markovitch rewrote this to be the faster implementation we have today. -- ___ Python tracker

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Interestingly, it used to be a Semaphore up to [5e6e9e893acd]; in > [cde4da18c4fa], Yakov Markovitch rewrote this to be the faster > implementation we have today. At that time, the Pythread_* functions were still in use by the GIL implementation, and it made

[issue11397] os.path.realpath() may produce incorrect results

2011-03-20 Thread Santoso Wijaya
Santoso Wijaya added the comment: Attaching a unittest that will manifest this bug. -- keywords: +patch Added file: http://bugs.python.org/file21309/test_issue11397.patch ___ Python tracker ___

[issue2200] find_executable fails to find .bat files on win32

2011-03-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think the patch is incorrect. Parsing PATHEXT means that it will believe that all extensions listed on PATHEXT are executable. However, os.spawnv is not able to run them all, but only a subset. IIUC, spawnv supports (from spawnve.c) static _TSCHAR *ext_str

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > At that time, the Pythread_* functions were still in use by the GIL > implementation, and it made a difference judging by the commit message. Hmm. And if some application uses thread.lock heavily, won't it still make a difference? -- __

[issue11397] os.path.realpath() may produce incorrect results

2011-03-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11618] Locks broken wrt timeouts on Windows

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > At that time, the Pythread_* functions were still in use by the GIL > > implementation, and it made a difference judging by the commit message. > > Hmm. And if some application uses thread.lock heavily, won't it still > make a difference? An acquire/releas

[issue11494] Confusing error message from warnings.warn

2011-03-20 Thread Brett Cannon
Brett Cannon added the comment: I'm not crazy about the idea of adding an inspect.isclass() check simply to clear up this rare error message. It's still decipherable what the problem is from the issubclass() message. Closing as "won't fix". -- resolution: -> wont fix status: open ->

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-20 Thread Brett Cannon
Brett Cannon added the comment: This is what I get for trying to clean up site.py years ago. =) I'm fine with the change as long as there is a very clear Misc/NEWS message that the semantics on import have changed (and obviously this is not backported). -- assignee: -> eric.araujo

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: > By the way, PyList_SetItem() already has an > abstract counterpart called PyObject_SetItem(), > so changing this one seems useless. The problem isn't a lack of available abstract functions. If some code uses PyObject_SetItem(), then it already works for

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The problem isn't a lack of available abstract > functions. Then what is it exactly? You are arguing for PyList_SetItem() to have the same semantics as PyObject_SetItem(), but what's the point of having two functions which do exactly the same thing? It doesn'

[issue11613] test_subprocess fails under Windows

2011-03-20 Thread Santoso Wijaya
Santoso Wijaya added the comment: The timeout value given to wait() is multiplied by 1000 before being passed to TimeoutExpired constructor. The multiplication is unnecessary since we take the input unit as time unit second. -- keywords: +patch nosy: +santa4nt Added file: http://bugs.

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-03-20 Thread Ismail Donmez
Ismail Donmez added the comment: Whats holding this up? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue3080] Full unicode import system

2011-03-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11613] test_subprocess fails under Windows

2011-03-20 Thread Santoso Wijaya
Changes by Santoso Wijaya : Removed file: http://bugs.python.org/file21310/timeoutsec.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue3722] print followed by exception eats print with doctest

2011-03-20 Thread Chris Withers
Chris Withers added the comment: Terry, My original post was not about *temporary* output inserted for debugging, but test mocks and the like which form a permanent part of the test and which output to stdout. cheers, Chris -- ___ Python tracker

[issue11613] test_subprocess fails under Windows

2011-03-20 Thread Santoso Wijaya
Santoso Wijaya added the comment: Actually, the multiplication was necessary because _subprocess.WaitForSingleObject takes the timeout argument in millisecond unit. Defer multiplication until then. -- Added file: http://bugs.python.org/file21311/timeoutsec.patch _

[issue11613] test_subprocess fails under Windows

2011-03-20 Thread Reid Kleckner
Reid Kleckner added the comment: It is necessary, WaitForSingleObject takes its argument in milliseconds. It will make the exception message wrong, though, which I can fix. Reid On Sun, Mar 20, 2011 at 1:46 PM, Santoso Wijaya wrote: > > Santoso Wijaya added the comment: > > The timeout valu

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-03-20 Thread Brett Cannon
Brett Cannon added the comment: Someone having the time to do a patch review. -- keywords: +needs review stage: -> patch review ___ Python tracker ___ _

[issue11608] GzipFile cannot be used for streaming

2011-03-20 Thread Ned Deily
Ned Deily added the comment: As Ray points out, this feature is now available in Python 3.2. It was not backported to Python 2.7 as only bug fixes are now being accepted for Python 2.x, not new features. -- nosy: +ned.deily resolution: -> duplicate stage: -> committed/rejected statu

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: I cleaned up the patch a bit. In particular, I removed the dance around imp.cache_from_source that seemed unnecessary. I tested with regular Python, with PYTHONOPTIMIZE and with PYTHONDONTWRITEBYTECODE. Can you review and test too? -- Added file: htt

[issue3080] Full unicode import system

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f4a4e393058 by Victor Stinner in branch 'default': Issue #3080: imp.load_module() accepts None for the module path http://hg.python.org/cpython/rev/7f4a4e393058 -- ___ Python tracker

[issue10617] Collections ABCs can’t be linked to

2011-03-20 Thread Georg Brandl
Georg Brandl added the comment: I would recommend to document the classes like all other classes. It may take a bit more space, but it will be a) standard and b) linkable. -- ___ Python tracker _

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: It would be nice if it were enabled by default for fatal errors (and asserts perhaps?). -- nosy: +pitrou ___ Python tracker ___ __

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-03-20 Thread Nick Coghlan
Nick Coghlan added the comment: It's largely a backwards compatibility hack, but the concrete methods also have an optimised fast path that the generic methods lack. So (for example), PyList_SetItem would now mean "this is *probably* a list, so check for that and use the fast path if the assu

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm just pointing out a problem. Lots of existing code uses the concrete API and that code can break subclasses of builtin types (possibly resulting in segfaults). I don't really care what is done about it. I'm just observing that the current design of

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: The test failures you quoted are not related to distutils. I cannot see the ResourceWarnings in 3.2 or 3.3, so I think I’m going to close this issue. -- components: -Distutils, Distutils2 status: open -> pending versions: -3rd party, Python 2.7, Python

[issue11586] Python/pythonrun.c: get_codec_name() typo

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 929aafef5b05 by Victor Stinner in branch 'default': Fix #11586: typo in initfsencoding() http://hg.python.org/cpython/rev/929aafef5b05 -- nosy: +python-dev ___ Python tracker

[issue11586] Python/pythonrun.c: get_codec_name() typo

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b6f6514461e by Victor Stinner in branch '3.2': Fix #11586: typo in initfsencoding() http://hg.python.org/cpython/rev/0b6f6514461e -- ___ Python tracker _

[issue11586] Python/pythonrun.c: get_codec_name() typo

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: Fixed, thanks Ray. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue901727] extra_path kwarg to setup() undocumented

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: I added the missing words and reworded a few lines in the attached patch. That said, I find that the new doc is barely helpful; it describes what the code does, but does not explain why one would want to use it. Comments in the source suggest it’s a hack to sup

[issue9364] some problems with the documentation of pydoc

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: yeswanth, would you like more guidance or should I finish the patches? -- ___ Python tracker ___ ___ Py

[issue11395] print(s) fails on Windows with long strings

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8939a21bdb94 by Victor Stinner in branch '3.2': Issue #11395: io.FileIO().write() clamps the data length to 32,767 bytes on http://hg.python.org/cpython/rev/8939a21bdb94 New changeset 4b3472169493 by Victor Stinner in branch 'default': (merge) Issu

[issue8933] Invalid detection of metadata version

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: Diffs or full changesets are fine. I’m putting this on standby until distutils2 is fully merged into the standard library and we have a clear workflow from packaging to d2 to d1. -- status: open -> pending ___ Python

[issue11616] reap_children should not use WNOHANG

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Probably a bad idea on my part :) -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue11395] print(s) fails on Windows with long strings

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: I realized that it was a little more difficult to port the fix on 3.1 because 3.1 doesn't have the fix for Windows 64 bits. So I only fixed Python 3.2 and 3.3, also because nobody reported failure for Python 3.1 on Windows with -u flag. I tested my fix: the

[issue11127] sockets should not be pickleable

2011-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e13e5e6df30 by Antoine Pitrou in branch 'default': Issue #11127: Raise a TypeError when trying to pickle a socket object. http://hg.python.org/cpython/rev/5e13e5e6df30 -- nosy: +python-dev ___ Python tr

[issue11127] sockets should not be pickleable

2011-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed the patch with the test, thank you! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue11617] Sporadic failure in test_httpservers

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: Another example on x86 OpenIndiana 3.2: test test_httpservers failed -- Traceback (most recent call last): File "/export/home/buildbot/32bits/3.2.cea-indiana-x86/build/Lib/test/test_httpservers.py", line 210, in test_latin1_header self.assertEqual(res.g

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: data['version'] is not always present. Can you find what part of the code fills it? There is no default in the PEP, but a tool like mkcfg could suggest a useful value, say 0.1dev0. -- ___ Python tracker

[issue3722] print followed by exception eats print with doctest

2011-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: You misunderstood my last response. The first paragraph *dismisses* the case of temporary print (raised by Charles-Axle) as out of scope for doctests and hence this issue. The next ones addresses *your* case of code *permanently* intended to print and raise a

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-20 Thread Éric Araujo
Éric Araujo added the comment: What’s the proper way to fix this? Mention in the devguide that 2.5 and 2.6 can’t be built from Mercurial, or commit some text in the place of the keywords in Mercurial? -- nosy: +eric.araujo versions: +Python 2.6 -Python 2.5 __

  1   2   >