[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

[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

[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

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

[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

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

[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

[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

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

[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

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

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

[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

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

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

[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: I think the earliest open bug about this is bpo-21327. -- nosy: +njs ___ Python tracker ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4794 ___ 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 ___ ___

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

[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

[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

[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

[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

[issue32331] Add socket.truetype property

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

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-12-15 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +4792 ___ 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 ___ ___

[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

[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

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

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

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

[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

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

[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

[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

[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

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

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

[issue32341] itertools "generators"?

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

[issue32341] itertools "generators"?

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

[issue21074] Too aggressive constant folding

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

[issue30416] constant folding opens compiler to quadratic time hashing

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

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

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

[issue32341] itertools "generators"?

2017-12-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +4786 stage: -> patch review ___ Python tracker ___

[issue32341] itertools "generators"?

2017-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: The term is used in the generic sense rather than the sense of an actual type. That said, I don't mind changing "Combinatoric generators" to "Combinatoric iterators" for 3.6 and 3.7. Otherwise, this isn't worth the backport

[issue32341] itertools "generators"?

2017-12-15 Thread Stefan Pochmann
New submission from Stefan Pochmann : The itertools page https://docs.python.org/3.6/library/itertools.html says "Combinatoric generators:" above the table with product(), permutations(), etc. But as far as I understand, they're not generators and they don't produce

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-12-15 Thread Nikolaus Rath
Nikolaus Rath added the comment: Given the apparent difficulties getting this right, how about not attempting to implicitly flush buffers in the finalizer at all? This means scripts relying on this will break, but in contrast to the current behavior they will break

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

2017-12-15 Thread ikram
New submission from ikram : Traceback (most recent call last): File "H:\Whatsapp_Xtract_V2.2_2012-11-17\whatsapp_xtract.py", line 2453, in main(sys.argv[1:]) File "H:\Whatsapp_Xtract_V2.2_2012-11-17\whatsapp_xtract.py", line 1921, in main linkimage =

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

2017-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I want to add the try-except here and in the few other places where a method is temporarily masked. One failure causing another strikes me a test code bug. I would like to hold off on adding 'hover', as it now seems to have been an

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

2017-12-15 Thread Mark Sapiro
Mark Sapiro added the comment: > I do wonder where you are using the string version of messages :) Probably some places where we could use bytes, but one of the problem areas is where we save the content of a message held for moderation. --

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

2017-12-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Since 3.6 csv.DictReader emits OrderedDicts instead of regular dicts. Since regular dicts are ordered in 3.7, this is an overkill. It would be nice to add a configuration option for a return type. This is an easy issue.

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-12-15 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___ Python-bugs-list

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

2017-12-15 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +4785 stage: -> patch review ___ Python tracker ___

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-12-15 Thread Neil Schemenauer
Neil Schemenauer added the comment: Using reversed chronological order would work in 99% of the cases probably but then you would have that rare case where it didn't work. So, I'm not too keen on that approach. I think this is a classic problem with finalization and

[issue32338] Save OrderedDict import in re

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

[issue32338] Save OrderedDict import in re

2017-12-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Since regular dicts are now ordered by default, the OrderedDict import is no longer necessary. -- components: Library (Lib), Regular Expressions messages: 308418 nosy: ezio.melotti, mrabarnett, rhettinger,

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not well known with GC, but if it be possible to call destructors in the reversed chronological order, this could help with this issue. -- ___ Python tracker

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

2017-12-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger components: Tests nosy: rhettinger priority: normal severity: normal stage: needs patch status: open title: Dict order is now guaranteed, so add tests for it versions: Python 3.7

[issue32336] Save OrderedDict import in argparse

2017-12-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +4783 stage: -> patch review ___ Python tracker ___

[issue32336] Save OrderedDict import in argparse

2017-12-15 Thread Raymond Hettinger
New submission from Raymond Hettinger : Since regular dicts are now ordered by default, the OrderedDict import is no longer necessary. Removing it will give a small boost to start-up time. -- assignee: bethard components: Library (Lib) messages: 308416

[issue32335] Failed Python build on Fedora 27

2017-12-15 Thread Amit Ghadge
Amit Ghadge added the comment: My current git log is, Author: Victor Stinner Date: Fri Dec 15 16:29:24 2017 +0100 bpo-32294: Fix multiprocessing test_semaphore_tracker() (#4885) -- ___ Python

[issue32335] Failed Python build on Fedora 27

2017-12-15 Thread Amit Ghadge
Amit Ghadge added the comment: After the some investigation, 1f06a680de465be0c24a78ea3b610053955daa99 PR was OK, a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344 build failed but ./python run 88c60c9668f0aa732693517a60b851cc1dfce0cb build failed and same error comes after click

[issue32335] Failed Python build on Fedora 27

2017-12-15 Thread Amit Ghadge
New submission from Amit Ghadge : Hi, I'm try to build Python from source on Fedora 27 but it shows below message and build was failed, gcc -pthread -Xlinker -export-dynamic -o python Programs/python.o libpython3.7dm.a -lpthread -ldl -lutil -lm gcc -pthread

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-12-15 Thread Neil Schemenauer
Neil Schemenauer added the comment: In the process of trying to write a test for this, I now realize that PR 4847 is not really a fix. If the underlying file gets closed during an earlier gc.collect() and not during shutdown, the extra flushing step is not going to

[issue32320] Add default value support to collections.namedtuple()

2017-12-15 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue32331] apply SOCK_TYPE_MASK to socket.type on Linux

2017-12-15 Thread Christian Heimes
Christian Heimes added the comment: Should socket.true_type use getsockopt(fd, ...) to get the actual type? While we are talking about socket types, please have a look at #28134 . -- ___ 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 >

[issue32331] apply SOCK_TYPE_MASK to socket.type on Linux

2017-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: > You can easily work around your problem by replacing "sock.type == > SOCK_STREAM" with "sock.type & SOCK_STREAM == SOCK_STREAM". Heh :) No, that would be a buggy code. Try this on your Linux box: (socket.SOCK_SEQPACKET &

[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

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

[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

[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

[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

[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

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

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

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

[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

[issue31964] [3.4][3.5] pyexpat: compilaton of libexpat fails with: ISO C90 forbids mixed declarations and code

2017-12-15 Thread STINNER Victor
STINNER Victor added the comment: The bug has been fixed by commit 8b11e8de7aedacfbbcc8c780f3c4097396f1d1a3 in Python 3.4 -- resolution: -> fixed stage: -> 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

[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

[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

[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

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

2017-12-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4781 stage: -> patch review ___ 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 ___ ___

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

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

[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

[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

[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

[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

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

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

[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

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

  1   2   >