[issue31415] Add -X option to show import time

2017-11-02 Thread INADA Naoki
INADA Naoki added the comment: When adding environment variable option, it should be documented in man page and `python -h`. -- ___ Python tracker

[issue30806] netrc.__repr__() is broken for writing to file

2017-11-02 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed versions: +Python 3.7 ___ Python tracker ___

[issue30806] netrc.__repr__() is broken for writing to file

2017-11-02 Thread INADA Naoki
Change by INADA Naoki : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30806] netrc.__repr__() is broken for writing to file

2017-11-02 Thread INADA Naoki
INADA Naoki added the comment: New changeset 5fbe5e161c969bc8a0d44a301152f8bf5afe0fc7 by INADA Naoki (Miss Islington (bot)) in branch '3.6': bpo-30806: Fix netrc.__repr__() format (GH-2491)

[issue28791] update sqlite to latest version before beta 1

2017-11-02 Thread Mariatta Wijaya
Change by Mariatta Wijaya : -- pull_requests: +4210 ___ Python tracker ___ ___

[issue28791] update sqlite to latest version before beta 1

2017-11-02 Thread Mariatta Wijaya
Change by Mariatta Wijaya : -- keywords: +patch pull_requests: +4209 stage: needs patch -> patch review ___ Python tracker

[issue31921] Bring together logic for entering/leaving a frame in frameobject.c

2017-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think we should be re-arranging the core of the language to facilitate your language experiments. We need to know that is this is valuable for other people, not just you. -- nosy: +rhettinger

[issue31928] DOC: Show sys.version_info as a named tuple

2017-11-02 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30806] netrc.__repr__() is broken for writing to file

2017-11-02 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4208 stage: -> patch review ___ Python tracker ___

[issue22281] ProcessPoolExecutor/ThreadPoolExecutor should provide introspection APIs

2017-11-02 Thread Thomas Moreau
Change by Thomas Moreau : -- pull_requests: +4207 stage: needs patch -> patch review ___ Python tracker ___

[issue31700] one-argument version for Generator.typing

2017-11-02 Thread Sebastian Rittau
Sebastian Rittau added the comment: Sorry for not responding, but I didn't know what I could have added that I didn't already say in the opening post. Of course, you can use workaround like using the three-argument version or creating aliases. Using Iterator is of course

[issue31415] Add -X option to show import time

2017-11-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 700d2e4755921d6c339ff20dacecde1aea64de34 by Barry Warsaw in branch 'master': bpo-31415: Support PYTHONPROFILEIMPORTTIME envvar equivalent to -X importtime (#4240)

[issue25293] Hooking Thread/Process instantiation in concurrent.futures.

2017-11-02 Thread Antony Lee
Antony Lee added the comment: I can't say I *really* need this anymore, but note that https://bugs.python.org/issue21423 is less general as it does not handle the case of a finalizer as proposed here. -- ___ Python tracker

[issue31700] one-argument version for Generator.typing

2017-11-02 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Since there is no response for few weeks I assume this works for you. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue25293] Hooking Thread/Process instantiation in concurrent.futures.

2017-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'd rather close this in favour of issue21423. -- nosy: +pitrou resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer

[issue31890] Please define the flag METH_STACKLESS for Stackless Python

2017-11-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e3397333278f973a11d933c27a69af250e4acf0 by Victor Stinner (Anselm Kruis) in branch 'master': bpo-31890: define METH_STACKLESS (#4159) https://github.com/python/cpython/commit/9e3397333278f973a11d933c27a69af250e4acf0

[issue31925] test_socket creates too many locks

2017-11-02 Thread ppperry
Change by ppperry : -- title: test_socket creates too much locks -> test_socket creates too many locks ___ Python tracker ___

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2017-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: The problem is back, at least on Windows, in 2.7.14, 3.5.4, 3.6.3, and 3.7.0. Numlock has no effect. I open #31930 for this. -- resolution: accepted -> fixed stage: -> resolved ___ Python

[issue31930] IDLE: Pressing "Home" on Windows places cursor before ">>>"

2017-11-02 Thread Terry J. Reedy
New submission from Terry J. Reedy : If one enters text in Shell after a '>>> ' prompt, Home should initially send the cursor between the prompt and entered text and then to the beginning of the line, and so on as a toggle. On all current releases (and the final 3.5.4), on

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've opened a PR for this at https://github.com/python/cpython/pull/4241, loosely based on Dan's last patch. -- ___ Python tracker

[issue31929] Raw strings create syntax error when last character is a single backslash

2017-11-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This is defined behavior, not a bug. See the end of the section on string literals: https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals -- nosy: +barry resolution: -> not a bug stage: -> resolved

[issue31415] Add -X option to show import time

2017-11-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I like this a lot and while the issue is still open, I'm piggybacking my PR 4240 on this one. I have a use case for enabling this feature via environment variable, so PR 4240 adds PYTHONPROFILEIMPORTTIME which also enables this feature.

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-02 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-02 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +4206 ___ Python tracker ___ ___

[issue31929] Raw strings create syntax error when last character is a single backslash

2017-11-02 Thread Barry
New submission from Barry : Raw strings create syntax error when last character is a backslash (\). This problem seems to exist across all versions of python (that I have access to) Sample Code: - Under Windows

[issue31415] Add -X option to show import time

2017-11-02 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- pull_requests: +4205 stage: resolved -> patch review ___ Python tracker ___

[issue30952] include Math extension in SQlite

2017-11-02 Thread Big Stone
Big Stone added the comment: Sorry, I'm not skilled enough to do PR on Python core. -- ___ Python tracker ___

[issue31928] DOC: Show sys.version_info as a named tuple

2017-11-02 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +4204 stage: -> patch review ___ Python tracker ___

[issue31928] DOC: Show sys.version_info as a named tuple

2017-11-02 Thread Cheryl Sabella
New submission from Cheryl Sabella : Invoking sys.version_info displays results as a named tuple, but the documentation shows the results as a tuple. -- assignee: docs@python components: Documentation messages: 305446 nosy: csabella, docs@python priority: normal

[issue30952] include Math extension in SQlite

2017-11-02 Thread Zachary Ware
Zachary Ware added the comment: Would you like to supply a PR? -- ___ Python tracker ___

[issue27645] Supporting native backup facility of SQLite

2017-11-02 Thread Lele Gaifax
Lele Gaifax added the comment: As suggested by Brett Cannon, I closed the original PR#377 and opened a new one against a rebased version of the implementation. -- ___ Python tracker

[issue27645] Supporting native backup facility of SQLite

2017-11-02 Thread Lele Gaifax
Change by Lele Gaifax : -- pull_requests: +4203 ___ Python tracker ___ ___

[issue28643] Broken makefile depends for profile-opt target

2017-11-02 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset 4e38d71a2b7b606fb1b0078c2d7014fc24044dac by Neil Schemenauer in branch 'master': bpo-28643: Record profile-opt build progress with stamp files (#4223)

[issue30670] pprint for dict in sorted order or insert order?

2017-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A year ago I proposed to add a method for detecting whether a dict preserves an order and in what sense. [1] But this idea was rejected. [1] https://mail.python.org/pipermail/python-dev/2016-October/146597.html --

[issue30512] CAN Socket support for NetBSD

2017-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The compilation will be fixed in issue31927. I have wrote similar patch for adding CAN Socket support on NetBSD. I'll combine the patches later. This is a new feature and can be added only in 3.7. -- assignee: ->

[issue30670] pprint for dict in sorted order or insert order?

2017-11-02 Thread Aaron Hall
Aaron Hall added the comment: If/when order is guaranteed (3.7?) we should have a pprint that respects current order, -or- we should get an improved pprint (maybe named pp or print?) that understands mappings and other abstract data types. I had a conversation about

[issue31927] Fix compiling the socket module on NetBSD 8 and other issues

2017-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4202 stage: -> patch review ___ Python tracker ___

[issue31927] Fix compiling the socket module on NetBSD 8 and other issues

2017-11-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : NetBSD 8 adds support of AF_CAN (previously it was supported only on Linux). This causes a compilation error in socketmodule.c, because AF_CAN is defined in sys/socket.h, but sys/socket.h itself doesn't contain all necessary

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-11-02 Thread STINNER Victor
STINNER Victor added the comment: _ipaddr_info() also uses "type == socket.SOCK_STREAM". Is it ok? -- ___ Python tracker ___

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-11-02 Thread STINNER Victor
STINNER Victor added the comment: > sock.type == socket.SOCK_STREAM Oh, right. I wrote PR 4233 to fix the code. Yury: "Good catch. I made a PR to fix this." Oops. If you wrote a PR, would it mind to compare it with mine, please? --

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-11-02 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4201 ___ Python tracker ___

[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD and NetBSD

2017-11-02 Thread Mark Dickinson
Mark Dickinson added the comment: > I'd be surprised if sin(x)/cos(x) were materially better. Yep. I made the same assumption as you, but then "realised" that to get to the tan tests, we must already have passed all the cos tests, so cos must be okay. I thought I'd

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-11-02 Thread Yury Selivanov
Yury Selivanov added the comment: > Seems like this fix is incomplete. It contains this check: > >sock.type == socket.SOCK_STREAM > > But sock.type is not only a type Good catch. I made a PR to fix this. -- resolution: fixed -> stage: resolved -> patch

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-11-02 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +4200 ___ Python tracker ___ ___

[issue31890] Please define the flag METH_STACKLESS for Stackless Python

2017-11-02 Thread Anselm Kruis
Anselm Kruis added the comment: Hi Victor, The project is still somewhat alive, because the software, that is used to control a large percentage of the CAE simulation jobs of large German automakers, requires Stackless Python, especially the option to serialize

[issue30844] selectors: Add urgent data to read event

2017-11-02 Thread STINNER Victor
STINNER Victor added the comment: It seems like kqueue supports urgent data: "EV_OOBAND: Read filter on socket may set this flag to indicate the presence of out of band data on the descriptor." Example:

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-11-02 Thread Vladimir Magamedov
Vladimir Magamedov added the comment: Seems like this fix is incomplete. It contains this check: sock.type == socket.SOCK_STREAM But sock.type is not only a type (at least in Linux and FreeBSD), it also may contain SOCK_NONBLOCK and SOCK_CLOEXEC flags. So I'm

[issue31817] Compilation Error with Python 3.6.1/3.6.3 with Tkinter

2017-11-02 Thread Josh Cullum
Josh Cullum added the comment: LD_LIBRARY_PATH includes /tools/apps/tk/8.6.7/lib/:/tools/apps/tcl/8.6.7/lib/ and several other library paths that are required. Why would I be getting an undefined symbol error on this module? _tkinter.cpython-36m-x86_64-linux-gnu.so:

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2017-11-02 Thread Josh Cullum
Josh Cullum added the comment: Interestingly, I get the error with Python 3.6.3 build from source, where I include the path to the g++ binary. Python builds without the g++ option, but then _Tkinter fails to build - see issue31817 -- nosy: +jpc2350

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-11-02 Thread Tal Einat
Tal Einat added the comment: See issue #31926 and PR 4230 regarding the aforementioned argument clinic bug and a fix for it. -- ___ Python tracker

[issue31926] compile error when converting selectmodule to AC due to missing #define-s

2017-11-02 Thread Tal Einat
Tal Einat added the comment: See PR 4230. -- ___ Python tracker ___ ___

[issue31926] compile error when converting selectmodule to AC due to missing #define-s

2017-11-02 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +4199 stage: -> patch review ___ Python tracker ___

[issue31926] compile error when converting selectmodule to AC due to missing #define-s

2017-11-02 Thread Tal Einat
New submission from Tal Einat : I'm converting Modules/selectmodule.c.h as part of issue #20182. After converting the code and running Tools/clinic/clinic.py, compilation is failing on Windows due to the following block *not* being generated by in the

[issue31784] Implementation of the PEP 564: Add time.time_ns()

2017-11-02 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31784] Implementation of the PEP 564: Add time.time_ns()

2017-11-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset c29b585fd4b5a91d17fc5dd41d86edff28a30da3 by Victor Stinner in branch 'master': bpo-31784: Implement PEP 564: add time.time_ns() (#3989) https://github.com/python/cpython/commit/c29b585fd4b5a91d17fc5dd41d86edff28a30da3

[issue31925] test_socket creates too much locks

2017-11-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : test_socket creates a lock in the constructor of ThreadSafeCleanupTestCase. But since unittest creates an instance of test class for every test method, it creates around 400 locks. This exceeds the limit of 200 locks in NetBSD

[issue31924] Fix test_curses on NetBSD 8

2017-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4198 stage: -> patch review ___ Python tracker ___

[issue31924] Fix test_curses on NetBSD 8

2017-11-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The NetBSD curses library in NetBSD 8 provides the panel extension. compatible with ncurses. But a panel can not be created from stdscr. This causes failing two tests in test_curses. These tests were added not long time ago,

[issue31923] Misspelled "loading" in Doc/includes/sqlite3/load_extension.py

2017-11-02 Thread Davy Wybiral
Change by Davy Wybiral : -- keywords: +patch pull_requests: +4197 stage: -> patch review ___ Python tracker ___

[issue31923] Misspelled "loading" in Doc/includes/sqlite3/load_extension.py

2017-11-02 Thread Davy Wybiral
New submission from Davy Wybiral : Line #14 of Doc/includes/sqlite3/load_extension.py reads: # disable extension laoding again -- assignee: docs@python components: Documentation messages: 305423 nosy: davywtf, docs@python priority: normal severity: normal

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-02 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.7 -Python 3.5 ___ Python tracker ___ ___

[issue31307] ConfigParser.read silently fails if filenames argument is a byte string

2017-11-02 Thread Berker Peksag
Berker Peksag added the comment: Thanks! I went ahead and merged PR 3420 since Łukasz (the configparser maintainer) has accepted the idea. -- resolution: -> fixed stage: -> resolved status: open -> closed type: behavior -> enhancement

[issue31307] ConfigParser.read silently fails if filenames argument is a byte string

2017-11-02 Thread Berker Peksag
Berker Peksag added the comment: New changeset e314853d57450b2b9523157eebd405289a795a0e by Berker Peksag (Vincent Michel) in branch 'master': bpo-31307: Make ConfigParser.read() accept bytes objects (GH-3420)

[issue31892] ssl.get_server_certificate should allow specifying certificate / key type

2017-11-02 Thread Christian Heimes
Christian Heimes added the comment: Matt suggested to use https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set1_sigalgs.html The SSL_CTX_set1_sigalgs_list() function takes a string of colon-separated algorithms, e.g. "ECDSA+SHA256:RSA+SHA256" for ECDSA and PKCS#1 v1.5

[issue3949] curses' sigwinch handler isn't visible from python

2017-11-02 Thread STINNER Victor
STINNER Victor added the comment: > The signal(SIGWINCH, SIG_IGN) call doesn't return the old, working signal > handler; it returns 0 See bpo-13285: "signal module ignores external signal changes". By the way, I recently modified test_curses to save/restore signal

[issue18835] Add PyMem_AlignedAlloc()

2017-11-02 Thread STINNER Victor
STINNER Victor added the comment: About the API itself, I'm not sure that PyMem_AlignedAlloc(alignment, size) is flexible enough. If we want to get *data* aligned in a Python object, we would have to pass an offset to the data, since Python objects have headers of

[issue18835] Add PyMem_AlignedAlloc()

2017-11-02 Thread STINNER Victor
STINNER Victor added the comment: "C11 aligned_alloc() / free() would be more comfortable but isn't available on MSVC." Is it common to require the allocated memory block to be filled with zeros? In Python, calloc() is not the most common allocator. I only found 5

[issue31917] Add time.CLOCK_PROF constant

2017-11-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset a64ce973a3ad90e4f4a93c402e946c132f647a63 by Victor Stinner in branch 'master': bpo-31917: Add 3 new clock identifiers (#4207) https://github.com/python/cpython/commit/a64ce973a3ad90e4f4a93c402e946c132f647a63

[issue31917] Add time.CLOCK_PROF constant

2017-11-02 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue1553375] Add traceback.print_full_exception()

2017-11-02 Thread Piotr Dobrogost
Change by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___

[issue31922] Can't receive replies from multicast UDP with asyncio

2017-11-02 Thread Vincent Michel
New submission from Vincent Michel : It's currently not possible to receive replies from multicast UDP with asyncio, as reported in the following issue: https://github.com/python/asyncio/issues/480 That's because asyncio connects the UDP socket to the broadcast address,

[issue31892] ssl.get_server_certificate should allow specifying certificate / key type

2017-11-02 Thread Christian Heimes
Christian Heimes added the comment: Example implementation of get_server_certificate() with cert type: https://gist.github.com/tiran/6e7a5b00483376e164c951730db7d4e5 TLS 1.3 has a signature_algorithms extension that allows a client to have even more control over the

[issue23699] Add a macro to ease writing rich comparisons

2017-11-02 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31907] Clarify error message when attempting to call function via str.format()

2017-11-02 Thread Eric V. Smith
Eric V. Smith added the comment: Guido's suggestion in https://mail.python.org/pipermail/python-dev/2017-October/150055.html is to not change anything. Assuming we do that, it's still an open issue as to if/how we should document and test the current behavior. I'd be

[issue23699] Add a macro to ease writing rich comparisons

2017-11-02 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset e8b19656396381407ad91473af5da8b0d4346e88 by Nick Coghlan (stratakis) in branch 'master': bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions (GH-793)

[issue8548] Building on CygWin 1.7: PATH_MAX redefined

2017-11-02 Thread Berker Peksag
Berker Peksag added the comment: Thank you for doing issue triage, Masayuki! -- nosy: +berker.peksag resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-11-02 Thread Tal Einat
Tal Einat added the comment: I have a complete, up-to-date AC conversion of Modules/selectmodule.c ready on a branch in my GitHub CPython fork: https://github.com/taleinat/cpython/tree/bpo-20182_AC_selectmodule I haven't created a PR because there's currently an issue

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-11-02 Thread Tal Einat
Tal Einat added the comment: To enable progressing with this in smaller steps, I created PR 4170 which converts only itertools.groupby and the intertnal _grouper with minimal required changes. -- ___ Python tracker

[issue31921] Bring together logic for entering/leaving a frame in frameobject.c

2017-11-02 Thread pdox
Change by pdox : -- keywords: +patch pull_requests: +4195 stage: -> patch review ___ Python tracker ___

[issue31921] Bring together logic for entering/leaving a frame in frameobject.c

2017-11-02 Thread pdox
New submission from pdox : This is a refactor to move all the code involved in entering a frame (making it the active frame for the current tstate) and leaving a frame (removing it as an active frame, possibly destructing it or making it GC tracked) into private functions

[issue31920] pygettext ignores directories as inputfile argument

2017-11-02 Thread Oleg Krasnikov
Change by Oleg Krasnikov : -- keywords: +patch pull_requests: +4193 stage: -> patch review ___ Python tracker ___

[issue31872] SSL BIO is broken for internationalized domains

2017-11-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Duplicate of #28414 Nathaniel thanks for Pull Request! -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> SSL match_hostname fails for internationalized domain names

[issue31920] pygettext ignores directories as inputfile argument

2017-11-02 Thread Oleg Krasnikov
New submission from Oleg Krasnikov : This happens because pygettext's `getFilesForName` calls `os.walk` as if it was `os.path.walk`. But the `walk` function has changed signature when moved from `os.path` to `os`. So now `_visit_pyfiles` is passed to `walk` as `topdown`

[issue18304] ElementTree -- provide a way to ignore namespace in tags and searches

2017-11-02 Thread Tim Chambers
Tim Chambers added the comment: I suggest adding the option to keep the namespace prefixes in the tree when reading in (will it need to set a tree wide variable for the instance?). I haven't looked at the etree internals in detail. Add a function to ElementTree that