[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-01-13 Thread Tim Golden
Changes by Tim Golden : -- assignee: -> tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-01-13 Thread Tim Golden
Tim Golden added the comment: This has just come up again over on python-list: https://mail.python.org/pipermail/python-list/2015-January/696660.html I'm the nearest thing we have to a mimetypes maintainer at least for Windows so I'll try to pick Steve's patch up. --

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

2015-01-13 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: Can it be that you have outdated tzdata? -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2015-01-13 Thread Tim Golden
Tim Golden added the comment: Steve, could you outline the need / impact for this, please? (ie can you inform my ignorance?). -- ___ Python tracker ___ _

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

2015-01-13 Thread Michael Vogt
New submission from Michael Vogt: The tarfile.makelink() code crashes with a maximum recursion error when it unpacks a tarfile that contains a symlink into a directory that already contains this symlink. Attached is a standalone testcase (that probably better explains whats going on :) and a

[issue23209] asyncio: break some cycles

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1544bdc409be by Victor Stinner in branch '3.4': Issue #23209, #23225: selectors.BaseSelector.close() now clears its internal https://hg.python.org/cpython/rev/1544bdc409be New changeset 6e7403bc906f by Victor Stinner in branch 'default': Issue #2320

[issue23225] selectors: raise an exception if the selector is closed

2015-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1544bdc409be by Victor Stinner in branch '3.4': Issue #23209, #23225: selectors.BaseSelector.close() now clears its internal https://hg.python.org/cpython/rev/1544bdc409be New changeset 6e7403bc906f by Victor Stinner in branch 'default': Issue #2320

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

2015-01-13 Thread Michael Vogt
Michael Vogt added the comment: A possible fix that works with the previous testcase for this bug. It does not break a tarfile tests. -- keywords: +patch Added file: http://bugs.python.org/file37689/possible-fix-37688.diff ___ Python tracker

[issue23185] add inf and nan to math module

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: Guido van Rossum added the comment: > Should inf and nan be added to cmath too? It has e and pi and isnan() and > isinf()... > > Also complex(0, math.nan) a value that is printed as "nanj" and > complex("nanj") parses and returns such a value, so the point cou

[issue23225] selectors: raise an exception if the selector is closed

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot Python 3.4. Changing the behaviour of get_key() in a minor Python version (3.4.x) would break the compatibility. I used Martin Richard's patch for Python 3.4: raise a KeyError if the selector is closed. I commit my change to Python 3.5 and Tulip.

[issue23225] selectors: raise an exception if the selector is closed

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

[issue23209] asyncio: break some cycles

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: I closed the issue #23225, so I'm also closing this issue. Thanks again Martin. -- resolution: -> fixed status: open -> closed ___ Python tracker _

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

2015-01-13 Thread Michael Vogt
Michael Vogt added the comment: This patch contains a regression test as well. -- Added file: http://bugs.python.org/file37690/possible-fix-23228-with-test.diff ___ Python tracker __

[issue23193] Please support "numeric_owner" in tarfile

2015-01-13 Thread Lars Gustäbel
Lars Gustäbel added the comment: I would argue that a serious alternative to this patch is to simply override the TarFile.chown() method in a subclass. However, I'm not sure if this expects too much of the user. -- ___ Python tracker

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

2015-01-13 Thread Dainis Jonitis
Dainis Jonitis added the comment: Drekins module at https://github.com/Drekin/win-unicode-console is great, but there is small issue with it when running within debugger in Visual Studio (Python Tools for Visual Studio 2.1 installed). Debugger already wraps stdout and stderr inside the visuals

[issue23185] add inf and nan to math module

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: > Should inf and nan be added to cmath too? Hmm; probably, yes. I'll open an issue. > so the point could be made that there should be a constant named complex.nanj Yes, I suppose it could (along with infj, of course). I don't like it much, and I suspect it

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

2015-01-13 Thread SilentGhost
SilentGhost added the comment: Perhaps I'm missing something here, but it doesn't seem to be a problem with valid links. Only invalid symlinks are causing this issue. -- nosy: +SilentGhost ___ Python tracker _

[issue23229] add inf and nan to cmath module

2015-01-13 Thread Mark Dickinson
New submission from Mark Dickinson: As pointed out by Guido in issue 23185, the constants `inf` and `nan` should be added to the cmath module, too. -- assignee: mark.dickinson components: Extension Modules messages: 233919 nosy: mark.dickinson priority: normal severity: normal status: o

[issue23185] add inf and nan to math module

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: Opened issue #23229. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue23229] add inf and nan to cmath module

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: Guido also says: """ Also complex(0, math.nan) a value that is printed as "nanj" and complex("nanj") parses and returns such a value, so the point could be made that there should be a constant named complex.nanj. """ ... and the same comments would apply to "

[issue23229] add inf and nan to cmath module

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: What about cmath.nanj? -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue23229] add inf and nan to cmath module

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: Oh, there is also infj: >>> complex(0, float("inf")) infj >>> complex("infj") infj >>> complex(0, float("nan")) nanj >>> complex("nanj") nanj -- ___ Python tracker ___

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

2015-01-13 Thread STINNER Victor
Changes by STINNER Victor : -- title: add inf and nan to cmath module -> add inf, nan, infj, nanj to cmath module ___ Python tracker ___

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

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: @haypo: I'm not keen on either of infj or nanj, on a YAGNI basis. I expect they'd be used almost never, and for the few times that they're really needed, complex(0, inf) and complex(0, nan) seem like good enough spellings. --

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

2015-01-13 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2015-01-13 Thread Mark Dickinson
Mark Dickinson 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. -- ___ Python t

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

2015-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are other names which exist only in math, but not in cmath. >>> sorted(set(dir(math)) - set(dir(cmath))) ['atan2', 'ceil', 'copysign', 'degrees', 'erf', 'erfc', 'expm1', 'fabs', 'factorial', 'floor', 'fmod', 'frexp', 'fsum', 'gamma', 'hypot', 'inf', 'l

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

2015-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +lars.gustaebel, serhiy.storchaka stage: -> patch review versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

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

2015-01-13 Thread Mark Dickinson
Mark Dickinson added the comment: > May be complex equivalents of all functions should be added for the same > reasons? (1) This is off-topic for this issue; please open a separate one. (2) Many of those functions simply don't make sense for complex numbers (for example floor, degrees, etc.),

[issue23230] Bug parsing integers with zero padding

2015-01-13 Thread Luis G.F
New submission from Luis G.F: Python 3.4 interpreter fail to parse a integer that has zero padding, whereas python 2.7 works properly. Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> int(001) 1 >>>

[issue23230] Bug parsing integers with zero padding

2015-01-13 Thread Geoffrey Spear
Geoffrey Spear added the comment: This is not a bug, it's a deliberate change. Python 2.x doesn't "work correctly"; what you have there is an octal literal, not a 0-padded base-10 integer. Try 008 or 011 and be surprised that python 2 is "broken" and you'll see why this syntax was removed. --

[issue20739] PEP 463 (except expression) implementation

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

[issue23230] Bug parsing integers with zero padding

2015-01-13 Thread Luis G.F
Luis G.F added the comment: Thanks for the response, but in my case, 001 is not an octal literal, is a base-10 zero padded comming from the parsing of a ip string like 111.000.222.333 , where numbers are all integers in base-10. The solution for parsing that seams to cast 000 as string and the

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-01-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't think the installer needs fixing beyond fixing mimetypes. If ensurepip fails, the whole installation ought to fail (IMO); that's the way MSI is supposed to work. It's the same if some other component could not be installed for some reason (permissions

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

2015-01-13 Thread Martin Panter
New submission from Martin Panter: As mentioned in Issue 20132, iterencode() and iterdecode() only work on text-to-byte codecs, because they assume particular data types when finalizing the incremental codecs. This patch changes the signature of the IncrementalEncoder and IncrementalDecoder me

[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

[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

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

[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

[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

[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

[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
Changes by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

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

[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

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

[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 Gustavo Temple
Gustavo Temple added the comment: @haypo, OK, I will investigate the problem. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[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

[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

[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

[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

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

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

[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

[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/file37694/atomicv4.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[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

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

[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

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

[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 Gustavo Temple
Gustavo Temple added the comment: OK, I will do. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[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

[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

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

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

[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

[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 Ned Deily
Changes by Ned Deily : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[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

[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

[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

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

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

[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

[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

[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

[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

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

[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

[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

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

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

[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
Changes by Berker Peksag : Added file: http://bugs.python.org/file37699/issue23235.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

  1   2   >