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

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e280a04625cc by Georg Brandl in branch '2.7': Closes #23181: codepoint -> code point https://hg.python.org/cpython/rev/e280a04625cc -- ___ Python tracker _

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2015-01-13 Thread Ethan Furman
Ethan Furman added the comment: Removed the new ABI functions, all new functions are static. Duplicated bytes code in bytearray. in-place interpolation returns new bytearray at this point. I'll work on getting in-place working, but otherwise I'll commit this in a week so we have something in

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

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset c917ba25c007 by Georg Brandl in branch 'default': Closes #23181: codepoint -> code point https://hg.python.org/cpython/rev/c917ba25c007 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed __

[issue20140] UnicodeDecodeError in ntpath.py when home dir contains non-ascii signs

2015-01-13 Thread Lin Wei
Lin Wei added the comment: The patch (http://bugs.python.org/issue9291#msg206938) for #9291 actually helps with this issue, at least for me. By the way, @Serhiy do you mean that the problem is merely documentation, while the implementation is alright? -- nosy: +Lin.Wei __

[issue23226] Add float linspace recipe to docs

2015-01-13 Thread Andrew Barnert
Andrew Barnert added the comment: So something like the first version below? Or should even the example be inline, as in the second version below? (Apologies if the formatting gets screwed up pasting from docs to bugs.) --- Range objects are inappropriate for non-integral types, especially in

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

2015-01-13 Thread Martin Panter
Martin Panter added the comment: Here is a patch to implement the zlib-codec and bz2-codec StreamWriter classes based on their IncrementalEncoder classes. It depends on my patch for Issue 23231, though I guess it could be tweaked to work around that if desired. -- keywords: +patch vers

[issue23189] Set docstrings to empty string when optimizing with -OO.

2015-01-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Here are some of the packages that run into trouble > when the docstrings are set to 'None' by the -OO optimization I think you should file bug reports for those packages. We've agreed here that the current behavior is correct and that the proposed change

[issue23226] Add float linspace recipe to docs

2015-01-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is too much. Try for a brief reference. This section of the docs is primarily about how range() works. Linspace() is at best a tangential discussion and shouldn't interfere with the usability of range() docs (a tool we actually have and that is in c

[issue23223] subprocess32 unable to be installed via pip

2015-01-13 Thread Berker Peksag
Berker Peksag added the comment: Oh, good point! I missed that, thanks. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23223] subprocess32 unable to be installed via pip

2015-01-13 Thread Zachary Ware
Zachary Ware added the comment: _posixsubprocess should not be compiled on Windows, as it will not work and has the potential to completely screw up subprocess on Windows. This appears to be a bug in subprocess32's setup.py, and thus does not apply to Python itself at all. I agree with Victor t

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

2015-01-13 Thread Berker Peksag
Changes by Berker Peksag : -- components: +Library (Lib) -Extension Modules nosy: +gregory.p.smith stage: -> patch review ___ Python tracker ___

[issue23223] subprocess32 unable to be installed via pip

2015-01-13 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file37701/issue23223.diff ___ Python tracker ___

[issue23223] subprocess32 unable to be installed via pip

2015-01-13 Thread Berker Peksag
Berker Peksag added the comment: Quoting from https://code.google.com/p/python-subprocess32/: "Think you've found an issue? Please try to reproduce it using Python 3.4 and file it using http://bugs.python.org/. Work will be done upstream and backported to this project." -- nosy: +berk

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

2015-01-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Maybe Dmitry can come up with the "skipif" logic that will test for up-to date tzinfo and skip the test if it is not. Otherwise we can try to come up with a test case which is sufficiently far in the past. -- ___

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-01-13 Thread R. David Murray
R. David Murray added the comment: Updating versions to reflect where it might get fixed (which is what we use the versions field for). -- nosy: +r.david.murray versions: -Python 3.2, Python 3.3, Python 3.6 ___ Python tracker

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2015-01-13 Thread Martin Panter
Martin Panter added the comment: Maybe it would be better to redefine the docstring to say it flushes the codec as well as calling flush() on the underlying stream. But if you really want to finish the job you should probably be closing the underlying stream, which would flush if necessary. Se

[issue3180] Interrupts are lost during readline PyOS_InputHook processing

2015-01-13 Thread Michiel de Hoon
Michiel de Hoon added the comment: I have opened a new issue 23237 for this bug; please see http://bugs.python.org/issue23237 -- ___ Python tracker ___ ___

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-01-13 Thread Michiel de Hoon
New submission from Michiel de Hoon: This bug was previously reported in http://bugs.python.org/issue3180 but was closed after seven years for being out of date. Still, the bug remains: Interrupts are lost during readline PyOS_InputHook processing. To reproduce the bug, try >>> from Tkinter im

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

2015-01-13 Thread R. David Murray
R. David Murray added the comment: Upgrading the timezone data results in passed tests. Without the fix, only one of the tests fails. Is this intentional? This, however, brings up the issue that the tests may fail on the buildbots, which may also not have up to date timezone data :( ---

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

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

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-01-13 Thread Robert Collins
Robert Collins added the comment: Ok, here's a draft patch for linecache. Next up, poking around the new TB API. -- Added file: http://bugs.python.org/file37700/linecache_1.patch ___ Python tracker

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2015-01-13 Thread Jim Jewett
Jim Jewett added the comment: That sounds like a bug magnet to me; my mental model is that the codec is my output; flushing it will push things out, and resetting it will erase anything pending. I don't care if some implementation detail means that some other object technically owns the buffer.

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Jeffrey Yasskin
Changes by Jeffrey Yasskin : -- nosy: -jyasskin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread koobs
koobs added the comment: Oops, incomplete comment, apologies. Just noticed haypo has reported the issue here already -- ___ Python tracker ___ __

[issue20739] PEP 463 (except expression) implementation

2015-01-13 Thread Berker Peksag
Berker Peksag added the comment: Guido's comment about the PEP is at https://mail.python.org/pipermail/python-dev/2014-March/133118.html Can we close this and mark PEP 463 as rejected now? -- nosy: +berker.peksag ___ Python tracker

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread koobs
koobs added the comment: FreeBSD buildbots broken since fbe87fb071a67cb5e638b3496362b5aedc0fc9a7 -- nosy: +koobs ___ Python tracker ___ __

[issue23223] subprocess32 unable to be installed via pip

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: subprocess32 is not part of Python, it's a third party mode. Report the issue to his author. -- nosy: +haypo resolution: -> not a bug status: open -> closed ___ Python tracker __

[issue23187] Segmentation fault, possibly asyncio related

2015-01-13 Thread Ivailo Karamanolev
Ivailo Karamanolev added the comment: @Victor It has been running for 5 days now on 3.4.2 using json instead of ujson. I want to give at least 10 days to crash and if it's still up, I plan to switch to simplejson to see how that will go, since json is quite slow. I'll keep playing with using d

[issue23187] Segmentation fault, possibly asyncio related

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: @Ivailo: Any progress on your investigation? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2015-01-13 Thread Martin Panter
Martin Panter added the comment: I don’t think this is appropriate. If you want to flush the underlying stream, then call its flush() method after calling reset(). The docstring only says it flushes the _codec’s_ buffers, not any buffers of the underlying stream, and it should not be the codec

[issue23197] asyncio: check if a future is cancelled before calling set_result/set_exception

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: The sslproto.py which just has been merged has a similar issue: if isinstance(exc, Exception): if self._waiter is not None: self._waiter.set_exception(exc) in _on_handshake_complete(). -- ___

[issue23197] asyncio: check if a future is cancelled before calling set_result/set_exception

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: > Oh, I forgot that the change in subprocess.py (check if waiter is cancelled > before setting its result) is already part of the issue #23197 which comes > with an unit test. Wrong, it's the issue #23173. -- ___ P

[issue23173] asyncio: kill the subprocess if the creation failed

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1eae3b6fbec6 by Victor Stinner in branch '3.4': Python issue #23173: sync with Tulip https://hg.python.org/cpython/rev/1eae3b6fbec6 -- nosy: +python-dev ___ Python tracker

[issue23173] asyncio: kill the subprocess if the creation failed

2015-01-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2015-01-13 Thread Berker Peksag
Changes by Berker Peksag : Removed file: http://bugs.python.org/file37698/issue23235.diff ___ Python tracker ___ ___ Python-bugs-list mailing

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

2015-01-13 Thread Berker Peksag
Changes by Berker Peksag : Added file: http://bugs.python.org/file37699/issue23235.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2015-01-13 Thread Martin Panter
Martin Panter added the comment: See Issue 23231 for a proposal which should make the incremental codec API compatible with a generic StreamReader/Writer class. I discovered that many of the codec files are generated by gencodec.py, not hand-written. However when I tried regenerating them, I f

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

2015-01-13 Thread Berker Peksag
Berker Peksag added the comment: Here is a possible fix. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file37698/issue23235.diff ___ Python tracker __

[issue3180] Interrupts are lost during readline PyOS_InputHook processing

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: This issue is now closed. Please open a new issue. You should mention your OS and the Python version at least. -- ___ Python tracker ___

[issue12160] codecs doc: what is StreamCodec?

2015-01-13 Thread Martin Panter
Martin Panter added the comment: This patch looks simple and uncontroversial. I think it could be merged. -- nosy: +vadmium versions: +Python 3.4 ___ Python tracker ___ _

[issue23198] asyncio: refactor StreamReader

2015-01-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23236] asyncio: add timeout to StreamReader read methods

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: Copy of the feature requets by Guido van Rossum: https://code.google.com/p/tulip/issues/detail?id=96 Often you want to stop servicing (or using) a connection when there is no activity in a given time. You can do this by wrapping all your read calls in wait_fo

[issue23236] asyncio: add timeout to StreamReader read methods

2015-01-13 Thread STINNER Victor
New submission from STINNER Victor: Attached patch adds an optional timeout parameter to the read(), read_exactly() and readline() methods of StreamReader. If a single read takes longer than timeout seconds, a asyncio.TimeoutError is raised. The timeout is reset each time new data is received.

[issue3180] Interrupts are lost during readline PyOS_InputHook processing

2015-01-13 Thread Michiel de Hoon
Michiel de Hoon added the comment: As it happens, we just ran into the same bug. To reproduce this issue, run >>> from Tkinter import * >>> Tk() Then Ctrl-C will not generate a KeyboardInterrupt. At first glance, the solution suggested by the original poster seems good. Can this issue by reop

[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 ... http://buildbot.python

[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

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

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

2015-01-13 Thread Al Sweigart
Changes by Al Sweigart : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[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

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

[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

[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 : -- nosy: +jason.coombs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

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

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

2015-01-13 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

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

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

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

2015-01-13 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[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

[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 sysconfig.get_config_vars()['CFLAGS'] = cflags + ' ' + py_cflags_nodist TypeError: Can't convert 'None

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

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: > BTW I don't want repr() of a complex number to use the complex(..., ...) notation -- it's too verbose. Okay, fair enough. -- ___ Python tracker _

[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

[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 wrote: > > Serhiy Storchaka ad

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

2015-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Another possible "fix" is to introduce a new 'imaginary' type, such that the > type of an imaginary literal is now 'imaginary' rather than 'complex', and > arithmetic operations like addition can special-case the addition of a float > to an 'imaginary' ins

[issue23230] Bug parsing integers with zero padding

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: > is a base-10 zero padded comming from the parsing of a ip string If you're parsing an ip string, how do you end up with a 000 *literal*? The SyntaxError only applies to literals in Python code; it doesn't affect conversion from strings to integers. So you

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Gustavo Temple added the comment: OK, I will do. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Gustavo Temple: A patch against newest revision of default branch would be more useful. -- ___ Python tracker ___

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

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: > Is the issue with complex superficial Unfortunately not: something like this is fairly inescapable. The problem is that when you do (for example) 5 - 6j you're in effect subtracting complex(0.0, 6.0) from complex(5.0, 0.0): you've invented a real part of

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

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Gustavo Temple added the comment: @haypo, done: atomicv4.patch -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Changes by Gustavo Temple : Added file: http://bugs.python.org/file37694/atomicv4.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Changes by Gustavo Temple : Removed file: http://bugs.python.org/file37693/atomicv4.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Changes by Gustavo Temple : Added file: http://bugs.python.org/file37693/atomicv4.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2015-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: I don't understand why w ends up having -0 as the real part. For floats, at least, we've done a lot of work to make eval(repr()) roundtrip correctly in all cases. Is the issue with complex superficial (we should fix eval or repr) or deep (if we fixed it somethi

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

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: > Another solution would be to change repr() of complex if imaginary > component is not finite number to the form complex(x, y). That wouldn't help with the str(), though, unless you're proposing to change that, too. -- ___

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

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: > Having them in the cmath module provides a place to document them which will then be searchable. Okay, makes sense. One of the reasons I'm a bit unhappy with the idea of adding infj and nanj is that it seems like an encouragement to expect "eval(repr(z))" to

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

2015-01-13 Thread Serhiy Storchaka
Serhiy Storchaka 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. Another solution would be to change repr() of complex if

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

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

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

2015-01-13 Thread Nikolaus Rath
Nikolaus Rath added the comment: Martin Panter 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 and committed first (n

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

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

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

[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 ___ ___ Python-bugs-list mailing l

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

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

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

[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 : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

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

[issue23193] Please support "numeric_owner" in tarfile

2015-01-13 Thread Eric V. Smith
Eric V. Smith added the comment: Ignore my review comment on pwd and grp being None. I see that there is a test for it (at least grp), and they're not available on Windows. -- ___ Python tracker __

[issue23221] "a(n) the", "the a(n)" typos

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset b168c41f2e3f by Benjamin Peterson in branch '3.4': fix instances of consecutive articles (closes #23221) https://hg.python.org/cpython/rev/b168c41f2e3f New changeset 6a19e37ce94d by Benjamin Peterson in branch '2.7': fix instances of consecutive art

[issue23193] Please support "numeric_owner" in tarfile

2015-01-13 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

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

2015-01-13 Thread Steve Dower
Steve Dower added the comment: It sounds like the script should handle the case where someone has already changed stdout better. We wrap the streams in PTVS so we can forward the output into the IDE where Unicode will display properly anyway. Our wrapper missing fileno is a bug in our side, bu

[issue23193] Please support "numeric_owner" in tarfile

2015-01-13 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think we want to encourage the type of coupling that arises from subclassing, especially when when overriding an undocumented method. I'm +1 on the change. I'll review the patch. Michael: can you write the tests, and hopefully docs? -- stage: p

[issue23230] Bug parsing integers with zero padding

2015-01-13 Thread R. David Murray
Changes by R. David Murray : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23227] Generator's finally block not run if close() called before first iteration

2015-01-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23193] Please support "numeric_owner" in tarfile

2015-01-13 Thread R. David Murray
R. David Murray added the comment: If it weren't for the fact that this feature is something that the tar command provides, I'd agree (the chown method is relatively short). However, since tar *does* provide this feature, it seems reasonable for us to support it as well. Call me +0.5 :) ---

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

2015-01-13 Thread R. David Murray
R. David Murray added the comment: Yes, that's possible. I will check. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[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: http://bugs.python.org/file37692/final-no-objec

  1   2   >