[issue6811] add a filename argument to marshal.load*

2011-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5deb2094f033 by Brett Cannon in branch 'default': Make importlib compatible with __import__ by "fixing" code.co_filename http://hg.python.org/cpython/rev/5deb2094f033 -- nosy: +python-dev ___ Python trac

[issue8754] ImportError: quote bad module name in message

2011-03-23 Thread STINNER Victor
STINNER Victor added the comment: I patched import.c to use repr() instead of str() (%R instead of %U) to format module names because they might contain surrogate characters. Surrogate characters are not encodable to any encoding, except UTF-16 and UTF-32. And so print an exception to stdout

[issue6811] add a filename argument to marshal.load*

2011-03-23 Thread Brett Cannon
Brett Cannon added the comment: I went with a different solution as backwards-compatibility dictates a solution that is not as complete as one might do with an argument to marshal. -- resolution: -> wont fix stage: test needed -> committed/rejected status: open -> closed

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> New changeset 9aa6097131ef by Antoine Pitrou in branch '3.2': Antoine> Issue #11653: fix -W with -j in regrtest Antoine> http://hg.python.org/cpython/rev/9aa6097131ef Antoine> New changeset c381b35e4f31 by Antoine Pitrou in branch 'default'

[issue11647] function decorated with a context manager can only be invoked once

2011-03-23 Thread Michael Foord
Michael Foord added the comment: The former sounds like fixing the bug, the latter like removing functionality. So yes, I prefer the former... -- ___ Python tracker ___ ___

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Jack: what's the issue with the external dependencies? Just run Tool/buildbot/external.bat (or external-amd64.bat, or external-common.bat), and be done. If you merely want to debug your extension modules, I recommend *not* to turn on Py_DEBUG, but only enab

[issue11652] urlib{, 2} returns a pair of integers as the content-length value

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya added the comment: One way I can think of is by resorting so some list of exceptions. Not quite elegant, but it works... -- keywords: +patch Added file: http://bugs.python.org/file21365/issue11652.patch ___ Python tracker

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-03-23 Thread Ben Darnell
New submission from Ben Darnell : Line 125 of multiprocessing.c is "*CMSG_DATA(cmsg) = fd;". CMSG_DATA returns an unsigned char*, while fd is an int, so this code does not support file descriptors > 256 (additionally, I'm not sure if the buffer is guaranteed to be initialized with zeros). 

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Brett Cannon
Brett Cannon added the comment: The import failures are because you didn't rebuild (I added a new function to imp). Re-build and the import issues will go away. -- ___ Python tracker _

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-03-23 Thread Davide Rizzo
Davide Rizzo added the comment: I couldn't get an automated test to fail on the bug with subprocess. Apparently an interpreter launched with Popen is not subject to the bug as it is when launched directly from the shell (i.e. fgets is not interrupted by a SIGSTOP sent by the parent process),

[issue11652] urlib{, 2} returns a pair of integers as the content-length value

2011-03-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, this is good enough for a non-standard behavior. However, I would be curious to know what curl did. Did it do something on based on the value or sequence in which it was obtained or just over-wrote it. -- title: urlib{,2} returns a pair of intege

[issue11658] complex sqrt error

2011-03-23 Thread João Bernardo
New submission from João Bernardo : With Python 3, the ** operator is supposed to do math with complex numbers, but look what is happening: Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> (-

[issue11549] Rewrite peephole to work on AST

2011-03-23 Thread Eugene Toder
Eugene Toder added the comment: Is anyone looking or planing to look at the patch? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue11549] Rewrite peephole to work on AST

2011-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect someone will sometime. There is bit of a backlog of older issues. -- ___ Python tracker ___ _

[issue11658] complex sqrt error

2011-03-23 Thread STINNER Victor
STINNER Victor added the comment: (-1)**.5 is the same than complex(-1,0)**.5, but it is computed differently than cmath.sqrt(-1). -1.**0.5 computes: vabs = math.hypot(-1, 0) len = pow(vabs, 0.5) at = math.atan2(0, -1) phase = at * 0.5 return complex(len*math.cos(phase), len*math.si

[issue6715] xz compressor support

2011-03-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov -Christophe Simonis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6715] xz compressor support

2011-03-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6715] xz compressor support

2011-03-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +Christophe Simonis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10883] urllib: socket is not closed explicitly

2011-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e5aff2a9e54 by Senthil Kumaran in branch '3.2': issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch by Nadeem Vawda. http://hg.python.org/cpython/rev/2e5aff2a9e54 New changeset 0937b3618b86 by Senthil Kumaran in branc

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
Skip Montanaro added the comment: Brett> The import failures are because you didn't rebuild (I added a new Brett> function to imp). Re-build and the import issues will go away. An easy mistake to make. I'm used to running "make test" which would have guaranteed python.exe was up-to-date.

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

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

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

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

[issue11647] function decorated with a context manager can only be invoked once

2011-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: > The former sounds like fixing the bug, the latter like removing > functionality. So yes, I prefer the former... The reason I'm reluctant is that it makes for a fundamental change in behaviour between the use of an @contextmanager definition as a context manage

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Ned Deily
Ned Deily added the comment: Skip, what parameters are you using with ./configure ? -- nosy: +ned.deily ___ Python tracker ___ ___ Py

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Brett Cannon
Brett Cannon added the comment: You have a build problem, Skip. On my system and at least all of the stable buildbots for 3.3 there are no test failures from imp._fix_co_filename(). -- ___ Python tracker

[issue11659] Fix ResourceWarning in test_subprocess

2011-03-23 Thread Ben Hayden
New submission from Ben Hayden : Adding in a cleanup to close Popen stdout in the function test_select_unbuffered in test_subprocess file in Lib/test dir. There are several tickets about different resource warnings mentioning test_subprocess - but I couldn't find any patches that fix this spec

[issue5863] bz2.BZ2File should accept other file-like objects. (issue4274045)

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

<    1   2