[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2019-07-08 Thread Gordon Messmer
Gordon Messmer added the comment: > I can see that it might be helpful to provide such a conversion if > C.UTF-8 doesn't exist and en_US.UTF-8 does That can't happen. The "C" locale describes the behavior defined in the ISO C standard. It's built-in to glibc (and should be for all other

[issue37489] pickling instance which inherited from Exception with keyword only parameter

2019-07-08 Thread liyang
liyang added the comment: yesterday i have test two case, first i find the code 1 not execute the __init__ when execute loads. second the code 1 and code 2 dumps result s is not equal,because the dumps is the buildin function ,so i can't find more message.but if the code2 only have keyword

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-07-08 Thread Kyle Stanley
Kyle Stanley added the comment: Typo: The PR in the above comment should be 14655, not 14642. -- ___ Python tracker ___ ___

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-07-08 Thread Kyle Stanley
Kyle Stanley added the comment: Opened a new PR for moving "threaded_import_hangers" to "test_importlib/" (PR-14642). This should be the final file in "tests/" to move into "test_importlib/", so the issue can be closed if this PR is merged. I'll create a new issue for modernizing the tests

[issue36993] zipfile: tuple IndexError on extract

2019-07-08 Thread Daniel Hillier
Change by Daniel Hillier : -- pull_requests: +14463 pull_request: https://github.com/python/cpython/pull/14656 ___ Python tracker ___

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-07-08 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +14462 pull_request: https://github.com/python/cpython/pull/14655 ___ Python tracker ___

[issue37367] octal escapes applied inconsistently throughout the interpreter and lib

2019-07-08 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: The PR is ready for review. It raises ValueError if the escaped octal value in a byte string is greater than 255. -- ___ Python tracker

[issue29312] Use FASTCALL in dict.update()

2019-07-08 Thread Inada Naoki
Inada Naoki added the comment: > Changing dict.update() calling convention may save a few nanoseconds on > d1.update(d2) call, but it will make d1.update(**d2) way slower with a > complexity of O(n): d2 must be converted to 2 lists (kwnames and args) and > then a new dict should be created.

[issue37367] octal escapes applied inconsistently throughout the interpreter and lib

2019-07-08 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +14461 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14654 ___ Python tracker

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2019-07-08 Thread Ned Deily
Ned Deily added the comment: A few comments on this. One, the Tkinter documentation in question seems to have been a personal project of John Shipman at New Mexico Tech and, as such, was not "official" so I've updated the issue title accordingly. Sadly, as Cheryl noted, John died two

[issue37421] Some tests leak temporary files

2019-07-08 Thread STINNER Victor
STINNER Victor added the comment: It seems like tests don't leak temporary files anymore: $ mkdir ~/TEMP $ TMPDIR=~/TEMP TEMPDIR=~/TEMP ./python -m test -v -r -u all,-gui $ ls ~/TEMP # empty directory I close the issue. -- resolution: -> fixed stage: patch review -> resolved

[issue37500] 3.8.0b2 no longer optimizes away "if 0:" ?

2019-07-08 Thread Ned Deily
Ned Deily added the comment: New changeset 4834c80d799471a6c9ddaad9c5c82c8af156e4fd by Ned Deily (Pablo Galindo) in branch '3.7': [3.7] bpo-37500: Revert commit 85ed1712e428f93408f56fc684816f9a85b0ebc0 (GH-14605)

[issue37149] link to official documentation tkinter failed !!!

2019-07-08 Thread Ned Deily
Ned Deily added the comment: New changeset f2cbf41afc9e9a0ce16bfe0c71662348453a28c4 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-37149: Replace dead link for online Tkinter reference (GH-14616) https://github.com/python/cpython/commit/f2cbf41afc9e9a0ce16bfe0c71662348453a28c4

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2019-07-08 Thread miss-islington
miss-islington added the comment: New changeset c7be35c2abd598f02a633879133caec356593241 by Miss Islington (bot) in branch '3.8': bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607) https://github.com/python/cpython/commit/c7be35c2abd598f02a633879133caec356593241

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2019-07-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +14460 pull_request: https://github.com/python/cpython/pull/14653 ___ Python tracker ___

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2019-07-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 110a47c4f42cf4db88edc1876899fff8f05190fb by Ivan Levkivskyi (Carl Friedrich Bolz-Tereick) in branch 'master': bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607)

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : Removed file: https://bugs.python.org/file48461/importsfucked.zip ___ Python tracker ___ ___ Python-bugs-list

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : Removed file: https://bugs.python.org/file48460/importsfucked.zip ___ Python tracker ___ ___ Python-bugs-list

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Brett Cannon added the comment: Mind re-uploading the examples files with a more appropriate file name? (Saying "import is f-'ed" is not motivating to those of us who wrote it to try and fix this.) -- ___ Python tracker

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37519] Three inconsistent module attributes

2019-07-08 Thread Brett Cannon
Brett Cannon added the comment: PEPs actually become historical documents once they are implemented, so could you please check what the official docs say in regards to this to see if there is an inconsistency in the semantics? -- nosy: +brett.cannon

[issue37514] french translation Spelling mistake on datetime python's library documentation online

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37512] Error in the documentation about string concatenation

2019-07-08 Thread Brett Cannon
Brett Cannon added the comment: I'm going to close this as we try to avoid documenting CPython-specific details unless absolutely necessary. And in the case of documenting the str type we should avoid that. So thanks for the suggestion, Dmitriy, but we will just leave this as a pleasant

[issue29312] Use FASTCALL in dict.update()

2019-07-08 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > d2 must be converted to 2 lists (kwnames and args) and then a new dict should > be created. The last part is not necessarily true. You could do the update directly, without having that intermediate dict. --

[issue37500] 3.8.0b2 no longer optimizes away "if 0:" ?

2019-07-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yep, that is more or less the approach in PR14612. What I tried to achieve there is also minimize the amount of changes to make the pass for errors non intrusive. -- ___ Python tracker

[issue37149] link to official documentation tkinter failed !!!

2019-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Larry, I have the same request of you that I did for Ned. Please backport PR-14616 to 3.5. It replaces a dead link to the most important online Tkinter reference. Many people are lost without the reference, as they find reading the tcl/tk reference much

[issue30663] IDLE: Add lineno sidebar to editor window

2019-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: A closing note: Saimadhav Heblikar's initial patch on #17535 was a standalone proof-of-concept file was based on Canvas and Text subclasses. The latter consisted mostly of two tk.eval(tcl_code) calls. I rejected the idea of using tk.eval, as review and

[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2019-07-08 Thread Caymon Sullivan
Change by Caymon Sullivan : -- nosy: +cayman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37187] CField.size from the ctypes module does not behave as documented on bitfields

2019-07-08 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27679] set_bitfields() unused in _ctypes_test

2019-07-08 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27679] set_bitfields() unused in _ctypes_test

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

[issue37187] CField.size from the ctypes module does not behave as documented on bitfields

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

[issue37149] link to official documentation tkinter failed !!!

2019-07-08 Thread Ned Deily
Ned Deily added the comment: New changeset 317c33e67cb6076c5a87a66c75e8c35ac581398d by Ned Deily in branch '3.6': bpo-37149: Replace dead link for online Tkinter reference (GH-14616) https://github.com/python/cpython/commit/317c33e67cb6076c5a87a66c75e8c35ac581398d --

[issue37500] 3.8.0b2 no longer optimizes away "if 0:" ?

2019-07-08 Thread Guido van Rossum
Guido van Rossum added the comment: Sure seems to me as if we need to have a separate pass that looks for out-of-place `return`, `yield`, `break` and `continue`, run before the optimization removes `if 0:` blocks etc. -- nosy: +gvanrossum ___

[issue37369] Issue with pip in venv on Powershell in Windows

2019-07-08 Thread gaborbernat
gaborbernat added the comment: A note on the above points, virtualenv has started migrating over to venv via https://github.com/pypa/virtualenv/pull/1377 . Following this, the old ways of virtualenv should be left to the history books. Hopefully, I can get it out within the next month or

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-07-08 Thread STINNER Victor
STINNER Victor added the comment: Ah by the way, this issue was mostly motivated by a customer issue, but the bug disappeared from customer's production. Moreover, Python 3.8 now allows to use debug build without having to recompile all C extensions:

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-07-08 Thread STINNER Victor
STINNER Victor added the comment: I opened this issue, because I was convinced that it would be easy to implement checks faster than gc.setthreshold(), but I failed to write efficient tests which detect the bugs that I listed above. My approach was basically to check all objects tracked by

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-07-08 Thread Guido Vranken
Guido Vranken added the comment: Hi, I've built a generic Python fuzzer and submitted it to OSS-Fuzz. It works by implementing a "def FuzzerRunOne(FuzzerInput):" function in Python in which some arbitrary code is run based on FuzzerInput, which is a bytes object. This is a more versatile

[issue37471] mmap module: add MAP_ALIGNED_SUPER FreeBSD and MAP_CONCEAL OpenBSD constants

2019-07-08 Thread David CARLIER
Change by David CARLIER : -- title: mmap module: add MAP_ALIGNED_SUPER FreeBSD constant -> mmap module: add MAP_ALIGNED_SUPER FreeBSD and MAP_CONCEAL OpenBSD constants ___ Python tracker

[issue37130] pathlib.Path.with_name() handles '.' and '..' inconsistently

2019-07-08 Thread Steinmann
Steinmann added the comment: @Brett: I also think making Path('.').name evaluate to '.' would be the most logical thing. More even so since the documentation says PurePath.name() is equivalent to os.path.basename()[1], but: >>> Path('.').name '' >>> os.path.basename('.') '.' Though I'm not

[issue37055] Numerous warnings with blake2 module

2019-07-08 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +14457 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14646 ___ Python tracker ___

[issue37522] http.cookies.SimpleCookie doesn't seem to be parsed using regulars

2019-07-08 Thread MeiK
New submission from MeiK : In Python's built-in SimpleCookie[1], regular expressions are used to parse cookies, which seems to be a non-standard way. I looked at the RFC documentation related to cookie resolution: rfc2109[2] and rfc6265[3], the former has been replaced by the latter. These

[issue37421] Some tests leak temporary files

2019-07-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset cdada40b23b1f7f527797ba7cb14c25820b05981 by Victor Stinner (Miss Islington (bot)) in branch '3.8': bpo-37421: test_concurrent_futures stops ForkServer (GH-14643) (GH-14645)

[issue30663] IDLE: Add lineno sidebar to editor window

2019-07-08 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default. ___ Python tracker

[issue37421] Some tests leak temporary files

2019-07-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +14456 pull_request: https://github.com/python/cpython/pull/14645 ___ Python tracker ___

[issue37421] Some tests leak temporary files

2019-07-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset e676244235895aeb6ec3b81ca3ccf4a70e487919 by Victor Stinner in branch 'master': bpo-37421: test_concurrent_futures stops ForkServer (GH-14643) https://github.com/python/cpython/commit/e676244235895aeb6ec3b81ca3ccf4a70e487919 --

[issue37507] multiprocessing: Add a stop() method to ForkServer

2019-07-08 Thread STINNER Victor
STINNER Victor added the comment: Previous related discussion on python-dev: https://mail.python.org/archives/list/python-...@python.org/thread/NJCLS7IOKKO6W7LBGPQI2VFAO57EJEPW/#DIOMN256E24NUBSPKWFQA556F43IOWXR -- ___ Python tracker

[issue37337] Add _PyObject_VectorcallMethod() function

2019-07-08 Thread Petr Viktorin
Petr Viktorin added the comment: Thank you, Jeroen and INADA-san! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37507] multiprocessing: Add a stop() method to ForkServer

2019-07-08 Thread STINNER Victor
STINNER Victor added the comment: > Side note: if you're modifying multiprocessing, asking for a review doesn't > hurt ;-) I only modified tests (I only added a *private* _stop() method which is only used by tests). When I touch the multiprocessing module directly, I wait for a review.

[issue37507] multiprocessing: Add a stop() method to ForkServer

2019-07-08 Thread STINNER Victor
STINNER Victor added the comment: > There is no reason to expose "stop the forkserver" to users. How the > forkserver process works, what tasks it handles, is an implementation detail. > If users start "stopping the forkserver" in their applications for no good to > reason, they might get

[issue37337] Add _PyObject_VectorcallMethod() function

2019-07-08 Thread Inada Naoki
Inada Naoki added the comment: New changeset 762f93ff2efd6b7ef0177cad57939c0ab2002eac by Inada Naoki (Jeroen Demeyer) in branch 'master': bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) https://github.com/python/cpython/commit/762f93ff2efd6b7ef0177cad57939c0ab2002eac --

[issue37421] Some tests leak temporary files

2019-07-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14455 pull_request: https://github.com/python/cpython/pull/14643 ___ Python tracker ___

[issue37224] test__xxsubinterpreters failed on AMD64 Windows8.1 Refleaks 3.8

2019-07-08 Thread STINNER Victor
STINNER Victor added the comment: The test still fails times to times: https://buildbot.python.org/all/#/builders/80/builds/644 FAIL: test_subinterpreter (test.test__xxsubinterpreters.IsRunningTests) -- Traceback (most recent

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-07-08 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +14454 pull_request: https://github.com/python/cpython/pull/14642 ___ Python tracker ___