[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-11-26 Thread Martin Panter
Martin Panter added the comment: For the record, this issue seemed to forget about the effect of buffering the pipe to the subprocess’s input stream. Buffering an input pipe means that data is hidden away until it is flushed, and the close() method can raise a broken pipe error. I have sometim

[issue19793] Formatting of True/Falsein in pathlib docs

2013-11-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch improves formatting of True/False in pathlib documentation. "True" becomes "``True``" if it means True constant and "true" if it means true value. -- assignee: docs@python components: Documentation messages: 204461 nosy: chris.je

[issue19793] Formatting of True/Falsein in pathlib docs

2013-11-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file32852/doc_pathlib_truefalse.patch ___ Python tracker ___

[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Formatting of True/Falsein in pathlib docs -> Formatting of True/False in pathlib docs ___ Python tracker ___ ___

[issue19794] Formatting of True/False in decimal docs

2013-11-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch improves formatting of True/False in decimal documentation. "True/False" constants become "``True``/``False``". -- assignee: docs@python components: Documentation files: doc_decimal_truefalse.patch keywords: patch messages: 204462

[issue19795] Formatting of True/False in docs

2013-11-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch improves formatting of True/False in the documentation. "True" becomes "``True``" if it means True constant and "true" if it means true value (in input arguments). See also issue19793 and issue19794. -- assignee: docs@python com

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Frames are not overlapped. And no one opcode straddles frame boundaries. When an implementation supports optional frames, it should support optimized frames as well. All tests are passed with this optimization except test_optional_frames which hacks pickled

[issue19796] urllib2.HTTPError.reason is not documented as "Added in 2.7"

2013-11-26 Thread Alex Willmer
New submission from Alex Willmer: issue13211 added a .reason attribute to urllib2.HTTPError in Python 2.7, issue16634 documented it (http://hg.python.org/cpython/rev/deb60efd32eb). The documentation for Python 2.7 doesn't mention that this attribute was added in that release. This (at least we

[issue19773] Failed to build python 2.6.9 Solaris 10

2013-11-26 Thread lambrecht
lambrecht added the comment: Ok thanks. u1662805@methpr:/home/u1662805>echo $LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/METHPR/produits/apache/sas/lib:/METHPR/produits/oracle/ORACLE_HOME/client/lib u1662805@methpr:/home/u1662805>echo $LD_RUN_PATH /usr/local/ssl/lib u1662805@methpr:/home/u166280

[issue13552] Compilation issues of the curses module on Solaris and OpenIndiana

2013-11-26 Thread STINNER Victor
Changes by STINNER Victor : -- title: Compilation issues of the curses module on OpenIndiana -> Compilation issues of the curses module on Solaris and OpenIndiana ___ Python tracker ___

[issue19773] Failed to build python 2.6.9 Solaris 10

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: > I don't know if i have need _curses : I want to build mod_python. You don't need curses for a web application. http://docs.python.org/dev/library/curses.html The curses compilation is already open, so please don't reopen this issue: http://bugs.python.org/iss

[issue19729] [regression] str.format sublevel format parsing broken in Python 3.3.3

2013-11-26 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue19797] Solaris 10. mod_python build failed.

2013-11-26 Thread lambrecht
New submission from lambrecht: Bonjour. Any idea ? mod_python 3.3.1 apache 2.2.6 ... /METHPR/tmp/apache/build/libtool --silent --mode=link gcc -o mod_python.la -rpath /METHPR/tmp/apache/modules -module -avoid-versionfinfoob ject.lo hlistobject.lo hlist.lo filterobject.lo connobject.lo se

[issue19797] Solaris 10. mod_python build failed.

2013-11-26 Thread lambrecht
Changes by lambrecht : -- components: +Build versions: +3rd party ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue19797] Solaris 10. mod_python build failed.

2013-11-26 Thread Christian Heimes
Christian Heimes added the comment: Please contact the developers of mod_python. The Python bug tracker is not the right place to get support for 3rd party software. The "3rd party" version is only for 3rd party code that is part of the main Python distribution (e.g. sqlite or zlib).

[issue19798] tracemalloc: rename "max_size" to "peak_size" in get_traced_memory() result

2013-11-26 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Library (Lib) versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue19798] tracemalloc: rename "max_size" to "peak_size" in get_traced_memory() result

2013-11-26 Thread STINNER Victor
New submission from STINNER Victor: Jim.J.Jewett asked me to replaced "max_size" with "peak_size". It looks like Linux also uses the term "peak" for /proc/pid/status (or sometimes "High Water Mark"). See attached patch. -- files: peak_size.patch keywords: patch messages: 204470 nosy:

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Bad wording perhaps, but: +if not final: +n += 9 # next frame header write = self.file_write write(FRAME) write(pack("http://www.python.org/dev/peps/pep-3

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: The code has been merged. I didn't see any test_tracemalloc on buildbots. I tried to address all remarks on the Rietveld reviews. So I'm now closing the issue. Please open new issue if you have more remarks. For example, I opened: - #19798: tracemalloc: renam

[issue19798] tracemalloc: rename "max_size" to "peak_size" in get_traced_memory() result

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: @neologix: I would like your opinion first, because you accepted the PEP. -- ___ Python tracker ___

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: If it's an optimizatio, can I see some benchmarks numbers? :-) I would be interested of benchmarks pickle 3 vs pickle 4. -- nosy: +haypo ___ Python tracker ___

[issue19766] test_venv: test_with_pip() failed on "AMD64 Fedora without threads 3.x" buildbot

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: In fact, it's an issue in the urllib3 library which require threads. $ cd /home/haypo/pip/PIP/pip/_vendor/requests/packages $ /home/haypo/prog/python/default/venv/bin/python -c 'import urllib3' Traceback (most recent call last): File "", line 1, in File "/h

[issue19798] tracemalloc: rename "max_size" to "peak_size" in get_traced_memory() result

2013-11-26 Thread Charles-François Natali
Charles-François Natali added the comment: > STINNER Victor added the comment: > > @neologix: I would like your opinion first, because you accepted the PEP. Well, I'm not a native speaker, but "peak" does sound better than "max" (I'd say the later refers to an externally-enforced limit, contrari

[issue19799] Clarifications for the documentation of pathlib

2013-11-26 Thread Eli Bendersky
New submission from Eli Bendersky: Following up from Issue #19673; The initial patch clarifies the use cases of pure vs. concrete paths a bit and adds explicit signatures for the path class constructors (moving the construction discussion under the parent class). Also, IMHO an inheritance diag

[issue19799] Clarifications for the documentation of pathlib

2013-11-26 Thread Eli Bendersky
Changes by Eli Bendersky : -- keywords: +patch Added file: http://bugs.python.org/file32858/issue19799.initial.patch ___ Python tracker ___ __

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Bad wording perhaps, but: > > +if not final: > +n += 9 # next frame header > write = self.file_write > write(FRAME) > write(pack(" > does change how

[issue19557] ast - docs for every node type are missing

2013-11-26 Thread anatoly techtonik
anatoly techtonik added the comment: https://greentreesnakes.readthedocs.org/en/latest/ -- ___ Python tracker ___ ___ Python-bugs-list

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > If it's an optimizatio, can I see some benchmarks numbers? :-) First create two files. Run unpatched Python: ./python -c "import pickle, lzma; data = [bytes([i])*2**16 for i in range(256)]; with open('test.pickle4', 'wb'): pickle.dump(data, f, 4)" Then ru

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: > On faster computers with slower files (sockets?) it should be larger. If your patch avoids unbuffered reads, you can test using these commands before your benchmark: sync; echo 3 > /proc/sys/vm/drop_caches And use one large load() instead of running it

[issue19624] Switch constants in the errno module to IntEnum

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: I don't know if it's possible/convinient, but it would be nice to have a str() method using os.strerror(). Or maybe a method with a different name. -- nosy: +haypo ___ Python tracker

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > This is not compliant with how the PEP defines it (the frame size doesn't > > include the header of the next frame): > > http://www.python.org/dev/peps/pep-3154/#framing > > "How the pickler decides to partition the pickle stream into frames is an > impleme

[issue19760] Deprecation warnings in ttest_sysconfig and test_distutils

2013-11-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 25f856d500e3 by Serhiy Storchaka in branch 'default': Issue #19760: Silence sysconfig's 'SO' key deprecation warnings in tests. http://hg.python.org/cpython/rev/25f856d500e3 -- nosy: +python-dev ___ Pytho

[issue19760] Deprecation warnings in ttest_sysconfig and test_distutils

2013-11-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19800] Write more detailed framing tests

2013-11-26 Thread Antoine Pitrou
New submission from Antoine Pitrou: The pickle tests for protocol 4 currently don't test that framing conforms strictly to the frame structure shown in: http://www.python.org/dev/peps/pep-3154/#framing It would be nice to add tests for this, especially the frame size. -- components: Li

[issue19794] Formatting of True/False in decimal docs

2013-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue19588] Silently skipped test in test_random

2013-11-26 Thread Julian Gindi
Julian Gindi added the comment: Just wanted to see if there was anything else I needed to do to get this patch rolling :) -- ___ Python tracker ___ _

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > If your patch avoids unbuffered reads, you can test using these commands > before your benchmark: > > sync; echo 3 > /proc/sys/vm/drop_caches Thank you. But starting Python needs a lot of I/O. This causes very unstable results for this test data.

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: > This causes very unstable results for this test data. So try os.system("sync; echo 3 > /proc/sys/vm/drop_caches") in your timeit benchmark. -- ___ Python tracker __

[issue19782] No SSL match_hostname() in imaplib

2013-11-26 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue19784] No SSL match_hostname() in poplib

2013-11-26 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Of course, but it still has to respect the frame structure shown in the > ASCII art drawing. I think the ASCII art drawing is just inaccurate. It forbids optional framing (tested in test_optional_frames). -- _

[issue19785] No SSL match_hostname() in smtplib

2013-11-26 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue19794] Formatting of True/False in decimal docs

2013-11-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 04c4f141874b by Serhiy Storchaka in branch '2.7': Issue #19794: Improved markup for True/False constants. http://hg.python.org/cpython/rev/04c4f141874b New changeset c1d163203f21 by Serhiy Storchaka in branch '3.3': Issue #19794: Improved markup for

[issue19794] Formatting of True/False in decimal docs

2013-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Mark. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19624] Switch constants in the errno module to IntEnum

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: > This is not so easy issue because the errno module is not pure Python module. > ;) An option is to rename the C errno module to _errno and leave it unchanged, and provide a Python errno module which enum API. Then slowly errno module should be used instead

[issue14073] allow per-thread atexit()

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #19466: the behaviour of daemon threads changed at Python exit in Python 3.4. -- nosy: +haypo ___ Python tracker ___ ___

[issue19547] HTTPS proxy support missing without warning

2013-11-26 Thread Stefan Richter
Changes by Stefan Richter : -- versions: +Python 2.6, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___ _

[issue19766] test_venv: test_with_pip() failed on "AMD64 Fedora without threads 3.x" buildbot

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: Cool, my patch was already applied upstream: https://github.com/shazow/urllib3/commit/929f15866e62d02a0249284cf54d1b8b6441505a @Nick: can you try to package a new wheel package for pip? -- ___ Python tracker

[issue19588] Silently skipped test in test_random

2013-11-26 Thread Zachary Ware
Zachary Ware added the comment: Nope, your patch looks good, I just haven't gotten it committed yet :) -- ___ Python tracker ___ ___ P

[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset eac133e13bb5 by Mark Dickinson in branch '3.3': Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float. http://hg.python.org/cpython/rev/eac133e13bb5 New changeset 9c7ab3e68243 by Mark Dickinson in bra

[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d6a018a3bb0 by Mark Dickinson in branch '2.7': Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float. http://hg.python.org/cpython/rev/6d6a018a3bb0 -- ___

[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: Now fixed. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: I ran test_strtod using: ./python -m test -M 6G test_strtod. The test passed successfully on my 64-bit Linux box. But there is an issue with the announced memory limit: it looks closer to 6 GB than 5 GB. $ ./python -m test -M 6G -v test_strtod == CPython 3.4.0

[issue19624] Switch constants in the errno module to IntEnum

2013-11-26 Thread Eli Bendersky
Changes by Eli Bendersky : -- keywords: -easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: This caused test failures on 32-bit machines on 2.7, since they can't create these huge strings in the first place. I'm working on a fix. > But there is an issue with the announced memory limit: Thanks. I'll look into it. -- ___

[issue19799] Clarifications for the documentation of pathlib

2013-11-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Would you mind if I add a .png for the pathlib rst doc? No, it sounds ok to me. -- ___ Python tracker ___ ___

[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread Sworddragon
New submission from Sworddragon: In the attachments is a testcase which does concatenate 10 times a string and than 10 times a bytes object. Here is my result: sworddragon@ubuntu:~/tmp$ ./test.py String: 0.03165316581726074 Bytes : 0.5805566310882568 -- components: Benchmarks f

[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think :const:`True` is the norm, but the patch looks good to me regardless. -- ___ Python tracker ___

[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c523ea2b429 by Mark Dickinson in branch '2.7': Issue #19638: Skip large digit string tests on 32-bit platforms. http://hg.python.org/cpython/rev/4c523ea2b429 -- ___ Python tracker

[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread Sworddragon
New submission from Sworddragon: socket(7) does contain SO_PRIORITY but trying to use this value will result in this error: AttributeError: 'module' object has no attribute 'SO_PRIORITY' -- components: Library (Lib) messages: 204506 nosy: Sworddragon priority: normal severity: normal st

[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread R. David Murray
R. David Murray added the comment: It is definitely not a good idea to rely on that optimization of += for string. Obviously bytes doesn't have the same optimization. (String didn't either for a while in Python3, and there was some controversy around adding it back exactly because one should

[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread R. David Murray
Changes by R. David Murray : -- type: behavior -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed. If you want to concatenate a lot of bytes objects efficiently, there are three solutions: - concatenate to a bytearray - write to a io.BytesIO object - use b''.join to concatenate all objects at once -- nosy: +pitrou ___

[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- keywords: +easy versions: +Python 3.5 -Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs

[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread R. David Murray
R. David Murray added the comment: For the record, a little googling indicates this may be a linux-only option (FreeBSD 6.4, for example, does not support it, nor does OS X 10.8, which are two systems to which I currently have access). That doesn't mean it shouldn't be added. -- comp

[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Georg Brandl
Georg Brandl added the comment: ``False`` is actually the preferred way, being shorter and easier to read (and we don't need to link to the documentation for False). -- nosy: +georg.brandl ___ Python tracker _

[issue14910] argparse: disable abbreviation

2013-11-26 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's a simple patch which adds this flag. It has no tests, because I noticed that there are no tests for per-platform flags in test_socket.py (only for CAN, RDS and general flags). -- keywords: +patch nosy: +Claudiu.Popa Added file: http://bugs.python.

[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread R. David Murray
R. David Murray added the comment: Yeah, I'm not sure how you'd write a test in such a way that it would test anything meaningful. Parse the .h file in the test? Seems like overkill. -- ___ Python tracker __

[issue19557] ast - docs for every node type are missing

2013-11-26 Thread Georg Brandl
Georg Brandl added the comment: When citing a link, it's customary to give at least a comment *why* you are citing it. -- nosy: +georg.brandl ___ Python tracker ___

[issue19679] smtpd.py (SMTPChannel): implement enhanced status codes

2013-11-26 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: Sounds reasonable, I will propose a patch soon. Thanks! -- ___ Python tracker ___ ___ Python-bugs-

[issue17523] Additional tests for the os module.

2013-11-26 Thread Will Weaver
Will Weaver added the comment: It seems that I probably missed some tests as I only ran then on Mac OS. Such a minor addition so no need to do anything about it. If I go about it in a better way I'll make a new issue. -- resolution: -> wont fix status: open -> closed

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-11-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset c85305a54e6d by Serhiy Storchaka in branch '2.7': Issue #11489: JSON decoder now accepts lone surrogates. http://hg.python.org/cpython/rev/c85305a54e6d New changeset 8abbdbe86c01 by Serhiy Storchaka in branch '3.3': Issue #11489: JSON decoder now ac

[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 835007ccf2b0 by Serhiy Storchaka in branch 'default': Issue #19793: Improved markup for True/False constants in pathlib documentation. http://hg.python.org/cpython/rev/835007ccf2b0 -- nosy: +python-dev __

[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-11-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Larry Hastings
Larry Hastings added the comment: I don't know enough about SSL to make a "feature vs bug/security fix" ruling on this. Can a second person who does--maybe Bill Janssen?--chime in? -- ___ Python tracker _

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Donald Stufft
Donald Stufft added the comment: I agree with Christian, mail.stufft.io should not be able to masquerade as smtp.google.com and being able to do so is a pretty big security hole. -- nosy: +dstufft ___ Python tracker

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think adding an API in bugfix releases must be an exceptional decision and I'm honestly not convinced this issue justifies it. It'd be more convincing if there was actually demand for this feature (e.g. from higher-level library authors). -- ___

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Donald Stufft
Donald Stufft added the comment: Probably the higher level libraries don't even realize it's not happening, it's similar to the issue of SSL validation for HTTPS connections where a vast swathe of people didn't even realize that their certificates weren't being validated. --

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Christian Heimes
Christian Heimes added the comment: I agree with Antoine. The five attached bug reports only refer to Python 3.4. -- ___ Python tracker ___ __

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Probably the higher level libraries don't even realize it's not > happening, it's similar to the issue of SSL validation for HTTPS > connections where a vast swathe of people didn't even realize that > their certificates weren't being validated. Exactly. And w

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Georg Brandl
Georg Brandl added the comment: For a true security fix, the default for check_hostname would have to be True. However, that will create a lot of backward compatibility problems for questionable gain. I think Larry should make an exception for 3.4 and allow this new feature. --

[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: Peak memory usage appears to be around 4 times the string length on Python 3.3, and around 3 times the string length on Python 3.4. For 3.4, the peak occurs while formatting the exception message; presumably at that point we've got all three of (a) the origin

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Larry Hastings
Larry Hastings added the comment: Okay, you have my permission to add match_hostname() and fix the security hole you cite. Can you have it done soon, so it can bake for a while in trunk before we cut beta 2? -- ___ Python tracker

[issue19662] smtpd.py should not decode utf-8

2013-11-26 Thread Illirgway
Illirgway added the comment: Here is another patch for fixing this issue: https://github.com/Illirgway/cpython/commit/12d7c59e0564c408a65dd782339f585ab6b14b34 Sorry for my bad english -- nosy: +Illirgway versions: +Python 3.3 -Python 3.5 Added file: http://bugs.python.org/file32861/pyt

[issue19557] ast - docs for every node type are missing

2013-11-26 Thread anatoly techtonik
anatoly techtonik added the comment: SO link serves a proof that a problem is actual. It is needed, because, for example Brett doesn't think it is important. 2nd link is the same proof, and also an example of documentation wanted. -- ___ Python trac

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review versions: -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python

[issue19662] smtpd.py should not decode utf-8

2013-11-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list m

[issue19557] ast - docs for every node type are missing

2013-11-26 Thread anatoly techtonik
anatoly techtonik added the comment: In fact it may be the documentation that could be merged. -- ___ Python tracker ___ ___ Python-bu

[issue19792] pathlib does not support symlink in Windows XP

2013-11-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Also, how many people uses pathlib in Python 3.4 in Windows XP with > third-party drivers enabling symbolic link support? Should be small. I've never heard of third-party driver for symlink link support before (granted, I'm not a Windows user). I'm willing to

[issue19791] test_pathlib should use can_symlink or skip_unless_symlink from test.support

2013-11-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Mmh... The reason it's like that is that pathlib is originally 2.7-compatible (and I'd like to do a 1.0 release on PyPI by the Python 3.4 timeframe). How about we defer this to Python 3.5, to make merging easier ? -- __

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Donald Stufft
Donald Stufft added the comment: I assumed we were talking about 3.4 and didn't even notice that the issues had 3.3 and 3.2 attached to it. -- ___ Python tracker ___ ___

[issue19729] [regression] str.format sublevel format parsing broken in Python 3.3.3

2013-11-26 Thread Georg Brandl
Georg Brandl added the comment: Hmm, sucks. Benjamin, can you come up with a fix? I'll give it a few weeks to wait for more potential regressions and then do a 3.3.4. -- ___ Python tracker __

[issue11508] Virtual Interfaces cause uuid._find_mac to raise a ValueError under Linux

2013-11-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72951ffbdc76 by Serhiy Storchaka in branch '2.7': Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with http://hg.python.org/cpython/rev/72951ffbdc76 New changeset a5c26e57f429 by Serhiy Storchaka in branch '3.3': Issue #11508: Fix

[issue11508] Virtual Interfaces cause uuid._find_mac to raise a ValueError under Linux

2013-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Kent for your contribution. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 2.7 ___ Python tracker _

[issue19803] memoryview complain ctypes byte array are not native single character

2013-11-26 Thread HCT
New submission from HCT: I'm trying to create ctypes buffer to be used back and forth with C libraries, but I keep getting errors. I need to slice the buffer to cut out different pieces to work on, so I try to get a memoryview of the buffer. does the error message imply that c_ubyte, c_uint8,

[issue19588] Silently skipped test in test_random

2013-11-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset c8e138646be1 by Zachary Ware in branch '2.7': Issue #19588: Fixed tests in test_random that were silently skipped most http://hg.python.org/cpython/rev/c8e138646be1 New changeset c65882d79c5f by Zachary Ware in branch '3.3': Issue #19588: Fixed test

[issue19588] Silently skipped test in test_random

2013-11-26 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch, Julian! -- assignee: -> zach.ware resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

  1   2   >