[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2015-01-15 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: Now the patch works with tzdata >= 2011k, which is quite old. @David: yes, with the unpatched version only one of the tests should fail. -- Added file: http://bugs.python.org/file37721/issue22932_combined_v2.diff __

[issue23247] Multibyte codec StreamWriter.reset() crashes

2015-01-15 Thread Martin Panter
New submission from Martin Panter: $ python3 -c 'import codecs; from io import BytesIO; codecs.getwriter("big5")(BytesIO()).reset()' Segmentation fault (core dumped) [Exit 139] Happens for all the multibyte codecs: broken_stream_codecs = { "big5", "big5hkscs", "cp932", "cp949", "cp950",

[issue20916] ssl.enum_certificates() will not return all certificates trusted by Windows

2015-01-15 Thread James Teh
Changes by James Teh : -- nosy: +jteh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-15 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2015-01-15 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> broken ctypes calling convention on MSVC / 64-bit Windows (large structs) ___ Python tracker _

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-15 Thread Gregory Szorc
Gregory Szorc added the comment: The first sentence in my original report is ambiguous. I tested with distutils on Python 2.7.9. But considering the code in question hasn't changed since 2011, I think it's safe to say this isn't a regression in CPython. --

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-15 Thread Gregory Szorc
New submission from Gregory Szorc: distutils as of Python 2.7.9 is unable to locate vcvarsall.bat if Visual C++ Compiler for Python is the only Visual Studio "distribution" installed. STR: 1) Do a fresh install of Windows + all updates 2) Install Microsoft Visual C++ Compiler for Python from

[issue23234] refactor subprocess: use new OSError exceptions, factorize stdin.write() code

2015-01-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks for the cleanup refactoring! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2015-01-15 Thread Martin Panter
Martin Panter added the comment: I believe the BadStatusLine can still happen, depending on the circumstances. When I get a chance I will see if I can make a demonstration. In the meantime these comments from my persistent connection handler

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

2015-01-15 Thread Demian Brecht
Demian Brecht added the comment: Trying to reproduce this on my own in 3.5, 2.7 and 2.5 yields a ConnectionResetError (ECONNRESET), which seems to be correct. That said, this could be due to varying TCP implementations on the server so might still be valid. It could also be due to an older ker

[issue20898] Missing 507 response description

2015-01-15 Thread Berker Peksag
Berker Peksag added the comment: This is mostly a documentation update. Documentation updates can be committed anytime. Also, feature freeze for 3.5 will be started by Beta 1, not Alpha 1 (see PEP 478). I'll commit the patch this weekend. Thanks! -- __

[issue8450] httplib: false BadStatusLine() raised

2015-01-15 Thread Demian Brecht
Demian Brecht added the comment: This should likely be closed as a duplicate of #3566, which has additional detail. -- ___ Python tracker ___

[issue20132] Many incremental codecs don’t handle fragmented data

2015-01-15 Thread Martin Panter
Martin Panter added the comment: My “master plan” is basically to make most of the bytes-to-bytes codecs work as documented in the incremental (stateful) modes. I’m less interested in fixing the text codecs, and the quopri and uu codecs might be too hard, so I was going to propose some documen

[issue23243] asyncio: emit ResourceWarning warnings if transports/event loops are not explicitly closed

2015-01-15 Thread STINNER Victor
STINNER Victor added the comment: > Some ResourceWarning are still emited on SSL server tests. Attached server_close.patch is a work-in-process patch to fix this issue on Linux. If I understood correctly, there are two issues: - SelectorEventLoop._accept_connection() doesn't care of the creat

[issue20132] Many incremental codecs don’t handle fragmented data

2015-01-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: This addition is wrong as well: The *stream* argument must be a file-like object open for reading - text or binary data, as appropriate for the specific codec. + text or binary data, as appropriate for the specific codec. This stream is + assumed t

[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2015-01-15 Thread Martin Panter
Martin Panter added the comment: Sorry, I changed the name of the attribute and forgot to update the doc string. Its new name was _Encoder. Your description was fairly accurate. I am adding patch v3, with an expanded the doc string. Hopefully that explains it a bit better. Since it is just im

[issue20132] Many incremental codecs don’t handle fragmented data

2015-01-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 15.01.2015 23:46, Martin Panter wrote: > > I opened Issue 23231 about fixing iterencode() and iterdecode() in the > general case. I added a patch to Issue 13881 to fix StreamWriter for zlib and > bz2, and to fix StreamWriter.writelines() in general. >

[issue20132] Many incremental codecs don’t handle fragmented data

2015-01-15 Thread Martin Panter
Martin Panter added the comment: I opened Issue 23231 about fixing iterencode() and iterdecode() in the general case. I added a patch to Issue 13881 to fix StreamWriter for zlib and bz2, and to fix StreamWriter.writelines() in general. I am adding a patch here to clarify the StreamReader API a

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2015-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 992ce0dcfb29 by Victor Stinner in branch '3.4': Issue #22685: Fix test_pause_reading() of asyncio/test_subprocess https://hg.python.org/cpython/rev/992ce0dcfb29 -- ___ Python tracker

[issue23211] test.test_logging.SMTPHandlerTest failing on Snow Leopard

2015-01-15 Thread Ned Deily
Ned Deily added the comment: Yes, this has the same root cause as the failure in Issue20605 since SMTPServer in smtpd.py uses getaddrinfo. I'm now able to reliably reproduce the failure. The system getaddrinfo failure is seen when the OS X 10.6 system's network configuration is *not* using t

[issue1602] windows console doesn't print or input Unicode

2015-01-15 Thread Drekin
Drekin added the comment: File redirection has nothing to do with win-unicode-console and this issue. When stdout is redirected, it is not a tty so win-unicode-console doesn't replace the stream object, which is the right thing to do. You got UnicodeEncodeError because Python creates sys.stdou

[issue20898] Missing 507 response description

2015-01-15 Thread Demian Brecht
Demian Brecht added the comment: Ping. Would be nice to get this change in before 3.5.0a1. -- ___ Python tracker ___ ___ Python-bugs-l

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2015-01-15 Thread mattip
mattip added the comment: This is a duplicate of issue 20160, and has been fixed. Can someone mark it as a duplicate and close it? -- nosy: +mattip ___ Python tracker ___ __

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2015-01-15 Thread mattip
mattip added the comment: it seems the problem is that the bundled libffi version in Modules/_ctypes/libffi needs updating. The fix for aarch64 is a simple one-liner (tested on 2.7 in a aarch64 vm), for both HEAD and 2.7 (attached), but perhaps a better fix would be to update the bundled libff

[issue23152] fstat64 required on Windows

2015-01-15 Thread Steve Dower
Steve Dower added the comment: Victor, I've been testing your patch and it's mostly good (a few obscure errors you'd never find without a compiler), but I think we also need to update the win32_xstat functions in posixmodule.c, since they all try and use the same struct. I don't know how fami

[issue23160] Respect the environment variable SVNROOT in external-common.bat

2015-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 45e2c95bb802 by Steve Dower in branch '3.4': Closes #23160: Respect the environment variable SVNROOT in external-common.bat (patch by anselm.kruis) https://hg.python.org/cpython/rev/45e2c95bb802 -- ___ P

[issue23018] Add version info to python

2015-01-15 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> patch review status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue23160] Respect the environment variable SVNROOT in external-common.bat

2015-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 294501835890 by Steve Dower in branch '2.7': Closes #23160: Respect the environment variable SVNROOT in external-common.bat (patch by anselm.kruis) https://hg.python.org/cpython/rev/294501835890 -- nosy: +python-dev resolution: -> fixed st

[issue23018] Add version info to python

2015-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f7e483cebef by Steve Dower in branch 'default': Issue 23018: Add version info to python[w].exe https://hg.python.org/cpython/rev/3f7e483cebef -- nosy: +python-dev ___ Python tracker

[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman
Douman added the comment: I made additional experiments and now i'm confused When i tried to execute urlopen in python interpeter it worked fine. But it fails for me when i attempt to do so via some helper function in search engine of qBittorent it throw exception https://github.com/qbittorrent

[issue18986] Add a case-insensitive case-preserving dict

2015-01-15 Thread STINNER Victor
STINNER Victor added the comment: The API is simple and well defined, the addition is small, I don't understand what is the problem with this enhancement. -- ___ Python tracker

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2015-01-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Due to the realloc() problem, I'm thinking that the best course for Numpy would be to use its own allocator wrapper like Nathaniel outligned. Also, Numpy wants calloc() for faster allocation of zeroed arrays... -- __

[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman
Douman added the comment: It seems to be this one https://hg.python.org/cpython/rev/1882157b298a -- ___ Python tracker ___ ___ Python-

[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman
Douman added the comment: Also according to documentation this class was specifically updated with context in 2.7.9 I guess then there should commit related to adding of "context" to HTTPSConnection -- ___ Python tracker

[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman
Douman added the comment: Btw, i also tried to replace **kwargs with usual argument and it didn't throw exception -- ___ Python tracker ___ _

[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman
Douman added the comment: Yes, i checked what is http_class. It is passed as httplib.HTTPSConnection Before submitting this issue i checked httplib.py in my installation of py2 and there https://hg.python.org/cpython/file/2.7/Lib/httplib.py HTTPSConnection has argument "context". Btw, it would

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2015-01-15 Thread Steve Dower
Steve Dower added the comment: You're running on Fedora, not Windows, so this is not the right issue. You should open a new one and probably post on python-dev to get some attention (since there's no useful nosy lists right now and ctypes has no maintainer). -- ___

[issue23219] asyncio: cancelling wait_for(task, timeout) must also cancel the task

2015-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8adf1896712d by Victor Stinner in branch '3.4': Closes #23219: cancelling asyncio.wait_for() now cancels the task https://hg.python.org/cpython/rev/8adf1896712d -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> c

[issue23219] asyncio: cancelling wait_for(task, timeout) must also cancel the task

2015-01-15 Thread STINNER Victor
Changes by STINNER Victor : -- stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2015-01-15 Thread Robert Kuska
Robert Kuska added the comment: FYI The bug was found in libffi. I have tried and rebuilt python also with *bundled libffi* with the *same result* (=test failure). There is more info in the bugzilla mentioned in my previous post along with the libffi patch. --

[issue17546] Document the circumstances where the locals() dict get updated

2015-01-15 Thread R. David Murray
R. David Murray added the comment: Yeah, the question of thread-safety in regards to what we are talking about here also occurred to me. That is, the wording makes one wonder if locals is thread safe or not. I don't see your suggested wording as making it clearer, though. The problem is tha

[issue18986] Add a case-insensitive case-preserving dict

2015-01-15 Thread Martin Panter
Martin Panter added the comment: For the record, this is related to PEP 455 (key-transforming dictionary) -- nosy: +vadmium ___ Python tracker ___ ___

[issue17546] Document the circumstances where the locals() dict get updated

2015-01-15 Thread Martin Panter
Martin Panter added the comment: What about instead of ''' Whether changes to one are reflected in the other after the call returns is undefined; additionally, the dictionary may change unpredictably after the call, and how it does is implementation-specific. ''' substitue this wording: '''

[issue23242] asyncio: Process must close the transport when the process exit

2015-01-15 Thread STINNER Victor
STINNER Victor added the comment: > I'm not sure that it's the most efficient way to close the transport. It may > be better to close the transport in the connection_lost() method of the > protocol. "process_exited", not "connection_lost". I implemented this option which is simpler and more e

[issue23243] asyncio: emit ResourceWarning warnings if transports/event loops are not explicitly closed

2015-01-15 Thread STINNER Victor
STINNER Victor added the comment: I fixed a lot of methods and tests to ensure that all event loops and transports are properly closed. These changes were required to prepare the integration of this change. Many changed were real bug fixes: closing explicitly tranports on error avoids to leak

[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread R. David Murray
R. David Murray added the comment: More likely http_class isn't what you think it is (ie: it might be an HTTPSConnection subclass that hasn't been updated to deal with 2.7.9. Can you check that? -- components: +Library (Lib) -Extension Modules nosy: +alex, r.david.murray type: compile

[issue17546] Document the circumstances where the locals() dict get updated

2015-01-15 Thread R. David Murray
R. David Murray added the comment: Your formulation is more concise, thank you. I suggest dropping the word 'additionally'. Also, "how it does" would be better phrased as "how it changes", I think. (It really should be "whether and how it changes", but in deference to Anatoly's 'advanced Eng

[issue23242] asyncio: Process must close the transport when the process exit

2015-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset df493e9c6821 by Victor Stinner in branch '3.4': Issue #23242: asyncio.SubprocessStreamProtocol now closes the subprocess https://hg.python.org/cpython/rev/df493e9c6821 -- nosy: +python-dev ___ Python trac

[issue23243] asyncio: emit ResourceWarning warnings if transports/event loops are not explicitly closed

2015-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f13d53f4680 by Victor Stinner in branch '3.4': Issue #23243: Fix asyncio._UnixWritePipeTransport.close() https://hg.python.org/cpython/rev/2f13d53f4680 New changeset aef0f9b4e729 by Victor Stinner in branch '3.4': Issue #23243: Close explicitly eve

[issue22198] Odd floor-division corner case

2015-01-15 Thread Mark Dickinson
Mark Dickinson added the comment: The patch is fine; I just need to find time to look at it properly. That might take a week or two. Sorry for the delay. -- ___ Python tracker ___

[issue22198] Odd floor-division corner case

2015-01-15 Thread Petr Viktorin
Petr Viktorin added the comment: ping, is there anything I can do to help push the patch forward? -- ___ Python tracker ___ ___ Python

Re: [issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2015-01-15 Thread M.-A. Lemburg
On 15.01.2015 05:43, Martin Panter wrote: > > New patch that also fixes StreamWriter.writelines() in general for the byte > codecs Could you explain this new undocumented class ? +class _IncrementalBasedWriter(StreamWriter): +"""Generic StreamWriter implementation. + +The _EncoderCl

[issue22560] New SSL implementation based on ssl.MemoryBIO

2015-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c37825d85d3 by Victor Stinner in branch '3.4': Issue #22560: Fix typo: call -> call_soon https://hg.python.org/cpython/rev/3c37825d85d3 -- ___ Python tracker

[issue22560] New SSL implementation based on ssl.MemoryBIO

2015-01-15 Thread STINNER Victor
STINNER Victor added the comment: Buildbots are happy. There is no remaining things to do, I close the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue22560] New SSL implementation based on ssl.MemoryBIO

2015-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb3761de0d3c by Victor Stinner in branch '3.4': Issue #22560: Fix SSLProtocol._on_handshake_complete() https://hg.python.org/cpython/rev/fb3761de0d3c -- ___ Python tracker

[issue23209] asyncio: break some cycles

2015-01-15 Thread STINNER Victor
STINNER Victor added the comment: I noticed that _ProactorBasePipeTransport doesn't clear its reference to the socket when it is closed. I changed this in the following commit (now merged in Python 3.4 & 3.5): https://code.google.com/p/tulip/source/detail?r=61ce7def97272ab1a6488545dc392160c2fbe

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-01-15 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://