[issue37457] python3.7 re.split() module bug

2019-06-30 Thread SilentGhost
Change by SilentGhost : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: performance -> behavior ___ Python tracker ___

[issue37460] importlib.import_module("test.test_curses") could not import by libregrtest

2019-06-30 Thread Yoong Hor Meng
Yoong Hor Meng added the comment: I just find it strange that libncursesw5-dev is used during compilation but libncurses5-dev is used for testing. -- stage: -> resolved status: open -> closed type: -> compile error ___ Python tracker

[issue37460] importlib.import_module("test.test_curses") could not import by libregrtest

2019-06-30 Thread Yoong Hor Meng
Yoong Hor Meng added the comment: I installed libncurses5-dev and ran configure again: ./configure \ --with-openssl=/usr --enable-optimizations It could be build without skipping test_curses. It seems that regrtest.py looks for libncurses5-dev during configure state. ... Run tests

[issue37452] Microsoft store package has an invalid ExecutablePath registry entry

2019-06-30 Thread Steve Dower
Steve Dower added the comment: Unfortunately, we don't control that path - it comes from a parameter substitution. I'll have to see whether there's another parameter we can use. All of this stuff is in undocumented territory, unfortunately... --

[issue37457] python3.7 re.split() module bug

2019-06-30 Thread Ma Lin
Ma Lin added the comment: Try this pattern: >>> re.split(r"\s+", text) ['Some', 'File', 'Num10', 'example.txt'] IMO 3.7 behaivor is more reasonable, it fixes a bug (issue25054). -- nosy: +Ma Lin ___ Python tracker

[issue37461] email.parser.Parser hang

2019-06-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37460] importlib.import_module("test.test_curses") could not import by libregrtest

2019-06-30 Thread Yoong Hor Meng
Yoong Hor Meng added the comment: https://bugs.python.org/issue5356 mentioned that one has to pass -ucurses to regrtest.py It works. However the Makefile does not pass the information to regrtest.py when calling test_curses.py -- ___ Python

[issue37461] email.parser.Parser hang

2019-06-30 Thread Guido Vranken
New submission from Guido Vranken : The following will hang, and consume a large amount of memory: from email.parser import BytesParser, Parser from email.policy import default payload = "".join(chr(c) for c in [0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x54, 0x79, 0x70, 0x65, 0x3a,

[issue37460] importlib.import_module("test.test_curses") could not import by libregrtest

2019-06-30 Thread Yoong Hor Meng
New submission from Yoong Hor Meng : test_curses.py was skipped during unit test. I manually ran the test via debugger: python3 -m pdb /home/s/lib/python3.8/test/regrtest.py test_curses It showed error at ../lib/python3.8/test/libregrtest/runtest.py(215)_runtest_inner2(): 210

[issue37456] FAQ says positional arguments aren't a thing

2019-06-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37459] importlib docs improperly reference get_resource_loader()

2019-06-30 Thread Gregory Szorc
New submission from Gregory Szorc : The documentation in importlib.rst says that a loader should implement `get_resource_loader(fullname)`. This is the only occurrence of `get_resource_loader` in the CPython source tree. It should be changed to `get_resource_reader()`. --

[issue37458] ast: Different FormattedValue expressions have same col_offset information

2019-06-30 Thread Weijar Z
New submission from Weijar Z : This express f"{x}{x}{y}" will produce ast tree: { "$node": "Module", "body": [ { "$node": "Expr", "value": { "$node": "JoinedStr", "values": [ {

[issue37457] python3.7 re.split() module bug

2019-06-30 Thread Dami Jeong
New submission from Dami Jeong : text = "Some File Num10 example.txt" re.split("\s*", text) The result of the regular expression in version 3.7 changed from the version 3.6 result python3.6 version result : ['Some', 'File', 'Num10', 'example.txt'] python3.7 version result : ['', 'S', 'o',

[issue32631] IDLE: revise zzdummy.py

2019-06-30 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +14308 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14491 ___ Python tracker

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-06-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: Issue 30154 that I've marked as a duplicate demonstrates this problem without using shell=True. The solution I proposed handles that via the additional small timeout on the cleanup side, but still has the caveat that the grandchild processes keep running

[issue37456] FAQ says positional arguments aren't a thing

2019-06-30 Thread SoniEx2
New submission from SoniEx2 : https://docs.python.org/3.8/faq/programming.html#what-does-the-slash-in-the-parameter-list-of-a-function-mean "Note that as of this writing this is only documentational and no valid syntax in Python, although there is PEP 570, which proposes a syntax for

[issue30154] subprocess.run with stderr connected to a pipe won't timeout when killing a never-ending shell commanad

2019-06-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> subprocess.run timeout does not function if shell=True and capture_output=True ___ Python tracker

[issue37455] asyncio.run() error related to finalizing async generators

2019-06-30 Thread Sam Frances
Sam Frances added the comment: One final note: changing the `main()` function from the example to add a zero-sleep seems to fix it, but this seems like a rather ad-hoc solution. ``` async def main(): async for i in double(count()): if i > 10: break print(i)

[issue26534] subprocess.check_output with shell=True ignores the timeout

2019-06-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> subprocess.run timeout does not function if shell=True and capture_output=True ___ Python tracker

[issue5115] Extend subprocess.kill to be able to kill process groups

2019-06-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: this is part of a chain of other related issues. the interesting thing in the patch in here is the potential feature to have send_signal/terminate/kill be able to optionally kill a process group. the logic as is in the patch in this issue is dangerous as

[issue5115] Extend subprocess.kill to be able to kill process groups

2019-06-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> duplicate superseder: -> subprocess.run timeout does not function if shell=True and capture_output=True ___ Python tracker ___

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-06-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +14307 pull_request: https://github.com/python/cpython/pull/14490 ___ Python tracker ___

[issue37455] asyncio.run() error related to finalizing async generators

2019-06-30 Thread Sam Frances
Sam Frances added the comment: Apologies for the stray unused function in the example. It should have read: ``` import asyncio async def count(): try: i = 0 while True: yield i i += 1 finally: print("count() cleanup") async def

[issue37455] asyncio.run() error related to finalizing async generators

2019-06-30 Thread Sam Frances
New submission from Sam Frances : The documentation for `asyncio.run()` states: "This function runs the passed coroutine, taking care of managing the asyncio event loop and finalizing asynchronous generators." However, the following example seems to indicate that async generators are not

[issue5115] Extend subprocess.kill to be able to kill process groups

2019-06-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: -7893 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37454] Clarify docs for math.log1p()

2019-06-30 Thread Raymond Hettinger
New submission from Raymond Hettinger : Currently the docs say, "The result is calculated in a way which is accurate for x near zero." That is somewhat vague. Some quick tests show that it is often more accurate than log() for the whole range of 0.0 < x < 1.0; however, for x < 0.0 it is

[issue37450] Generalize Euclidean distance function in the math module to Minkowski distance

2019-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to decline this for now. We're being reserved about what goes into the math module, deferring many needs to third-party packages. -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue37453] Symlink creation on Windows should work without privilege escalation

2019-06-30 Thread Eryk Sun
Eryk Sun added the comment: FYI, this only works when the system is in developer mode. If you want authenticated users and non-elevated administrators to have symlink rights in applications that haven't been updated to use this flag, or without enabling developer mode, grant the right to

[issue37452] Microsoft store package has an invalid ExecutablePath registry entry

2019-06-30 Thread Eryk Sun
Eryk Sun added the comment: > The expected behavior would be to have it point to > "%LOCALAPPDATA%\Microsoft\WindowsApps\Python37.exe" (or something > else that's reasonable) since PEP514 requires it to be an actual > executable. This appears to be a duplicate of issue 36649. But I think

[issue37453] Symlink creation on Windows should work without privilege escalation

2019-06-30 Thread Jason R. Coombs
Jason R. Coombs added the comment: I see looking at the code and docs now that this work was done for Python 3.8. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue37453] Symlink creation on Windows should work without privilege escalation

2019-06-30 Thread Jason R. Coombs
Jason R. Coombs added the comment: The missing reference above should be https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/#iqm9GJhlyWhcM78e.97 -- ___ Python tracker

[issue36390] IDLE: Refactor formatting methods from editor

2019-06-30 Thread Tal Einat
Tal Einat added the comment: > 1. The name `formatregion` could probably be improved. FormatRegion is good enough, and is consistent with FormatParagraph. > 2. The `classifyws` method is a module level method in editor. It's needed > in `formatregion` also, so I made a copy (bad!). I

[issue37453] Symlink creation on Windows should work without privilege escalation

2019-06-30 Thread Jason R. Coombs
New submission from Jason R. Coombs : A few years ago, Windows [announced more lenient support for creating symbolic links](). This more lenient support requires the caller to pass a flag in the API. Neither the blog post nor the API docs give any indication of why one would not ever pass

[issue37449] Move ensurepip off of pkgutil and to importlib.resources

2019-06-30 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +14306 pull_request: https://github.com/python/cpython/pull/14488 ___ Python tracker ___

[issue37199] Test suite fails when Ipv6 is unavailable

2019-06-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue37199] Test suite fails when Ipv6 is unavailable

2019-06-30 Thread miss-islington
miss-islington added the comment: New changeset c2684c6d62978e9ce8256c3c7744d0332a2abe4c by Miss Islington (bot) in branch '3.8': bpo-37199: Fix test failures when IPv6 is unavailable or disabled (GH-14480) https://github.com/python/cpython/commit/c2684c6d62978e9ce8256c3c7744d0332a2abe4c

[issue37199] Test suite fails when Ipv6 is unavailable

2019-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +14305 pull_request: https://github.com/python/cpython/pull/14486 ___ Python tracker ___

[issue37199] Test suite fails when Ipv6 is unavailable

2019-06-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b by Andrew Svetlov (Zackery Spytz) in branch 'master': bpo-37199: Fix test failures when IPv6 is unavailable or disabled (#14480)

[issue37452] Microsoft store package has an invalid ExecutablePath registry entry

2019-06-30 Thread Fredrik Mellbin
New submission from Fredrik Mellbin : The Microsoft store release doesn't seem to populate the the "ExecutablePath" registry entry properly. Instead it has a the path to something that isn't an executable which can be seen in the attached screenshot. The expected behavior would be to have it

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-06-30 Thread Maayan Keshet
Maayan Keshet added the comment: Any updates on this issue? We're also encountering it as part of our websocket clients. -- nosy: +maayank ___ Python tracker ___

[issue36168] DOC: Fix capitalization in string.rst

2019-06-30 Thread Krishna Oza
Krishna Oza added the comment: I am getting the error "GitHub PR already added to issue" when submitting my Github PR for this issue. -- nosy: +Krishna Oza ___ Python tracker

[issue36168] DOC: Fix capitalization in string.rst

2019-06-30 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14302 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14485 ___ Python tracker

[issue36497] Undocumented behavior in csv.Sniffer (preferred delimiters)

2019-06-30 Thread Avinash Sajjanshetty
Avinash Sajjanshetty added the comment: can I take up this issue? -- nosy: +avi ___ Python tracker ___ ___ Python-bugs-list

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-30 Thread miss-islington
miss-islington added the comment: New changeset bf8cb31803558f1105efb15b0ee4bd184f3218c8 by Miss Islington (bot) in branch '3.8': bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (GH-14344)

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +14301 pull_request: https://github.com/python/cpython/pull/14484 ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0d671c04c39b52e44597491b893eb0b6c86b3d45 by Andrew Svetlov in branch 'master': bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (GH-14344)

[issue37440] httplib should enable post-handshake authentication for TLS 1.3

2019-06-30 Thread Florian Bruhin
Change by Florian Bruhin : -- nosy: +The Compiler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-30 Thread Florian Bruhin
Change by Florian Bruhin : -- nosy: +The Compiler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37451] Remove redudant test code in _testcapimodule.c

2019-06-30 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +14300 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14483 ___ Python tracker ___

[issue37451] Remove redudant test code in _testcapimodule.c

2019-06-30 Thread hai shi
New submission from hai shi : the code in https://github.com/python/cpython/blob/master/Objects/unicodeobject.c#L3163-L3165 looks redundant, due to https://github.com/python/cpython/blob/master/Objects/unicodeobject.c#L3163-L3165 -- messages: 346923 nosy: shihai1991 priority: normal

[issue36689] docs: os.path.commonpath raises ValueError for different drives

2019-06-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yes, sure -- nosy: +asvetlov resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36689] docs: os.path.commonpath raises ValueError for different drives

2019-06-30 Thread Avinash Sajjanshetty
Avinash Sajjanshetty added the comment: status of issue should be closed? cos the related PR is already merged -- nosy: +avi ___ Python tracker ___

[issue37399] XML text behaviour change if there are comments

2019-06-30 Thread Stefan Behnel
Stefan Behnel added the comment: I'm working on a patch. It's not entirely trivial, so it might take a couple of days. -- assignee: -> scoder ___ Python tracker ___

[issue37450] Generalize Euclidean distance function in the math module to Minkowski distance

2019-06-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mark.dickinson, rhettinger, stutzbach ___ Python tracker ___ ___ Python-bugs-list

[issue37450] Generalize Euclidean distance function in the math module to Minkowski distance

2019-06-30 Thread Rafael Villca Poggian
Change by Rafael Villca Poggian : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37450] Generalize Euclidean distance function in the math module to Minkowski distance

2019-06-30 Thread Rafael Villca Poggian
New submission from Rafael Villca Poggian : Given that Euclidean distance function was added into the Math module, I think it would be better to have the generalized version of the function as an implementation of the Minkowski distance with p=2 by default, thus maintaining the use as

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

2019-06-30 Thread miss-islington
miss-islington added the comment: New changeset ffcc161c753a72e7c4237c1e3c433d47b020978e by Miss Islington (bot) in branch '3.8': bpo-29505: Add more fuzzing for re.compile, re.load and csv.reader (GH-14255) https://github.com/python/cpython/commit/ffcc161c753a72e7c4237c1e3c433d47b020978e

[issue37199] Test suite fails when Ipv6 is unavailable

2019-06-30 Thread Zackery Spytz
Zackery Spytz added the comment: I've created a PR for this issue. -- components: +Tests nosy: +ZackerySpytz ___ Python tracker ___

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-06-30 Thread Avinash Sajjanshetty
Change by Avinash Sajjanshetty : -- pull_requests: +14299 pull_request: https://github.com/python/cpython/pull/14482 ___ Python tracker ___

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-06-30 Thread Prateek Nayak
Change by Prateek Nayak : -- keywords: +patch pull_requests: +14298 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14481 ___ Python tracker