[issue19023] ctypes docs: Unimplemented and undocumented features

2015-02-20 Thread Martin Panter
Martin Panter added the comment: Posting a new patch, rebased against the recent “default” (3.5) branch: * Tweaked so that sentences start with a capital letter * Added _Pointer.contents -- Added file: http://bugs.python.org/file38195/arrays-pointers.v3.patch __

[issue22113] memoryview and struct.pack_into

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benjamin, what are your thoughts as RM? > Something similar should be applied to 3.x because PyObject_AsWriteBuffer() > is deprecated and not safe. Done in issue22896. -- nosy: +benjamin.peterson ___ Python track

[issue20204] pydocs fails for some C implemented classes

2015-02-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue15955] gzip, bz2, lzma: add option to limit output size

2015-02-20 Thread Nikolaus Rath
Nikolaus Rath added the comment: Attached is a patch for the bz2 module. -- Added file: http://bugs.python.org/file38194/issue15955_bz2.diff ___ Python tracker ___ __

[issue16786] argparse doesn't offer localization interface for "version" action

2015-02-20 Thread Pavel Roskin
Pavel Roskin added the comment: I have tested the patch. It fixes the problem for me. You are right, new programs would just supply translated help to the version action. No effort would be saved. But the programs updated from the deprecated syntax may rely on a separate string list for trans

[issue21793] httplib client/server status refactor

2015-02-20 Thread Martin Panter
Martin Panter added the comment: I think you will find the error logging was already fine, since it already uses %d: 127.0.0.1 - - [21/Feb/2015 04:02:06] code 404, message File not found 127.0.0.1 - - [21/Feb/2015 04:02:06] "GET /nonexistant HTTP/1.1" HTTPStatus.NOT_FOUND - The new codes in t

[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-02-20 Thread Davin Potts
Davin Potts added the comment: Of course, there's code in the wild that expects and uses the parameter named 'block' so simply changing this keyword will result in breaking others' code. Two potentially appealing options: 1) Document that acquire in multiprocessing differs from threading in thi

[issue21793] httplib client/server status refactor

2015-02-20 Thread Demian Brecht
Demian Brecht added the comment: Latest patch should address all comments. It also fixes the same issue in error logging which wasn’t previously accounted for. The test file has also been updated with using HTTPStatus where possible rather than hard coded ints. This is consistent with other ar

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2015-02-20 Thread Steven Barker
Steven Barker added the comment: Another Stack Overflow user pointed out that the DictWriter's writerows implementation (in pure Python) unnecessarily converts whatever its argument is into a list in memory before passing it on to the builtin writer.writerows method which would accept any iter

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-02-20 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2015-02-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: Is it even legal to have non-string keys in a JSON object? If they must be strings, and they must be unique, I don't think a key argument is necessary (and it would save the generation of the key array; not doing the work is faster than doing the work more eff

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread Davin Potts
Davin Potts added the comment: You make an overall valid point that despite reading the documentation, the resulting behavior of your code was not what you expected -- I take that specific complaint very seriously anytime anyone makes it. Regarding your recommendations: I) Unfortunately this

[issue23215] MemoryError with custom error handlers and multibyte codecs

2015-02-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue23215] MemoryError with custom error handlers and multibyte codecs

2015-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset af8089217cc6 by Serhiy Storchaka in branch '2.7': Issue #23215: Multibyte codecs with custom error handlers that ignores errors https://hg.python.org/cpython/rev/af8089217cc6 New changeset 4dc8b7ed8973 by Serhiy Storchaka in branch '3.4': Issue #232

[issue21934] OpenBSD has no /dev/full device

2015-02-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue21793] httplib client/server status refactor

2015-02-20 Thread Demian Brecht
Demian Brecht added the comment: > On Feb 20, 2015, at 2:50 PM, Serhiy Storchaka wrote: > > if isinstance(code, HTTPStatus): >code = '%d' % code That’s what I’m intending on doing. It’s definitely not as contained as changing the __str__ implementation of HTTPStatus. That said, I understa

[issue21793] httplib client/server status refactor

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would write just: if isinstance(code, HTTPStatus): code = '%d' % code -- ___ Python tracker ___ ___

[issue21793] httplib client/server status refactor

2015-02-20 Thread Martin Panter
Martin Panter added the comment: One option might be changing log_request() from self.log_message('"%s" %s %s', self.requestline, str(code), str(size)) to self.log_message('"%s" %s %s', self.requestline, format(code), size) Using str() is redundant with %s, a

[issue5700] io.FileIO calls flush() after file closed

2015-02-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue5700] io.FileIO calls flush() after file closed

2015-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7052206ad381 by Serhiy Storchaka in branch '2.7': Issue #5700: io.FileIO() called flush() after closing the file. https://hg.python.org/cpython/rev/7052206ad381 New changeset 36f5c36b7704 by Serhiy Storchaka in branch '3.4': Issue #5700: io.FileIO()

[issue23297] ‘tokenize.detect_encoding’ is confused between text and bytes: no ‘startswith’ method on a byte string

2015-02-20 Thread R. David Murray
R. David Murray added the comment: The error message could indeed be made clearer by turning it into a message that tokenize itself requires bytes input. Or, more likely, the additional error handling needs to be in detect_encoding. -- ___ Python t

[issue5700] io.FileIO calls flush() after file closed

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree, the test in test_fileio is redundant. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22834] Unexpected FileNotFoundError when current directory is removed

2015-02-20 Thread Martin Panter
Martin Panter added the comment: +1 to EINVAL, also the bug reference comment is redundant with the one at the top of the test case :) -- ___ Python tracker ___

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread juj
juj added the comment: While the test case can be 'fixed' by changing the code to use "if __name__ == '__main__'", and I'm ok to do it in my code to work around the problem, I would argue the following: 1) calling this not a bug (or solving it only at documentation level) does not at all feel

[issue23374] pydoc 3.x raises UnicodeEncodeError on sqlite3 package

2015-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7b6b1f57268 by Serhiy Storchaka in branch '3.4': Issue #23374: Fixed pydoc failure with non-ASCII files when stdout encoding https://hg.python.org/cpython/rev/e7b6b1f57268 New changeset affe167a45f3 by Serhiy Storchaka in branch 'default': Issue #2

[issue23374] pydoc 3.x raises UnicodeEncodeError on sqlite3 package

2015-02-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue11145] '%o' % user-defined instance

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I didn't find any issues with the last patch. Could you please point on them? -- ___ Python tracker ___ __

[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-02-20 Thread Davin Potts
Davin Potts added the comment: Interesting! The documentation in 3.4 as well as 2.7 indicates that the keyword should be 'blocking' yet the code implements this as 'block'. Code to reproduce empirically what is actually implemented: import multiprocessing dummy_lock = multiprocessing.Lock() du

[issue23494] adding timedelta to datetime object is not timezone aware

2015-02-20 Thread R. David Murray
R. David Murray added the comment: the tzinfo object is responsible for handling daylight savings time. This looks like a bug in pytz. -- components: +Library (Lib) -Distutils nosy: +belopolsky, r.david.murray -dstufft, eric.araujo ___ Python tracke

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread Davin Potts
Davin Potts added the comment: I should have added in my prior comments: juj: thank you very much for providing the info about the platform you tested on and even an example piece of code that triggered the problem. I wish all issues came with the level of info you provided. -- ___

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread Davin Potts
Davin Potts added the comment: There are at least two issues at play here. Running the attached file on OS X produces starkly different results -- console prints: CREATED TEMP DIRECTORY /var/folders/s4/tc1y5rjx25vfknpzvnfh1b14gn/T/temp_z6I0BA task1 task2 ATEXIT: REMOVING TEMP DIRECTORY /

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2015-02-20 Thread Steven Barker
New submission from Steven Barker: The documentation for the csv.writer.writerows method says that it expects "a list of row objects", when it really will accept any iterable that yields rows (such as a generator). While it's often nice for code to be more accepting than the documented require

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-02-20 Thread John Nagle
John Nagle added the comment: The "fix" in Ubuntu was to the Ubuntu certificate store, which is a directory tree with one cert per file, with lots of symbolic links with names based on hashes to express dependencies. Python's SSL isn't using that. Python is taking in one big text file of SSL

[issue23494] adding timedelta to datetime object is not timezone aware

2015-02-20 Thread Gil Shotan
New submission from Gil Shotan: I encountered a strange bug involving timezone aware datetime objects and timedelta objects. The crux of the matter is that daylight savings time is considered a different timezone, and therefore the timezone of a datetime object is date dependent. However, add

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report paul. -- assignee: -> serhiy.storchaka components: +Interpreter Core resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5 ___ Python tracker

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Can we use here then? It is for PyObjects. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 038297948389 by Serhiy Storchaka in branch '3.4': Issue #23490: Fixed possible crashes related to interoperability between https://hg.python.org/cpython/rev/038297948389 New changeset 56c6a4bce996 by Serhiy Storchaka in branch 'default': Issue #2349

[issue6820] Redefinition of HAVE_STRFTIME can cause compiler errors.

2015-02-20 Thread Mark Lawrence
Mark Lawrence added the comment: Having had another look the patch is not acceptable as the majority of the changes are to whitespace only. -- ___ Python tracker ___

[issue14484] missing return in win32_kill?

2015-02-20 Thread Mark Lawrence
Mark Lawrence added the comment: #14480 "os.kill on Windows should accept zero as signal" references this. It seems that we either go all the way and change the code as Victor has suggested or keep the status quo and change the docs as Zach has said. Thoughts? -- nosy: +steve.dower

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-02-20 Thread Laura Creighton
Laura Creighton added the comment: In https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1014640 it says : FIX: Fixed in Ubuntu 14.04 apparently. Openssl upstream, see http://rt.openssl.org/Ticket/Display.html?id=2732 But I think the person who wrote that launchpad note was mistaken, as the

[issue23342] run() - unified high-level interface for subprocess

2015-02-20 Thread Thomas Kluyver
Thomas Kluyver added the comment: Can I interest any of you in further review? I think I have responded to all comments so far. Thanks! -- ___ Python tracker ___ ___

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-02-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This may be related to a known, and fixed, OpenSSL bug. Where do you see that the bug is fixed? -- nosy: +pitrou ___ Python tracker ___ _

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-02-20 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23458] [2.7] random: make the file descriptor non-inheritable (on POSIX)

2015-02-20 Thread Ed Maste
Ed Maste added the comment: For reference, this fd leak was causing one of LLDB's tests to fail. It is now marked XFAIL pending a resolution of this issue: http://llvm.org/viewvc/llvm-project?view=revision&revision=229704 Linux is also affected, the Linux LLDB tests were previously running on

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Fri, Feb 20, 2015, at 12:39, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > > I think it looks fine except why do you cast PyUnicode_LENGTH to size_t in > > the comparison? > > To silence compiler warning. PyUnicode_LENGTH is signed,

[issue23458] [2.7] random: make the file descriptor non-inheritable (on POSIX)

2015-02-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is one step on long way. Second step will be to inline PyArg_Parse for some format codes ("i", "U", "y*", "O&", "O!"). Then we could try to expand PyArg_ParseTuple, at least for simple common cases. Then PyArg_ParseTupleAndKeywords. All this step will p

[issue23458] [2.7] random: make the file descriptor non-inheritable (on POSIX)

2015-02-20 Thread Ed Maste
Changes by Ed Maste : -- nosy: +Ed.Maste ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I think it looks fine except why do you cast PyUnicode_LENGTH to size_t in > the comparison? To silence compiler warning. PyUnicode_LENGTH is signed, right hand is unsigned. > I also wonder if we should have PyObject_NEW now. We have PyObject_NEW. --

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-02-20 Thread Larry Hastings
Larry Hastings added the comment: I'm not opposed to the patch in principle. I assume your goal is to make Python faster--do you have any data on how much faster? I don't support immediately changing all uses of Argument Clinic to generate their code into a separate file. I would want to see

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think it looks fine except why do you cast PyUnicode_LENGTH to size_t in the comparison? I also wonder if we should have PyObject_NEW now. -- stage: patch review -> versions: -Python 3.5 ___ Python tracker <

[issue23018] Add version info to python

2015-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 843a8ee94270 by Steve Dower in branch 'default': Closes #23018: Replace copyright symbol with escape. https://hg.python.org/cpython/rev/843a8ee94270 -- resolution: -> fixed stage: -> resolved status: open -> closed ___

[issue23465] Implement PEP 486 - Make the Python Launcher aware of virtual environments

2015-02-20 Thread Paul Moore
Paul Moore added the comment: On 20 February 2015 at 16:31, Wolfgang Maier wrote: >> The scope of this PEP is just to make the "py" command (with no explicit >> version) use an active virtualenv before falling back to the default Python. >> This is specifically to allow people who don't put Py

[issue23018] Add version info to python

2015-02-20 Thread Steve Dower
Steve Dower added the comment: Digging around the likely encodings to be running on Windows machines, it looks like 0xA9 is always the right symbol, so that change should be fine. -- ___ Python tracker ___

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-02-20 Thread Paul Moore
Paul Moore added the comment: Thanks. Updated patch with the new mime-type. Looks like there's disk errors on that file with the CRC check. Lovely :-) -- Added file: http://bugs.python.org/file38192/pep441.patch ___ Python tracker

[issue23018] Add version info to python

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I afraid that adding source file that can't be easy handled by Unix text tools (such as diff) is not good idea. Does "\xa9" work? -- ___ Python tracker _

[issue23465] Implement PEP 486 - Make the Python Launcher aware of virtual environments

2015-02-20 Thread Wolfgang Maier
Wolfgang Maier added the comment: > Hmm, I didn't know that (although virtualenv-based environments don't have an > equivalent to pyvenv.cfg). Well, that complicates things then :( > But there's some confusion here. This patch only affects command line usage > (running "py.exe" to start Pyth

[issue21793] httplib client/server status refactor

2015-02-20 Thread Demian Brecht
Demian Brecht added the comment: The updated patch addresses comments which I’d somehow missed previously, but keeps the log fix to the __str__ implementation of HTTPStatus (using int.__str__ rather than format()). > Does not changing __str__ to decimal representation (and in this case __str__

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. It also optimizes getrandbit() and seed() as was originally proposed in issue16496. -- stage: -> patch review ___ Python tracker __

[issue23018] Add version info to python

2015-02-20 Thread Steve Dower
Steve Dower added the comment: Looks like the .rc files should actually be UCS-2, since that's how the strings are going to be stored into the executables. If I rename the .h file to .h_ (and change the encoding to UCS-2 with BOM), will it be ignored by argument clinic? -- __

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2015-02-20 Thread Wouter Bolsterlee
New submission from Wouter Bolsterlee: The JSON encoder uses a lambda function for the sort(key=...) invocation used to sort the keys in a JSON object in case sort_keys=True is passed: https://hg.python.org/cpython/file/46bfddb14cbe/Lib/json/encoder.py#l352 Instead of having a lambda, operator

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-02-20 Thread Steve Dower
Steve Dower added the comment: Either "application/zip" or "application/x-zip-compressed", I'm not sure exactly what the difference is, but the default .zip association has the latter. The CRC error may be your machine or it may be because we're currently running on unstable WiX releases (hey,

[issue23465] Implement PEP 486 - Make the Python Launcher aware of virtual environments

2015-02-20 Thread Paul Moore
Paul Moore added the comment: Hmm, I didn't know that (although virtualenv-based environments don't have an equivalent to pyvenv.cfg). But there's some confusion here. This patch only affects command line usage (running "py.exe" to start Python). I don't really see a use case for making "py -

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-02-20 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38190/issue22928_3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23465] Implement PEP 486 - Make the Python Launcher aware of virtual environments

2015-02-20 Thread Wolfgang Maier
Wolfgang Maier added the comment: isn't the pyvenv.cfg file specifying the version ? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue23422] Clarify docs for importlib.import_module()

2015-02-20 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue21257] Document parse_headers function of http.client

2015-02-20 Thread Demian Brecht
Demian Brecht added the comment: > On Feb 20, 2015, at 3:10 AM, Berker Peksag wrote: > This is a different issue than #23439. BaseHTTPRequestHandler.headers > documentation mentions about parse_headers function, the function itself is > not documented. Not entirely sure what I was thinking he

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. There is yet one similar bug in unicodeobject.c. -- keywords: +patch stage: -> patch review versions: +Python 3.5 Added file: http://bugs.python.org/file38189/issue23490.patch ___ Python tracker <

[issue23422] Clarify docs for importlib.import_module()

2015-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 46bfddb14cbe by Brett Cannon in branch 'default': Issue #23422: Clarify some things around importlib.import_module() https://hg.python.org/cpython/rev/46bfddb14cbe -- nosy: +python-dev ___ Python tracker

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2015-02-20 Thread Demian Brecht
Demian Brecht added the comment: > On Feb 19, 2015, at 8:08 PM, Martin Panter wrote: > I guess you saying RemoteDisconnected effectively means the same thing as > ConnectionResetError. Exactly. > Would it help if it was derived from ConnectionResetError, instead of the > ConnectionError base

[issue22834] Unexpected FileNotFoundError when current directory is removed

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be better use errno.EINVAL? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue23465] Implement PEP 486 - Make the Python Launcher aware of virtual environments

2015-02-20 Thread Paul Moore
Paul Moore added the comment: That's correct. The problem here is that it's not possible to know what version of Python a virtualenv has (at least, not without running it, which isn't appropriate in the launcher). So the only case it's possible to support is #!python. --

[issue22834] Unexpected FileNotFoundError when current directory is removed

2015-02-20 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the suggestion, Martin. Went with a variant of what you proposed. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker __

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-02-20 Thread Paul Moore
Paul Moore added the comment: Thanks for checking, Steve. I don't get an installer because of the checksum error quoted, although I did get the component msi files. As far as content type is concerned, I wasn't sure what effect it had so I just copied what was there. I guess application/zip mi

[issue23465] Implement PEP 486 - Make the Python Launcher aware of virtual environments

2015-02-20 Thread Wolfgang Maier
Wolfgang Maier added the comment: am I correct that when a script contains a shebang line like: #! python3 or #! python3.4 i.e., one indicating just a version of, but not a full path to the interpreter, the current patch would not use an active virtualenv even if it has a suitable version ?

[issue22834] Unexpected FileNotFoundError when current directory is removed

2015-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4f2096ab6f8 by Brett Cannon in branch 'default': Issue #22834: Fix a failing test under Solaris due to the platform not https://hg.python.org/cpython/rev/f4f2096ab6f8 -- ___ Python tracker

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-02-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch improve generated parsers for functions with single positional argument. Now they always generated as METH_O and PyArg_Parse() is used to parse single argument. To avoid code churn in this and following changes it would be worth to extract

[issue20699] Document that binary IO classes work with bytes-likes objects

2015-02-20 Thread R. David Murray
R. David Murray added the comment: How about "the length of b in bytes"? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +davin, sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-02-20 Thread Steve Dower
Steve Dower added the comment: The installer changes look fine, though there shouldn't be PATH related strings in exe/, so there's probably a separate issue there. Wix doesn't really have any editors that aren't just XML editors. We probably want to update the ContentType value from text/plain

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-02-20 Thread Steve Dower
Steve Dower added the comment: I haven't looked closely at the rest, btw. Will try and find time today or tomorrow. -- ___ Python tracker ___ ___

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-02-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue21793] httplib client/server status refactor

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does not changing __str__ to decimal representation (and in this case __str__ = int.__str__ may be better) lost a part of the point of converting HTTP status codes to enums? -- ___ Python tracker

[issue20699] Document that binary IO classes work with bytes-likes objects

2015-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because it is not len(b). I fixed several bugs in Python code which called len() for bytes-like argument and failed with array.array or memoryview with non-byte items. The term "bytes-like object" is slightly misleading. In some cases it implies indexing an

[issue20699] Document that binary IO classes work with bytes-likes objects

2015-02-20 Thread Martin Panter
Martin Panter added the comment: Using len(b) is fine if b is a bytes() or bytearray() object, but a bytes-like object can be anything that you can pass to memoryview(). In general len(b) is not part of that protocol, so can return some other value, or even be unimplemented: >>> from array im

[issue21793] httplib client/server status refactor

2015-02-20 Thread Berker Peksag
Berker Peksag added the comment: LGTM. I left a comment for Serhiy on Rietveld. -- stage: needs patch -> commit review ___ Python tracker ___

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benjamin.peterson, haypo, serhiy.storchaka type: crash -> security ___ Python tracker ___ ___ Py

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread paul
paul added the comment: And a nice error: Debug memory block at address p=0x805fc028: API 'o' 0 bytes originally requested The 3 pad bytes at p-3 are FORBIDDENBYTE, as expected. The 4 pad bytes at tail=0x805fc028 are not all FORBIDDENBYTE (0xfb): at tail+0: 0x00 *** OUCH

[issue20699] Document that binary IO classes work with bytes-likes objects

2015-02-20 Thread R. David Murray
R. David Murray added the comment: What is your objection to "len(b)"? When I read "len(b)" I know exactly what it means. When I read "the number of bytes in b", I have to think about it it, because it could mean "the number of bytes that that b is long" or "the number of bytes that have bee

[issue23442] http.client.REQUEST_HEADER_FIELDS_TOO_LARGE renamed in 3.5

2015-02-20 Thread Berker Peksag
Berker Peksag added the comment: Fixed. Thanks to both of you :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23442] http.client.REQUEST_HEADER_FIELDS_TOO_LARGE renamed in 3.5

2015-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52d37efaf939 by Berker Peksag in branch 'default': Issue #23442: Rename two member names to stay backward compatible https://hg.python.org/cpython/rev/52d37efaf939 -- nosy: +python-dev ___ Python tracker

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-02-20 Thread Paul Moore
New submission from Paul Moore: This is the patch for PEP 441 (Zip Application Support). Steve, could you check the installer changes, please? I haven't managed to get a setup where I can test the installer, and I'm not aware of any WiX coding tools, so I just edited the XML files by hand with

[issue22931] cookies with square brackets in value

2015-02-20 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review versions: -Python 3.3, Python 3.6 ___ Python tracker ___ _

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-02-20 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review versions: -Python 3.6 ___ Python tracker ___ ___ Python-bu

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-02-20 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-20 Thread paul
New submission from paul: # Bug # --- # # Py_UNICODE * # PyUnicode_AsUnicodeAndSize(PyObject *unicode, Py_ssize_t *size) # { # ... # #endif # wchar_t *w; # wchar_t *wchar_end; # # ... # 1 _PyUnicode_WSTR(unicode) = (wchar_t *) PyObject_MALLOC(sizeof(wchar_t) * #

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread juj
juj added the comment: This was tested on Python 2.7.9 64-bit on Windows 8.1, however I believe that it occurs equally on OSX and Linux, since I am running servers with those OSes that also exhibit temp file leaking issues (although I did not specifically confirm if the root cause is the same

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread juj
New submission from juj: When Multiprocessing.Pool.map is used for a script that registers atexit handlers, the atexit handlers are not executed when the pool threads quit. STR: 1. Run attached file in Python 2.7 with 'python task_spawn.py' 2. Observe the printed output. Observed: Console pr

[issue9119] Python download page needs to mention crypto code in Windows installer

2015-02-20 Thread Berker Peksag
Berker Peksag added the comment: > Terry, would you like to move this forward with the Python.org webmasters ? This is now a content issue and can be handled on GitHub: https://github.com/python/pythondotorg/issues -- nosy: +berker.peksag resolution: -> fixed stage: needs patch -> res

[issue21257] Document parse_headers function of http.client

2015-02-20 Thread Berker Peksag
Berker Peksag added the comment: This is a different issue than #23439. BaseHTTPRequestHandler.headers documentation mentions about parse_headers function, the function itself is not documented. See https://docs.python.org/3/library/http.server.html#http.server.BaseHTTPRequestHandler.headers

  1   2   >