[issue28272] a redundant check in maybe_small_long

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Try to bench list(range(256)). It should create small ints in tight loop. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue24665] CJK support for textwrap

2017-03-02 Thread INADA Naoki
INADA Naoki added the comment: See also http://www.unicode.org/reports/tr29/ http://www.unicode.org/reports/tr14/ -- ___ Python tracker ___ __

[issue29691] Some tests fail in coverage Travis check

2017-03-02 Thread Jelle Zijlstra
New submission from Jelle Zijlstra: A few tests fail in the coverage Travis target (see e.g. https://travis-ci.org/python/cpython/jobs/206480468): test_traceback and test_xml_etree. I extracted the actual failures by running in verbose mode locally: ===

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread Oren Milman
Changes by Oren Milman : -- pull_requests: +323 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread Oren Milman
Oren Milman added the comment: I created a pull request (https://github.com/python/cpython/pull/392) to fix the mistakes in _testcapimodule, but didn't mention this issue in the pull request's title, as the issue mentioned these mistakes only as a side note. -- _

[issue28272] a redundant check in maybe_small_long

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: issue28272_ver1.diff LGTM. Mark Dickinson: "The extra check in maybe_small_long does have a value in (...) safety with respect to future maintenance," "assert(v != NULL);" has the same purpose. I think that it's ok to require that maybe_small_long() isn't cal

[issue28272] a redundant check in maybe_small_long

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: > Try to bench list(range(256)). It should create small ints in tight loop. This expression doesn't call maybe_small_long(). -- ___ Python tracker

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: > To sum it up, my patch degrades performance for ints smaller than > (approximately) 10 ** 150, and improves performance for bigger ints. IMHO Python language mostly handles integers smaller than 1 million, so the optimization is not a good idea :-) I had th

[issue28261] wrong error messages when using PyArg_ParseTuple to parse normal tuples

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: I dislike passing a error message in the function name. I suggest to instead raise a new exception with a better error message and chain it with the previous exception. -- nosy: +haypo ___ Python tracker

[issue29692] contextlib.contextmanager may incorrectly unchain RuntimeError

2017-03-02 Thread Nick Coghlan
New submission from Nick Coghlan: As part of PEP 479, an extra check was added to contextlib._GeneratorContextManager to avoid getting confused when a StopIteration exception was raised in the body of the with statement, and hence thrown into the generator body implementing the context manager

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: Xavier de Gaye, Chi Hsuan Yen: I just merged Christian Heimes's PR. So the function should now work on Android. Can you double check that it works? Is it worth it to backport the change to Python 3.6? Do you plan to try to have a full Android support in Python

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: me: "I change the issue type to security" I'm not sure anymore that the change is really related to security. I don't think that replacing mkstemp("/tmp/py.curses.putwin.XX") with tmpfile() has an impact on security. So I don't think that it's worth it to

[issue29666] Issue in enum documentation

2017-03-02 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread Oren Milman
Oren Milman added the comment: the pull request was merged, so I guess we can close this issue.. -- ___ Python tracker ___ ___ Python-

[issue29666] Issue in enum documentation

2017-03-02 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +325 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29666] Issue in enum documentation

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: Doc has been fixed in Python 3.6 and 3.7. Thanks! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: Ok, thanks. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue29693] DeprecationWarning/SyntaxError in test_import

2017-03-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -Wa -m test.regrtest test_import Run tests sequentially 0:00:00 [1/1] test_import /home/serhiy/py/cpython/Lib/test/test_import/__init__.py:88: DeprecationWarning: invalid escape sequence \( self.assertRegex(str(cm.exception), "cannot import name

[issue29690] no %z directive for strptime in python2, doc says nothing about it

2017-03-02 Thread R. David Murray
R. David Murray added the comment: This almost qualifies as a FAQ :) In 2.7 (and in 3.x, though we've added some additional platform independent stuff there), strptime supports what the platform supports, and this is documented: "The following is a list of all the format codes that the C stan

[issue29694] race condition in pathlib mkdir with flags parents=True

2017-03-02 Thread whitespacer
New submission from whitespacer: When pathlib mkdir is called with parents=True and some parent doesn't exists it recursively calls self.parent.mkdir(parents=True) after catching OSError. However after catching of OSError and before call to self.parent.mkdir(parents=True) somebody else can cre

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread R. David Murray
R. David Murray added the comment: I don't think we should do it without deprecation, since it could break working code. But it certainly sounds like a marginal case: I doubt there is *much* code that uses the existing keyword names. -- nosy: +r.david.murray _

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file46685/deprecate-keyword-sequence.patch ___ Python tracker ___ ___ Python-

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patches deprecate the "x" keyword parameter in int(), bool() and float() and the "sequence" keyword parameter in list() and tuple(). Name "x" is meaningless, and name "sequence" is misleading (any iterable is accepted, not just sequence). The docu

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: R. David Murray added the comment: > I don't think we should do it without deprecation, since it could break > working code. But it certainly sounds like a marginal case: I doubt there is > *much* code that uses the existing keyword names. I'm not sure that i

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, I was feeling the same, but asked just for the case. Could you then look at deprecation messages? I'm sure that 'The "x" keyword argument of int() is deprecated' is not the best wording, and may be even ugly wording. Could you please suggest better wor

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: "What's New in Python 3.7" has a section for such changes: "Porting to Python 3.7: Changes to the Python API". https://docs.python.org/dev/whatsnew/3.7.html#porting-to-python-3-7 Oh, I see that you already made a similar change but this one had a deprecation per

[issue29696] Use namedtuple in Formatter.parse iterator response

2017-03-02 Thread Facundo Batista
New submission from Facundo Batista: Right now: >>> Formatter().parse("mira como bebebn los peces en el {rio} {de} {la} plata") >>> next(_) ('mira como bebebn los peces en el ', 'rio', '', None) This returned tuple should be a namedtuple, so it's self-explained for people exploring this (and

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread R. David Murray
R. David Murray added the comment: So these will become positional only? In that case I'd say "Using 'x' as a keyword argument is deprecated; specify the value as a positional argument instead" -- ___ Python tracker

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue20283. Obviously wrong keyword parameter names in regex methods were deprecated in 2.7, 3.3 and 3.4 and removed in 3.6. -- ___ Python tracker _

[issue29678] email.Message.get_params decodes only first one header value

2017-03-02 Thread Andrew Nester
Changes by Andrew Nester : -- pull_requests: +326 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29678] email.Message.get_params decodes only first one header value

2017-03-02 Thread Andrew Nester
Andrew Nester added the comment: Thanks for reporting! Just added PR fixing this. -- nosy: +andrewnester ___ Python tracker ___ ___ Py

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you David! Updated warning messages for your suggestion and added entries in Misc/NEWS and What's New. -- Added file: http://bugs.python.org/file46686/deprecate-bad-keywords.patch ___ Python tracker

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Christian Heimes
New submission from Christian Heimes: I think I made a mistake during the port to OpenSSL 1.1.x. defined(OPENSSL_VERSION_1_1) is on the wrong ifndef block. -- Old code #ifndef OPENSSL_NO_ECDH /* Allow automatic ECDH curve sele

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Christian Heimes
Christian Heimes added the comment: The bug report was too much of a "memo to me" brain dump. Let me clarify. For OpenSSL 1.0.2 we can call SSL_CTX_set_ecdh_auto() to enable ECDH curves. For OpenSSL < 1.0.2 it was necessary to configure a curve with SSL_CTX_set_tmp_ecdh(). OpenSSL >= 1.1.0 doe

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +327 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29678] email.Message.get_params decodes only first one header value

2017-03-02 Thread R. David Murray
R. David Murray added the comment: Thanks for the response, but I do not believe that this is a bug. The python3 email package will decode the headers automatically if you use the new policies, so if you iterate through the headers, you'll get the decoded versions, with access to the parms dic

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +328 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread Nikita Kniazev
New submission from Nikita Kniazev: I have failed to find previous discussion when `while (n--)` was changed to `n++; while (--n)`. (commits 306d6b1ea6bf2582b9284be2fd27275abbade3e1, 165eee214bc388eb588db33385ca49ddbb305565) It is clear for me that n++; while (--n) and for (; n; --n) are inter

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +330 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +331 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> rhettinger components: +Extension Modules -Interpreter Core nosy: +rhettinger, serhiy.storchaka stage: -> patch review versions: -Python 3.6 ___ Python tracker _

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: The purpose of the issue is unclear to me. Why do you want to replace while with for? For readability? I agree that "n++; while (--n) ..." is surprising. It seems strange to start with a "n++" to decrement it in the next instruction :-) It's also unusual to w

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: Oh, a little bit more context: Raymond Hettinger is the maintainer of _collectionsmodule.c and spent a lot of time to optimize this file! -- ___ Python tracker ___

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread Nikita Kniazev
Nikita Kniazev added the comment: > The purpose of the issue is unclear to me. I was asked to open an issue by Serhiy Storchaka on the GitHub PR. > Why do you want to replace while with for? For readability? Yes, I have open a PR just to improve the readability, because I was surprised by thi

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: > Yes, I have open a PR just to improve the readability, because I was > surprised by this incrementing-decrementing statements like you. Honestly, I don't really care of the exact syntax of C loops in _collectionmodule.c. But if your patch is rejected (right

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29696] Use namedtuple in string.Formatter.parse iterator response

2017-03-02 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith title: Use namedtuple in Formatter.parse iterator response -> Use namedtuple in string.Formatter.parse iterator response ___ Python tracker _

[issue29693] DeprecationWarning/SyntaxError in test_import

2017-03-02 Thread Brett Cannon
Brett Cannon added the comment: Looks like the 'r' prefix is missing on the regex string. Marking this as "easy" if someone wants to try and solve this. And FYI I double-checked that this is only in 3.7. -- keywords: +easy ___ Python tracker

[issue29688] Document Path.absolute

2017-03-02 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mai

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-02 Thread Brett Cannon
Changes by Brett Cannon : -- title: 'round()' accepts a negative integer for ndigits -> clarify docs about 'round()' accepting a negative integer for ndigits ___ Python tracker

[issue29682] Possible missing NULL check in pyexpat

2017-03-02 Thread Brett Cannon
Changes by Brett Cannon : -- title: Checks for null return value -> Possible missing NULL check in pyexpat ___ Python tracker ___ ___

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2017-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: TL;DR - Just one more example of why nobody should *ever* use pickle under any circumstances. It is useless for data that is not transient for consumption by the same exact versions of all software that created it. Patches against 2.7 are not useful here.

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2017-03-02 Thread Daniel Kahn Gillmor
Daniel Kahn Gillmor added the comment: and here is python demonstration script that will build breaker.c and then use it to cause the error to be raised from shutils.rmtree. the output of demo.py looks like this: make: 'breaker' is up to date. Traceback (most recent call last): File "./demo.

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2017-03-02 Thread Daniel Kahn Gillmor
New submission from Daniel Kahn Gillmor: There is a race condition in shutil.rmtree, where if a file gets removed between when rmtree plans to remove it and when it gets around to removing it, a FileNotFound exception gets raised. The expected semantics of rmtree imply that if the filesystem t

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Todd. I ran crash.py on Win10 64 bit, stock PSF 3.6.0 (no anaconda). Put cursor after 2 and hit '0'. Same error, different numbers. alloc: invalid block: 02C8928640D0: 40 93 Followed by Windows' "Python has stopped working" box. Cursor after the '

[issue27200] make doctest in CPython has failures

2017-03-02 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +332 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Gregory P. Smith
New submission from Gregory P. Smith: The readline module causes memory corruption (sometimes a crash) when the sys.stdin file descriptor is out of bounds for its FD_SET() call within readline.c's readline_until_enter_or_signal() function. https://github.com/python/cpython/blob/master/Modules/

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Christian Heimes
Christian Heimes added the comment: Do you see a chance that the issue could be abused? IMO an attacker can't control FD number easily. -- nosy: +christian.heimes ___ Python tracker ___

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think issue27405 could help to make a pure Tcl reproducer. If the same error happen with Tcl version, this is not Python bug. -- ___ Python tracker ___

[issue29701] Add close method to queue.Queue

2017-03-02 Thread Mathias Fröjdman
New submission from Mathias Fröjdman: queue.Queue should have a close() method. The result of calling the method would be to raise a new exception - queue.Closed, for any subsequent calls to Queue.put, and after the queue is empty, also for Queue.get. Why: To allow producers (callers of Queue.

[issue29701] Add close method to queue.Queue

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: It doesn't seem very abusable... Though of a server accepts enough remote connections and uses input() and swaps out stdin after remote uses up fds with connections... That's a lot of circumstances at once. Rare application. We ran into it with an interactive

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-03-02 Thread Todd Goldfinger
Todd Goldfinger added the comment: >> cursor after the '6' follows by '0' The max is 21. See 'to' parameter. I don't know if my code is correct, but it seems to work more or less. Obviously the crash is an issue with tk or Python. -- ___ Python t

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Martin Panter
Martin Panter added the comment: Be careful, some OSes have limited support for “poll”, “kqueue”, etc with terminals, and I ended up using “select” in the test suite: https://bugs.python.org/issue26870#msg265604 https://github.com/python/cpython/commit/79f561d126d09d6d7ea1457a2a6ef267d93e6448

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Bummer. I wish select could die. :) On Thu, Mar 2, 2017, 1:06 PM Martin Panter wrote: > > Martin Panter added the comment: > > Be careful, some OSes have limited support for “poll”, “kqueue”, etc with > terminals, and I ended up using “select” in the test su

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-02 Thread Brian Coleman
Changes by Brian Coleman : -- pull_requests: +333 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-02 Thread Brian Coleman
Brian Coleman added the comment: I have created a pull request to backport the fix onto 3.6 here: https://github.com/python/cpython/pull/402 -- ___ Python tracker ___ ___

[issue29702] Error 0x80070003: Failed to launch elevated child process

2017-03-02 Thread Armen Levonian
New submission from Armen Levonian: For some reason, after uninstalling Python 3.5.2 on my Windows 10 (64 bit - latest version), I am no longer able to install any new version of Python after version 3.4.3 I keep getting the failure to elevate privileges. I have of course tried to run the ins

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy for https://github.com/python/asyncio/pull/497 Ned, this needs to be in 3.6.1, working code from 3.4 doesn't work in 3.6.0: http://stackoverflow.com/questions/42546099/python-asyncio-migrate-from-3-4-to-3-5/42566336#42566336 -- assignee: yseliv

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28129] assertion failures in ctypes

2017-03-02 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +335 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +336 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Ned Deily
Ned Deily added the comment: OK. I assume you will make PRs for python/cpython and cherry-pack to the 3.6 and 3.5 branches? -- ___ Python tracker ___ ___

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: > OK. I assume you will make PRs for python/cpython and cherry-pack to the 3.6 > and 3.5 branches? Yes, working on it! -- ___ Python tracker _

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, but I'm going to keep the code as-is. To mine eyes (the maintainer), the while-loop better expresses my intention (a decrement-skip-on-zero step). On at least one compiler (GCC-6), it allows better code to generated (a sub-and-test instead of a sub-

[issue29701] Add close method to queue.Queue

2017-03-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-02 Thread Seth Michael Larson
New submission from Seth Michael Larson: Copied from https://github.com/python/asyncio/issues/484 """ >From https://bugs.python.org/issue23242#msg284930 The following script is used to reproduce the bug: import asyncio async def execute(): process = await asyncio.create_subprocess_exec(

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-02 Thread Seth Michael Larson
Changes by Seth Michael Larson : -- components: +asyncio nosy: +gvanrossum type: -> behavior ___ Python tracker ___ ___ Python-bugs-l

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- components: +asyncio nosy: +gvanrossum resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-02 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29271] Task.current_task(None) returns unexpected result

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +338 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28893] Make sure exceptions raised in __aiter__ are properly chained in ceval

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +339 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29692] contextlib.contextmanager may incorrectly unchain RuntimeError

2017-03-02 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
New submission from James Crowther: Currently I can't use socket to resolve host names to IP addresses. This is something critical to mine as well as other applications that run over networks. When I attempt to do the following: import socket socket.getaddrinfo(hostname, None) or socket.ge

[issue28963] Use-after-free in _asyncio_Future_remove_done_callback() of _asynciomodule.c

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +340 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: Can you guys create a PR on github.com/python/cpython? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread Ned Deily
Ned Deily added the comment: What value are you using for hostname? -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list ma

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
James Crowther added the comment: Hi Ned, Doesn’t seem to matter, I can try my local host name given by; socket.gethostname() or I can try another host on the network, same result. If I do the exact same operation using the same python version on windows or linux, then I get the exp

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread Ned Deily
Ned Deily added the comment: Sorry, I can't reproduce that behavior with my macOS 10.12, 10.11, or 10.10 systems if the hostname is a valid string including "localhost". If the string is empty or hostname is None, then I see Errno 8. $ /usr/local/bin/python3.6 Python 3.6.0 (v3.6.0:41df79263a1

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
James Crowther added the comment: Hi Ned, Currently running 10.12.3. and output is as follows Jamess-MacBook-pro:crowdrender_repository jamesmac$ python3.5 Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copy

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +341 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +342 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread Ned Deily
Ned Deily added the comment: James, I'm sorry I didn't show it but using socket.gethostname() as the source of hostname works just fine, too. import socket >>> hostname = socket.gethostname() >>> hostname 'harj.local' >>> socket.getaddrinfo(hostname, None) [(, , 17, '', ('fe80::8d8:1de3:dfa:e3

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
James Crowther added the comment: Hi Ned, Thats ok, thanks! I’m going to try it on another machine, its really strange, I’m wondering what I might have done on my mac to cause it to flake out like this. Will do some more testing with other macs running 10.12 and see if they have the s

[issue29702] Error 0x80070003: Failed to launch elevated child process

2017-03-02 Thread Eryk Sun
Eryk Sun added the comment: The error message is misleading. It happens that WiX is trying to run an elevated process (see the WiX functions CoreLaunchApprovedExe, CoreElevate, ElevationElevate, and PipeLaunchChildProcess). However, the actual error code has nothing to do with elevation. Error

[issue28728] test_host_resolution in test_socket fails

2017-03-02 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +343 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue29271] Task.current_task(None) returns unexpected result

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +344 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28893] Make sure exceptions raised in __aiter__ are properly chained in ceval

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +345 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-02 Thread David E. Franco G.
New submission from David E. Franco G.: Well, this is pretty self explanatory, when playing with this new features of async and await (https://docs.python.org/3.5/whatsnew/3.5.html#new-features) I found to me surprise that there is no syntax highlighting for it in the IDLE for py3.5 and also f

  1   2   >