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

2015-03-07 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailm

[issue2211] Cookie.Morsel interface needs update

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added comments on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2211] Cookie.Morsel interface needs update

2015-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka status: languishing -> open ___ Python tracker ___

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

2015-03-07 Thread koobs
koobs added the comment: Still an issue on 2.7, 3.2, 3.3. Updating Versions to reflect this fact and assist downstreams in backporting a forthcoming fix to those versions that won't get it due to security-fix only branches. See Also: Issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=19

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

2015-03-07 Thread koobs
koobs added the comment: +nosy doko on ned_deily's advice -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue23579] Amazon.com links

2015-03-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23584] test_doctest lineendings fails in verbose mode

2015-03-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review type: -> behavior versions: +Python 3.5 ___ Python tracker ___ _

[issue21793] httplib client/server status refactor

2015-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad64b6a7c0e2 by Serhiy Storchaka in branch 'default': Issue #21793: BaseHTTPRequestHandler again logs response code as numeric, https://hg.python.org/cpython/rev/ad64b6a7c0e2 -- ___ Python tracker

[issue21793] httplib client/server status refactor

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Martin for noticing a logging issue. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

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

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: According to RFC 6265, Section 5.2: 2. If the name-value-pair string lacks a %x3D ("=") character, ignore the set-cookie-string entirely. But "Set-Cookie: spam; Expires=Thu, 01 Jan 1970 00:00:10 GMT" is accepted. key="spam", value=None. 5. If

[issue21793] httplib client/server status refactor

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

[issue23581] unittest.mock.MagicMock doesn't support matmul (@) operator

2015-03-07 Thread Håkan Lövdahl
Håkan Lövdahl added the comment: Here is a suggestion for a patch. It adds the missing matmul and has a small test for it. -- keywords: +patch nosy: +Håkan Lövdahl Added file: http://bugs.python.org/file38368/issue23581.patch ___ Python tracker

[issue23581] unittest.mock.MagicMock doesn't support matmul (@) operator

2015-03-07 Thread Berker Peksag
Berker Peksag added the comment: Looks good. I'll tweak the patch and commit it. Thanks Håkan. -- stage: -> patch review type: behavior -> enhancement ___ Python tracker ___ ___

[issue23530] os and multiprocessing.cpu_count do not respect cpuset/affinity

2015-03-07 Thread Julian Taylor
Julian Taylor added the comment: attached documentation update patch. -- keywords: +patch Added file: http://bugs.python.org/file38369/0001-Issue-23530-Update-documentation-clarify-relation-of.patch ___ Python tracker

[issue22154] ZipFile.open context manager support

2015-03-07 Thread Tuomas Suutari
Tuomas Suutari added the comment: The context manager support was added on issue #5511, so the documentation should go to 2.7, 3.4 and default. Also the version added notes should be added. -- nosy: +Tuomas Suutari ___ Python tracker

[issue23460] Decimals do not obey ':g' exponential notation formatting rules

2015-03-07 Thread Tuomas Suutari
Tuomas Suutari added the comment: Here's a patch that fixes the description for 'g' to explain what happens for `Decimal` and also documents the Decimal.__format__ in the documentation of the decimal module. -- keywords: +patch nosy: +Tuomas Suutari Added file: http://bugs.python.org/f

[issue23601] use small object allocator for dict key storage

2015-03-07 Thread Julian Taylor
New submission from Julian Taylor: dictionary creation spends a not insignificant amount of time in malloc allocating keys objects. Python has a nice small object allocator that avoids a lot of this overhead and falls back to malloc for larger allocations. Is there a reason the dictionary does

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

2015-03-07 Thread Peter J C Law
Peter J C Law added the comment: Hi, Sorry for the overkill demo. I've attached a much shorter version, the key portion of which seems to be that, for the case of UK summer time the timezone, the tzinfo's `dst()` and `utcoffset()` methods return the same value. This results in the delta betwe

[issue23601] use small object allocator for dict key storage

2015-03-07 Thread SilentGhost
Changes by SilentGhost : -- nosy: +lemburg, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue23551] IDLE to provide menu options for using PIP

2015-03-07 Thread Peter Otten
Changes by Peter Otten <__pete...@web.de>: -- nosy: +peter.otten ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2015-03-07 Thread Peter Otten
Changes by Peter Otten <__pete...@web.de>: -- nosy: +peter.otten ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23568] unittest.mock.MagicMock doesn't support __rdivmod__

2015-03-07 Thread Håkan Lövdahl
Håkan Lövdahl added the comment: I wrote a small patch and a test for it. Tested it on Python 3.5 and it worked. -- keywords: +patch nosy: +Håkan Lövdahl Added file: http://bugs.python.org/file38373/issue23568.patch ___ Python tracker

[issue23601] use small object allocator for dict key storage

2015-03-07 Thread Mark Shannon
Changes by Mark Shannon : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23601] use small object allocator for dict key storage

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue16465. -- nosy: +pitrou, rhettinger, serhiy.storchaka ___ Python tracker ___ ___ Pyt

[issue23103] Reduce memory usage for ipaddress object instances

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Nick, what is your thoughts about the patch? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue23601] use small object allocator for dict key storage

2015-03-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Interesting. I can reproduce the speedup on 64-bit Linux (Ubuntu 14.10). -- stage: -> patch review type: -> performance ___ Python tracker ___

[issue23601] use small object allocator for dict key storage

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: $ ./python -m timeit "dict(a=5, b=2)" Unpatched: 10 loops, best of 3: 2.5 usec per loop issue16465 patch: 100 loops, best of 3: 1.87 usec per loop issue23601 patch: 100 loops, best of 3: 1.98 usec per loop -- __

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

2015-03-07 Thread Ben Hoyt
Ben Hoyt added the comment: Oops, I'm sorry re previous comment -- looks like I forgot to attach scandir-8.patch. Now attached. Please re-read my previous comment and review. :-) -- Added file: http://bugs.python.org/file38374/scandir-8.patch ___ Py

[issue19610] setup.py does not allow a tuple for classifiers

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch changes this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

[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

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

[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

[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

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

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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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 Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.smith, ezio.melotti, mark.dickinson, rhettinger, skrah stage: -> patch review type: -> enhancement ___ Python tracker ___ _

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

[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

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

[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

[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

[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

[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

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

[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

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

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

[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

[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

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

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

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

[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

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

[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

[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

[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

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

[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

[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

[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

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

[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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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
Changes by Martin Panter : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ Pytho

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

  1   2   >