[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-05-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +13228 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18478] Class bodies: when does a name become local?

2019-05-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +13227 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18478] Class bodies: when does a name become local?

2019-05-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -13227 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36910] Certain Malformed email causes email.parser to throw AttributeError

2019-05-14 Thread Mark Sapiro
Mark Sapiro added the comment: I do intend to submit a PR. I haven't yet worked it out though. -- ___ Python tracker ___ ___ Python

[issue36900] Use _PyCoreConfig rather than global configuration variables

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: There are a few remaining usage of these global configuration variables, but it will be tricky to remove them: https://bugs.python.org/issue36900#msg342398 I consider that I'm done on this topic, so I close the issue. -- resolution: -> fixed stage:

[issue36900] Use _PyCoreConfig rather than global configuration variables

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset c96be811fa7da8ddcea18cc7abcae94e0f5ff966 by Victor Stinner in branch 'master': bpo-36900: Replace global conf vars with config (GH-13299) https://github.com/python/cpython/commit/c96be811fa7da8ddcea18cc7abcae94e0f5ff966 -- ___

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, I have been looking to get more acquainted with the peephole optimizer. Is it okay if I work on this? -- nosy: +remi.lapeyre ___ Python tracker ___

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please postpone the reversion for a while. I think #36916 fixes a message about the never retrieved exception. -- ___ Python tracker ___

[issue32177] spammers mine emails from bugs.python.org

2019-05-14 Thread SilentGhost
SilentGhost added the comment: Meta tracker hasn't been available for a while but the issues can be reported at https://github.com/python/bugs.python.org/issues -- nosy: +SilentGhost resolution: -> third party stage: -> resolved status: open -> closed type: security -> ___

[issue36915] regrtest: when interrupted, temporary directory is not removed

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-14 Thread Anthony Sottile
Anthony Sottile added the comment: wrong bpo, this is the right one: https://bugs.python.org/issue32892 -- ___ Python tracker ___ _

[issue36915] regrtest: when interrupted, temporary directory is not removed

2019-05-14 Thread miss-islington
miss-islington added the comment: New changeset ecd668d6d99ff03166427f02347454cfdf904a6c by Miss Islington (bot) in branch '3.7': bpo-36915: regrtest always remove tempdir of worker processes (GH-13312) https://github.com/python/cpython/commit/ecd668d6d99ff03166427f02347454cfdf904a6c --

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 13316 to revert the commit a076e4f5e42b85664693191d04cfb33e2f9acfa5 of bpo-36802: https://bugs.python.org/issue36802#msg342471 -- ___ Python tracker

[issue36802] Revert back StreamWriter awrite/aclose but provide await writer.write() and await writer.close()

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: It seems like the commit a076e4f5e42b85664693191d04cfb33e2f9acfa5 introduced a regression: bpo-36870, test_drain_raises() of test_asyncio started to fail randomly, mostly on Windows. bpo-36870 is making AppVeyor failing on pull requests and make Windows buil

[issue3620] test_smtplib is flaky

2019-05-14 Thread SilentGhost
Change by SilentGhost : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue36802] Revert back StreamWriter awrite/aclose but provide await writer.write() and await writer.close()

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13226 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: I backported the fix from Python 3.7 to Python 2.7: PR 13315. Please review it carefully, I had to make multiple changes to adapt the fix to Python 2: * non-ASCII characters are explicitly rejected * urllib doesn't reject control characters: they are quoted

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13225 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-14 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue32892] Remove specific constant AST types in favor of ast.Constant

2019-05-14 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34424] Unicode names break email header

2019-05-14 Thread R. David Murray
R. David Murray added the comment: Thank you. I don't believe this is a security issue. -- ___ Python tracker ___ ___ Python-bugs-

[issue2897] Deprecate structmember.h

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I move this issue to master (3.8) -- nosy: +matrixise, vstinner versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker _

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Another candidate: commit a076e4f5e42b85664693191d04cfb33e2f9acfa5 (refs/bisect/bad) Author: Andrew Svetlov Date: Thu May 9 15:14:58 2019 -0400 bpo-36802: Drop awrite()/aclose(), support await write() and await close() instead (#13099) Before this c

[issue36910] Certain Malformed email causes email.parser to throw AttributeError

2019-05-14 Thread R. David Murray
R. David Murray added the comment: Not a security issue, no. This isn't C where a stack overflow can give an attacker a vector for injecting arbitrary code. Per the Parser contract ("raise no exceptions, only register defects"), this should, as you say, register a defect (email.errors.Inva

[issue2053] IDLE - standardize dialogs

2019-05-14 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: +cheryl.sabella versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mai

[issue3020] doctest should have lib2to3 integration

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I move this issue to the last stable 3.7 and master. -- nosy: +matrixise versions: +Python 3.7, Python 3.8 -Python 3.2 ___ Python tracker ___

[issue1875] "if 0: return" not raising SyntaxError

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: With the last 2.7 and 3.7, I can import the x module and the 'hello' is automatically printed. Python 2.7.15 (default, Oct 15 2018, 15:26:09) [GCC 8.2.1 20180801 (Red Hat 8.2.1-2)] on linux2 Type "help", "copyright", "credits" or "license" for more informati

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-14 Thread Anthony Sottile
New submission from Anthony Sottile : More fallout from the Constant change in https://bugs.python.org/issue32892 minimal reproduction: import ast class V(ast.NodeVisitor): def visit_Str(self, node): print(node.s) def main(): V().visit(ast.parse('x = "hi"')) if __name__

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Maybe the test started to fail randomly after this change: commit 1cc0ee7d9f6a2817918fafd24c18d8bb093a85d3 Author: Andrew Svetlov Date: Tue May 7 16:53:19 2019 -0400 bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)

[issue36915] regrtest: when interrupted, temporary directory is not removed

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3c93153f7db5dd9b06f229e61978fd9199b3c097 by Victor Stinner in branch 'master': bpo-36915: regrtest always remove tempdir of worker processes (GH-13312) https://github.com/python/cpython/commit/3c93153f7db5dd9b06f229e61978fd9199b3c097 -

[issue36915] regrtest: when interrupted, temporary directory is not removed

2019-05-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +13224 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36790] test_asyncio fails with application verifier!

2019-05-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: What is "Application Verifier"? Could you provide an instruction on how to install and run it to reproduce the issue? -- ___ Python tracker

[issue36790] test_asyncio fails with application verifier!

2019-05-14 Thread sam jonas
sam jonas added the comment: Thanks for the solution... -- nosy: +samjonas ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9584] fnmatch, glob: Allow curly brace expansion

2019-05-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: @Matúš Valo, thank you for the pull request and for your interest in contributing to CPython. It seems that consensus hadn't been reached during the previous discussion on this issue, which is why msg175217 suggested creating a discussion on python-dev. Mos

[issue36916] Swallow unhandled exception report introduced by 36802

2019-05-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +13223 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36916] Swallow unhandled exception report introduced by 36802

2019-05-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +Library (Lib), asyncio nosy: +yselivanov type: -> behavior versions: +Python 3.8 ___ Python tracker ___

[issue36916] Swallow unhandled exception report introduced by 36802

2019-05-14 Thread Andrew Svetlov
New submission from Andrew Svetlov : In #36802 when old-style writer.write() is used without awaiting and an exception is raised from writer.drain() method asyncio reports about the unhandled exception. The proposed fix adds a done callback to task for swallowing the exception in such case.

[issue32995] Add a glossary entry for context variables

2019-05-14 Thread miss-islington
miss-islington added the comment: New changeset 8b3823ae16d68cf17ad037e46d7e49d26929a13b by Miss Islington (bot) in branch '3.7': bpo-32995 - Added context variable in glossary (GH-9741) https://github.com/python/cpython/commit/8b3823ae16d68cf17ad037e46d7e49d26929a13b -- nosy: +miss

[issue32995] Add a glossary entry for context variables

2019-05-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: @vinu2003, thank you for the pull request! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36915] regrtest: when interrupted, temporary directory is not removed

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13222 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36719] regrtest --findleaks should fail if an uncollectable object is found

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset d8e123a48f1666227abdb90d84c58efe7bb4f3d8 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-36719: Fix regrtest MultiprocessThread (GH-13301) (GH-13303) https://github.com/python/cpython/commit/d8e123a48f1666227abdb90d84c58efe7bb4f3d8

[issue32995] Add a glossary entry for context variables

2019-05-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +13221 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32995] Add a glossary entry for context variables

2019-05-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset c0a1a07c7e9814cad79cce3580c16284b2df7f52 by Cheryl Sabella (Vinodhini Balusamy) in branch 'master': bpo-32995 - Added context variable in glossary (GH-9741) https://github.com/python/cpython/commit/c0a1a07c7e9814cad79cce3580c16284b2df7f52

[issue36797] Cull more oudated distutils information

2019-05-14 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset dae1229729920e3aa2be015453b7f702dff9b375 by Nick Coghlan in branch 'master': bpo-36797: Prune more legacy distutils documentation (GH-13092) https://github.com/python/cpython/commit/dae1229729920e3aa2be015453b7f702dff9b375 -- __

[issue36915] regrtest: when interrupted, temporary directory is not removed

2019-05-14 Thread STINNER Victor
New submission from STINNER Victor : I modified regrtest (Python test runner) to kill worker processes using SIGKILL when the main process is interrupted by CTRL+C. Problem: nothing clears temporary directories created by these worker processes. I'm working on a fix. -- components: T

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2019-05-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Nathaniel, Was this something you were still targeting for 3.8? Thanks! -- nosy: +cheryl.sabella ___ Python tracker ___

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-05-14 Thread Nicolai Moore
Change by Nicolai Moore : -- pull_requests: +13220 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36845] ipaddres.IPv4Network and ipaddress.IPv6Network tuple construction will accept out of valid range prefixlen

2019-05-14 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue36845] ipaddres.IPv4Network and ipaddress.IPv6Network tuple construction will accept out of valid range prefixlen

2019-05-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset 30cccf084d1560d9e3382e69d828b3be8cdb0286 by Inada Naoki (Miss Islington (bot)) in branch '3.7': bpo-36845: validate integer network prefix when constructing IP networks (GH-13298) https://github.com/python/cpython/commit/30cccf084d1560d9e3382e69d8

[issue23378] argparse.add_argument action parameter should allow value extend

2019-05-14 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36845] ipaddres.IPv4Network and ipaddress.IPv6Network tuple construction will accept out of valid range prefixlen

2019-05-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +13219 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36845] ipaddres.IPv4Network and ipaddress.IPv6Network tuple construction will accept out of valid range prefixlen

2019-05-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset 5e48e3db6f5a937023e99d89cef8884d22bd8533 by Inada Naoki (Nicolai Moore) in branch 'master': bpo-36845: validate integer network prefix when constructing IP networks (GH-13298) https://github.com/python/cpython/commit/5e48e3db6f5a937023e99d89cef888

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-14 Thread Inada Naoki
Inada Naoki added the comment: yes. sys.getsizeof(3.14) is 24. And it becomes 32 byte in 16byte aligned pymalloc. (+33%) FYI, jemalloc has 8, 16, 32 size classes, but no 24 too. http://jemalloc.net/jemalloc.3.html#size_classes -- ___ Python trac

[issue36910] Certain Malformed email causes email.parser to throw AttributeError

2019-05-14 Thread SilentGhost
Change by SilentGhost : -- stage: -> needs patch versions: +Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bu

[issue36910] Certain Malformed email causes email.parser to throw AttributeError

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Mark, Do you want to submit a PR for this issue? -- nosy: +matrixise ___ Python tracker ___ _

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-14 Thread Stefan Krah
Stefan Krah added the comment: +16% for float seems pretty high though. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36656] Allow os.symlink(src, target, force=True) to prevent race conditions

2019-05-14 Thread Tom Hale
Change by Tom Hale : -- type: security -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36914] zipimport does not load ZIP files produced by GitHub

2019-05-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems to work on master branch though fails on 3.7. ➜ cpython git:(master) ✗ ./python.exe Python 3.8.0a4+ (heads/master:410b85a7f7, May 13 2019, 21:40:37) [Clang 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright", "credits" or "license" for m

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset f0be4bbb9b3cee876249c23f2ae6f38f43fa7495 by Inada Naoki in branch 'master': bpo-27987: pymalloc: align by 16bytes on 64bit platform (GH-12850) https://github.com/python/cpython/commit/f0be4bbb9b3cee876249c23f2ae6f38f43fa7495 -- _

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-14 Thread Inada Naoki
Inada Naoki added the comment: $ ./python -m perf compare_to master.json align16.json -G --min-speed=1 Slower (13): - pickle_list: 4.40 us +- 0.03 us -> 4.59 us +- 0.04 us: 1.04x slower (+4%) - xml_etree_iterparse: 129 ms +- 2 ms -> 133 ms +- 2 ms: 1.04x slower (+4%) - regex_dna: 201 ms +- 2 ms

[issue36914] zipimport does not load ZIP files produced by GitHub

2019-05-14 Thread SilentGhost
SilentGhost added the comment: This is going to be fixed in 3.8 (see #5950). -- nosy: +SilentGhost resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Make zipimport work with zipfile containing comments ___ Python t

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-14 Thread Inada Naoki
Inada Naoki added the comment: $ ./python -m perf compare_to master-mem.json align16-mem.json -G --min-speed=2 Slower (30): - float: 20.6 MB +- 12.6 kB -> 23.8 MB +- 30.3 kB: 1.16x slower (+16%) - mako: 14.3 MB +- 760.5 kB -> 15.1 MB +- 54.1 kB: 1.06x slower (+6%) - xml_etree_iterparse: 11.1 MB

[issue36904] Implement _PyStack_UnpackDict() with a single allocation

2019-05-14 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +13218 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

2019-05-14 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +13217 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36914] zipimport does not load ZIP files produced by GitHub

2019-05-14 Thread Vadim Kantorov
New submission from Vadim Kantorov : Python does not like source code zip-files produced by GitHub (zipimporting source from GitHub can be useful in some ad-hoc scripting scenarios e.g. I wanted to use it in Mozilla Iodide context) wget https://github.com/python/black/archive/master.zip pytho

[issue36913] Missing documentation for decorators

2019-05-14 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue36913] Missing documentation for decorators

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Tomer, >Thank you for the quick response. Welcome > >Are PEPs considered de-facto documentation for language features? For >example, string formatting was described in PEP 3101, but still has >sections in the documentation dedicated to it. I believe that >d

[issue36913] Missing documentation for decorators

2019-05-14 Thread Tomer Vromen
Tomer Vromen added the comment: Thank you for the quick response. Are PEPs considered de-facto documentation for language features? For example, string formatting was described in PEP 3101, but still has sections in the documentation dedicated to it. I believe that decorators should get a si

[issue36913] Missing documentation for decorators

2019-05-14 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36913] Missing documentation for decorators

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, Thank you for your feedback. In fact, there is a limitation with the current search engine of Sphinx (because we use it for the documentation). For example, if you try to find the meaning of "for", for us it's a keyword but for the search engine, it wil

[issue36913] Missing documentation for decorators

2019-05-14 Thread Tomer Vromen
New submission from Tomer Vromen : The documentation for decorators (for methods and classes) is pretty lacking. Searching for "decorator" ( https://docs.python.org/3/search.html?q=decorator ) brings up a lot of libraries that use decorators, but no documentation explaining what they are and

[issue36656] Allow os.symlink(src, target, force=True) to prevent race conditions

2019-05-14 Thread Tom Hale
Tom Hale added the comment: Thanks Toshio Kuratomi, I raised it on the mailing list at: https://code.activestate.com/lists/python-ideas/55992/ -- ___ Python tracker ___ _

<    1   2