[issue32039] timeit documentation should describe caveats

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: Barry: "... possibly point to both cProfile and the 3rd party perf package as alternative ways to gather performance information." FYI the timeit module of PyPy now emits a warning and points to the perf module: http://perf.readthedocs.io/ -- __

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: Nick: """ I noticed the other day that the interaction between PYTHONWARNINGS, the `-W` option, sys.warnoptions, and _warnings.filters is a bit confusing: $ PYTHONWARNINGS=always,default python3 -Wignore -Wonce (...) >>> sys.warnoptions ['always', 'default',

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset a7368ac6360246b1ef7f8f152963c2362d272183 by Victor Stinner in branch 'master': bpo-32030: Enhance Py_Main() (#4412) https://github.com/python/cpython/commit/a7368ac6360246b1ef7f8f152963c2362d272183 -- __

[issue32043] Add a new -X dev option: "developer mode"

2017-11-15 Thread STINNER Victor
New submission from STINNER Victor : I propose to add a new "developer mode": a new "-X dev" command line option. In short: python3 -X dev script.py behaves as: PYTHONMALLOC=debug python3 -W default -X faulthandler script.py For the rationale, please see: https://mail.python.org/pipermail

[issue32043] Add a new -X dev option: "developer mode"

2017-11-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4363 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32043] Add a new -X dev option: "developer mode"

2017-11-15 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue32043] Add a new -X dev option: "developer mode"

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: I rewrote Py_Main() in bpo-32030 to make it very easy to implement this new feature. I wrote PR 4413 to implement -X dev. -- ___ Python tracker

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: I rewrote Py_Main() in two large commits. The code isn't perfect yet, for example, init_sys_streams() still reads the PYTHONIOENCODING environment variable. IMHO it should be read earlier. But as soon, my changes should allow to fix such issues much more easi

[issue31701] faulthandler dumps 'Windows fatal exception: code 0xe06d7363'

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: > Does this change imply that no python-traceback-for-every-thread will be > printed upon both handled and unhandled C++ exception? Right if I understood correctly. The best is to test yourself ;-) -- ___ Python tr

[issue32026] Memory leaks in Python on Windows

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: Python doesn't clean everything at exit: see bpo-29881. I just modified Py_Main() in bpo-32030 to clean a few more bytes (like program_name): see pymain_free() in Modules/main.c. -- ___ Python tracker

[issue32038] Add API to intercept socket.close()

2017-11-15 Thread Ben Darnell
Ben Darnell added the comment: It's worse than a resource leak - the same file descriptor number could be reused for a different file/socket, and then depending on the selector in use, you could see the data from a completely different connection. I did see a bug like this years ago (in libc

[issue32044] pip3 install 3.6.3 crashes on startup; 3.5.4 works; on OS X 10.13.1

2017-11-15 Thread Daniel E Platt
New submission from Daniel E Platt : pip3 installed with 3.6.3 crashes on startup. pip3 installed with 3.5.4 works. Appears on OS X 10.13.1 -- components: Installation messages: 306336 nosy: DanPlatt priority: normal severity: normal status: open title: pip3 install 3.6.3 crashes on st

[issue32044] pip3 install 3.6.3 crashes on startup; 3.5.4 works; on OS X 10.13.1

2017-11-15 Thread Daniel E Platt
Daniel E Platt added the comment: platt@MacBook-Pro.local:/Users/platt $ pip3 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in from pip import main File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sit

[issue31701] faulthandler dumps 'Windows fatal exception: code 0xe06d7363'

2017-11-15 Thread Ilya Kulakov
Ilya Kulakov added the comment: May I ask why AddVectoredExceptionHandler is used instead of SetUnhandledExceptionFilter? -- ___ Python tracker ___ ___

[issue32044] pip3 install 3.6.3 crashes on startup; 3.5.4 works; on OS X 10.13.1

2017-11-15 Thread Berker Peksag
Berker Peksag added the comment: Thank you for your report. This is a problem with setuptools: https://github.com/pypa/setuptools/issues/885 I suggest upgrading both setuptools and pip: $ pip install -U setuptools pip -- nosy: +berker.peksag resolution: -> third party stage: ->

[issue32044] pip3 install 3.6.3 crashes on startup; 3.5.4 works; on OS X 10.13.1

2017-11-15 Thread Daniel E Platt
Daniel E Platt added the comment: platt@MacBook-Pro.local:/Users/platt $ pip install -U setuptools pip Collecting setuptools Downloading setuptools-36.7.2-py2.py3-none-any.whl (482kB) 100% || 491kB 2.6MB/s Requirement already up-to-date: pip in ./Library/P

[issue30143] Using collections ABC from collections.abc rather than collections in 2to3 converted code

2017-11-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0a2abdfca2495291809855cf7dfc6721c9c962e3 by Serhiy Storchaka in branch 'master': bpo-30143: 2to3 now generates a code that uses abstract collection classes (#1262) https://github.com/python/cpython/commit/0a2abdfca2495291809855cf7dfc6721c9c962

[issue30143] Using collections ABC from collections.abc rather than collections in 2to3 converted code

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

[issue32037] Pickle 32-bit integers with protocol 0 as INT instead of LONG

2017-11-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3daaafb700df45716bb55f3a293f88773baf3463 by Serhiy Storchaka in branch 'master': bpo-32037: Use the INT opcode for 32-bit integers in protocol 0 pickles. (#4407) https://github.com/python/cpython/commit/3daaafb700df45716bb55f3a293f88773baf3463

[issue32037] Pickle 32-bit integers with protocol 0 as INT instead of LONG

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

<    1   2