[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 returns the tag using the namespace prefix 
(eg. treenode.tagpre). Namespaces and prefixes are cached and used to expand 
the prefix only when absolutely required. Some XML/xpath search operations 
currently assume the full expanded namespaces not prefixes which may lead to 
side-effects.
You can leave the default behaviour for compatibility.
Using prefixes in the tree storage and searches would reduce memory and CPU 
time (when no expansion is required).

--
nosy: +Tim Chambers

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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` 
argument which is obviously wrong and therefore `_visit_pyfiles` is never 
called.

--
components: Demos and Tools
messages: 305406
nosy: Oleg Krasnikov
priority: normal
severity: normal
status: open
title: pygettext ignores directories as inputfile argument
type: behavior
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in frameobject.c.

The underlying goal of this change is to make it possible to add (as a 
performance feature) stack-allocated frames, in addition to the usual 
heap-allocated ones.

--
components: Interpreter Core
messages: 305408
nosy: pdox
priority: normal
severity: normal
status: open
title: Bring together logic for entering/leaving a frame in frameobject.c
type: performance
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 with the generated 
selectmodule.c.h missing a few "safety" #defines, causing compilation errors 
e.g. on Windows where poll is unavailable. Any help resolving this issue would 
be welcome!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/e8b19656396381407ad91473af5da8b0d4346e88


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 surprised if it's tested, but I haven't 
looked.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 selected certificate and signature algorithms. It defines 
authentication algorithm (RSA, ECDSA, EdDSA), signature scheme (PKCS#1 v1.5 or 
PKCS#1 v2.1 aka RSA-PSS for RSA, curve for ECDSA), and hashing algorithm 
(SHA-1, SHA-2 256/384/512). 
https://tools.ietf.org/html/draft-ietf-tls-tls13-21#section-4.2.3

I've contacted openssl maintainers and asked them for advice: 
https://mta.openssl.org/pipermail/openssl-users/2017-November/006834.html

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, 
causing all traffic from the receivers to be be dropped, as explained in this 
comment:
https://github.com/python/asyncio/issues/480#issuecomment-278703828

I already submitted a PR on the cpython repository:
https://github.com/python/cpython/pull/423

I figured it was better to report the issue here for better tracking.

--
components: asyncio
messages: 305415
nosy: vxgmichel, yselivanov
priority: normal
pull_requests: 4196
severity: normal
status: open
title: Can't receive replies from multicast UDP with asyncio
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1553375] Add traceback.print_full_exception()

2017-11-02 Thread Piotr Dobrogost

Change by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 places where 
calloc is used:

Modules/_ssl.c:5172:_ssl_locks = PyMem_Calloc(_ssl_locks_count,
Modules/gcmodule.c:1689:g = (PyGC_Head *)PyObject_Calloc(1, size);
Modules/gcmodule.c:1717:_PyObject_GC_Calloc(size_t basicsize)
Objects/bytesobject.c:83:op = (PyBytesObject *)PyObject_Calloc(1, 
PyBytesObject_SIZE + size);
Objects/listobject.c:176:op->ob_item = (PyObject **) PyMem_Calloc(size, 
sizeof(PyObject *));


"posix_memalign() performance isn't that great. hand-rolled aligned_calloc() is 
the fastest."

I'm not sure that the cost of the memory allocator itself defeats the gain of 
aligned memory on algorithms. I expect data processing to be much more 
expensive than the memory allocation, no?

Again, the unknown remains the benchmark result.

Can anyone write a quick benchmark to measure the gain of aligned memory? 4 
years ago, Raymond Hettinger wanted to use it for the set and collection.deque 
types.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
variable size (depending on the type).

Windows has such API:

void * _aligned_offset_malloc(  
   size_t size,   
   size_t alignment,   
   size_t offset  
);  

This function is based on malloc, so likely adds padding bytes for you 
depending on size, alignment and offset.

https://msdn.microsoft.com/fr-fr/library/ec852tkw.aspx

See bpo-27987: "obmalloc's 8-byte alignment causes undefined behavior".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 handlers: 
see bpo-31629.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 RSA with 
both SHA256 as hashing algorithm.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/e314853d57450b2b9523157eebd405289a795a0e


--
nosy: +berker.peksag

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
status: open
title: Misspelled "loading" in Doc/includes/sqlite3/load_extension.py
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, and there 
are not reasons to create panels from stdscr instead of other windows. Hence 
the proposed PR just makes these two tests creating panels from new windows, as 
in other two tests.

--
assignee: serhiy.storchaka
components: Tests
messages: 305424
nosy: serhiy.storchaka, twouters
priority: normal
severity: normal
status: open
title: Fix test_curses on NetBSD 8
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 8 and 
causes a failure.

0:00:00 load avg: 0.00 [1/1] test_socket
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
Traceback (most recent call last):
  File "/home/serhiy/py/cpython3.7/Lib/test/libregrtest/runtest.py", line 176, 
in runtest_inner
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/test_socket.py", line 5801, in 
test_main
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/support/__init__.py", line 1934, in 
run_unittest
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/unittest/loader.py", line 503, in 
makeSuite
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/unittest/loader.py", line 92, in 
loadTestsFromTestCase
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/unittest/suite.py", line 24, in __init__
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/unittest/suite.py", line 57, in addTests
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/test_socket.py", line 544, in 
__init__
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/test_socket.py", line 144, in 
__init__
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/threading.py", line 86, in RLock
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
RuntimeError: can't allocate lock

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/serhiy/py/cpython3.7/Lib/runpy.py", line 193, in 
_run_module_as_main
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/runpy.py", line 85, in _run_code
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/__main__.py", line 2, in 
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/libregrtest/main.py", line 585, in 
main
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/libregrtest/main.py", line 510, in 
main
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/libregrtest/main.py", line 536, in 
_main
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/libregrtest/main.py", line 458, in 
run_tests
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/libregrtest/main.py", line 379, in 
run_tests_sequential
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/libregrtest/runtest.py", line 140, 
in runtest
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/test/libregrtest/runtest.py", line 200, 
in runtest_inner
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/traceback.py", line 163, in format_exc
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/traceback.py", line 117, in 
format_exception
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/traceback.py", line 496, in __init__
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/traceback.py", line 357, in extract
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/traceback.py", line 281, in line
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/linecache.py", line 16, in getline
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/linecache.py", line 47, in getlines
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/linecache.py", line 136, in updatecache
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
  File "/home/serhiy/py/cpython3.7/Lib/tokenize.py", line 447, in open
sem_init: Unknown error: 4294967295
sem_init: Unknown error: 4294967295
RuntimeError: can't allocate read lock

--
components: Tests
messages: 305425
nosy: ezio.melotti, michael.foord, rbcollins, serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_socket creates too much locks
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.p

[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Modules/clinic/selectmodule.c.h file:

#ifndef SELECT_POLL_METHODDEF
#define SELECT_POLL_METHODDEF
#endif /* !defined(SELECT_POLL_METHODDEF) */

Adding the block manually fixes the issue.

This seems to be caused by a bug in clinic.py. Attaching PR fix a fix 
immediately.

--
components: Argument Clinic
messages: 305427
nosy: larry, taleinat
priority: normal
severity: normal
status: open
title: compile error when converting selectmodule to AC due to missing #define-s
type: compile error
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: undefined symbol: Tcl_GetCharLength

I've even tried added g++ as an option, but Python fails to be against this: 
issue23644

I'm stuck now, and this is causing real problems for some pipelines that I'm 
trying to get running.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 hitting the same problem: 
on the Linux in asyncio I have:

> sock.type == socket.SOCK_STREAM | socket.SOCK_NONBLOCK == 2049
True

So this check isn't working and TCP_NODELAY still disabled by default.

Links:
- http://man7.org/linux/man-pages/man2/socket.2.html
- https://github.com/torvalds/linux/blob/v4.13/include/linux/net.h#L77
- https://github.com/freebsd/freebsd/blob/stable/11/sys/sys/socket.h#L110

Linux has SOCK_TYPE_MASK definition equal to 0xf, but I can't find such 
definition in the FreeBSD sources. And I don't know how to reliably and with 
forward compatibility check sock.type without calling getsockopt() syscall.

Currently I have a fix in my project, where:

_sock_type_mask = 0xf if hasattr(socket, 'SOCK_NONBLOCK') else 0x

And then in my own _set_nodelay(sock) function:

sock.type & _sock_type_mask == socket.SOCK_STREAM

Should I make a pull request or someone knows more reliable check? Or it is ok 
to add one more syscall?

sock.getsockopt(socket.SOL_SOCKET, socket.SO_TYPE) == socket.SOCK_STREAM

--
nosy: +vmagamedov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://github.com/daurnimator/cqueues/commit/52baaf1c25bc7e6f7cb4685cb05f4ed47a3f404a

Be careful, I also found:

// Older versions of Mac OS X may not define EV_OOBAND.
#if !defined(EV_OOBAND)
# define EV_OOBAND EV_FLAG1
#endif // !defined(EV_OOBAND)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
tasklets and move them around between different computers.

The Stackless project recently released Stackless Python 3.5.4 and 2.7.14 and 
C-Python is merged up to 3.6.1. See 
https://github.com/stackless-dev/stackless/tree/3.6-slp and 
https://bitbucket.org/stackless-dev/stackless/wiki/Download.

Under the hood we fixed the reference counting (2016) and migrated from 
bitbucket/hg to github/git.

Regards
  Anselm

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27456] asyncio: set TCP_NODELAY flag by default

2017-11-02 Thread Yury Selivanov

Change by Yury Selivanov :


--
pull_requests: +4200

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 review
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 written cos tests near pi/2 as well as tan ones, but 
unfortunately it turns out that's not true. My bad. Those tests should probably 
be added to cmath_testcases.txt.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 definitions 
for handling AF_CAN addresses. This also exposed other errors. The braces are 
not balanced if AF_CAN is defined, but CAN_RAW and CAN_BCM are not. 
PyBytes_AS_STRING() is called for non-bytes.

The proposed patch balances #ifdef/#endif with braces, undefines AF_CAN if it 
is not usable (following the practice for other AF_* constants), separates 
support of CAN_RAW and CAN_BCM (only the former is defined on NetBSD 8), adds 
comments to #endif for helping with navigation, adds the const qualifier to 
char pointers that always point to constant data, fixes indentation.

This fixed a compilation on NetBSD 8, and I hope this will fix a compilation on 
other platforms that will add AF_CAN. In a separate issue I'll add a support of 
AF_CAN on NetBSD (in 3.7 only).

--
assignee: serhiy.storchaka
components: Extension Modules
messages: 305439
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Fix compiling the socket module on NetBSD 8 and other issues
type: compile error
versions: Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 pprint at the Python meetup last night. It kinda 
went like this: https://www.youtube.com/watch?v=NpYEJx7PkWE 

Maybe now's the time for improved behavior?

--
nosy: +Aaron Hall

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  -> serhiy.storchaka
components: +Extension Modules -Build
dependencies: +Fix compiling the socket module on NetBSD 8 and other issues
nosy: +serhiy.storchaka
type: compile error -> enhancement
versions: +Python 3.7 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/4e38d71a2b7b606fb1b0078c2d7014fc24044dac


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27645] Supporting native backup facility of SQLite

2017-11-02 Thread Lele Gaifax

Change by Lele Gaifax :


--
pull_requests: +4203

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
severity: normal
status: open
title: DOC: Show sys.version_info as a named tuple
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Python 2.7.3
Works Correctly:
>>> test = r'C:\Program Files\^%(x86)\Internet Explorer\iexplore.exe'
>>> print test
C:\Program Files\^%(x86)\Internet Explorer\iexplore.exe

Fails because last character is backslash
>>> test = r'C:\Program Files\^%(x86)\Internet Explorer\'
SyntaxError: EOL while scanning string literal
-
Under Linux Python 2.7.12
Works Correctly
>>> j=r"\n"
>>> print j
\n

Fails because last character is backslash
>>> j=r"n\"
SyntaxError: EOL while scanning string literal

Works correctly:
>>> j=r"n\n"
>>> print j
n\n

Works correctly:
>>> j=r"n\\"
>>> print j
n\\
-
Under Linux Python 3.5.2
Fails because last character is backslash
>>> j=r"\'
  File "", line 1
j=r"\'
 ^
SyntaxError: EOL while scanning string literal
-

--
components: Interpreter Core
messages: 305448
nosy: mezzzmer
priority: normal
severity: normal
status: open
title: Raw strings create syntax error when last character is a single backslash
type: compile error
versions: Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

We build our tools using pex, which hardcodes the shebang at the top of the zip 
file.  This isn't easily changed, and clearly we wouldn't want to enable -X 
importtime everywhere.  When we have startup performance issues, I want to be 
able to tell people (or set it up in our CI) to set the environment variable 
and collect the data for analysis.  This is much easier than tweaking the 
shebang or invoking the zip with an explicit command.  Also, there are 
potential gotchas with loading too much up on the shebang line (IIRC, there are 
line length limits and/or multiple option limits for shebangs, e.g. if we 
wanted to have both -I and -X).

I haven't fixed the initialization check problem that serhiy.storchaka points 
out, since that's addressed by PR 4138.  But maybe I should fold that change 
into mine.

--
nosy: +barry
stage: patch review -> resolved

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
my Win10 machine, the cursor goes to the beginning of the line and stays there.

This is nearly the same as #3851, which patched EditorWindow.home_callback on 
2011-3-21 and -25.  The problem then only affected Windows, because it involved 
event.state for keypresses, which is set differently on Windows and *nix.

This issue is slightly different in that the Numlock key no longer matters. 
(See KBK's  2009-04-04 02:51 message.)  Cherl or Louie, is this one also 
Windows-only or does it occur on Linux?
  
According to hg annotate, the only subsequent patch to .home_callback before 
the git switch was 2012-12-24 for #16511.  It changed the part of the function 
that adjusted selection, after moving the cursor, if Shift-Home was pressed.  
When the cursor moves to the beginning of the line, the selection includes the 
prompt.  3.5 has not been patched since the switch to git, so the problem must 
predate the switch.

2.7 on Windows runs with tk 8.5.15, so a later tk change cannot be the problem. 
 So I suspect that the 'culprit' is either an earlier 'fix' to tk or a patch to 
tkinter since 2011, combined with the absence of a test in IDLE for correct 
behavior.  Serhiy, do you have any ideas?

--
assignee: terry.reedy
components: IDLE
messages: 305452
nosy: csabella, louielu, serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: IDLE: Pressing "Home" on Windows places cursor before ">>>"
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/700d2e4755921d6c339ff20dacecde1aea64de34


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 not a real solution for the general case.

I still believe that Generator should be usable with just one argument or 
typing should provide such an alias.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28791] update sqlite to latest version before beta 1

2017-11-02 Thread Mariatta Wijaya

Change by Mariatta Wijaya :


--
pull_requests: +4210

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/5fbe5e161c969bc8a0d44a301152f8bf5afe0fc7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31370] Remove support for threads-less builds

2017-11-02 Thread Berker Peksag

Change by Berker Peksag :


--
Removed message: https://bugs.python.org/msg302490

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31370] Remove support for threads-less builds

2017-11-02 Thread Berker Peksag

Change by Berker Peksag :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com