[issue20739] PEP 463 (except expression) implementation

2015-01-13 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20739 ___ ___ Python-bugs-list

[issue23231] Fix codecs.iterencode/decode() by allowing data parameter to be omitted

2015-01-13 Thread Martin Panter
Martin Panter added the comment: Original patch has lots of whitespace changes, probably due to generated codec code not being regenerated for a long time. This diff ignores the space changes, so should be easier to review. -- Added file:

[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c473f82309d by Victor Stinner in branch '3.4': Issue #22922: Fix ProactorEventLoop.close() https://hg.python.org/cpython/rev/6c473f82309d -- ___ Python tracker rep...@bugs.python.org

[issue23228] Crashes when tarfile contains a symlink and unpack directory contain it too

2015-01-13 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23228 ___ ___ Python-bugs-list mailing

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Gustavo Temple added the comment: @haypo, OK, I will investigate the problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___

[issue23232] 'codecs' module functionality + its docs -- concerning custom codecs, especially non-string ones

2015-01-13 Thread Jan Kaliszewski
New submission from Jan Kaliszewski: To some extent, this issue is a follow-up of Issue 20132. It concerns some parts of functionality + documentation of the 'codecs' module related to registering custom codecs, especially non-string ones (i.e., codecs that encode/decode between arbitrary

[issue23232] 'codecs' module functionality + its docs -- concerning custom codecs, especially non-string ones

2015-01-13 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: Sorry, s/Issue 20132/Issue 19548/g Issue 20132 is also related somehow, but here I ment that this is a follow-up of Issue 19548; and Zoinkity's concerns I cited are also from Issue 19548, and not from 20132. --

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue because Python cannot be compiled anymore on the Builder AMD64 FreeBSD 10.0 3.x: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/2947/steps/configure/logs/stdio checking for stdatomic.h... yes checking for GCC =

[issue22919] Update PCBuild for VS 2015

2015-01-13 Thread Steve Dower
Steve Dower added the comment: I do have Windows 7 SP1. I expected so, but didn't want to assume. I have VS 2010 *Express* and I'm now able to open the project after installing the Service Pack 1 of VS 2010. Glad to hear it. You made me a little nervous there :) (I don't feel like

[issue23018] Add version info to python[w].exe

2015-01-13 Thread Steve Dower
Steve Dower added the comment: Sure :) If you view Properties in Windows for Python 3.4's python[w].exe and look at the Details tab, it's very blank (for me it shows 'Application', the size and the modification date). However, if you look at python34.dll or py.exe it has a description,

[issue22919] Update PCBuild for VS 2015

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: You will need Windows 7 *SP1* I do have Windows 7 SP1. There is also a service pack for VS 2010 that may enable opening the newer solution - it certainly worked for me. Oh, I also worked for me. I have VS 2010 *Express* and I'm now able to open the

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

2015-01-13 Thread Nikolaus Rath
Nikolaus Rath added the comment: Martin Panter rep...@bugs.python.org writes: We still need a patch for max_length in BZ2Decompressor, and to use it in BZ2File. I'm still quite interested to do this. The only reason I haven't done it yet is that I'm waiting for the LZMA patch to be reviewed

[issue23229] add inf, nan, infj, nanj to cmath module

2015-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: Note: following the precedent of cmath.e and cmath.pi, cmath.nan and cmath.inf should have type *float*. Let's not get into the business of deciding *which* complex infinities and nans to represent. Agreed. --

[issue23229] add inf, nan, infj, nanj to cmath module

2015-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: Note, the reason I proposed nanj (and infj) is that these are produced by repr() of complex numbers. Having them in the cmath module provides a place to document them which will then be searchable. On Tue, Jan 13, 2015 at 8:46 AM, Guido van Rossum

[issue23229] add inf, nan, infj, nanj to cmath module

2015-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't understand why w ends up having -0 as the real part. Because -3.4j is interpreted as -complex(0, 3.4). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23229

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: Can you please generate a patch for the default branch of Python? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue23229] add inf, nan, infj, nanj to cmath module

2015-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: OK, let's not try to resolve that issue, we can just note it in the docs. BTW I don't want repr() of a complex number to use the complex(..., ...) notation -- it's too verbose. On Tue, Jan 13, 2015 at 11:38 AM, Serhiy Storchaka rep...@bugs.python.org wrote:

[issue23229] add inf, nan, infj, nanj to cmath module

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: This type should exist only at compile time. But then after doing x = 5j, -0.0 + 5j and -0.0 + x would have different values. Yuck! repr() (and str()) should keep zero real part if imaginary part is negative and output period if real part is zero Sorry,

[issue23233] TypeError in ./setup.py

2015-01-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: After updating outdated workspace to current sources I got following error: $ make Traceback (most recent call last): File ./setup.py, line 26, in module sysconfig.get_config_vars()['CFLAGS'] = cflags + ' ' + py_cflags_nodist TypeError: Can't convert

[issue23232] 'codecs' module functionality + its docs -- concerning custom codecs, especially non-string ones

2015-01-13 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23232 ___ ___ Python-bugs-list

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2015-01-13 Thread Tom Tanner
Tom Tanner added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21114 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23229] add inf, nan, infj, nanj to cmath module

2015-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I don't see how this helps. What do you want the repr of (for example) complex(-0.0, 5.0) to be, and why? What about the cases with 0 in the imaginary part? Ah, it doesn't help in this case. It helps only when the imaginary part is negative.

[issue23229] add inf, nan, infj, nanj to cmath module

2015-01-13 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: -gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23229 ___ ___ Python-bugs-list

[issue23232] 'codecs' module functionality + its docs -- concerning custom codecs, especially non-string ones

2015-01-13 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23232 ___ ___ Python-bugs-list mailing list

[issue22919] Update PCBuild for VS 2015

2015-01-13 Thread Zachary Ware
Zachary Ware added the comment: STINNER Victor added the comment: Note: The binary (in debug mode) moved from PCbuild\python_d.exe to PCbuild\win32\python_d.exe There ought to be a 'python.bat' in the root of the source tree that will always point to the last-built python[_d].exe, which may

[issue23233] TypeError in ./setup.py

2015-01-13 Thread Ned Deily
Ned Deily added the comment: The patch LGTM (it doesn't hurt) but I'm not sure under what circumstances anyone would run into this problem. The only scenario I can think of is where somehow ./configure, Makefile, and setup.py are out-of-sync (not all at the same rev) and the Makefile should

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2015-01-13 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- nosy: +jason.coombs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18987 ___ ___ Python-bugs-list

[issue22560] New SSL implementation based on ssl.MemoryBIO

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 432b817611f2 by Victor Stinner in branch '3.4': Issue #22560: New SSL implementation based on ssl.MemoryBIO https://hg.python.org/cpython/rev/432b817611f2 -- nosy: +python-dev ___ Python tracker

[issue22560] New SSL implementation based on ssl.MemoryBIO

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: I commited sslproto-4.patch to Python 3.4, Python 3.5 and Tulip with minor changes: - remove write_eof(), as suggested by Yury - define SSLProtocol after its transport in sslproto.py - add a docstring to SSLProtocol - test sslcontext with is not None -

[issue22560] New SSL implementation based on ssl.MemoryBIO

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9fbbe7103e7 by Victor Stinner in branch 'default': Issue #22560, asyncio doc: ProactorEventLoop now supports SSL! https://hg.python.org/cpython/rev/b9fbbe7103e7 -- ___ Python tracker

[issue23181] Unicode code point should be two words in documentation

2015-01-13 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23181 ___ ___ Python-bugs-list

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

2015-01-13 Thread STINNER Victor
New submission from STINNER Victor: Attached patch refactors subprocess code: - use new OSError exceptions - factorize stdin.write() code -- components: Extension Modules files: subprocess.patch keywords: patch messages: 233974 nosy: haypo, serhiy.storchaka priority: normal severity:

[issue23198] asyncio: refactor StreamReader

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94a6f9a3580e by Victor Stinner in branch '3.4': Issue #23198: Reactor asyncio.StreamReader https://hg.python.org/cpython/rev/94a6f9a3580e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue23235] run_tests.py doesn't set test.support.verbose correctly

2015-01-13 Thread Berker Peksag
New submission from Berker Peksag: make buildbottest uses Tools/scripts/run_tests.py and it doesn't set test.support.verbose to 0. Example output from a buildbot: [ 60/389] test_codecmaps_hk fetching http://www.pythontest.net/unicode/BIG5HKSCS-2004.TXT ...

<    1   2