[issue30455] Generate all tokens related code and docs from Grammar/Tokens

2018-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I am going to merge PR 10370 in few days. -- ___ Python tracker ___

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2018-12-19 Thread miss-islington
miss-islington added the comment: New changeset a26201cd8ef17dc81431f768846291c9f4337550 by Miss Islington (bot) in branch '3.7': bpo-5438: Update memory requirements and optimize test_bigmem.py. (GH-11123) https://github.com/python/cpython/commit/a26201cd8ef17dc81431f768846291c9f4337550

[issue22831] Use "with" to avoid possible fd leaks

2018-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Éric, could you please take a look at PR 10921? -- ___ Python tracker ___ ___ Python-bugs-list

[issue18085] Verifying refcounts.dat

2018-12-19 Thread miss-islington
miss-islington added the comment: New changeset 73fc14d1f8441aef5ee03be627c63e74a6d915d6 by Miss Islington (bot) in branch '3.7': bpo-18085: Update refcounts.dat. (GH-11247) https://github.com/python/cpython/commit/73fc14d1f8441aef5ee03be627c63e74a6d915d6 -- nosy: +miss-islington

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2018-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b13a20f50789e153c18ed8efb4fbc5eecc50f2cd by Serhiy Storchaka in branch 'master': bpo-5438: Update memory requirements and optimize test_bigmem.py. (GH-11123) https://github.com/python/cpython/commit/b13a20f50789e153c18ed8efb4fbc5eecc50f2cd

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2018-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +10489 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2018-12-19 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +10488 stage: needs patch -> patch review ___ Python tracker ___

[issue18085] Verifying refcounts.dat

2018-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +10487 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18085] Verifying refcounts.dat

2018-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 83dd4e87a62311cfea5fdd37e8a945b6b07bccee by Serhiy Storchaka in branch 'master': bpo-18085: Update refcounts.dat. (GH-11247) https://github.com/python/cpython/commit/83dd4e87a62311cfea5fdd37e8a945b6b07bccee --

[issue35538] splitext does not seems to handle filepath ending in .

2018-12-19 Thread Devika Sondhi
Devika Sondhi added the comment: Linux (unlike Windows) allows naming a file with a trailing dot. The issue with file name such as '.blah.' is that it does not have an extension and one would expect the base-name without extension to be returned as '.blah.' and not as '.blah' splitext

[issue35542] stack exhaustion in 3.6.7

2018-12-19 Thread shuoz
shuoz added the comment: thank you for your reply. -- resolution: -> not a bug stage: -> resolved status: open -> closed type: security -> crash ___ Python tracker ___

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I did not find the references in the text I remembered, but found 2 more involving the menu section. -- ___ Python tracker ___

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +10486 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35541] CLI error when .python_history contains unicode characters

2018-12-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 93f5694bb0c147ae48da492d6eb627562f8d by Terry Jan Reedy in branch '3.7': [3.7] bpo-34162: Update idlelib/NEWS.txt to 2018-12-20 (GH-11255) (#11256) https://github.com/python/cpython/commit/93f5694bb0c147ae48da492d6eb627562f8d

[issue35541] CLI error when .python_history contains unicode characters

2018-12-19 Thread Eryk Sun
Eryk Sun added the comment: pyreadline is a third-party package. Refer to issue 55 at its GitHub repo: https://github.com/pyreadline/pyreadline/issues/55 -- nosy: +eryksun resolution: -> third party stage: -> resolved status: open -> closed ___

[issue35542] stack exhaustion in 3.6.7

2018-12-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Related older issue : issue1110055 https://docs.python.org/3/library/sys.html#sys.setrecursionlimit > The highest possible limit is platform-dependent. A user may need to set the > limit higher when they have a program that requires deep recursion

[issue35542] stack exhaustion in 3.6.7

2018-12-19 Thread shuoz
New submission from shuoz : stack exhaustion in 3.6.7. in python 3.6.7 set recursive depth 2 will exhaustion stack and get Segmentation fault. But this dont happen in python 2.7 ``` import sys sys.setrecursionlimit(2) def f(): f() f() ``` -- components: 2to3 (2.x to

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +10485 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35148] cannot activate a venv environment on a Swiss German windows

2018-12-19 Thread Mike Pagel
Mike Pagel added the comment: Dear developers on the nosy list: Would it be possible that someone does a quick review of my related fix in https://github.com/python/cpython/pull/10696? It is extremely simple and has minimal side effects, but would relieve us from getting this annoying error

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-12-19 Thread Dima Tisnek
Dima Tisnek added the comment: Perhaps https://stackoverflow.com/questions/42332792/chrome-not-firefox-are-not-dumping-to-sslkeylogfile-variable is outdated, but it suggests that: in firefox, this feature os not on by default in chrome, this feature is not available I would be vary of

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 87ec1104b369865c3c41d2d91ac7aee29cfb632e by Terry Jan Reedy in branch 'master': bpo-34162: Update idlelib/NEWS.txt to 2018-12-20. (#11255) https://github.com/python/cpython/commit/87ec1104b369865c3c41d2d91ac7aee29cfb632e --

[issue35541] CLI error when .python_history contains unicode characters

2018-12-19 Thread Armandas
New submission from Armandas : OS: Windows 10 Python version: Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] on win32 Traceback: Failed calling sys.__interactivehook__ Traceback (most recent call last): File

[issue35536] Calling built-in locals() and globals() in C++ leads to SystemError

2018-12-19 Thread Никита Сиргиенко
Никита Сиргиенко added the comment: I run some Python code before this moment, so I expect, that globals variable will be a PyDictObject with results of 'globals()' command: '__name__', '__doc__', global variables, etc. -- ___ Python tracker

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: No more 3.6 backports. -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-19 Thread miss-islington
miss-islington added the comment: New changeset 3f9338312738b4b6d909fa7d5e7bb02f2efc08a5 by Miss Islington (bot) in branch '3.7': bpo-35521: IDLE: Add code context section to docs (GH-11205) https://github.com/python/cpython/commit/3f9338312738b4b6d909fa7d5e7bb02f2efc08a5 -- nosy:

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +10484 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35536] Calling built-in locals() and globals() in C++ leads to SystemError

2018-12-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: What behavior are you expecting? If there isn't any Python code in the callback, globals() and locals() are meaningless. -- nosy: +benjamin.peterson ___ Python tracker

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Good thing we don't need a barry_as_GUIDO alias. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +10483 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 01421bec1e0d25df17599cfa1160adbbcd08e949 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-35521: IDLE: Add code context section to docs (#11205) https://github.com/python/cpython/commit/01421bec1e0d25df17599cfa1160adbbcd08e949

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +10482 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Great. Since you included half of the other needed ref links in the PR, and I mentioned them in the blurb, I am going to include the other half in this PR as a followup PR. -- title: IDLE: Add doc section for Code Conext -> IDLE: Add doc section

[issue35530] Counter-intuitive logging API

2018-12-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35540] dataclasses.asdict breaks with defaultdict fields

2018-12-19 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17972] inspect module docs omits many functions

2018-12-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: issue12317 discusses inspect.getabsfile() -- nosy: +cheryl.sabella ___ Python tracker ___ ___

[issue35540] dataclasses.asdict breaks with defaultdict fields

2018-12-19 Thread Will T
New submission from Will T : _asdict_inner attempts to manually recursively deepcopy dicts by calling type(obj) with a generator of transformed keyvalue tuples @ https://github.com/python/cpython/blob/b2f642ccd2f65d2f3bf77bbaa103dd2bc2733734/Lib/dataclasses.py#L1080 . defaultdicts are dicts

[issue35539] Cannot properly close terminated process

2018-12-19 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić : It seems impossible to correctly close() an asyncio Process on which terminate has been invoked. Take the following coroutine: async def test(): proc = await asyncio.create_subprocess_shell( "sleep 1", stdout=asyncio.subprocess.PIPE)

[issue18085] Verifying refcounts.dat

2018-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 11247 adds more functions and fixes some errors. -- ___ Python tracker ___ ___

[issue18085] Verifying refcounts.dat

2018-12-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10478 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18085] Verifying refcounts.dat

2018-12-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -10477 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2018-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I forget about this issue and remembered it only after creating similar patch from scratch. PR 11247 is what left from it after merging your patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions:

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2018-12-19 Thread miss-islington
miss-islington added the comment: New changeset 29d4e309b1b4dfb26d65d83c683002911c066dec by Miss Islington (bot) in branch '3.7': bpo-32077: Update refcounts.dat for Unicode object functions. (GH-11243) https://github.com/python/cpython/commit/29d4e309b1b4dfb26d65d83c683002911c066dec

[issue18085] Verifying refcounts.dat

2018-12-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10476, 10477 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue18085] Verifying refcounts.dat

2018-12-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10476, 10477, 10478 stage: -> patch review ___ Python tracker ___ ___

[issue18085] Verifying refcounts.dat

2018-12-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10476 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2018-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +10475 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2018-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +10474 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2018-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b2f642ccd2f65d2f3bf77bbaa103dd2bc2733734 by Serhiy Storchaka (Mat M) in branch 'master': bpo-32077: Update refcounts.dat for Unicode object functions. (GH-11243)

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2018-12-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak versions: +Python 3.7, Python 3.8 -Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___

[issue35538] splitext does not seems to handle filepath ending in .

2018-12-19 Thread Matthew Barnett
Matthew Barnett added the comment: It always returns the dot. For example: >>> posixpath.splitext('.blah.txt') ('.blah', '.txt') If there's no extension (no dot): >>> posixpath.splitext('blah') ('blah', '') Not a bug. -- nosy: +mrabarnett resolution: -> not a bug stage: ->

[issue35538] splitext does not seems to handle filepath ending in .

2018-12-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this similar to previous discussions about leading and trailing dots ? https://bugs.python.org/issue34931#msg328820 -- nosy: +xtreak ___ Python tracker

[issue29081] time.strptime() return wrong result

2018-12-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This causes the round trip to be a ValueError. ./python.exe Python 3.8.0a0 (heads/master:1dd035954b, Dec 18 2018, 10:12:34) [Clang 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import

[issue35537] use os.posix_spawn in subprocess

2018-12-19 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- nosy: +gregory.p.smith, izbyshev ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35538] splitext does not seems to handle filepath ending in .

2018-12-19 Thread Devika Sondhi
New submission from Devika Sondhi : posixpath.splitext('.blah.') returns ('.blah', '.') while the expectation was to return an empty extension at the end. -- messages: 332157 nosy: Devika Sondhi priority: normal severity: normal status: open title: splitext does not seems to handle

[issue33460] "..." is used to confusingly indicate many different things in chapter 3

2018-12-19 Thread Lew Kurtz
Lew Kurtz added the comment: Removed the ellipses from the examples, so not confused with continuation prompt. Is clearer now. -- resolution: -> fixed stage: patch review -> resolved status: pending -> closed ___ Python tracker

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset cf10a750f4b50b6775719cfb17bee00bc3a9c60b by Victor Stinner (stratakis) in branch 'master': bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) https://github.com/python/cpython/commit/cf10a750f4b50b6775719cfb17bee00bc3a9c60b

[issue35535] time.strptime() unexpectedly gives the same result for %U and %W for 2018

2018-12-19 Thread Paul Ganssle
Paul Ganssle added the comment: I don't really know what Python was doing in version 2.3, and I don't have immediate access to a Python 2.3 interpreter, but at least for %U and %W, datetime is calling the platform's `strftime` under the hood, so presumably if this is a bug it's a bug in

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-19 Thread STINNER Victor
STINNER Victor added the comment: PGO+LTO build with PR 10900: I see PGO options (-fprofile-instr-generate then -fprofile-instr-use=code.profclangd) and LTO option (-flto) passed to the compiler and to the linker, as expected: $ git clean -fdx $ ./configure CC=clang --with-lto --prefix

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2018-12-19 Thread Vladimir Matveev
Vladimir Matveev added the comment: I can give it a try. -- nosy: +v2m ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2018-12-19 Thread Mathew M.
Change by Mathew M. : -- pull_requests: +10473 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35537] use os.posix_spawn in subprocess

2018-12-19 Thread Joannah Nanjekye
New submission from Joannah Nanjekye : On Linux, posix_spawn() uses vfork() instead of fork() which blocks the parent process. The child process executes exec() early and so we don't pay the price of duplicating the memory pages (the thing which tracks memory pages of a process). On macOS,

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-19 Thread STINNER Victor
STINNER Victor added the comment: TL; DR PR 10900 passed my manual tests ;-) I made some tests on PR 10900, commit d1655f939d0eeeca24c2a4fee635da087e0d499b, using 3 shell scripts. (1) step1.sh: -- set -x -e git clean -fdx ./configure CC=clang --with-lto --prefix /opt/py38 make 2>&1|tee log

[issue35420] how to migrate a c-extension module to one that supports subinerpreters?

2018-12-19 Thread Petr Viktorin
Petr Viktorin added the comment: Hi (and sorry for the delay -- it's a busy time of year). Unfortunately, there's no good documentation yet. Python's standard library itself is not free of global state, and I don't think we want to start documenting before that's fixed. --

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-19 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 55cc34500e5abbfedb89adc95e3f94d53c544933 by Barry Warsaw (Chris Rands) in branch 'master': bpo-35526: make __future__.barry_as_FLUFL mandatory for Python 4.0 (#11218)

[issue35302] create_connection with local_addr misses valid socket bindings

2018-12-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: A better workaround is IMHO to force the socket to be IPV6 only: sd = socket.socket(socket.AF_INET6, socket.SOCK_STREAM, 0) sd.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 1) That avoids the ordering problem as well as having to try all possible

[issue35535] time.strptime() unexpectedly gives the same result for %U and %W for 2018

2018-12-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The results from ruby are the same as Python master as a data point. From the docs %U - Week number of the year (Sunday as the first day of the week) as a zero padded decimal number. All days in a new year preceding the first Sunday are

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

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

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 89b5ea297d67f5efeb8fca0b63fa3d9f7030b2f0 by Serhiy Storchaka in branch '2.7': [2.7] bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033) (GH-11234)

[issue35536] Calling built-in locals() and globals() in C++ leads to SystemError

2018-12-19 Thread Никита Сиргиенко
New submission from Никита Сиргиенко : System: Distributor ID: Ubuntu Description:Ubuntu 18.04.1 LTS Release:18.04 Codename: bionic Arch: x86_64 Compilier: g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 Python versions: Python 3.6.7-1 Python 2.7.15rc1

[issue34160] ElementTree not preserving attribute order

2018-12-19 Thread Julian Sivertsen
Julian Sivertsen added the comment: I don't understand why this library should go out of its way to support the old behavior when it seems like the only thing it breaks is tests that assume something that was never guaranteed and where you can get the old behavior in just two lines of

[issue35524] using/windows launcher image might be deprecated

2018-12-19 Thread Jules Lasne
Jules Lasne added the comment: Here it is again, with display scaling disabled ! :) -- Added file: https://bugs.python.org/file48007/Screenshot_2.png ___ Python tracker ___

[issue35524] using/windows launcher image might be deprecated

2018-12-19 Thread Steve Dower
Steve Dower added the comment: It looks like display scaling, which you'll need to disable for this. The UI for the installer is slightly aware of scaling, but not enough to resize multiline elements automatically. -- ___ Python tracker

[issue35486] subprocess module import hooks breaks back compatibility

2018-12-19 Thread Nick Coghlan
Nick Coghlan added the comment: Note that the above distinction is also the rationale for introducing the new subtype: so that it's easy to tell the difference between "that module was not found at all" (ModuleNotFoundError) and "the module was found, but attempting to actually load it

[issue35486] subprocess module import hooks breaks back compatibility

2018-12-19 Thread Nick Coghlan
Nick Coghlan added the comment: The two errors mean different things: ModuleNotFoundError means literally that the module could not be found at all (i.e. no import hook offered to try to load it) A plain ImportError then means that the module was located, but attempting to actually load it

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2018-12-19 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, the relevant change here would be the fact that -b and -bb now modify sys.warnoptions, rather than the warnings module being aware of those command line options specifically: https://docs.python.org/3/whatsnew/3.7.html#warnings As a result, unittest.main

[issue35302] create_connection with local_addr misses valid socket bindings

2018-12-19 Thread twisteroid ambassador
Change by twisteroid ambassador : -- keywords: +patch pull_requests: +10471 stage: -> patch review ___ Python tracker ___ ___

[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2018-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not sure that we need to change ismount(), but its behavior should be documented. -- ___ Python tracker ___

[issue35302] create_connection with local_addr misses valid socket bindings

2018-12-19 Thread twisteroid ambassador
twisteroid ambassador added the comment: IMO macOS is at fault here, for even allowing an IPv6 socket to bind to an IPv4 address. ;-) I have given some thought about this issue when writing my happy eyeballs library. My current solution is closest to Neil's first suggestion, i.e. each pair

[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2018-12-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10470 stage: needs patch -> patch review ___ Python tracker ___

[issue35535] time.strptime() unexpectedly gives the same result for %U and %W for 2018

2018-12-19 Thread Paul Keating
New submission from Paul Keating : This was originally reported on StackOverflow (53829118) and I believe the poster has found a genuine issue. He reported a problem converting from Python 2.3 to Python 2.7 in which strptime() produced a different result for %U in the two versions. For lack

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

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

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-19 Thread STINNER Victor
STINNER Victor added the comment: > (...) things like PGO often require flags that the linker sees in order to > generate the instrumented binary. If those are left off of the link step, you > won't have an instrumented binary and won't generate profile data. Oh, I didn't try my PR... $

[issue35497] Libary select docs enhance

2018-12-19 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35497] Libary select docs enhance

2018-12-19 Thread miss-islington
miss-islington added the comment: New changeset a11d44056e4f9b64d28efec295e1c1c45d4cb9e1 by Miss Islington (bot) in branch '3.7': bpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162) https://github.com/python/cpython/commit/a11d44056e4f9b64d28efec295e1c1c45d4cb9e1 -- nosy:

[issue35534] SIGSEGV in stackdepth_walk

2018-12-19 Thread Marcin Gozdalik
Marcin Gozdalik added the comment: #0 0x004f4af3 in stackdepth_walk (maxdepth=5, depth=3, b=, c=) at ../Python/compile.c:3436 #1 stackdepth_walk (maxdepth=, depth=0, b=, c=0x7fff4f5b84f0) at ../Python/compile.c:3456 #2 stackdepth (c=0x7fff4f5b84f0) at ../Python/compile.c:3486 #3

[issue35497] Libary select docs enhance

2018-12-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +10469 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35530] Counter-intuitive logging API

2018-12-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > If you have 3.8 installed, feel free to test the code yourself and report > what happens. I tested it on master and it's the same as per the original report. ➜ cpython git:(master) cat ../backups/bpo35530_1.py import logging logger =

[issue35497] Libary select docs enhance

2018-12-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 92330c0b6d6c253c41a133cc50caea4853c7e311 by Xiang Zhang (Manjusaka) in branch 'master': bpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162) https://github.com/python/cpython/commit/92330c0b6d6c253c41a133cc50caea4853c7e311 --

[issue35534] SIGSEGV in stackdepth_walk

2018-12-19 Thread Marcin Gozdalik
New submission from Marcin Gozdalik : When running /usr/bin/python /usr/bin/pip install --upgrade "pip < 10" the interpreter crashed in stackdepth_walk. I've seen this crash multiple times, especially in our custom-compiled CPythons. Here it's reproduced with stock Ubuntu Xenial Python. It

[issue35533] argparse standard error usage for exit / error

2018-12-19 Thread Philip Rowlands
New submission from Philip Rowlands : Because error() mentions standard error and exit() does not, I assumed exit() did not use stderr, but it does. Please mention standard error in the description of exit(). Relevant code at: https://github.com/python/cpython/blob/3.7/Lib/argparse.py#L2482

[issue35530] Counter-intuitive logging API

2018-12-19 Thread Emmanuel Arias
Emmanuel Arias added the comment: > What would the exception say? > >FatalError: no error occurred haha, I mean a message that tell you something to avoid have some weird behave (like here). :-) > If you have 3.8 installed, feel free to test the code yourself and report > what happens.

[issue35530] Counter-intuitive logging API

2018-12-19 Thread Mark Dickinson
Mark Dickinson added the comment: > I completely missed it. You're not alone. Authors of many of the libraries that we work with on a day-to-day basis missed it, too. And that results in logging being accidentally configured as a side-effect halfway through a long test run, when one of

[issue35530] Counter-intuitive logging API

2018-12-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Wed, Dec 19, 2018 at 10:37:22AM +, Mark Dickinson wrote: > > Mark Dickinson added the comment: > > The call to `logging.error` is *not* irrelevant here. It's causing an > implicit, and surprising (albeit documented), call to >

[issue35524] using/windows launcher image might be deprecated

2018-12-19 Thread Jules Lasne
Jules Lasne added the comment: Here is the image, it should be the same size (by a few pixels). Oddly enough, I couldn't get the bottom part to unfold and I can't figure out why -- Added file: https://bugs.python.org/file48005/win_install_python.png

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-12-19 Thread Nick Coghlan
Nick Coghlan added the comment: I still think the current Python 3.7 behaviour makes the CPython runtime a badly behaved C library, since we may end up changing the active libc locale even when it isn't the main application, and a change hasn't been explicitly requested by the embedding

[issue35530] Counter-intuitive logging API

2018-12-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: > That's true. Maybe and warning or Exception can be raise? Why would we raise a warning or exception for expected behaviour? logging.error() and some_instance.error() don't necessarily produce the same output. What would the exception say?

[issue35530] Counter-intuitive logging API

2018-12-19 Thread Mark Dickinson
Mark Dickinson added the comment: The call to `logging.error` is *not* irrelevant here. It's causing an implicit, and surprising (albeit documented), call to `logging.basicConfig`. https://bugs.python.org/issue34350 is essentially the same issue. That issue was closed as "not a bug", though

  1   2   >