[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-15 Thread Brett Cannon
Brett Cannon added the comment: New changeset 4ac5150e068a3a795ef00465f6dff51747b62b91 by Brett Cannon in branch 'master': bpo-32248: Implement importlib.abc.ResourceReader (GH-4892) https://github.com/python/cpython/commit/4ac5150e068a3a795ef00465f6dff51747b62b91 -- ___

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e796b2fe26f220107ac50667de6cc86c82b465e3 by Yury Selivanov in branch 'master': bpo-27456: Ensure TCP_NODELAY is set on linux (#4231) https://github.com/python/cpython/commit/e796b2fe26f220107ac50667de6cc86c82b465e3 -- _

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-12-15 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +4791 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-12-15 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +4792 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32331] Add socket.truetype property

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: Another name option: socket.realtype -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue31265] Remove doubly-linked list from C OrderedDict

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: Dividing the memory consumption by two is quite impressive. Raymond: Would you mind to explain why you close the issue? -- ___ Python tracker ___

[issue31265] Remove doubly-linked list from C OrderedDict

2017-12-15 Thread INADA Naoki
INADA Naoki added the comment: Since normal dict preserves insertion order, OrderedDict usage will be decreased. So I don't think 2x memory consumption is big issue. BTW, functools.lru_cache uses custom doubly-linked list which is much memory inefficient. Rewriting it to use OrderedDict will r

[issue31265] Remove doubly-linked list from C OrderedDict

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: Writing code compatible with Python older than 3.5 (like Python 2.7) requires to use OrderedDict. I expect that very few users will use "dict if sys.version_info >= (3, 6) else OrderedDict" to get an ordered dict. OrderedDict remains useful when you need the

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 572636d42566da8eb6e85d5b8164e9ed8860a255 by Yury Selivanov in branch '3.6': bpo-27456: Ensure TCP_NODELAY is set on linux (#4231) (#4898) https://github.com/python/cpython/commit/572636d42566da8eb6e85d5b8164e9ed8860a255 --

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-12-15 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue29240] PEP 540: Add a new UTF-8 mode

2017-12-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4793 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4794 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32331] Add socket.truetype property

2017-12-15 Thread Nathaniel Smith
Nathaniel Smith added the comment: I think the earliest open bug about this is bpo-21327. -- nosy: +njs ___ Python tracker ___ ___ P

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think generically changing 'iterable' to 'iterable/unpackable' is wrong and would engender more confusion than at present. Most uses of iteration have nothing to do with multiple assignment target unpacking. Some minimal examples resulting in "TypeError:

[issue17972] inspect module docs omits many functions

2017-12-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- type: enhancement -> behavior versions: +Python 3.7 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-

[issue32331] Add socket.truetype property

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: I've been thinking a lot about this problem, and I'm really tempted to fix sock.type property: 1. The problem first appeared in Python 3.2. 2. Python 2.7 doesn't have this problem at all, and doesn't even export socket.SOCK_NONBLOCK. If we fix this in 3.7 i

[issue32261] Online doc does not include inspect.classify_class_attrs

2017-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Perhaps this should be closed as a 1/10 duplicate of #17972. -- nosy: +terry.reedy ___ Python tracker ___

[issue32331] Add socket.truetype property

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: There's also a precedent of us breaking socket API. In Python < 3.6: sock = socket.socket() fd = sock.fileno() os.close(fd) sock.close() Everything works fine. In 3.6+: sock.close() # Will raise OSError uvloop broke on this during the beta perio

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9454060e84a669dde63824d9e2fcaf295e34f687 by Victor Stinner in branch 'master': bpo-29240, bpo-32030: Py_Main() re-reads config if encoding changes (#4899) https://github.com/python/cpython/commit/9454060e84a669dde63824d9e2fcaf295e34f687 ---

[issue29240] PEP 540: Add a new UTF-8 mode

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9454060e84a669dde63824d9e2fcaf295e34f687 by Victor Stinner in branch 'master': bpo-29240, bpo-32030: Py_Main() re-reads config if encoding changes (#4899) https://github.com/python/cpython/commit/9454060e84a669dde63824d9e2fcaf295e34f687 ---

[issue32263] Template string docs refer to "normal %-based substitutions"

2017-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://github.com/python/cpython/commit/9f74deba784fc8781d13ed564f69c02ed7c331bb merged by Warsaw (last March). It removed the whole phrase, "Instead of the normal %-based substitutions," I think the other changes would be more worth backporting, (assuming

[issue32331] Add socket.truetype property

2017-12-15 Thread Nathaniel Smith
Nathaniel Smith added the comment: I did a little digging. It's more complicated than just "on Linux, these show up in the socket type". Background: SOCK_NONBLOCK and SOCK_CLOEXEC are Linux-isms. The standard way to control blocking-ness and cloexec-ness is via ioctl/fcntl, and Linux supports

[issue32331] Add socket.truetype property

2017-12-15 Thread Nathaniel Smith
Nathaniel Smith added the comment: Re-reading my above post, I realized I want to emphasize a little more how odd the current relationship is between socket.type and SOCK_CLOEXEC. Right now, the way it works is: Python *always* adds SOCK_CLOEXEC to the type that it passes to the operating sy

[issue32343] Leak Sanitizer reports memory leaks while building using ASAN

2017-12-15 Thread Kirit Sankar Gupta
New submission from Kirit Sankar Gupta : ./python -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi = ==12061

[issue32331] Fix socket.type on Linux

2017-12-15 Thread Yury Selivanov
Change by Yury Selivanov : -- title: Add socket.truetype property -> Fix socket.type on Linux ___ Python tracker ___ ___ Python-bugs-

[issue32315] can't run any scripts with 2.7.x, 32 and 64-bit

2017-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your posted code and much else runs fine for me with 2.7.14 on Win 10. Millions of lines of legal Python code run on perhaps a million machines aroung the world. Except possibly for your particular machine, your conclusion is wrong. >From the traceback, you

[issue32315] can't run any scripts with 2.7.x, 32 and 64-bit

2017-12-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg308454 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32331] Fix socket.type on Linux

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: Nathaniel, thanks a lot for the comprehensive analysis. It's now obvious that this weird Linux-specific socket.type quirk is of our own making and specific only to Python. I've updated the PR: 1. *type* argument of 'socket.socket()' is passed as is to OS fun

[issue32328] ttk.Treeview: _tkinter.TclError: list element in quotes followed by "; " instead of space

2017-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: With imports modified, same exceptions in 3.7.0a2 on Win10 -- nosy: +terry.reedy versions: +Python 3.7 ___ Python tracker ___

[issue31265] Remove doubly-linked list from C OrderedDict

2017-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond: Would you mind to explain why you close the issue? On python-dev, Inada suggested he would drop this issue if Guido approved regular dicts having guaranteed order. That occurred and I closed this issue. The other reasons were listed earlier in

[issue32276] there is no way to make tempfile reproducible (i.e. seed the used RNG)

2017-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems ill-advised: * If a deterministic filename is needed, tempfile probably shouldn't be used. * Mock objects are typically used when alternative behavior is needed for testing. * The proposed feature would preclude a possible future development pa

<    1   2