[issue34443] enum repr should use __qualname__

2019-07-16 Thread Ethan Furman
Ethan Furman added the comment: If someone would like to make a PR for using __qualname__ in error messages that would be great. :) -- stage: test needed -> needs patch ___ Python tracker

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-16 Thread Brett Cannon
Brett Cannon added the comment: Nope, loader.exec_module() doesn't either: https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.exec_module, https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap_external.py#L776. So unfortunately I'm still not sure what

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2019-07-16 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: This issue appears to have been fixed: Python 3.7.3 (default, May 1 2019, 00:00:47) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.makedirs('/', exist_ok=True) >>>

[issue27452] IDLE: Cleanup config code

2019-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for preparing the PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker

[issue27452] IDLE: Cleanup config code

2019-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset efd23a199b1415a9850a914d525a1e5711fdd6d8 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.7': bpo-27452: IDLE: Cleanup config.py code (GH-14577) (GH-14803) https://github.com/python/cpython/commit/efd23a199b1415a9850a914d525a1e5711fdd6d8

[issue27452] IDLE: Cleanup config code

2019-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 178f09f8b7d25348d46751a774666dd4ec32f3e6 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.8': bpo-27452: IDLE: Cleanup config.py code (GH-14577) (GH-14802) https://github.com/python/cpython/commit/178f09f8b7d25348d46751a774666dd4ec32f3e6

[issue22121] Start IDLE from icon in a better place.

2019-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: An implementation note mostly to myself: In 3.8 and before, 'python relative/path/to/file.py' results in the __file__ attribute of the main module being the relative path, and a possibly unnormalized full path is os.curdir + __file__. I believe that this

[issue27452] IDLE: Cleanup config code

2019-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: As near as I can tell, 'python file.py' results in absolute __file__ in 3.9 versus still relative in 3.8. -- ___ Python tracker ___

[issue27452] IDLE: Cleanup config code

2019-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +14599 pull_request: https://github.com/python/cpython/pull/14803 ___ Python tracker ___

[issue27452] IDLE: Cleanup config code

2019-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +14598 pull_request: https://github.com/python/cpython/pull/14802 ___ Python tracker ___

[issue27452] IDLE: Cleanup config code

2019-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset f8d4cc7dbbf54b9c5435c3080582a4aa421a067d by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-27452: IDLE: Cleanup config.py code (GH-14577) https://github.com/python/cpython/commit/f8d4cc7dbbf54b9c5435c3080582a4aa421a067d --

[issue37529] Mimetype module duplicates

2019-07-16 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: This appears to have been fixed by issue #4963 and backported to the 3.7 and 3.8 branches: Python 3.7.4+ (heads/3.7-dirty:e7bec26937, Jul 16 2019, 12:53:26) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license" for

[issue36711] duplicate method definition in Lib/email/feedparser.py

2019-07-16 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36712] duplicate method definition in Lib/email/test/test_email_renamed.py

2019-07-16 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36711] duplicate method definition in Lib/email/feedparser.py

2019-07-16 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +14597 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14801 ___ Python tracker

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-07-16 Thread miss-islington
miss-islington added the comment: New changeset e7bec26937ce602ca21cc1f78a391adcf5eafdf1 by Miss Islington (bot) in branch '3.7': Fix infinite loop in email folding logic (GH-12732) https://github.com/python/cpython/commit/e7bec26937ce602ca21cc1f78a391adcf5eafdf1 --

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-07-16 Thread miss-islington
miss-islington added the comment: New changeset 6a2aec0ff587032beb8aac8cbebb09e7a52f6694 by Miss Islington (bot) in branch '3.8': Fix infinite loop in email folding logic (GH-12732) https://github.com/python/cpython/commit/6a2aec0ff587032beb8aac8cbebb09e7a52f6694 -- nosy:

[issue36712] duplicate method definition in Lib/email/test/test_email_renamed.py

2019-07-16 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +14596 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14800 ___ Python tracker

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +14595 pull_request: https://github.com/python/cpython/pull/14799 ___ Python tracker ___

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-07-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset f69d5c61981ea97d251db515c7ff280fcc17182d by Barry Warsaw (Paul Ganssle) in branch 'master': Fix infinite loop in email folding logic (GH-12732) https://github.com/python/cpython/commit/f69d5c61981ea97d251db515c7ff280fcc17182d --

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +14594 pull_request: https://github.com/python/cpython/pull/14798 ___ Python tracker ___

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +14593 pull_request: https://github.com/python/cpython/pull/14797 ___ Python tracker ___

[issue37606] Improve test_dtrace.py

2019-07-16 Thread hai shi
hai shi added the comment: Thanks, copy that. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37597] audit event table breaks PDF sphinx build

2019-07-16 Thread Steve Dower
Steve Dower added the comment: Guess we need a real Sphinx expert to help out here. Somehow we need to get explicit backlinks, but I couldn't figure out how to resolve them normally through an extension. If we can do that, this will probably go away. --

[issue37607] segfault running code in jupyter on macOS 10.14.5 - crashed on child side of fork pre-exec

2019-07-16 Thread STINNER Victor
STINNER Victor added the comment: See bpo-33725 and multiprocessing documentation: https://docs.python.org/dev/library/multiprocessing.html#contexts-and-start-methods "Changed in version 3.8: On macOS, the spawn start method is now the default. The fork start method should be considered

[issue37607] segfault running code in jupyter on macOS 10.14.5 - crashed on child side of fork pre-exec

2019-07-16 Thread wesinator
New submission from wesinator <13hu...@gmail.com>: python 3.7.4 (homebrew) macOS 10.14.5 16 GB DDR4 segfault encountered when running test code in jupyter. Application Specific Information: crashed on child side of fork pre-exec I'm not in a position to share the code unfortunately, but I

[issue37606] Improve test_dtrace.py

2019-07-16 Thread Xiang Zhang
Change by Xiang Zhang : -- versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37606] Improve test_dtrace.py

2019-07-16 Thread Xiang Zhang
Xiang Zhang added the comment: In Py3, you should use `python -m test test_dtrace` to run the test suite. -- nosy: +xiang.zhang resolution: -> not a bug stage: patch review -> resolved status: open -> closed versions: +Python 3.5 ___ Python

[issue37606] Improve test_dtrace.py

2019-07-16 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +14592 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14796 ___ Python tracker ___

[issue37606] Improve test_dtrace.py

2019-07-16 Thread hai shi
hai shi added the comment: Looks backend should be estimated before running unit tests. -- ___ Python tracker ___ ___

[issue37606] Improve test_dtrace.py

2019-07-16 Thread hai shi
New submission from hai shi : $ ./python -m unittest test.test_dtrace E == ERROR: setUpClass (test.test_dtrace.TraceTests) -- Traceback (most recent call

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-16 Thread Benjamin Mintz
Benjamin Mintz added the comment: I dunno, one of those three does. I suppose it's spec.loader.exec_module(). -- ___ Python tracker ___

[issue3753] bytearray incompatible with y#

2019-07-16 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +14590, 14591 pull_request: https://github.com/python/cpython/pull/14679 ___ Python tracker ___

[issue3753] bytearray incompatible with y#

2019-07-16 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +14590 pull_request: https://github.com/python/cpython/pull/14679 ___ Python tracker ___

[issue37603] parsetok(): Assertion `(intptr_t)(int)(a - line_start) == (a - line_start)' failed, when running get-pip.py

2019-07-16 Thread STINNER Victor
STINNER Victor added the comment: PR 14433 seems to fix this issue and it contains a test. My PR 14789 fixed get-pip.py, but it introduces another bug: I closed it. -- ___ Python tracker

[issue34443] enum repr should use __qualname__

2019-07-16 Thread Ethan Furman
Ethan Furman added the comment: Both are good suggestions. The first should definitely happen. I'll investigate the second. -- resolution: rejected -> stage: resolved -> test needed status: closed -> open ___ Python tracker

[issue37605] CI should not depend on gmane response

2019-07-16 Thread Zachary Ware
Zachary Ware added the comment: Victor, note that this issue is about the nntplib doctests in Doc/library/nntplib.rst. I agree that any examples in that file that actually hit an external server should be marked as not doctests. -- assignee: -> docs@python components:

[issue37605] CI should not depend on gmane response

2019-07-16 Thread STINNER Victor
STINNER Victor added the comment: > On Travis, 'Documentation tests' passing is apparently required. Line 23 of > nntplib.rst is ">>> s = NNTP('news.gmane.org')" I use gmane and occasional > failures to respond are routine. Being able to merge should not depend on > this external site.

[issue37605] CI should not depend on gmane response

2019-07-16 Thread Terry J. Reedy
New submission from Terry J. Reedy : On Travis, 'Documentation tests' passing is apparently required. Line 23 of nntplib.rst is ">>> s = NNTP('news.gmane.org')" I use gmane and occasional failures to respond are routine. Being able to merge should not depend on this external site. In

[issue37499] test_gdb.test_pycfunction should use dedicated test functions

2019-07-16 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +14589 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14795 ___ Python tracker

[issue37565] test_faulthandler: test_register_chain() crash with SIGSEGV (signal 11) on Skylake chipset

2019-07-16 Thread Michelle Johnson
Michelle Johnson added the comment: Is the problem I'm seeing possibly related to this issue: https://bugs.python.org/issue21131 It seems to share a lot of similarities. -- ___ Python tracker

[issue37599] Remove a vague statement in documentation of Integer Objects

2019-07-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7, Python 3.8 ___ Python tracker ___

[issue37599] Remove a vague statement in documentation of Integer Objects

2019-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 1d8b04edfdc3030e645730492bfcc27b75718b96 by Raymond Hettinger (sgal) in branch 'master': bpo-37599: Remove a vague statement in documentation of Integer Objects (#14786)

[issue37352] Typo in documentation: "to making it easy"

2019-07-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker ___

[issue37352] Typo in documentation: "to making it easy"

2019-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset a0f7119f1584db5b32deffb60a68d830673ebbdf by Raymond Hettinger (Ilya Kamenshchikov) in branch 'master': bpo-37352: Minor word-smithing for design.rst (GH #14730)

[issue37461] email.parser.Parser hang

2019-07-16 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +14588 pull_request: https://github.com/python/cpython/pull/14794 ___ Python tracker ___

[issue37599] Remove a vague statement in documentation of Integer Objects

2019-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: There's nothing wrong with a little wry humor in the docs, especially when the provide a little insight into the implementation. It isn't irresponsible at all -- please avoid those pejoratives. That said, I'll accept the patch because the sentence isn't

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-16 Thread Luis Alejandro Martínez Faneyth
Luis Alejandro Martínez Faneyth added the comment: Thanks Christian for the suggestion and Matthias. -- ___ Python tracker ___ ___

[issue37256] urllib.request.Request documentation erroneously refers to the "final two"

2019-07-16 Thread Ngalim Siregar
Change by Ngalim Siregar : -- keywords: +patch pull_requests: +14587 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14792 ___ Python tracker ___

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-16 Thread Matthias Klose
Matthias Klose added the comment: this is issue #37561, making the sysconfigdata file name not changing with the kernel version of the OS. I need to commit that patch to the trunk and 3.8. But apparently pip needs to be aware of that as well ... --

[issue37604] warnings should use a ContextVar to manage filters/registry

2019-07-16 Thread Thomas Grainger
Thomas Grainger added the comment: note that PEP 550 previously mentions catch_warnings as something that would benefit from some sort of Execution Context management > Context managers like decimal contexts, numpy.errstate, and > warnings.catch_warnings. --

[issue37604] warnings should use a ContextVar to manage filters/registry

2019-07-16 Thread Thomas Grainger
New submission from Thomas Grainger : this would allow ``warnings.catch_warnings`` to be threadsafe -- messages: 348015 nosy: graingert priority: normal severity: normal status: open title: warnings should use a ContextVar to manage filters/registry

[issue34443] enum repr should use __qualname__

2019-07-16 Thread Walter Dörwald
Walter Dörwald added the comment: Can we at least get the __qualname__ in exception messages? Currently enum.Enum.__new__() and enum.Enum._missing_() use: raise ValueError("%r is not a valid %s" % (value, cls.__name__)) IMHO this should be: raise ValueError("%r is not a valid %s" %

[issue37601] shutil.make_archive does not follow symlinks for zip archives

2019-07-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like a reasonable addition to me. Other APIs in shutil have follow_symlinks parameter. ➜ /tmp ls -al sym total 0 drwxr-xr-x 3 karthikeyansingaravelan staff 102 Jul 16 15:52 . drwxr-xr-x 58 karthikeyansingaravelan staff 1972 Jul

[issue37406] Disable runtime checks in release mode

2019-07-16 Thread STINNER Victor
STINNER Victor added the comment: I didn't find time to write a proper a rationale for this change, and I will not be available next weeks. So I prefer to close this issue. I may reopen it later once I have a strong rationale :-) In the meanwhile, have a look at the new PyHandle API idea

[issue37324] collections: remove deprecated aliases to ABC classes

2019-07-16 Thread STINNER Victor
STINNER Victor added the comment: Right now (pip 19.1.1?), "./python -m venv env" still fails because of html5lib/_trie/py.py. There is still no activitiy on the request to get a new release: https://github.com/html5lib/html5lib-python/issues/419 --

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2019-07-16 Thread STINNER Victor
STINNER Victor added the comment: commit 995d9b92979768125ced4da3a56f755bcdf80f6e introduced a regression: bpo-37603: parsetok(): Assertion `(intptr_t)(int)(a - line_start) == (a - line_start)' failed, when running get-pip.py. -- nosy: +vstinner

[issue37603] parsetok(): Assertion `(intptr_t)(int)(a - line_start) == (a - line_start)' failed, when running get-pip.py

2019-07-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14586 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14789 ___ Python tracker ___

[issue37598] Don't use _ as a function name in logging documentation cookbook

2019-07-16 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37598] Don't use _ as a function name in logging documentation cookbook

2019-07-16 Thread Vinay Sajip
Vinay Sajip added the comment: > Since order of kwargs is guaranteed from Python 3.6 can this be removed? Well, the statement about order isn't inaccurate when talking about Python in general and the cookbook is a resource meant to be useful across multiple Python implementations and

[issue37603] parsetok(): Assertion `(intptr_t)(int)(a - line_start) == (a - line_start)' failed, when running get-pip.py

2019-07-16 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file48486/get-pip2.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37603] parsetok(): Assertion `(intptr_t)(int)(a - line_start) == (a - line_start)' failed, when running get-pip.py

2019-07-16 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +inada.naoki, pablogsal, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37603] parsetok(): Assertion `(intptr_t)(int)(a - line_start) == (a - line_start)' failed, when running get-pip.py

2019-07-16 Thread STINNER Victor
New submission from STINNER Victor : bpo-16806 introduced a regression with the following change: commit 995d9b92979768125ced4da3a56f755bcdf80f6e (refs/bisect/bad) Author: Anthony Sottile Date: Sat Jan 12 20:05:13 2019 -0800 bpo-16806: Fix `lineno` and `col_offset` for multi-line

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2019-07-16 Thread STINNER Victor
STINNER Victor added the comment: docutils is already fixed in the development version. I requested a release: https://sourceforge.net/p/docutils/bugs/364/ -- ___ Python tracker

[issue37584] Multiple test failures with OSError: [Errno 84] Invalid or incomplete multibyte or wide character on ZFS with utf8only=on

2019-07-16 Thread STINNER Victor
STINNER Victor added the comment: """ On ext4 this creates 4 different files: ['\u03d4', '\u03d2\u0308', '\u03ab', '\u03a5\u0308'] On ZFS with utf8only=true (and I believe normalization=formD), only 2 files are created but each of the 4 filenames can be used to access either of the 2 files.

[issue37598] Don't use _ as a function name in logging documentation cookbook

2019-07-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Slightly unrelated to the issue but I noticed the below statement in the docs page couple of times. I think it's related to the order of kwargs when the statement was added in 3d9e972270270e1498712065a17ec3a589ae8986. Since order of kwargs is

[issue37602] nonzero fixer problem

2019-07-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list