[issue29571] test_re is failing when local is set for `en_IN`

2017-03-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +352 ___ Python tracker ___ ___

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +351 ___ Python tracker ___ ___

[issue26389] Expand traceback module API to accept just an exception as an argument

2017-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Matthias, I will try to respond tomorrow. -- ___ Python tracker ___ ___

[issue27645] Supporting native backup facility of SQLite

2017-03-02 Thread Anish Shah
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker ___ ___

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

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

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oren, could you write reproducers for all affected cases? I don't think we need to add them as regular tests, but we should be able to check changes manually. There are conflicts in Modules/itertoolsmodule.c. --

[issue29693] DeprecationWarning/SyntaxError in test_import

2017-03-02 Thread Anish Shah
Changes by Anish Shah : -- pull_requests: +350 ___ Python tracker ___ ___

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Always coloring 'async' and 'await' is trivial (augment expression and add test line) and acceptable to me. I am a git neophyte and am waiting for workflow development to settle down before working on new setup for git. If you want to submit the change for

[issue29693] DeprecationWarning/SyntaxError in test_import

2017-03-02 Thread Anish Shah
Anish Shah added the comment: I'm not able to reproduce the SyntaxError on latest commit 902e9c50e31209e796b6bbe26f8d2f57ec12071b on master branch. -- ___ Python tracker

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2017-03-02 Thread Oren Milman
Oren Milman added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28272] a redundant check in maybe_small_long

2017-03-02 Thread Oren Milman
Oren Milman added the comment: So, should I open a pull request? (as some time had passed, I would also run again the tests, etc.) -- ___ Python tracker

[issue29693] DeprecationWarning/SyntaxError in test_import

2017-03-02 Thread Anish Shah
Anish Shah added the comment: I will try to work on this! :) -- nosy: +anish.shah ___ Python tracker ___ ___

[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2017-03-02 Thread ollieparanoid
New submission from ollieparanoid: After mounting a folder to another folder on the same filesystem with mount --bind, os.path.ismount() still returns False on the destination folder (although there is a mountpoint). A shell script to reproduce this is below. (Maybe this can be fixed by

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +easy ___ Python tracker ___ ___

[issue29693] DeprecationWarning/SyntaxError in test_import

2017-03-02 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___

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

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___

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

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An error message is not passed in the function name. PyArg_ParseTuple() allows you to pass an arbitrary error message. I think this feature is specially designed for these cases. I didn't look the patch close, but Oren's approach LGTM in general.

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

2017-03-02 Thread Oren Milman
Oren Milman added the comment: Do you mean that in each case PyArg_ParseTuple fails, we should chain to the exception raised by PyArg_ParseTuple an exception that specifies the name of the tuple that PyArg_ParseTuple failed to parse, without specifying the function name? --

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you would like 'async' and 'await' highlighted as keywords. However, IDLE takes its definition of 'keyword' from keyword.kwlist. 'Async' and 'await' are currently not on that list as they are not yet keywords. >>> async = 1 >>> await = 2

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: >According to https://www.python.org/dev/peps/pep-0492/#transition-plan, the >intention was (is?) to make them keywords in 3.7. As of Feb 11, that had not >happened yet. If and when it does, this issue will be taken care of. I plan to do that in the next

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

2017-03-02 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue29026] time.time() documentation should mention UTC timezone

2017-03-02 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +349 ___ Python tracker ___ ___

[issue29026] time.time() documentation should mention UTC timezone

2017-03-02 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +348 ___ Python tracker ___ ___

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

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Brian. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26389] Expand traceback module API to accept just an exception as an argument

2017-03-02 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > (Optional) Change 'value' to 'exc' in the API to reflect the 3.x restriction > Keep the synonym until after 2.7. Do you mean after 2.7 EOL, or after 3.7 ? > etype: In 3.5+ document that it is an ignored dummy argument and that one can > just pass 0,

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

2017-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset d8b72e4a0673c414120b029065dbe77055f12e82 by Yury Selivanov in branch '3.6': bpo-28963: Fix out of bound iteration in asyncio.Future.remove_done_callback/C (#408) https://github.com/python/cpython/commit/d8b72e4a0673c414120b029065dbe77055f12e82

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

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +347 ___ Python tracker ___ ___

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

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +346 ___ Python tracker ___ ___

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

2017-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 13802a3b11eb5202b16e464cbfb85c144f8581ce by Yury Selivanov in branch '3.6': bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. (#406) https://github.com/python/cpython/commit/13802a3b11eb5202b16e464cbfb85c144f8581ce --

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

2017-03-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this is all C coded, so it would entail making a new structseq object. -- nosy: +rhettinger ___ Python tracker

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

2017-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset dea5101ae101aefed14de98e6bb1658f4cae8712 by Yury Selivanov in branch '3.6': bpo-28893: Set __cause__ for errors in async iteration protocol (#407) https://github.com/python/cpython/commit/dea5101ae101aefed14de98e6bb1658f4cae8712 --

[issue29701] Add close method to queue.Queue

2017-03-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll mull this one over for a while and take a look at what other languages are doing. My first impression is the close() is the wrong word because in other contexts it means that a resource has been freed and that no more calls are allowed. In this

[issue29679] Add @contextlib.asynccontextmanager

2017-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: > so it would need to split any code using "async def" and "await" out to a > separate file that only gets imported on 3.5+ (and similarly only run the > corresponding test cases on 3.5+). This seems doable. I'd only vote to keep contextlib.py as one file in

[issue29679] Add @contextlib.asynccontextmanager

2017-03-02 Thread Nick Coghlan
Nick Coghlan added the comment: Something that occurred to me as being a bit tricky to handle here is the backport to contextlib2: that maintains compatibility with 2.6+, so it would need to split any code using "async def" and "await" out to a separate file that only gets imported on 3.5+

[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

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

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

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +344 ___ Python tracker ___ ___

[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

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

[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

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

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

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

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

[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

[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

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

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

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

[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

[issue29692] contextlib.contextmanager may incorrectly unchain RuntimeError

2017-03-02 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___

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

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

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +338 ___ Python tracker ___ ___

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

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

[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 Seth Michael Larson
Changes by Seth Michael Larson : -- components: +asyncio nosy: +gvanrossum type: -> behavior ___ Python tracker ___

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

[issue29701] Add close method to queue.Queue

2017-03-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ 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

[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

[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
Changes by Yury Selivanov : -- pull_requests: +336 ___ Python tracker ___ ___

[issue28129] assertion failures in ctypes

2017-03-02 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +335 ___ Python tracker ___ ___

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

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

[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

[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

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

[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

[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

[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

[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

[issue29701] Add close method to queue.Queue

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ 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

[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

[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

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

[issue27200] make doctest in CPython has failures

2017-03-02 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +332 ___ Python tracker ___ ___

[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

[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

[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

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

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

[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

[issue29688] Document Path.absolute

2017-03-02 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon nosy: +brett.cannon ___ 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

[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

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[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

[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

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

[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

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +331 ___ Python tracker ___ ___

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +330 ___ Python tracker ___ ___

[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

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +328 ___ Python tracker ___ ___

[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

  1   2   >