[issue1191964] asynchronous Subprocess

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: I suggest to change the title of the issue to: "subprocess: add non-blocking read and write methods" to avoid the confusion with asyncio subprocess module which runs read and write "in the background" for you. -- nosy: +haypo _

[issue21075] fileinput should use stdin.buffer for "rb" mode

2014-04-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21220] Enhance obmalloc allocation strategy

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: It would also be interesting to compare fragmentation and performances of Python with and without pymalloc, maybe with other heap allocators like FreeBSD jemalloc and Google TCMalloc. -- ___ Python tracker

[issue21220] Enhance obmalloc allocation strategy

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: It was also discussed to replace pymalloc with Windows Low Fragementation Heap (LFH) allocator on Windows: http://bugs.python.org/issue13483#msg148605 -- nosy: +haypo ___ Python tracker

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: "If you want to announce that Python 2.7.x supports large objects on Windows 64 bits, be prepared to have to fix Python in various different places." You can compare which modules define PY_SSIZE_T_CLEAN in Python 2.7 and 3.x. For example, it looks like bz2 an

[issue21069] test_fileno of test_urllibnet intermittently fails when using www.example.com

2014-04-15 Thread Ned Deily
Ned Deily added the comment: Senthil, thanks for looking into this. Since it is turning out to be more of a urllib design issue, I'm going to deassign myself from it. -- assignee: ned.deily -> ___ Python tracker

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: > On Windows, the type of the size parameter of read() is an unsigned int, not > long nor size_t (...) Oh, I read the wrong function. In fact, file_read() of Python 2.7 calls fread() and fread() uses size_t types, even on Windows. To make sure that we are tal

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: On Windows, the type of the size parameter of read() is an unsigned int, not long nor size_t: http://msdn.microsoft.com/en-us/library/1570wh78.aspx FileIO.read() of Python 3 uses a size_t type but also: #ifdef MS_WINDOWS if (size > INT_MAX) size =

[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: This issue is a race condition or bug in the unit test, not in asyncio. The test doesn't check if echo.py is running, if Python started. Python doesn't setup an handler for SIGHUP, it uses the current handler. On my Fedora 20, it looks to be "SIG_DFL": Python

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 16/04/2014 04:40, STINNER Victor a écrit : > > STINNER Victor added the comment: > >> So what is the point of _PyObject_GC_Calloc ? > > It calls calloc(size) instead of malloc(size) No, the question is why you didn't simply change _PyObject_GC_Malloc (which

[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?

2014-04-15 Thread Evens Fortuné
Changes by Evens Fortuné : Added file: http://bugs.python.org/file34905/urllib.request.rst ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21139] Idle: change default reformat width from 70 to 72

2014-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am puzzled at the differences between the 2.7 and 3.4 patches. There are only three differences between the files - from Tkinter import Tk, Text, TclError + from tkinter import Tk, Text, TclError ? ^ - from test.test_support import requires + from test.s

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: New patch: - replace "size_t size" with "size_t nelem, size_t elsize" in the prototype of calloc functions (the parameter names come from the POSIX standard) - replace "int calloc" with "int zero" in helper functions -- Added file: http://bugs.python.o

[issue21069] test_fileno of test_urllibnet intermittently fails when using www.example.com

2014-04-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Ned Deily had done the correct analysis in the msg214947 and has this question - > I don't know whether the file descriptor read is expected to be meaningful > for urllib2/urllib.request. I can see that this test case was for the old behavior where we creat

[issue21069] test_fileno of test_urllibnet intermittently fails when using www.example.com

2014-04-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is turning out be trickier than I ever thought. fileno() returning b'' is just random error. The underlying issue is, *directly* reading from the fp of the socket() is returning a incomplete output at all times. The correct way to read the output is by u

[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2014-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nitika, congrats on first patch. One minor problem: spaces at end of lines. It it my fault for not checking, but try to avoid them anyway. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed

[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset fdadc152b964 by Terry Jan Reedy in branch '2.7': Issue #18566: Clarify unittest setUp, tearDown doc. Patch by Nitika Agarwal. http://hg.python.org/cpython/rev/fdadc152b964 New changeset 9ab66a7f654a by Terry Jan Reedy in branch '3.4': Issue #18566:

[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2014-04-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6490] os.popen documentation is probably wrong

2014-04-15 Thread Sam Kimbrel
Sam Kimbrel added the comment: Yes, I think that wording works a lot better. Thanks for the touch-up. -- ___ Python tracker ___ ___ Pyt

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: In numpy, I found the two following functions: /*NUMPY_API * Allocates memory for array data. */ void* PyDataMem_NEW(size_t size); /*NUMPY_API * Allocates zeroed memory for array data. */ void* PyDataMem_NEW_ZEROED(size_t size, size_t elsize); So it looks

[issue6490] os.popen documentation is probably wrong

2014-04-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: I thought the discussion of the return code was rather complicated and tried rewriting it; new patch attached. Is it an improvement? The new version also specifies the function's parameters. -- nosy: +akuchling Added file: http://bugs.python.org/file3

[issue21246] test_ssl handshake failure

2014-04-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Very old version of openssl? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-l

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: > So what is the point of _PyObject_GC_Calloc ? It calls calloc(size) instead of malloc(size), calloc() which can be faster than malloc()+memset(), see: https://mail.python.org/pipermail/python-dev/2014-April/133985.html _PyObject_GC_Calloc() is used by PyType

[issue8931] '#' has no effect with 'c' type

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1aba042b36c by Eric V. Smith in branch 'default': Close issue #8931: Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff. http://hg.python.org/cpython/rev/b1aba042b36c -- _

[issue20103] Documentation of itertools.accumulate is confused

2014-04-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for your patch! -- assignee: rhettinger -> akuchling nosy: +akuchling resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue20103] Documentation of itertools.accumulate is confused

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e1d2150fff2 by Andrew Kuchling in branch 'default': #20103: Rewrite description of itertools.accumulate(). http://hg.python.org/cpython/rev/9e1d2150fff2 -- nosy: +python-dev ___ Python tracker

[issue21244] distutils fails to build C extensions with XCode 5.1 and OS X 10.9 (Mavericks)

2014-04-15 Thread Ned Deily
Ned Deily added the comment: This is a problem specifically with the Apple-supplied system Pythons in OS X 10.9. It's due to the obsolete configuration parameters used in their build of Python and due to changes in Xcode 5.1. Expect Apple to fix it in an upcoming maintenance release of OS X

[issue1704474] optparse tests fail under Jython

2014-04-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Committed to 2.7, 3.4, and default. Thanks for your patch! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue21069] test_fileno of test_urllibnet intermittently fails when using www.example.com

2014-04-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is the best way I found to reproduce the failure. I changed the resource to www.example.com and then ran this. $ ./python.exe -m test -m "*fileno*" -u all -v -F test_urllibnet -- ___ Python tracker

[issue15840] Ambiguity with regard to the effect of accessing a closed IOBase instance

2014-04-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Committed to 2.7, 3.4, and default. Thanks for your patch! -- nosy: +akuchling resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue1704474] optparse tests fail under Jython

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset c76d782cb9df by Andrew Kuchling in branch '3.4': #1704474: mark refleak test as specific to CPython http://hg.python.org/cpython/rev/c76d782cb9df -- ___ Python tracker

[issue15840] Ambiguity with regard to the effect of accessing a closed IOBase instance

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a27039e4a42 by Andrew Kuchling in branch '3.4': #15840: make docs consistent by saying operations on closed files raise ValueError. http://hg.python.org/cpython/rev/7a27039e4a42 -- ___ Python tracker <

[issue16991] Add OrderedDict written in C

2014-04-15 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20874] Tutorial section on starting python is out of date

2014-04-15 Thread R. David Murray
R. David Murray added the comment: Thanks, Rafael. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue20874] Tutorial section on starting python is out of date

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset cbe0cf95fe37 by R David Murray in branch '3.4': #20874: update tutorial wording: sophisticated line editing is now standard. http://hg.python.org/cpython/rev/cbe0cf95fe37 New changeset b5f4ab357ff9 by R David Murray in branch '3.4': #20874: reflow p

[issue21229] Path used for HTTP PUT request doesn't match the description

2014-04-15 Thread Evens Fortuné
Evens Fortuné added the comment: Is it what you asked? -- keywords: +patch Added file: http://bugs.python.org/file34901/issue21229.patch ___ Python tracker ___ __

[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2014-04-15 Thread Orion Poplawski
Orion Poplawski added the comment: Looks like in the Fedora koji builds, the SIGHUP sigaction is set to SIG_IGN, which causes the processes that the python tests are trying to kill with SIGHUP not to die. Perhaps the koji builders should not be doing that, perhaps the python tests should rese

[issue21245] Logging Logger.exception documentation

2014-04-15 Thread Vinay Sajip
Vinay Sajip added the comment: > Are you sure that Python 3.2 and Python 3.3 don't need updated documentation? As I understand it, the policy is not to do documentation updates for Python versions that will never see new releases. If a 3.x release manager says otherwise, I can revisit it - obv

[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2014-04-15 Thread Orion Poplawski
Orion Poplawski added the comment: It may also be possible that something has set the SIGHUP handler to SIG_IGN when the test is run. -- ___ Python tracker ___ _

[issue17449] dev guide appears not to cover the benchmarking suite

2014-04-15 Thread Jeff Ramnani
Jeff Ramnani added the comment: Now that bug #18586 is closed, could the Dev Guide point benchmarkers to the benchmarks repo and its README? http://hg.python.org/benchmarks/file/9a1136898539/README.txt -- nosy: +jramnani ___ Python tracker

[issue21245] Logging Logger.exception documentation

2014-04-15 Thread Cameron Lee
Cameron Lee added the comment: Are you sure that Python 3.2 and Python 3.3 don't need updated documentation? I don't know for sure if these two version have the code change or not but the http://bugs.python.org/issue15541 seems to indicate that 3.2 at least does. Thanks for the amazing respons

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: Sorry for breaking it up, but the same comment on consistent prototypes mirroring the C standard lib calloc would apply to all the API functions as well, e.g. PyMem_RawCalloc, PyMem_Calloc, PyObject_Calloc and _PyObject_GC_Calloc, not just the structure functi

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: Additional comment on clarity: Might it make sense to make the calloc structure member take both the num and size arguments that the underlying calloc takes? That is, instead of: void* (*calloc) (void *ctx, size_t size); Declare it as: void* (*calloc) (void

[issue21249] removing pythonXY.zip from sys.path results in additional test failures

2014-04-15 Thread Matthias Klose
New submission from Matthias Klose: At least Linux distros never ship pythonXY.zip, so I'm removing it from sys.path to save the extra lookup for a file which never exists. This did work in 2.x and 3.x up to 3.3. In 3.4 it does cause additional test failures: Re-running test 'test_cmd_line_s

[issue21245] Logging Logger.exception documentation

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset dcb5ca1f1b44 by Vinay Sajip in branch '2.7': Issue #21245: updated documentation on exception() method and function. http://hg.python.org/cpython/rev/dcb5ca1f1b44 New changeset eee4fd2012ae by Vinay Sajip in branch '3.4': Issue #21245: updated docum

[issue21069] test_fileno of test_urllibnet intermittently fails when using www.example.com

2014-04-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am getting to this late. >> I don't know whether the file descriptor read is expected to be meaningful >> for urllib2/urllib.request. >> Senthil, what do you think? It should be meaningful no matter what the length is. I am looking further into this now.

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: General comment on patch: For the flag value that toggles zero-ing, perhaps use a different name, e.g. setzero, clearmem, initzero or somesuch instead of calloc? calloc already gets used to refer to both the C standard function and the function pointer structu

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-15 Thread Larry Hastings
Larry Hastings added the comment: D'oh, yeah, you guys are right. SSIZE_T_MAX > LONG_MAX, so that's an improvement. We just can't do the full size_t range. -- ___ Python tracker _

[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2014-04-15 Thread Orion Poplawski
Orion Poplawski added the comment: Hmm, looking at things a little closer, it looks like the SIGHUP is arriving very early, perhaps too early? -- ___ Python tracker ___

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-15 Thread Matt Mackall
Matt Mackall added the comment: Actually, no, all the size_t types are 64-bit on Windows 64: https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models To confirm this, I found someone nearby with a 64-bit Windows and he had no trouble allocating a 3G string with a = b'a' * 30.

[issue21248] BROWSER env var described inaccurately in webbrowser docs

2014-04-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Which may be sane thing thing do. So the docs could be made better. Like - the list of browsers specified in env var BROWSER is tried first before looking at the platform defaults. -- nosy: +orsenthil ___ Python tr

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: So what is the point of _PyObject_GC_Calloc ? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21248] BROWSER env var described inaccurately in webbrowser docs

2014-04-15 Thread David Turner
New submission from David Turner: https://docs.python.org/2/library/webbrowser.html says "If the environment variable BROWSER exists, it is interpreted to override the platform default list of browsers, as a os.pathsep-separated list of browsers to try in order." This is not actually what happ

[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2014-04-15 Thread Orion Poplawski
New submission from Orion Poplawski: Trying to build Python 3.4.0 for Fedora we are seeing test_asyncio test_subprocess_send_signal hang every time, on all architectures. Unfortunately I cannot reproduce this locally. These builds are done inside of chroots, and the host has the kernel versi

[issue21060] Better error message for setup.py upload command without sdist

2014-04-15 Thread Jeff Ramnani
Jeff Ramnani added the comment: Attaching a patch with a (hopefully) more useful error message. I didn't find a good place to add this information in the "Distributing Python Modules" section of the docs, but let me know if you had a place in mind. -- keywords: +patch nosy: +jramnani A

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue16991] Add OrderedDict written in C

2014-04-15 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: Here is a first patch adding the following functions: void* PyMem_RawCalloc(size_t n); void* PyMem_Calloc(size_t n); void* PyObject_Calloc(size_t n); PyObject* _PyObject_GC_Calloc(size_t); It adds the following field after malloc field to PyMemAllocator

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think we can fix this. file_read returns a str, and str can have at most SSIZE_T_MAX entries. So, file_read could read size_t characters, but it couldn't return them. But at least it could read more than LONG_MAX characters. -- __

[issue21239] unittest.mock.patch.stopall intermittently doesn't work when the same thing is patched multiple times

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 727b7e9c40e3 by Michael Foord in branch '3.4': Closes issue 21239. unittest.mock.patch.stopall() did not work deterministically when the same name was patched multiple times. http://hg.python.org/cpython/rev/727b7e9c40e3 -- nosy: +python-de

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Yury Selivanov
Yury Selivanov added the comment: Nick, good catch. OK, let's just deprecate it in the docs for 3.5, so people (hopefully) will not write new code with it. -- ___ Python tracker ___

[issue21245] Logging Logger.exception documentation

2014-04-15 Thread Vinay Sajip
Vinay Sajip added the comment: Removed Python versions which are not receiving changes. -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ _

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Nick Coghlan
Nick Coghlan added the comment: Note that getargspec() depends on getfullargspec() so deprecating the latter *will* cause issues for single-source code (unless they switch to using the funcsigs backport). -- ___ Python tracker

[issue6490] os.popen documentation is probably wrong

2014-04-15 Thread Sam Kimbrel
Sam Kimbrel added the comment: Updated the patch as per Martin's notes in msg203483. -- nosy: +sam.kimbrel Added file: http://bugs.python.org/file34896/6490-os-popen-docs.diff ___ Python tracker

[issue1704474] optparse tests fail under Jython

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1ef419c0cfb by Andrew Kuchling in branch '2.7': #1704474: mark refleak test as specific to CPython http://hg.python.org/cpython/rev/a1ef419c0cfb -- nosy: +python-dev ___ Python tracker

[issue2159] dbmmodule inquiry function is performance prohibitive

2014-04-15 Thread Eric Olson
Eric Olson added the comment: Make the changes backward compatible after getting input on possible problems from r.david.murray patch: dbm_bool_c.patch Now, the only change should be faster performance for bool(db). -- versions: +Python 3.5 Added file: http://bugs.python.org/file3489

[issue1677872] Efficient reverse line iterator

2014-04-15 Thread James Emerton
behaviour when a newline ends up as the last byte of a new chunk. -- nosy: +jemerton Added file: http://bugs.python.org/file34894/readprevline-20140415.diff ___ Python tracker <http://bugs.python.org/issue1677

[issue21246] test_ssl handshake failure

2014-04-15 Thread ddve...@ucar.edu
New submission from ddve...@ucar.edu: Not sure if this is related with issue #13626 which is the only thing that Google knows about these handshake failures. In case it matters: $ openssl version OpenSSL 1.0.1f 6 Jan 2014 == CPython 2.7.6 (default, Apr 14 2014, 15:12:21) [GCC 4.8.2] == Linux

[issue21245] Logging Logger.exception documentation

2014-04-15 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +vinay.sajip, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue21245] Logging Logger.exception documentation

2014-04-15 Thread Cameron Lee
New submission from Cameron Lee: The documentation doesn't indicate that the Logger.exception method can accept kwargs like the other logging methods (Logger.debug, Logger.info, etc...) such as exc_info, stack_info, and extra. https://docs.python.org/2.7/library/logging.html#logging.Logger.exc

[issue15840] Ambiguity with regard to the effect of accessing a closed IOBase instance

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c7cf0e598e7 by Andrew Kuchling in branch '2.7': #15840: make docs consistent by saying operations on closed files raise ValueError. http://hg.python.org/cpython/rev/0c7cf0e598e7 -- nosy: +python-dev ___

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-15 Thread Larry Hastings
Larry Hastings added the comment: I don't think we can fix this. file_read returns a str, and str can have at most SSIZE_T_MAX entries. So, file_read could read size_t characters, but it couldn't return them. -- ___ Python tracker

[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2014-04-15 Thread Michael Foord
Michael Foord added the comment: Patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue15795] Zipfile.extractall does not preserve file permissions

2014-04-15 Thread Glenn Jones
Glenn Jones added the comment: Patch with docs and tests fixed -- Added file: http://bugs.python.org/file34893/issue15795_test_and_doc_fixes.patch ___ Python tracker ___

[issue12916] Add inspect.splitdoc

2014-04-15 Thread Yury Selivanov
Yury Selivanov added the comment: David: > The precedent has already been set by the 'cleandoc' function, I think. This > one seems to go right along with that one. What do you think if we keep the function in pydoc module, but document it and make it public? I agree, that there is a preced

[issue21225] io.py: Improve docstrings for classes

2014-04-15 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- components: +IO versions: +Python 2.7, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5420] Queue deprecation warning patch

2014-04-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: No news for 2 years. -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue18401] Tests for pdb import ~/.pdbrc

2014-04-15 Thread Sam Kimbrel
Sam Kimbrel added the comment: Picked up Martin's patch and added docs, misc/NEWS entry, and a test for readrc=False behavior. -- nosy: +sam.kimbrel Added file: http://bugs.python.org/file34892/18401-pdb-readrc-kwarg-with-docs-and-tests.diff ___ Pyt

[issue21222] Mock create_autospec with name argument fails

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset d471b0d38516 by Kushal Das in branch '3.4': Closes Issue 21222. http://hg.python.org/cpython/rev/d471b0d38516 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed __

[issue7850] platform.system() should be "macosx" instead of "Darwin" on OSX

2014-04-15 Thread Caelyn McAulay
Caelyn McAulay added the comment: Added aliased option to platform.system(). I used the same system_alias method as platform.platform(), so the result of the aliased version will match the system entry of the aliased platform.platform(). Added to platform.system unit test to test new function

[issue17160] test_urllib2net fails

2014-04-15 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: Reopening, since this is still broken in Python 2.7.6 I wonder why do we have to use real websites instead of mocks for this test. And if there are really really really really good reasons, if we can use example.com instead as in issue #20939 (maybe that is

[issue12916] Add inspect.splitdoc

2014-04-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Yury, what's your feedback about this point? Thanks -- ___ Python tracker ___ ___ Python-bugs-list

[issue17660] mock.patch could whitelist builtins to not need create=True

2014-04-15 Thread Éric Araujo
Éric Araujo added the comment: I noticed this in the commit; I don’t think the rendered output is really ugly, but the markup does look strange, as it’s two nested note(-like) directives. -- ___ Python tracker ___

[issue21222] Mock create_autospec with name argument fails

2014-04-15 Thread Michael Foord
Michael Foord added the comment: Looks good to me, but please change qobj and add a NEWS entry. -- ___ Python tracker ___ ___ Python-b

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Need your feedback for this patch Thank you -- Added file: http://bugs.python.org/file34890/issue20438_deprecate_inspect_getfullargspec-2.patch ___ Python tracker __

[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-04-15 Thread ddve...@ucar.edu
Changes by ddve...@ucar.edu : -- nosy: +ddve...@ucar.edu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue17660] mock.patch could whitelist builtins to not need create=True

2014-04-15 Thread Michael Foord
Michael Foord added the comment: Personally I don't think it looks ugly and that it is a point worth calling out. Other opinions welcomed. -- ___ Python tracker ___

[issue21244] distutils fails to build C extensions with XCode 5.1 and OS X 10.9 (Mavericks)

2014-04-15 Thread Kent Frazier
New submission from Kent Frazier: Using the stock Python shipped by Apple with OS X 10.9 Mavericks and XCode 5.1, Mercurial (and other Python extensions) encounter an error like: cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-04-15 Thread R. David Murray
Changes by R. David Murray : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-04-15 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-04-15 Thread Christian Theune
Changes by Christian Theune : Added file: http://bugs.python.org/file34888/762d11a72249.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-04-15 Thread Christian Theune
Changes by Christian Theune : -- keywords: +patch Added file: http://bugs.python.org/file34887/125e080bbe15.diff ___ Python tracker ___ __

[issue21234] __contains__ and friends should check "is" for all elements first

2014-04-15 Thread Jurjen N.E. Bos
Jurjen N.E. Bos added the comment: Well, I partially agree. I see the following points: Against my proposal: - For *very* big containers, it can be slower in the case the object is early in the container, as you pointed out. - Current behaviour is easier to understand. OTOH, fore the proposal:

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-04-15 Thread Christian Theune
Changes by Christian Theune : -- hgrepos: +236 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-04-15 Thread Christian Theune
Changes by Christian Theune : -- hgrepos: +235 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue2159] dbmmodule inquiry function is performance prohibitive

2014-04-15 Thread Eric Olson
Eric Olson added the comment: Uploading patch with minor test changes (dbm_bool_b.patch). Backwards compatibility note: Result of running bool(db) on a db that has been closed: Old: _dbm.error: DBM object has already been closed With patch: returns False instead of raising. I think this is

[issue17660] mock.patch could whitelist builtins to not need create=True

2014-04-15 Thread Berker Peksag
Berker Peksag added the comment: +.. note:: I think using a note directive is not necessary here. Also it looks a bit ugly :) https://dl.dropboxusercontent.com/u/166024/issue17660.png +.. versionchanged:: 3.5 + If you are patching builtins in a module then you don't +

[issue21223] fix test_site/test_startup_imports when some of the extensions are built as builtins

2014-04-15 Thread Matthias Klose
Changes by Matthias Klose : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21236] patch to use cabinet.lib instead of fci.lib (fixes build with Windows SDK 8.0)

2014-04-15 Thread Ned Deily
Changes by Ned Deily : -- components: +Build nosy: +loewis, zach.ware type: compile error -> ___ Python tracker ___ ___ Python-bugs-l

  1   2   >