[issue23926] skipitem() in getargs.c still supports 'w' and 'w#', and shouldn't

2018-07-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___ _

[issue23926] skipitem() in getargs.c still supports 'w' and 'w#', and shouldn't

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to convert your patch into a pull request Joe? -- ___ Python tracker ___ ___ Python

[issue34073] asyncio and ProcessPoolExecutor: OSError on loop.close()

2018-07-08 Thread Julien Palard
Julien Palard added the comment: Can reproduce with 3.7.0 on Linux. -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list maili

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2018-07-08 Thread Larry Hastings
Larry Hastings added the comment: I'll accept this into 3.4 and 3.5, if someone produces a PR and someone else reviews it. Given that the issue has already celebrated its fifth birthday I can't say I feel a lot of urgency about it. -- ___ Python

[issue34073] asyncio and ProcessPoolExecutor: OSError on loop.close()

2018-07-08 Thread Jon Banafato
New submission from Jon Banafato : Calling loop.close() on an eventloop configured to use a ProcessPoolExecutor can result in an OSError. Expected behavior: no exception raised. Actual behavior: an OSError is raised, and following this call, quit() fails to terminate the process gracefully.

[issue28778] wsgiref HTTP Response Header Injection: CRLF Injection

2018-07-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2018-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Should the patch be turned into a PR or should this be closed? -- nosy: +terry.reedy versions: -Python 3.2, Python 3.3 ___ Python tracker __

[issue31623] Build MSI installer for 3.4 security releases on Windows

2018-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: If we cannot test this and will not merge without testing*, then perhaps we should close it rather than pretend it still has a chance. *Which I think would be a bad idea. In any case, I made the title specific enough so that this issue and patch might possi

[issue34072] 3.7.0 Windows embeddable zip vcruntime140.dll

2018-07-08 Thread hyu
New submission from hyu : 3.7.0 Windows embeddable zip is missing vcruntime140.dll(?) Running python would display error about VCRUNTIME140.DLL. Copying vcruntime140.dll from earlier 3.6.x release is a work around. -- components: Windows messages: 321294 nosy: hyu, paul.moore, steve.dow

[issue34071] repr(task) raises AssertionError for coros which loop.create_task accepts; complications ensue

2018-07-08 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: This is what I observe when I run my original program with Python 3.7.0. Notice that the Task object instantiation fails with a clear error message: % python -c 'import sys; print(sys.version)' 3.7.0 (default, Jun 28 2018, 06:01:52) [Clang 8.0.0 (clang-800.0.4

[issue34071] repr(task) raises AssertionError for coros which loop.create_task accepts; complications ensue

2018-07-08 Thread Jim DeLaHunt
New submission from Jim DeLaHunt : In Python 3.6.5, Task.__repr__() with raise an AssertionError for certain, arguably incorrect, coroutines which the instantiation of Task() accepts. repr(task) thus fails with an AssertionError, instead of returning a string which describes the task object an

[issue24665] CJK support for textwrap

2018-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that this issue should be closed, as it is based on some confusions and errors. Textwrap works in terms of characters. The wrap method "wraps the single paragraph in text (a string) so every line is at most width characters long." When the module

[issue33346] Syntax error with async generator inside dictionary comprehension

2018-07-08 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue32782] ctypes: memoryview gives incorrect PEP3118 itemsize for array of length zero

2018-07-08 Thread Eric Wieser
Eric Wieser added the comment: Pinging, as recommended by https://devguide.python.org/pullrequest/#reviewing. Ideally this and https://bugs.python.org/issue32780 would make the same patch release. -- ___ Python tracker

[issue25711] Rewrite zipimport from scratch

2018-07-08 Thread Brett Cannon
Brett Cannon added the comment: I'm planning to review the PR at some point. On Sun, Jul 8, 2018, 00:42 Serhiy Storchaka, wrote: > > Serhiy Storchaka added the comment: > > Could anybody please make a review? This is just a first step, we need to > do it before making other steps: implement

[issue34066] Possible resource warning in "with open()"

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe it is worth to disable interrupting before more opcodes. For example for fixing a problem with the contextlib.nullcontext example (issue34067) we need to disable interrupting before STORE_FAST, LOAD_FAST and JUMP_FORWARD. --

[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.

2018-07-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith, ncoghlan, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list maili

[issue32949] Simplify "with"-related opcodes

2018-07-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Additional related PR: https://github.com/python/cpython/pull/6641 tied to issue33387 which proposes replacing the existing with and try related bytecodes with two simpler ones: RERAISE and WITH_EXCEPT_FINISH. -- nosy: +gregory.p.smith ___

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2018-07-08 Thread stein-k
stein-k added the comment: I have made the News Entry and created the Pull request as described here: https://devguide.python.org/pullrequest/. Should I update the Status and Resolution of the issue here, or wait for some kind of confirmation? --

[issue33346] Syntax error with async generator inside dictionary comprehension

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 6766 adds numerous examples of nesting async generator expressions and comprehensions as tests. -- ___ Python tracker ___ __

[issue24665] Use unicodedata.east_asian_width in textwrap

2018-07-08 Thread Julien Palard
Julien Palard added the comment: Hi Inada, you're right and that's more or less why I not used CJK in the implementation: mainly I don't want to close the door to future enhancements on this topic (char width) of non-CJK languages (like those "invisible hyphens" here only to tell textwrapers

[issue24665] Use unicodedata.east_asian_width in textwrap

2018-07-08 Thread INADA Naoki
Change by INADA Naoki : -- title: CJK support for textwrap -> Use unicodedata.east_asian_width in textwrap versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue24665] CJK support for textwrap

2018-07-08 Thread INADA Naoki
INADA Naoki added the comment: I'm not expert of this area, but Korean support is still totally broken: >>> import unicodedata >>> s = "\u1100\u1161\u11a8" >>> unicodedata.east_asian_width(s[0]) 'W' >>> unicodedata.east_asian_width(s[1]) 'N' >>> unicodedata.east_asian_width(s[2]) 'N' >>> s '각

[issue34070] Superfluous call to isatty in open() when buffering >= 0

2018-07-08 Thread David Herberth
Change by David Herberth : -- keywords: +patch pull_requests: +7742 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue34070] Superfluous call to isatty in open() when buffering >= 0

2018-07-08 Thread David Herberth
New submission from David Herberth : _iomodule.c:_io_open_impl checks for isatty even if not necessary (when buffering >= 0). Code: https://github.com/python/cpython/blob/c0ee341b29bd7d978b49272a2c0e2dcfa77404d5/Modules/_io/_iomodule.c#L392 { PyObject *res = _PyObject_CallMethodI

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-07-08 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- assignee: -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-07-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Unfortunately, the PEP authors did very little in terms of implementing the PEP and neither CPython nor numpy has a fully compliant implementation. -- nosy: +aerojockey, teoliphant ___ Python tracker

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-07-08 Thread Eric Wieser
Eric Wieser added the comment: Pinging, as recommended by https://devguide.python.org/pullrequest/#reviewing. PEP3118 as a protocol is far less useful if the canonical implementation is non-compliant. -- ___ Python tracker

[issue30400] Race condition in shutil.copyfile()

2018-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: All copy* functions and move() are subjects to race conditions (the only exception is rmtree()). You may solve the race condition in copyfile() but then you'd have the same problem in copystat() and copymode() which are used by copy() and copy2(). The def

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Marcin. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: New changeset 0b63759651b366ddb4c1c1dece12ef776053d5ee by Berker Peksag (Marcin Niemira) in branch '3.7': bpo-34061: Document sqlite3.NotSupportedError (GH-8172) https://github.com/python/cpython/commit/0b63759651b366ddb4c1c1dece12ef776053d5ee -- __

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: New changeset 404156534893461165bb5b99a42cabe261dddb78 by Berker Peksag (Marcin Niemira) in branch '3.6': bpo-34061: Document sqlite3.NotSupportedError (GH-8172) https://github.com/python/cpython/commit/404156534893461165bb5b99a42cabe261dddb78 -- __

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2018-07-08 Thread Sascha Silbe
Change by Sascha Silbe : -- nosy: +sascha_silbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue1043134] Add preferred extensions for MIME types

2018-07-08 Thread Sascha Silbe
Change by Sascha Silbe : -- nosy: +sascha_silbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Marcin Niemira
Change by Marcin Niemira : -- pull_requests: +7741 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Marcin Niemira
Change by Marcin Niemira : -- pull_requests: +7740 stage: backport needed -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue34069] shutil.move fails with AttributeError

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of bpo-32689. > It should use `os.fspath(path)` to get the path as a string. PR 5393 already does that. -- nosy: +berker.peksag resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> shutil.

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Change by Berker Peksag : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: New changeset bc9aa813a34474e517af8999565ff6151559d42f by Berker Peksag (Marcin Niemira) in branch 'master': bpo-34061: Document sqlite3.NotSupportedError (GH-8172) https://github.com/python/cpython/commit/bc9aa813a34474e517af8999565ff6151559d42f --

[issue34069] shutil.move fails with AttributeError

2018-07-08 Thread Eryk Sun
Eryk Sun added the comment: This issue isn't specific to Windows. It's a bug in shutil._basename: def _basename(path): # A basename() variant which first strips the trailing slash, if present. # Thus we always get the last component of the path, even for directories.

[issue34064] subprocess functions with shell=1 pass wrong command to win32 shell

2018-07-08 Thread Eryk Sun
Eryk Sun added the comment: This PR works around a bug in CMD, so I'm inclined to close it as a third-party issue. CMD is supposed to implement the following behavior: 1. If all of the following conditions are met, then quote characters on the command line are preserved:

[issue34069] Fail to move file in Windows (AttributeError)

2018-07-08 Thread Joshua Avalon
New submission from Joshua Avalon : from shutil import move from pathlib import Path a = Path("s") b = Path("a.txt") move(b, a) This will throw AttributeError: 'WindowsPath' object has no attribute 'rstrip' >From the document, it should able to move: If the destination is an existing direc

[issue32788] Better error handling in sqlite3

2018-07-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-08 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +7739 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue30416] constant folding opens compiler to quadratic time hashing

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Okay, this issue is fixed in 3.6. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue30416] constant folding opens compiler to quadratic time hashing

2018-07-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- priority: deferred blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-07-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.6 ___ Python tracker ___ _

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-07-08 Thread miss-islington
miss-islington added the comment: New changeset a410f9f614b62cd7df220186d081ffd73786be91 by Miss Islington (bot) in branch '3.7': bpo-31014: Fix the webbrowser module. (GH-7267) https://github.com/python/cpython/commit/a410f9f614b62cd7df220186d081ffd73786be91 -- nosy: +miss-islingto

[issue25711] Rewrite zipimport from scratch

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anybody please make a review? This is just a first step, we need to do it before making other steps: implementing more modern import API, supporting large ZIP files and ZIP files with comments, implementing loading binary extensions from ZIP files, e

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-07-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7738 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 25b804a9c21c735ce322877f105ebab2539ccfc1 by Serhiy Storchaka in branch 'master': bpo-31014: Fix the webbrowser module. (GH-7267) https://github.com/python/cpython/commit/25b804a9c21c735ce322877f105ebab2539ccfc1 -- __

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The text widget in IDLE is actually an instance of MulticallCreator(Text). For tk_scroll2.py, I added the idlelib import and the call to MulticallCreator. -- Added file: https://bugs.python.org/file47677/tk_scroll2.py ___

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2018-07-08 Thread Tal Einat
Tal Einat added the comment: Seems like a decision needs to be made: Add support for `atexec` handlers, close this issue, or something else? -- ___ Python tracker ___ ___

[issue34041] add *deterministic* parameter to sqlite3.Connection.create_function()

2018-07-08 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34068] Assertion failure in _PyType_Lookup

2018-07-08 Thread Stefan Behnel
Stefan Behnel added the comment: I added this assertion exactly for the purpose of finding this kind of bug. It means that some code tried to look up an attribute with a live exception set, which previously could swallow the exception in certain situations, and even if not, it is always the

[issue34041] add *deterministic* parameter to sqlite3.Connection.create_function()

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: New changeset 0830858aeedecc9ece60349f8c31c2690d1a99f8 by Berker Peksag (Sergey Fedoseev) in branch 'master': bpo-34041: Allow creating deterministic functions in Connection.create_function() (GH-8086) https://github.com/python/cpython/commit/0830858aeedecc9e