[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa type: -> behavior versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ _

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue9191] winreg.c:Reg2Py() may leak memory (in unusual circumstances)

2015-03-07 Thread Claudiu Popa
Claudiu Popa added the comment: This was fixed a couple of months ago: https://hg.python.org/cpython/rev/07968254be96. Also, malloc was changed to PyMem_New a couple of weeks ago: https://hg.python.org/cpython/rev/036a2aceae93 -- nosy: +Claudiu.Popa resolution: -> fixed stage: needs p

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ea40dc3d26d by Serhiy Storchaka in branch '3.4': Issue #21619: Cleaned up test_broken_pipe_cleanup. https://hg.python.org/cpython/rev/4ea40dc3d26d New changeset 41ce95a5b2d8 by Serhiy Storchaka in branch 'default': Issue #21619: Cleaned up test_bro

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-07 Thread Martin Panter
Martin Panter added the comment: Sure, new version is fine by me -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file38386/overflow-pipe-test-2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think we should add __enter__ for consistency. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue23588] Errno conflicts in ssl.SSLError

2015-03-07 Thread Martin Panter
Martin Panter added the comment: Sorry I take back my claim that the error codes were undocumented; see the example code in . Perhaps the most compatible way to fix this would be to change the SSL error codes to something (custom cl

[issue23588] Errno conflicts in ssl.SSLError

2015-03-07 Thread Martin Panter
Martin Panter added the comment: Okay I see your point about backwards compatibility now. Indeed, I have written code myself before Python 3.3 that used to inspect err.args[0], and it would suffer a similar problem if I had not updated it to use the new Python 3.3 exception subclasses. Below

[issue23606] ctypes.util.find_library("c") no longer makes sense

2015-03-07 Thread eryksun
eryksun added the comment: Shouldn't find_library("c") return "ucrtbase.dll" or "ucrtbased.dll" (debug)? Introducing the Universal CRT http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx -- nosy: +eryksun ___ Python

[issue22252] ssl blocking IO errors should inherit BlockingIOError

2015-03-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium title: ssl blocking IO errors -> ssl blocking IO errors should inherit BlockingIOError ___ Python tracker ___ __

[issue22227] Simplify tarfile iterator

2015-03-07 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23606] ctypes.util.find_library("c") no longer makes sense

2015-03-07 Thread Steve Dower
New submission from Steve Dower: With the changes to the CRT on Windows, it no longer makes any sense to call find_library("c") or ("m") as there is no single C Runtime DLL. The new structure has a grouped and layered approach that is better for versioning, so we now link to "api-ms-win-crt-*-

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-07 Thread Demian Brecht
Demian Brecht added the comment: After sleeping on this, I think that the best route to go would be to drop the trailer implementation (if it's not practical it doesn't belong in the standard library). Also, to better preserve backwards compatibility it may be better to circumvent the automat

[issue23588] Errno conflicts in ssl.SSLError

2015-03-07 Thread Ben Darnell
Ben Darnell added the comment: I agree that SSLError should have used a different attribute, but it's too late for that - changing it would break any code currently relying on SSL errnos (in particular asynchronous code using the SSL_ERROR_WANT_{READ,WRITE} error codes for normal operation).

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-07 Thread Ben Hoyt
Ben Hoyt added the comment: Attaching a first cut at this -- basically the implementation I use for walk() in scandir.py on GitHub. One thing that's really weird to me: are the os.walk() unit tests actually being run? In test_os.py, I notice everything's in WalkTest.setUp, which is kinda weir

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-07 Thread Steve Dower
Steve Dower added the comment: I didn't know about winerror_to_errno(), so that might help. But there are other dependencies on _Py_fstat's error code throughout posixmodule.c, so I don't think this is sufficient. (For example, patherror() is already switched on OS to handle it correctly. I ga

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-07 Thread STINNER Victor
STINNER Victor added the comment: I opened the issue #23605: "Use the new os.scandir() function in os.walk()". -- ___ Python tracker ___ _

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-07 Thread STINNER Victor
New submission from STINNER Victor: The PEP 471 announces a huge speed up of the os.walk() function, but os.walk() was not modified yet. I just merged the implementation of os.scandir() (issue #22524), it's now time to work on os.walk(). We need a patch and benchmarks on Linux and Windows. On

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-03-07 Thread Martin Panter
Martin Panter added the comment: A context manager here would seem a bit strange. Is there any precedent for using context managers with feed parsers? The two others that come to mind are ElementTree.XMLParser and email.parser.FeedParser. These two build an object while parsing, and close() re

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-07 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg237501 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-07 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg237501 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file38383/fstat_ebadf.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-07 Thread STINNER Victor
STINNER Victor added the comment: fstat_ebadf.patch: _Py_fstat() now also set errno on Windows. It's a little bit different than your patch, because it still calls SetLastError(ERROR_INVALID_HANDLE) to explicitly set the Windows error on bad file descriptor. We must set errno et SetLastError()

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-07 Thread STINNER Victor
STINNER Victor added the comment: fstat_ebadf.patch: _Py_fstat() now also set errno on Windows. It's a little bit different than your patch, because it still calls SetLastError(ERROR_INVALID_HANDLE) to explicitly set the Windows error on bad file descriptor. We must set errno et SetLastError()

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8e49a2795e7 by Steve Dower in branch 'default': Issue #23524: Change back to using Windows errors for _Py_fstat instead of the errno shim. https://hg.python.org/cpython/rev/d8e49a2795e7 -- ___ Python tr

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-07 Thread Steve Dower
Steve Dower added the comment: This is because of the _Py_fstat change to use errno instead of GetLastError. It seems other callers are relying on GetLastError to raise the correct exception, and that seems to be the standard throughout posixmodule as far as stat calls are concerned. Best imm

[issue23570] Change "with subprocess.Popen():" (context manager) to ignore broken pipe error

2015-03-07 Thread Martin Panter
Martin Panter added the comment: After understanding the Windows test failure in Issue 21619, I am starting to believe that code relying on a BrokenPipeError or EPIPE is flawed. It is an inherent unavoidable race condition with the receiving end of the pipe, as long as another thread or proces

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-07 Thread STINNER Victor
STINNER Victor added the comment: Oh oh, OpenIndiana doesn't support d_type: the dirent structure has no d_type field and DT_xxx constants like DT_UNKNOWN are not defined. gcc -Wsign-compare -g -O0 -Wall -Wstrict-prototypes -I/usr/local/include/ncursesw -m64 -Werror=declaration-after-stateme

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 60e5c34ec53a by Victor Stinner in branch 'default': Issue #22524: Fix os.scandir() for platforms which don't have a d_type field in https://hg.python.org/cpython/rev/60e5c34ec53a -- ___ Python tracker

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-07 Thread STINNER Victor
STINNER Victor added the comment: I commited scandir-8.patch with the documentation of scandir-5.patch. I wanted os.scandir() to be part of Python 3.5 alpha 2. Thanks for your patience Ben ;-) We should now watch buildbots to check how they appreciate os.scandir(). http://buildbot.python.org/

[issue23556] Scope for raise without argument is different in Python 2 and 3

2015-03-07 Thread Martin Panter
Changes by Martin Panter : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ Pytho

[issue23591] Add IntFlags

2015-03-07 Thread Ethan Furman
Ethan Furman added the comment: The current patch is more along the lines of a proof-of-concept. The final IntFlag type (if there is one) would be quite a bit more extensive since part of the reason for its existence is to not lose type -- so pretty much every __op__ would have to be overridde

[issue23556] Scope for raise without argument is different in Python 2 and 3

2015-03-07 Thread Martin Panter
Martin Panter added the comment: For the Python 3 case, the documentation is vague and probably wrong, depending on what you understand “the current scope” to mean. I think it should read something like . . . raise re-raises the current exception that is being handled. If no exception is bein

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-07 Thread STINNER Victor
STINNER Victor added the comment: test_os fails on Windows since the changeset 75aadb4450fd: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/5798/steps/test/logs/stdio == FAIL: test_15261 (test.test_o

[issue23591] Add IntFlags

2015-03-07 Thread Martin Panter
Martin Panter added the comment: It would make more sense and be more consistent if the str() and repr() used one’s complement in all cases, i.e.: self.assertEqual(str(Perm(~0)), "~0") Also, the repr() seems to be doing a bad attempt at Python pseudo code. Instead of maybe it could be some

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-07 Thread STINNER Victor
STINNER Victor added the comment: > KNOWN ISSUE: There's a reference leak in the POSIX version (found with > "python -m test -R 3:2 test_os"). Don't worry, it was a simple refleak, I fixed it: diff -r 392d3214fc23 Modules/posixmodule.c --- a/Modules/posixmodule.c Sun Mar 08 01:58:04 2015 +

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d04d5b9c29f6 by Victor Stinner in branch 'default': Issue #22524: New os.scandir() function, part of the PEP 471: "os.scandir() https://hg.python.org/cpython/rev/d04d5b9c29f6 -- nosy: +python-dev ___ Pyth

[issue23603] Embedding Python3.4 - PyUnicode_Check fails (MinGW-W64)

2015-03-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your interpretation of PyUnicode_Check() is correct. I don't know why your program fails but I would suggest some kind of compiler bug or incompatibility. You can find the definition of the unicode type in Objects/unicodeobject.c. There you'll find that Py_TPF

[issue23588] Errno conflicts in ssl.SSLError

2015-03-07 Thread Martin Panter
Martin Panter added the comment: [padding] This behaviour of returning an SSL-specific error code in the “errno” attribute is not documented. The “errno” attribute is actually specified to hold a POSIX error code, and I don’t think this specification should be changed. I don’t see how checkin

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-07 Thread STINNER Victor
STINNER Victor added the comment: overflow-pipe-test.patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-03-07 Thread Ezio Melotti
Ezio Melotti added the comment: > I still think it would be worthwhile adding close() calls to > the examples in the documentation (Doc/library/html.parser.rst). If I add context manager support to HTMLParser I can update the examples to use it, but otherwise I don't think it's worth changing t

[issue20876] python -m test test_pathlib fails

2015-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 40e8a8e83ed0 by Antoine Pitrou in branch '3.4': Issue #20876: correctly close temporary file in test.support.fs_is_case_insensitive() https://hg.python.org/cpython/rev/40e8a8e83ed0 New changeset 5406ed13bd6e by Antoine Pitrou in branch 'default': I

[issue20876] python -m test test_pathlib fails

2015-03-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have applied the patch to 3.4 and default. Thank you! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue20876] python -m test test_pathlib fails

2015-03-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-03-07 Thread Martin Panter
Martin Panter added the comment: I still think it would be worthwhile adding close() calls to the examples in the documentation (Doc/library/html.parser.rst). BTW I haven’t tested this, and maybe it is not a concern, but even with this patch it looks like the parser will buffer unlimited data

[issue23602] Implement __format__ for Fraction

2015-03-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22227] Simplify tarfile iterator

2015-03-07 Thread Martin Panter
Martin Panter added the comment: The code changes look correct and worthwhile to me. Just added some suggestions for the comments, which would become out of date. -- ___ Python tracker

[issue22227] Simplify tarfile iterator

2015-03-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23604] Python 3.4 and 2.7 installation no Script folder and no pip installed

2015-03-07 Thread SilentGhost
Changes by SilentGhost : -- components: +Installation, Windows -Extension Modules nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

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

2015-03-07 Thread Martin Panter
Martin Panter added the comment: Folded header fields are deprecated as of RFC 7230; see . The only reasons to fold them I can think of is for readability (debugging), when generating a messsage/http MIME message (which I don’t think the Pytho

[issue23103] Reduce memory usage for ipaddress object instances

2015-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23103] Reduce memory usage for ipaddress object instances

2015-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mai

[issue21518] Expose RegUnloadKey in winreg

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : Added file: http://bugs.python.org/file38382/issue21518_5.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23601] use small object allocator for dict key storage

2015-03-07 Thread Julian Taylor
Julian Taylor added the comment: PyObject_Malloc just calls malloc above the threshold so there is no problem for larger dicts. For larger dicts the performance of malloc is also irrelevant as the time will be spent elsewhere. -- ___ Python tracker

[issue23603] Embedding Python3.4 - PyUnicode_Check fails (MinGW-W64)

2015-03-07 Thread Ashish Sadanandan
Changes by Ashish Sadanandan : -- title: MinGW-64 and embedding Python3.4 -> Embedding Python3.4 - PyUnicode_Check fails (MinGW-W64) ___ Python tracker ___ _

[issue23604] Python 3.4 and 2.7 installation no Script folder and no pip installed

2015-03-07 Thread Daiyue Weng
New submission from Daiyue Weng: Hi, I was doing a fresh installation for Python 2.7.9 (32 bit) and 3.4.3 (32 bit) (downloaded from PSF) on Win7 X64 today, and I found that there is no 'Script' folder in 'Python27' and 'Python34' folder as first child level folder, but there is one in Tools. H

[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter

2015-03-07 Thread Claudiu Popa
Claudiu Popa added the comment: This was fixed by a different patch in https://hg.python.org/cpython/rev/5f3dd0a2b1ab -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue7352] pythonx.y-config --ldflags out of /usr and missing -L

2015-03-07 Thread Matthias Klose
Matthias Klose added the comment: this seems to work for me: $ python-config --ldflags -L/usr/lib/python2.7/config-x86_64-linux-gnu -L/usr/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions the patch is incomplete, no patch for the shell scrip

[issue23603] MinGW-64 and embedding Python3.4

2015-03-07 Thread Ashish Sadanandan
Changes by Ashish Sadanandan : -- title: MinGW-64 -> MinGW-64 and embedding Python3.4 ___ Python tracker ___ ___ Python-bugs-list mail

[issue23601] use small object allocator for dict key storage

2015-03-07 Thread Mark Shannon
Mark Shannon added the comment: I don't remember why PyMem_Malloc rather than PyObject_MALLOC was used, it may have been inherited from the allocation of dict tables in the earlier implementation. My only concern is that the benchmark only tests performance for very small dictionaries. The sm

[issue23603] MinGW-64

2015-03-07 Thread Ashish Sadanandan
New submission from Ashish Sadanandan: I'm trying to embed Python 3.4.3 (x64) in a program compiled using MinGW-W64 g++ 4.9.2 (output from "g++ -v" attached) and Boost.Python 1.57.0. A simple example kept crashing at runtime and I managed to track it down to this testcase (which is not using B

[issue13397] Option for XMLRPC clients to automatically transform Fault exceptions into standard exceptions

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: -Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23279] test_site/test_startup_imports fails when mpl_toolkit or logilab based modules installed

2015-03-07 Thread Mark Lawrence
Mark Lawrence added the comment: I've added names from the nosy list for #20986 as it appears to be similar. -- nosy: +BreamoreBoy, brett.cannon, christian.heimes, ncoghlan, vinay.sajip ___ Python tracker _

[issue22455] idna/punycode give wrong results on narrow builds

2015-03-07 Thread Mark Lawrence
Mark Lawrence added the comment: As 2.7 is to be supported until 2020 and a potential fix is available shouldn't we be using it? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ P

[issue21992] New AST node Else() should be introduced

2015-03-07 Thread Mark Shannon
Mark Shannon added the comment: I would say yes, it is too late. Any change to the AST is a breaking change. The current AST is full of missing line numbers, incorrect column offsets and other inconsistencies. To fix them all would be a major undertaking with no obvious benefit to the core int

[issue23602] Implement __format__ for Fraction

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> from fractions import Fraction as F >>> format(F(1, 3), '.30f') '0.00' -- nosy: +serhiy.storchaka ___ Python tracker _

[issue23551] IDLE to provide menu options for using PIP

2015-03-07 Thread Mark Lawrence
Mark Lawrence added the comment: I really do think we should support Christoph's site. It has saved me many a headache over the years. For beginners it's also got to be preferable to seeing the rather cryptic "Unable to find vcvarsall.bat" message, plus how many of them want to install VS?

[issue23103] Reduce memory usage for ipaddress object instances

2015-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88a5c1698ca4 by Serhiy Storchaka in branch 'default': Issue #23103: Reduced the memory consumption of IPv4Address and IPv6Address. https://hg.python.org/cpython/rev/88a5c1698ca4 -- nosy: +python-dev ___ P

[issue23103] Reduce memory usage for ipaddress object instances

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: OK. But I hesitate that weakref support is useful for IP addresses. -- assignee: -> serhiy.storchaka ___ Python tracker ___ _

[issue23551] IDLE to provide menu options for using PIP

2015-03-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: PS. I am fine with your initial plan. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23551] IDLE to provide menu options for using PIP

2015-03-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, I think we should consider directly supportting http://www.lfd.uci.edu/~gohlke/pythonlibs/ Unofficial Windows Binaries for Python Extension Packages When possible, this has 2.6, 2.7, 3.3, and 3.4 binaries for 32 and 64 bits. I and others use this sit

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-03-07 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file38380/issue23144.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-03-07 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file38376/issue23144.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7352] pythonx.y-config --ldflags out of /usr and missing -L

2015-03-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21992] New AST node Else() should be introduced

2015-03-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue13583] sqlite3.Row doesn't support slice indexes

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch with much simpler implementation. -- components: +Extension Modules Added file: http://bugs.python.org/file38379/sqlite3_row_slice.patch ___ Python tracker __

[issue23602] Implement __format__ for Fraction

2015-03-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.smith, ezio.melotti, mark.dickinson, rhettinger, skrah stage: -> patch review type: -> enhancement ___ Python tracker ___ _

[issue23602] Implement __format__ for Fraction

2015-03-07 Thread Tuomas Suutari
Tuomas Suutari added the comment: Here's a patch that adds Fraction.__format__ implementation, test cases and documentation. -- keywords: +patch Added file: http://bugs.python.org/file38378/issue23602.patch ___ Python tracker

[issue23602] Implement __format__ for Fraction

2015-03-07 Thread Tuomas Suutari
New submission from Tuomas Suutari: Since Decimal supports __format__, it would be nice that Fraction did too. -- components: Library (Lib) messages: 237460 nosy: tuomas.suutari priority: normal severity: normal status: open title: Implement __format__ for Fraction versions: Python 3.5

[issue23103] Reduce memory usage for ipaddress object instances

2015-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me, although since we're committing to preserving the weakref support for compatibility reasons now, I'm wondering if we should also add a test for it. -- ___ Python tracker

[issue17570] Improve devguide Windows instructions

2015-03-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be the code would cleaner when convert the "for" loop to the "while" loop and wrap in try/except only next()? -- Added file: http://bugs.python.org/file38377/issue_23051_4-3.4.patch ___ Python tracker

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-03-07 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a patch that fixes the problem. Even though calling .close() is the correct solution, I preferred to restore the previous behavior and call handle_data as soon as possible. There is a corner case in which a charref might be cut in half while feeding chunk

[issue23551] IDLE to provide menu options for using PIP

2015-03-07 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: For the initial version here is what I plan to code: A single package manager entry in a suitable menu. This would open a dialog window containing options for (inspired from msg236906). 1. Show installed packages(freeze) This menu would have opti

[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit

2015-03-07 Thread Davin Potts
Davin Potts added the comment: I am unable to reproduce the described behavior using the script provided in that gist using Python 2.7.9 on OS X 10.10 with scikit-learn 0.15.2, scipy 0.14.0, numpy 1.9.0. For me, the sample code runs happily through to completion. Can the OP still reproduce th

[issue22268] add dedicated functions mrohasattr and mrogetattr

2015-03-07 Thread Mark Lawrence
Changes by Mark Lawrence : -- title: mrohasattr and mrogetattr -> add dedicated functions mrohasattr and mrogetattr ___ Python tracker ___ __

[issue22227] Simplify tarfile iterator

2015-03-07 Thread Mark Lawrence
Mark Lawrence added the comment: LGTM at a quick glance. Can we have a formal patch review please. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-07 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue21992] New AST node Else() should be introduced

2015-03-07 Thread Mark Lawrence
Mark Lawrence added the comment: The referenced issue1659410 has been closed as "too late". Does that also apply here or is this still considered to be a valid enhancement request? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 2.7 ___ Python t

[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.

2015-03-07 Thread Håkan Lövdahl
Changes by Håkan Lövdahl : -- nosy: +Håkan Lövdahl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-07 Thread Mark Lawrence
Mark Lawrence added the comment: This can be reproduced on Windows 8.1. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___

[issue23400] Inconsistent behaviour of multiprocessing.Queue() if sem_open is not implemented

2015-03-07 Thread Davin Potts
Davin Potts added the comment: Attaching updated single patch for both default/3.5 and 3.4 to use Serhiy's insightful simplification. This updated patch has been tested on current Debian Hurd (see earlier comments about full battery of tests there) and OS X 10.10 (full, verbose tests). Note t

[issue16462] smtpd should return greeting

2015-03-07 Thread Håkan Lövdahl
Changes by Håkan Lövdahl : -- nosy: +Håkan Lövdahl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-03-07 Thread Alistair Lynn
Changes by Alistair Lynn : -- nosy: +alynn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

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

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added comments on Rietveld. Is there a limit to the length of header line? Would not unfolding all header values exceed the limit? -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker

[issue23579] Amazon.com links

2015-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5903ab233a1d by Benjamin Peterson in branch '3.4': replace Amazon links in the documentation (closes #23579) https://hg.python.org/cpython/rev/5903ab233a1d New changeset 4ad1ea911fd0 by Benjamin Peterson in branch '2.7': replace Amazon links in the

[issue23601] use small object allocator for dict key storage

2015-03-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: There seem to be quite a few other places where this simple optimization could make sense as well, perhaps even going as far as converting all uses of PyMem_MALLOC to PyObject_MALLOC. There was a time when the small memory allocator did not return free aren

  1   2   >