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

[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

[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

[issue32339] Make the dict type used in csv.DictReader configurable

2017-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: For csv.DictReader and collections.namedtuple._asdict, it might be cleaner to just deprecate the OrderedDict in favor of returning regular dict. I suspect that in these contexts, no one really wants an actual OrderedDict.

[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

[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

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

[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

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

[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

[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

[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

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-12-15 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +4791 ___ Python tracker ___ ___

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

[issue28134] socket.socket(fileno=fd) does not work as documented

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: Let's quickly iterate over what's possible first: * It's possible to check the type of the FD using "getsockopt(SOL_SOCKET, SO_TYPE)" on all platforms. * It's possible to check family/proto of the FD using "getsockopt(SOL_SOCKET,

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

2017-12-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4793 ___ Python tracker ___ ___

[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

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

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

[issue32331] Add socket.truetype property

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: Another name option: socket.realtype -- ___ 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

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4794 ___ Python tracker ___ ___

[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

[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

[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

[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

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

[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

[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

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

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

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

[issue32324] [Security] "python3 directory" inserts "directory" at sys.path[0] even in isolated mode

2017-12-15 Thread Brett Cannon
Brett Cannon added the comment: I vote that it has to work and it should be prepended. -- ___ Python tracker ___

[issue32331] Add socket.truetype property

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

[issue32331] Add socket.truetype property

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: Update: I've rewritten the PR from scratch. 1. SOCK_TYPE_MASK isn't exported on Linux. Therefore we will not export socket.SOCK_TYPE_MASK too. 2. I've added the new socket.truetype property. 3. When a socket is created without an FD,

[issue32334] test_configparser left @test_2876_tmp temporary file on x86 Windows7 3.x

2017-12-15 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/58/builds/332 running: test_multiprocessing_spawn (901 sec), test_concurrent_futures (151 sec) 0:47:16 [250/413/1] test_multiprocessing_spawn crashed (Exit code 1) -- running:

[issue32330] Email parser creates a message object that can't be flattened

2017-12-15 Thread R. David Murray
R. David Murray added the comment: I do wonder where you are using the string version of messages :) I actually thought I'd already done this (errors=replace), but obviously not. I don't have time now to work on a patch for this, and the patch in the other issue

[issue32333] test_smtplib: dangling threads on x86 Gentoo Non-Debug with X 3.x

2017-12-15 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/99/builds/363 0:00:16 load avg: 2.60 [ 12/412/1] test_smtplib failed (env changed) testFailingHELO (test.test_smtplib.BadHELOServerTests) ... ok (...) testLineTooLong

[issue32324] [Security] "python3 directory" inserts "directory" at sys.path[0] even in isolated mode

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: > Since the directory is where the code that is being executed exists don't you > have to implicitly trust that directory is secure? Otherwise how can you even > trust the code you're choosing to execute? The question is if the

[issue31940] copystat on symlinks fails for alpine -- faulty lchmod implementation?

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: Dummy question. If lchmod() is not supported by the libc, would it be possible to reimplement it using readlink()? -- ___ Python tracker

[issue28393] Update encoding lookup docs wrt #27938

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: Thank you Ville Skyttä for your contribution! I merged your PR and backported it to Python 3.6. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 77bf6da7258b4a312e224860ea50ac010aa17c1e by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-28393: Update encoding lookup docs wrt bpo-27938 (GH-4871) (#4881)

[issue28393] Update encoding lookup docs wrt #27938

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 77bf6da7258b4a312e224860ea50ac010aa17c1e by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-28393: Update encoding lookup docs wrt bpo-27938 (GH-4871) (#4881)

[issue32332] Implement slots support for magic methods added in PEP 560

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 4883 shows how magic methods for PEP 560 can be implemented without introducing new slots. -- ___ Python tracker

[issue22091] __debug__ in compile(optimize=1)

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: > Is it worth to backport this change? It's an optimization, usually the answer is no. The change is short and can be seen as a bugfix, so it's up to you, it's ok to backport to 3.6, and maybe even 2.7, if it's not too hard to write

[issue27169] __debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks

2017-12-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: -Build-out an AST optimizer, moving some functionality out of the peephole optimizer resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6

[issue27169] __debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b82da9ebb20053637e731fd40589e1e52f9f8f6e by Serhiy Storchaka in branch '3.6': [3.6] bpo-27169: The __debug__ constant is now optimized out at compile time. (GH-4880) (#4882)

[issue22091] __debug__ in compile(optimize=1)

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b82da9ebb20053637e731fd40589e1e52f9f8f6e by Serhiy Storchaka in branch '3.6': [3.6] bpo-27169: The __debug__ constant is now optimized out at compile time. (GH-4880) (#4882)

[issue32265] Correctly classify builtin static and class methods

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

[issue28393] Update encoding lookup docs wrt #27938

2017-12-15 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4776 ___ Python tracker ___

[issue32331] apply SOCK_TYPE_MASK to socket.type on Linux

2017-12-15 Thread Christian Heimes
Christian Heimes added the comment: Python's handling of socket has multiple issues, see #28134 for more fun. At the moment the values of type, family and protocol are unreliable at best and dangerously wrong at worst. The attributes are only correct if and only if the

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2017-12-15 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4777 ___ Python tracker ___

[issue32240] Add the const qualifier for PyObject* array arguments

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a5552f023e1d8cbafee1e51d316cc581deb2295f by Serhiy Storchaka in branch 'master': bpo-32240: Add the const qualifier to declarations of PyObject* array arguments. (#4746)

[issue30416] constant folding opens compiler to quadratic time hashing

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b580f4f2bf49fd3b11f2a046911993560c02492a by Serhiy Storchaka in branch '3.6': [3.6] bpo-30416: Protect the optimizer during constant folding. (#4865)

[issue32331] apply SOCK_TYPE_MASK to socket.type on Linux

2017-12-15 Thread INADA Naoki
INADA Naoki added the comment: Document of socket.type says: The socket type. https://docs.python.org/3/library/socket.html#socket.socket.type OK, so, are SOCK_CLOEXEC and SOCK_NONBLOCK socket type? These two constants, if defined, can be combined with the

[issue22091] __debug__ in compile(optimize=1)

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3325a6780c81f1ea51190370b5454879c4862a37 by Serhiy Storchaka in branch 'master': bpo-27169: The __debug__ constant is now optimized out at compile time. (#4880)

[issue27169] __debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3325a6780c81f1ea51190370b5454879c4862a37 by Serhiy Storchaka in branch 'master': bpo-27169: The __debug__ constant is now optimized out at compile time. (#4880)

[issue30416] constant folding opens compiler to quadratic time hashing

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2e3f5701858d1fc04caedefdd9a8ea43810270d2 by Serhiy Storchaka in branch 'master': bpo-30416: Protect the optimizer during constant folding. (#4860)

[issue21074] Too aggressive constant folding

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b580f4f2bf49fd3b11f2a046911993560c02492a by Serhiy Storchaka in branch '3.6': [3.6] bpo-30416: Protect the optimizer during constant folding. (#4865)

[issue21074] Too aggressive constant folding

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2e3f5701858d1fc04caedefdd9a8ea43810270d2 by Serhiy Storchaka in branch 'master': bpo-30416: Protect the optimizer during constant folding. (#4860)

[issue32222] pygettext doesn't extract docstrings for functions with type annotated params

2017-12-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka versions: +Python 3.7 -Python 3.5 ___ Python tracker

[issue29469] AST-level Constant folding

2017-12-15 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +4773 ___ Python tracker ___ ___

[issue22091] __debug__ in compile(optimize=1)

2017-12-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4775 stage: -> patch review ___ Python tracker ___

[issue27169] __debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks

2017-12-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4774 stage: needs patch -> patch review ___ Python tracker

[issue32240] Add the const qualifier for PyObject* array arguments

2017-12-15 Thread Stefan Behnel
Stefan Behnel added the comment: Seems ok from Cython side. Could be a bit difficult to make an actual use of this, but at least it shouldn't break anything. And it's a reasonable constraint to enforce. -- ___ Python tracker

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 297fd876aad8ef443d8992618de22c46dbda258b by Victor Stinner (Ville Skyttä) in branch 'master': bpo-28393: Update encoding lookup docs wrt bpo-27938 (#4871)

[issue32311] Implement asyncio.create_task() shortcut

2017-12-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for careful review! -- ___ Python tracker ___

[issue28393] Update encoding lookup docs wrt #27938

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 297fd876aad8ef443d8992618de22c46dbda258b by Victor Stinner (Ville Skyttä) in branch 'master': bpo-28393: Update encoding lookup docs wrt bpo-27938 (#4871)

[issue22091] __debug__ in compile(optimize=1)

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The backport to 3.6 is straightforward, but backporting to 2.7 would require larger changes. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.6,

[issue32265] Correctly classify builtin static and class methods

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3327a2ddf1eaf8cc678f0219ba9edf7d632d1b20 by Serhiy Storchaka in branch 'master': bpo-32265: Classify class and static methods of builtin types. (#4776)

[issue29469] AST-level Constant folding

2017-12-15 Thread INADA Naoki
INADA Naoki added the comment: > ISTM, the constant-tracking macros for peephole.c can also be removed, > essentially reverting back to the simpler cumlc-style code in Py2.5. I tried it in GH-4879. -- ___ Python tracker

[issue32331] apply SOCK_TYPE_MASK to socket.type on Linux

2017-12-15 Thread INADA Naoki
INADA Naoki added the comment: Should we backport it to 3.6? -- ___ Python tracker ___

[issue22091] __debug__ in compile(optimize=1)

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it worth to backport this change? -- ___ Python tracker ___

[issue27169] __debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks

2017-12-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4778 ___ Python tracker ___ ___

[issue22091] __debug__ in compile(optimize=1)

2017-12-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4779 ___ Python tracker ___ ___

[issue32240] Add the const qualifier for PyObject* array arguments

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

[issue32290] bolen-dmg-3.6: compilation failed with OSError: [Errno 23] Too many open files in system

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: Another different failure on "bolen-dmg-3.x". I don't understand the "RuntimeError: command failed: make" error :-( http://buildbot.python.org/all/#/builders/69/builds/69 (...) gcc-4.0 -c -fno-strict-aliasing -Wsign-compare

[issue31265] Remove doubly-linked list from C OrderedDict

2017-12-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue32329] PYTHONHASHSEED=0 python3 -R should enable hash randomization

2017-12-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4780 ___ Python tracker ___ ___

[issue32119] test_notify_all() of test_multiprocessing_forkserver failed on Python on x86 Tiger 3.6 with "ValueError: cannot convert float NaN to integer"

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: I really have no clue on the root bug, and the bug only occurred once, so I choose to close it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue32329] PYTHONHASHSEED=0 python3 -R should enable hash randomization

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 642d67b4f25262889b43f91ad2a96ca0e37fd5a2 by Victor Stinner in branch 'master': bpo-32329: Add versionchanged to -R option doc (#4884) https://github.com/python/cpython/commit/642d67b4f25262889b43f91ad2a96ca0e37fd5a2

[issue32294] test_semaphore_tracker() of test_multiprocessing_spawn fails with -W error

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

[issue32331] apply SOCK_TYPE_MASK to socket.type on Linux

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: On GH (https://github.com/python/cpython/pull/4877), Antoine wrote: > I agree with Victor: > it can't go into 3.6 > making the change in 3.7 is contentious > Can there be an other way to solve the issue? Can we for example keep >

[issue31971] idle_test: failures on x86 Windows7 3.x

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: Terry: you proposed a fix, do you still want to write it? The buildbot didn't fail again since I reported the failure. -- ___ Python tracker

[issue31940] copystat on symlinks fails for alpine -- faulty lchmod implementation?

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: > if I'm reading the manpage correctly: `readlink` tells the filename that the > symlink points to. lchmod is concerned with setting the `stat` on the link > itself (which only some platforms actually support) Oops, my bad. Ignore

[issue32332] Implement slots support for magic methods added in PEP 560

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: Serhiy, I've tested METH_STATIC approach and it works just fine. Thanks for pointing that out! I agree that adding slots for something that's already possible is an overkill, so let's close this issue. -- resolution: ->

[issue32294] test_semaphore_tracker() of test_multiprocessing_spawn fails with -W error

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9402c8367bf6ada1b84f620ad957750c33adbaf9 by Victor Stinner in branch 'master': bpo-32294: Fix multiprocessing test_semaphore_tracker() (#4885)

[issue32294] test_semaphore_tracker() of test_multiprocessing_spawn fails with -W error

2017-12-15 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4782 ___ Python tracker ___

[issue31940] copystat on symlinks fails for alpine -- faulty lchmod implementation?

2017-12-15 Thread Anthony Sottile
Anthony Sottile added the comment: if I'm reading the manpage correctly: `readlink` tells the filename that the symlink points to. lchmod is concerned with setting the `stat` on the link itself (which only some platforms actually support) --

[issue32329] PYTHONHASHSEED=0 python3 -R should enable hash randomization

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

[issue32124] Document functions safe to be called before Py_Initialize()

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

[issue31967] [Windows] test_distutils: fatal error LNK1158: cannot run 'rc.exe'

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: The AMD64 Windows10 3.x buildbot: is green again, I close the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue32333] test_smtplib: dangling threads on x86 Gentoo Non-Debug with X 3.x

2017-12-15 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2017-12-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Dict order is now guaranteed, so add tests for it -> Dict order is now guaranteed, so add tests and doc for it ___ Python tracker

[issue32340] ValueError: time data 'N/A' does not match format '%Y%m%d'

2017-12-15 Thread R. David Murray
R. David Murray added the comment: This is not a bug in python. If it is your code contact the pyhon-list mailing for help. If you got whatsapp_xtract from somewhere else, contact that community with your questions. -- nosy: +r.david.murray resolution: ->

[issue32342] safe_power(): CID 1426161: Integer handling issues (DIVIDE_BY_ZERO)

2017-12-15 Thread STINNER Victor
New submission from STINNER Victor : Coverity found an issue in the commit 2e3f5701858d1fc04caedefdd9a8ea43810270d2 (bpo-30416). New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 1426161: Integer handling issues (DIVIDE_BY_ZERO)

[issue32342] safe_power(): CID 1426161: Integer handling issues (DIVIDE_BY_ZERO)

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: PyLong_AsSize_t(w) cannot be zero thanks to Py_SIZE(w) > 0. I classified the issue as a false positive. Sorry for the noise. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue20891] PyGILState_Ensure on non-Python thread causes fatal error

2017-12-15 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

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

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset d2b02310acbfe6c978a8ad3cd3ac8b3f12927442 by Victor Stinner in branch 'master': bpo-29240: Don't define decode_locale() on macOS (#4895) https://github.com/python/cpython/commit/d2b02310acbfe6c978a8ad3cd3ac8b3f12927442

  1   2   >