[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

[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

[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

[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

[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

[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

[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

[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.

[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

[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://

[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: +asvetlov -Christophe Simonis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[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

[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 ___ _

[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

[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. >>> (-

[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

[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),

[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 _

[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). 

[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

[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

[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 ___ ___

[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'

[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

[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 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

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Jack Jansen
Jack Jansen added the comment: Sorry, I think I wasn't clear in my original message. I don't want to debug Python, I want to debug only my own code. But because it embeds Python I cannot debug my own code, because it needs to link to Python. Indeed, if it was only Python itself I would have b

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Brian Curtin
Brian Curtin added the comment: I believe there was a previous request for this which was rejected, likely for reasons Amaury listed. -- nosy: +brian.curtin, loewis ___ Python tracker

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: But for a debug build to be really useful, the source code must be available to the debugger. Compiling these source files is really a matter of minutes... provided that external dependencies are all present and also compiled in debug mode. -- n

[issue8754] ImportError: quote bad module name in message

2011-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f9b7b656761 by Brett Cannon in branch 'default': Have importlib use the repr of a module name in error messages. http://hg.python.org/cpython/rev/9f9b7b656761 -- nosy: +python-dev ___ Python tracker

[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, interesting that Content-Length is returned as a comma separated value of ints. Normally, this behavior is observed for other headers which can have multiple values and urllib appends the subsequent values of the header for e.g. Content-Type header. c

[issue11656] Debug builds for Windows would be very helpful

2011-03-23 Thread Jack Jansen
New submission from Jack Jansen : Because VC++ cannot cross-link modules that have been built with debugging to those built without debugging (because of runtime system differences) it would be a boon for people embedding Python if there was a binary distribution of the DLL (and .lib) availabl

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

2011-03-23 Thread STINNER Victor
STINNER Victor added the comment: Sorry to ask that, but would it be possible to write an automated test for this issue? -- ___ Python tracker ___ _

[issue8754] ImportError: quote bad module name in message

2011-03-23 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2011-03-23 Thread reedobrien
Changes by reedobrien : -- nosy: +reedobrien ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11655] map() must not swallow exceptions from PyObject_GetIter

2011-03-23 Thread Lukas Lueg
New submission from Lukas Lueg : The built-in function map() currently swallows any exception that might have occured while trying to get an iterator from any parameter. This produces unexpected behaviour for applications that require a certain type of exception to be raised when __iter__() is

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

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > We can either hack this to work by providing ContextDecorator with a > way to get the underlying context manager to create a new copy of > itself each time, or else revert to the 3.1 status quo and declare > that context managers created via contextlib.context

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-23 Thread Brett Cannon
Brett Cannon added the comment: The attached patch has both the code to make test skipping more obvious as well as eliminating the concept of expected skips. If someone can double-check that what I am doing here is sane and desirable I would appreciate it. -- assignee: brett.cannon -

[issue11653] Problems with some tests using -j2

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

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

2011-03-23 Thread Davide Rizzo
Davide Rizzo added the comment: The faulty behavior was presumably introduced in r36346, when the continue statement was removed. I already linked the relevant discussion, but I'm not sure whether that was a desired change or just an oversight. I'm inclined to believe the latter, as it wouldn

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine> Skip, can you please try "make distclean" and then rebuild from > Antoine> scratch? > > I did. The last output was after Oops, sorry. > I will try one more time later this evening with a capital "W". I have a > train to catch first. Well, if

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> Skip, can you please try "make distclean" and then rebuild from Antoine> scratch? I did. The last output was after make distclean ./configure ... my usual suspects ... make ./python.exe -j2 -w I will try one more time later this

[issue11606] maxlinelen exceeded by email module's body_encode() function

2011-03-23 Thread R. David Murray
R. David Murray added the comment: Michael, in general your approach looks sound and is much easier to read and comprehend than the original code (which, as the comments say, was never refined from the original quick and dirty hack). However, rather than dynamically defining sub-functions ea

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Éric Araujo
Éric Araujo added the comment: I think the pydoc failure is due to haypo’s patch in #3080. Another patch (by me) in #8754 has a fix. -- nosy: +eric.araujo, haypo ___ Python tracker __

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Brett, -W exists too and it seems it failed working here. Skip, can you please try "make distclean" and then rebuild from scratch? -- nosy: +pitrou ___ Python tracker ___

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
Skip Montanaro added the comment: Thanks. That worked better. Here is the tail end of the output showing the verbose test output. -- Added file: http://bugs.python.org/file21362/output ___ Python tracker ___

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Nadeem Vawda
Nadeem Vawda added the comment: Looking at the actual times with -j0, I don't think there is any need to keep quicktest - with the removal of the duplicate test, I can do a full run in 3m16s (on a debug build; non-debug takes 1m54s), which seems plenty fast enough. One thing I noticed about the

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file21360/cfpolling3.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, test didn't work under Windows. Here is a new patch. -- Added file: http://bugs.python.org/file21361/cfpolling3.patch ___ Python tracker

[issue7391] Re-title the "Using Backslash to Continue Statements" anti-idiom

2011-03-23 Thread Éric Araujo
Éric Araujo added the comment: More links for the future update of doanddonts are under http://uthcode.sarovar.org/python.html#simple-is-better-than-complex -- ___ Python tracker __

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here is a new patch with an additional test for the atexit hook. If you don't object, I would like to start committing the test changes, and then the code changes themselves. -- stage: needs patch -> patch review versions: +Python 3.2 Added file:

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

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (Oh - when will i get this tracker right? Is there somewhere *real* documentation which applies to what actually happens?? Sorry once again, all of you!) -- ___ Python tracker

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

2011-03-23 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : -- components: -IO nosy: +akuchling title: CTRL-Z causes interpreter exit -> Faulty RESTART/EINTR handling in Parser/myreadline.c versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue11654] errors in atexit hooks don't change process exit code

2011-03-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : Not sure if it's the desired behaviour, so I'm reporting it: $ ./python -c "import atexit; atexit.register(lambda: 1/0)" && echo success Error in atexit._run_exitfuncs: ZeroDivisionError: division by zero [36956 refs] success -- components: Interpret

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: [versions=Python 3.2,Python 3.1,Python 2.7;nosy:+akuchling] Reply-To: In-Reply-To: <1300905163.47.0.72975942018.issue11...@psf.upfronthosting.co.za> On Wed, Mar 23, 2011 at 06:32:43PM +, Charles-Francois Natali wrote: > my_fgets Parser/myreadline.c

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Sorry, I didn't read an error message very carefully. When I apply your patch > I see: > > >>> from concurrent.futures import * > >>> from time import * > >>> t = ThreadPoolExecutor(5) > >>> t.submit(sleep, 100) > > >>> > Error in atexit._run_exitfuncs: >

[issue11635] concurrent.futures uses polling

2011-03-23 Thread Brian Quinlan
Brian Quinlan added the comment: Sorry, I didn't read an error message very carefully. When I apply your patch I see: >>> from concurrent.futures import * >>> from time import * >>> t = ThreadPoolExecutor(5) >>> t.submit(sleep, 100) >>> Error in atexit._run_exitfuncs: NameError: global name

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Brett Cannon
Brett Cannon added the comment: I have attached a Python script which does what Antoine's patch does except which is expected to live in Tools/scripts. The perk of doing this in a Python script is that Windows users will be able to simply execute the script while the Makefile can be made to e

[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol

2011-03-23 Thread R. David Murray
R. David Murray added the comment: Thanks again, Michael. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol

2011-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 45cc298d40eb by R David Murray in branch '3.1': #11590: fix quoprimime decode handling of empty strings and line endings. http://hg.python.org/cpython/rev/45cc298d40eb New changeset df613f7b726a by R David Murray in branch '3.2': Merge #11590: fix

[issue11633] regression: print buffers output when end=''

2011-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I completely agree that file/socket output should be left alone. Flushing char by char to either is a bit insane. The two interactive to screen use cases I can think of are text progress meters, mentioned by Anatoly, such as : Working (1 dot printed at

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I committed the "-j0" part of the patch in d8dd7ab6039d. Brett made the point on #python-dev that a Makefile change doesn't help Windows users. Instead, we may have a Python script somewhere that both "make test" and "make quicktest" call. -- nosy: +

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Brett Cannon
Brett Cannon added the comment: It should have been '-w', not '-W'. -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-lis

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo added the comment: The patch works fine, thank you. I was trying the same fix, but got stuck trying to understand what led to the decision in issue 960406. Still not sure. -- ___ Python tracker

[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol

2011-03-23 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray stage: -> patch review type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker _

[issue11589] Additional tests for email module

2011-03-23 Thread R. David Murray
R. David Murray added the comment: Thanks, Michael! I tweaked the patch slightly: deleted that test-writing-helper check you had marked with the XXX, and renamed the helper test methods to _test_XXX. I also didn't wind up applying it to 2.7 because hg doesn't support merge markers when doin

[issue11589] Additional tests for email module

2011-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3dbea3fa73fb by R David Murray in branch '3.1': #11589: add additional tests for the email quoprimime module. http://hg.python.org/cpython/rev/3dbea3fa73fb New changeset 04c9c831803b by R David Murray in branch '3.2': Merge #11589: add additional t

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: my_fgets in Parser/myreadline.c is broken: There's a comment saying that a fgets is retried on EINTR, but the code doesn't retry. It used to in older cPython versions, but there was also a bug, so my guess is that this bug has been here for a long tim

[issue11244] Negative tuple elements produce inefficient code.

2011-03-23 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in 'default' branch. Note that the regression still exists in 3.2; I'm not sure that it's worth backporting the two fixes. -- status: open -> closed ___ Python tracker __

[issue11244] Negative tuple elements produce inefficient code.

2011-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset ead9c1b9f547 by Mark Dickinson in branch 'default': Issue #11244: Remove outdated peepholer check that was preventing the peepholer from folding -0 and -0.0. Thanks Eugene Toder for the patch. http://hg.python.org/cpython/rev/ead9c1b9f547 ---

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

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya added the comment: This affects urllib, as well: C:\Users\santa>python Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import urllib >>> request = 'http://wwwsearch.so

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Ross Lagerwall
Ross Lagerwall added the comment: The patch seems to work. I agree that quicktest and memtest should be removed as well as the duplicate test. The only thing I would change is to create the number of jobs to be double the cpu count - I think this works quicker. I don't think the length of t

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11652] urlib2 returns a pair of integers as the content-length value

2011-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Interesting, the Content-Length header was sent twice: HTTP/1.1 200 OK Server: Apache/2.2.3 (CentOS) Last-Modified: Sat, 07 Feb 2009 19:15:15 GMT ETag: "46aef-46258f510b6c0" Content-Length: 289519 Expires: Fri, 25 Mar 2011 17:32:49 GMT Content-Type: applicat

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ezio.melotti, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue11652] urlib2 returns a pair of integers as the content-length value

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya added the comment: Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import urllib2 >>> request = >>> 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.zi

[issue11653] Problems with some tests using -j2

2011-03-23 Thread Skip Montanaro
New submission from Skip Montanaro : At Antoine's behest, I tried running ./python.exe -m test -j2 in my cpython sandbox and saw several test case failures which didn't appear when I executed a simple make test He suggested I add the -W flag and try again. I did, but I don't see any di

[issue11629] Reference implementation for PEP 397

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

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 23, 2011, at 04:22 PM, Antoine Pitrou wrote: >What does "brown paper bag way" mean? It seems to be some kind of urban >legend at this point. A merge won't magically break all C files and >prevent Python from compiling. Especially if no C files were touc

[issue11652] urlib2 returns a pair of integers as the content-length value

2011-03-23 Thread Billy Saelim
New submission from Billy Saelim : urlopen does not always return a single value for 'content-length'. For example: >>> import urllib2 >>> request = >>> 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.zip' >>> fp = urllib2.urlopen(request) >>> fp.info().dict {'content-length

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > You've now merged any changes that have come in since you did your thorough > tests, and you're trying to beat the other guy to the push. You want > something that can run *fast* and just proves that the merge didn't hose > Python in some brown paper bag way.

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 23, 2011, at 04:06 PM, Antoine Pitrou wrote: >Sorry, that's completely bogus. If a "merge race" may introduce a regression, >then there's no reason the regression will occur in the non-blacklisted >tests. Have you heard of Murphy's law? That's not the

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is there any reason not to add "-j0" for testall as well? Have you looked at the patch? :) > Are these really necessary in a push-race, > post-local-merge, does Python crash-and-burn case? Yes, they are. If they are not significant, they should be removed.

[issue3080] Full unicode import system

2011-03-23 Thread STINNER Victor
STINNER Victor added the comment: test the fixed nosy list -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Davide Rizzo
Davide Rizzo added the comment: You are right. The previous runs were without readline. With readline it behaves as expected. For the sake of completeness, here's the output of your snippet after Ctrl+Z, fg: getchar: Interrupted system call -- ___

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Nadeem Vawda
Nadeem Vawda added the comment: >- when "-j0" is passed to regrtest, use the cpu count detected by >multiprocessing >- remove the duplicate test in "make test" >- add "-j0" to the test options in make test +1. The duplicate test seems quite wasteful (outside of testall). Is there any reason no

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: r.david.murray -> nosy: +ezio.melotti -georg.brandl, python-dev, r.david.murray priority: release blocker -> ___ Python tracker ___ __

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +georg.brandl -pitrou priority: -> release blocker versions: +Python 3.2 ___ Python tracker ___ ___

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: -ezio.melotti, georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue2771] Test issue

2011-03-23 Thread Ezio Melotti
Ezio Melotti added the comment: testing nosy -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 23, 2011, at 03:14 PM, Antoine Pitrou wrote: >> test_mmap >> test_shelve >> test_posix >> test_largefile >> test_concurrent_futures > >Why would you blacklist these tests? They are useful. Please keep in mind the use case. Are these really necessary i

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: In that case, it's likely due to the way OS-X handles interrupted syscalls. Under Linux, getchar and friends (actually read with default SA_RESTART) won't return EINTR on (SIGSTOP|SIGTSTP)/SIGCONT. Under OS-X, it seems that e.g. getchar (read) does ret

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I propose instead to change 'make quicktest' to use -j(N>1) and blacklist the > following tests: > > test_mmap > test_shelve > test_posix > test_largefile > test_concurrent_futures Why would you blacklist these tests? They are useful. I agree with Skip's la

[issue11629] Reference implementation for PEP 397

2011-03-23 Thread David Fraser
Changes by David Fraser : -- nosy: +davidfraser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I propose instead to change 'make quicktest' to use -j(N>1) and blacklist the following tests: test_mmap test_shelve test_posix test_largefile test_concurrent_futures Then (for me) it runs in 3m20s wall clock time which is totally reasonable and I think als

[issue11651] Improve test targets in Makefile

2011-03-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : Summary: - remove "make quicktest" and "make memtest" - when "-j0" is passed to regrtest, use the cpu count detected by multiprocessing - remove the duplicate test in "make test" - add "-j0" to the test options in make test The patch is against default but p

[issue11650] CTRL-Z causes interpreter exit

2011-03-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: The exit status code is always 0. It seems to me somewhere in a run() somebody sets some 'do exit' and thus causing a normal exit. But i really can't find something down in pythonrun.c at a short glance (and i just dived shallow into Python yet), and

[issue9523] Improve dbm modules

2011-03-23 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

  1   2   >