[issue40878] Use c99 on the aixtools bot

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : There appears to be an xlc buildbot with libmpdec failures. libmpdec uses C99 extern inline semantics. From the brief period that I had access to xlc I remember that xlc was quite picky about C99. Actually all of Python uses C99. So I think xlc_r needs to be

[issue40876] Clarify error message in csv module

2020-06-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 235f918f44bb89e27190db2f1823d191dbd4ad28 by Ram Rachum in branch 'master': bpo-40876: Clarify error message in the csv module (GH-20653) https://github.com/python/cpython/commit/235f918f44bb89e27190db2f1823d191dbd4ad28 -- nosy:

[issue40862] argparse.BooleanOptionalAction accept and silently discard its the const argument

2020-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM this should be addressed through documentation rather than by breaking currently deployed code that may have specified a default that already matches what the action does. -- nosy: +rhettinger ___ Python

[issue25268] Support pointing frozen modules to the corresponding source files, if available.

2020-06-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24929] _strptime.TimeRE should not enforce range in regex

2020-06-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19468] Relax the type restriction on reloaded modules

2020-06-05 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the PR, Furkan ! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39791] New `files()` api from importlib_resources.

2020-06-05 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +19878 pull_request: https://github.com/python/cpython/pull/20659 ___ Python tracker ___

[issue40877] Code coverage is blocking a merge again

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : Again code coverage prevents the merge button from going green: https://travis-ci.org/github/python/cpython/jobs/695095365 "The job exceeded the maximum time limit for jobs, and has been terminated." Why can this not run on buildbot.python.org? --

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
Stefan Krah added the comment: New changeset 087d612efebe7c64e5f079b07e0454111859830e by Stefan Krah in branch 'master': bpo-40874: Update to libmpdec-2.5.0 (GH-20652) https://github.com/python/cpython/commit/087d612efebe7c64e5f079b07e0454111859830e --

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +19874 pull_request: https://github.com/python/cpython/pull/20654 ___ Python tracker

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2020-06-05 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +eric.araujo nosy_count: 3.0 -> 4.0 pull_requests: +19876 pull_request: https://github.com/python/cpython/pull/20657 ___ Python tracker ___

[issue39791] New `files()` api from importlib_resources.

2020-06-05 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +19875 pull_request: https://github.com/python/cpython/pull/20656 ___ Python tracker ___

[issue24914] Python: Not just OO style but this is not mentioned on python.org or in FAQ

2020-06-05 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> brett.cannon versions: +Python 3.10 -Python 3.6 ___ Python tracker ___ ___

[issue24914] Python: Not just OO style but this is not mentioned on python.org or in FAQ

2020-06-05 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch nosy: +brett.cannon nosy_count: 3.0 -> 4.0 pull_requests: +19877 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20658 ___ Python tracker

[issue24792] zipimporter masks import errors

2020-06-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-05 Thread STINNER Victor
STINNER Victor added the comment: pyperformance comparaison between: * commit dc24b8a2ac32114313bae519db3ccc21fe45c982 (before "Make tuple free list per-interpreter" change) * PR 20645 (dict free lists) which cumulates all free lists changes (already commited + the PR) Extract of the

[issue40877] Code coverage is blocking a merge again

2020-06-05 Thread Stefan Krah
Stefan Krah added the comment: It finally went through after Travis-CI hanging for about an hour. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
Stefan Krah added the comment: New changeset 83bff88b4b16fb30491faa9263bbd6f3df4bab56 by Miss Islington (bot) in branch '3.9': bpo-40874: Update to libmpdec-2.5.0 (GH-20652) https://github.com/python/cpython/commit/83bff88b4b16fb30491faa9263bbd6f3df4bab56 --

[issue19468] Relax the type restriction on reloaded modules

2020-06-05 Thread miss-islington
miss-islington added the comment: New changeset fef1fae9df3b03510f9defb25bd0388135b4c591 by Furkan Önder in branch 'master': bpo-19468: delete unnecessary instance check in importlib.reload() (GH-19424) https://github.com/python/cpython/commit/fef1fae9df3b03510f9defb25bd0388135b4c591

[issue40879] Strange regex cycle

2020-06-05 Thread Matt Miller
New submission from Matt Miller : I was evaluating a few regular expressions for parsing URL. One such expression (https://daringfireball.net/2010/07/improved_regex_for_matching_urls) causes the `re.Pattern` to exhibit some strange behavior (notice the stripped characters in the `repr`):

[issue40867] Remove unused include in Module/_randommodule.c

2020-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40867] Remove unused include in Module/_randommodule.c

2020-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 45af786e111aed5f687e1f0d8b45b6a5e678a6bc by Erlend Egeberg Aasland in branch 'master': bpo-40867: Remove unused include from Module/_randommodule.c (GH-20635) https://github.com/python/cpython/commit/45af786e111aed5f687e1f0d8b45b6a5e678a6bc

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-05 Thread STINNER Victor
STINNER Victor added the comment: Fedora and OpenSUSE Linux distributions were using a downstream patch which replaced /lib/ with /lib64/ for like 15 years. Is this issue a new issue? Or did Fedora always had the issue for example? Which Linux distribution are you using? -- nosy:

[issue40876] Clarify error message in csv module

2020-06-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: PR merged. We can close this. Thanks Ram. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue24914] Python: Not just OO style but this is not mentioned on python.org or in FAQ

2020-06-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24725] test_socket testFDPassEmpty fails on OS X 10.11+ with "Cannot allocate memory"

2020-06-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24670] os.chdir breaks result of os.path.abspath(__file__) and os.path.realpath(__file__)

2020-06-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
Change by Stefan Krah : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40862] argparse.BooleanOptionalAction accept and silently discard its the const argument

2020-06-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: argparse.BooleanOptionalAction was introduced in Python3.9 so there is no code there should be no code that already rely on it. -- ___ Python tracker

[issue40862] argparse.BooleanOptionalAction accept and silently discard its the const argument

2020-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Right. Go ahead :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39791] New `files()` api from importlib_resources.

2020-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +19880 pull_request: https://github.com/python/cpython/pull/20662 ___ Python tracker ___

[issue39791] New `files()` api from importlib_resources.

2020-06-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 161541ab45278df6603dd870113b10f13e4d9e16 by Jason R. Coombs in branch 'master': bpo-39791: Refresh importlib.metadata from importlib_metadata 1.6.1. (GH-20659) https://github.com/python/cpython/commit/161541ab45278df6603dd870113b10f13e4d9e16

[issue39791] New `files()` api from importlib_resources.

2020-06-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +19879 pull_request: https://github.com/python/cpython/pull/20661 ___ Python tracker

[issue40876] Clarify error message in csv module

2020-06-05 Thread Ram Rachum
Change by Ram Rachum : -- keywords: +patch pull_requests: +19873 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20653 ___ Python tracker ___

[issue25150] 3.5: Include/pyatomic.h is incompatible with OpenMP (compilation of the third-party module fails on Python 3.5)

2020-06-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2020-06-05 Thread Brett Cannon
Brett Cannon added the comment: imp has been moved to DeprecationWarning and I think its usage in the stdlib has been dealt with at this point. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue25150] 3.5: Include/pyatomic.h is incompatible with OpenMP (compilation of the third-party module fails on Python 3.5)

2020-06-05 Thread STINNER Victor
STINNER Victor added the comment: Python.h does not include pyatomic.h in Python 3.8: the header file moved to the internal C API. The initial issue is fixed, so I close again the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue39791] New `files()` api from importlib_resources.

2020-06-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset a4fa9a95153a3800dea60b3029b2dcaf8a4f6acb by Miss Islington (bot) in branch '3.9': bpo-39791: Refresh importlib.metadata from importlib_metadata 1.6.1. (GH-20659) (GH-20661)

[issue40886] Add PYTHONLOGGING environment variable and -L cmdline argument

2020-06-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40879] Strange regex cycle

2020-06-05 Thread Tim Peters
Tim Peters added the comment: The repr truncates the pattern string, for display, if it's "too long". The only visual clue about that, though, is that the display is missing the pattern string's closing quote, as in the output you showed here. If you look at url_pat.pattern, though, you'll

[issue40847] New parser considers empty line following a backslash to be a syntax error, old parser didn't

2020-06-05 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: This is limited to cases where the line continuation character is on an otherwise empty line. For example this works correctly: $ cat t.py print("hello world") print("hello world 2") \ print("hello world 3") $ ./python.exe t.py hello world hello world 2

[issue40880] Invalid read in pegen.c

2020-06-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +19883 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20666 ___ Python tracker

[issue40847] New parser considers empty line following a backslash to be a syntax error, old parser didn't

2020-06-05 Thread Guido van Rossum
Guido van Rossum added the comment: Sure looks like a tokenizer issue to me. For example this is broken in both versions: pass \ pass It complains about an unexpected indent, but it should really be considered a blank line broken in two -- a backslash is supposed to just erase itself

[issue40869] errno missing descriptions

2020-06-05 Thread YoSTEALTH
Change by YoSTEALTH : -- keywords: +patch pull_requests: +19882 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20665 ___ Python tracker ___

[issue40883] parse_string.c: free "str"

2020-06-05 Thread miss-islington
miss-islington added the comment: New changeset 79e6c15aed9b4b50efd39ddaf1dc40c374b51213 by Miss Islington (bot) in branch '3.9': bpo-40883: Fix memory leak in fstring_compile_expr in parse_string.c (GH-20667) https://github.com/python/cpython/commit/79e6c15aed9b4b50efd39ddaf1dc40c374b51213

[issue40880] Invalid read in pegen.c

2020-06-05 Thread miss-islington
miss-islington added the comment: New changeset 15fec5627ac343afd0bfa1e847746071982d5172 by Miss Islington (bot) in branch '3.9': bpo-40880: Fix invalid read in newline_in_string in pegen.c (GH-20666) https://github.com/python/cpython/commit/15fec5627ac343afd0bfa1e847746071982d5172

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-05 Thread Sandro Mani
Sandro Mani added the comment: I'm on Fedora. My use case is for the mingw-python package I maintain there, see [1] for the full details. I believe (though I haven't investigated) that the previous downstream lib64 patch behaved slightly differently, or that something else between

[issue40880] Invalid read in pegen.c

2020-06-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40883] parse_string.c: free "str"

2020-06-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40880] Invalid read in pegen.c

2020-06-05 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +gvanrossum, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40881] --with-valgrind broken

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : ./configure --with-valgrind: Objects/unicodeobject.c: In function ‘unicode_release_interned’: Objects/unicodeobject.c:15672:26: error: lvalue required as left operand of assignment Py_REFCNT(s) += 1; ^

[issue40869] errno missing descriptions

2020-06-05 Thread YoSTEALTH
Change by YoSTEALTH : -- type: -> enhancement versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue40883] parse_string.c: free "str"

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : Also in test_decimal, there's a small leak here: ==10040== 24 bytes in 1 blocks are definitely lost in loss record 549 of 5,095 ==10040==at 0x4C2DE56: malloc (vg_replace_malloc.c:299) ==10040==by 0x643B33: fstring_compile_expr (parse_string.c:594)

[issue40869] errno missing descriptions

2020-06-05 Thread YoSTEALTH
Change by YoSTEALTH : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40884] Added defaults parameter for logging.Formatter

2020-06-05 Thread Bar Harel
Change by Bar Harel : -- keywords: +patch pull_requests: +19885 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20668 ___ Python tracker ___

[issue40884] Added defaults parameter for logging.Formatter

2020-06-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: New features will go in Python 3.10 indeed. -- nosy: +remi.lapeyre, vinay.sajip versions: -Python 3.9 ___ Python tracker ___

[issue40879] Strange regex cycle

2020-06-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: Wait, I'm sorry, do you mean this? py> repr(r)[13:-16]

[issue40879] Strange regex cycle

2020-06-05 Thread Tim Peters
Tim Peters added the comment: Note that the relatively tiny pattern here extracts just a small piece of the regexp in question. As the output shows, increase the length of a string it fails to match by one character, and the time taken to fail approximately doubles: exponential-time

[issue40883] parse_string.c: free "str"

2020-06-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +19884 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20667 ___ Python tracker

[issue40883] parse_string.c: free "str"

2020-06-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +19886 pull_request: https://github.com/python/cpython/pull/20669 ___ Python tracker

[issue40880] Invalid read in pegen.c

2020-06-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +19887 pull_request: https://github.com/python/cpython/pull/20670 ___ Python tracker

[issue40880] Invalid read in pegen.c

2020-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 2e6593db0086004a1ca7f7049218ff9573d473c2 by Pablo Galindo in branch 'master': bpo-40880: Fix invalid read in newline_in_string in pegen.c (#20666) https://github.com/python/cpython/commit/2e6593db0086004a1ca7f7049218ff9573d473c2

[issue40883] parse_string.c: free "str"

2020-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a54096e30523534e8eebb8dc1011b4536ed237a8 by Pablo Galindo in branch 'master': bpo-40883: Fix memory leak in fstring_compile_expr in parse_string.c (GH-20667)

[issue40879] Strange regex cycle

2020-06-05 Thread Dennis Sweeney
Dennis Sweeney added the comment: It looks like only the first 200 characters of the input string's repr are used as the compiled pattern's repr for some reason: https://github.com/python/cpython/blob/master/Modules/_sre.c#L1294 I don't know if there is a good reason, especially since

[issue40886] Add PYTHONLOGGING environment variable and -L cmdline argument

2020-06-05 Thread Bar Harel
New submission from Bar Harel : Per discussion on mailing list, I suggest adding a PYTHONLOGGING environment variable, and a matching -L cmdline argument. When set to a logging level of choice, they will initiate basicConfig with the appropriate level. For example, "py.exe -L info" will be

[issue40862] argparse.BooleanOptionalAction accept and silently discard its the const argument

2020-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d5e7348e4105d1d4a1c5bd1087f61041532ecbf3 by Miss Islington (bot) in branch '3.9': bpo-40862: Raise TypeError when const is given to argparse.BooleanOptionalAction (GH-20623) (GH-20664)

[issue40862] argparse.BooleanOptionalAction accept and silently discard its the const argument

2020-06-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40880] Invalid read in pegen.c

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : >From test_decimal: test_xor (test.test_decimal.PyIBMTestCases) ... ==17597== Invalid read of size 1 ==17597==at 0x64A7E2: newline_in_string (pegen.c:940) ==17597==by 0x64A84E: bad_single_statement (pegen.c:958) ==17597==by 0x64AD59:

[issue40862] argparse.BooleanOptionalAction accept and silently discard its the const argument

2020-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset b084d1b97e369293d2d2bc0791e2135822c923a8 by Rémi Lapeyre in branch 'master': bpo-40862: Raise TypeError when const is given to argparse.BooleanOptionalAction (GH-20623)

[issue40862] argparse.BooleanOptionalAction accept and silently discard its the const argument

2020-06-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +19881 pull_request: https://github.com/python/cpython/pull/20664 ___ Python tracker

[issue40882] memory leak in multiprocessing.shared_memory.SharedMemory in Windows

2020-06-05 Thread Eryk Sun
New submission from Eryk Sun : mmap.mmap in Windows doesn't support an exist_ok parameter and doesn't correctly handle the combination fileno=-1, length=0, and tagname with an existing file mapping. SharedMemory has to work around these limitations. Part of the workaround for the

[issue40884] Added defaults parameter for logging.Formatter

2020-06-05 Thread Bar Harel
New submission from Bar Harel : TLDR; `logging.Formatter('%(ip)s %(message)s', defaults={"ip": None})` Python's logging.Formatter allows the placement of custom fields, e.g. `logging.Formatter("%(ip)s %(message)")`. If a handler has a formatter with a custom field, all log records that go

[issue40879] Strange regex cycle

2020-06-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: > notice the stripped characters in the `repr` Er, no. Your regex looks like line noise, and it hurts my brain to look at it :-) If you have spotted a difference, can you tell us what characters are stripped? When I try running it, I don't get any

[issue40885] Cannot pipe GzipFile into subprocess

2020-06-05 Thread Nehal Patel
New submission from Nehal Patel : The following code produces incorrect behavior: with gzip.open("foo.gz") as gz: res = subprocess.run("cat", stdin=gz, capture_output=True) the contents of res.stdout are identical to the contents of "foo.gz" It seems the subprocess somehow gets a hold

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
New submission from Stefan Krah : Synopsis: There are no relevant new features for _decimal, but it would be too much work/error prone to have divergent code in libmpdec-2.5.0 and Python 3.9, especially for the Linux distributions. I'll release libmpdec-2.5.0/libmpdec++-2.5.0 in a month or

[issue40874] Update to libmpdec-2.5.0

2020-06-05 Thread Stefan Krah
Change by Stefan Krah : -- keywords: +patch pull_requests: +19872 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20652 ___ Python tracker ___

[issue35845] Can't read a F-contiguous memoryview in physical order

2020-06-05 Thread jakirkham
jakirkham added the comment: Sorry if I'm just misunderstanding the discussion here. Would it make sense to have an `order` keyword argument to `cast` as well? This seems useful when interpreting a flatten F-order `bytes` object (say on the receiving end of a transmission). --

[issue40875] Implement __repr__ for classes in csv module

2020-06-05 Thread Ram Rachum
New submission from Ram Rachum : Why see this: When you can see this: It could show columns=? if they weren't read yet. Any other info would be good too. This applies to all classes in the csv module. -- components: Library (Lib) messages: 370768 nosy: cool-RR

[issue40876] Clarify error message in csv module

2020-06-05 Thread Ram Rachum
New submission from Ram Rachum : I was working with the csv module, and I vaguely remembered that you should open files in binary mode. So I did. Then I saw this error message: _csv.Error: iterator should return strings, not bytes (did you open the file in text mode?) I read the end

[issue40724] Support buffer protocol with type specs

2020-06-05 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +19868 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20648 ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-06-05 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 3ad52e366fea37b02a3f619e6b7cffa7dfbdfa2e by Dong-hee Na in branch 'master': bpo-1635741: Port mmap module to multiphase initialization (GH-19459) https://github.com/python/cpython/commit/3ad52e366fea37b02a3f619e6b7cffa7dfbdfa2e --

[issue40077] Convert static types to PyType_FromSpec()

2020-06-05 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40870] Custom AST can crash Python (debug build)

2020-06-05 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- components: +Interpreter Core nosy: +pablogsal, serhiy.storchaka type: -> behavior versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-05 Thread STINNER Victor
STINNER Victor added the comment: > Have you done any performance analysis or tests of the cumulative effect of > all these changes? No. It would be interesting to measure that using pyperformance. -- ___ Python tracker

[issue36457] functools.singledispatchmethod interacts poorly with subclasses

2020-06-05 Thread Dries Schaumont
Dries Schaumont added the comment: I am interested in the fix, added myself to nosy list. -- nosy: +dschaumont ___ Python tracker ___

[issue40870] Custom AST can crash Python (debug build)

2020-06-05 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : import ast t = ast.fix_missing_locations(ast.Expression(ast.Name("True", ast.Load( compile(t, "", "eval") compilation of this AST can crash the interpreter for 3.8+ test_constant_as_name (test.test_ast.AST_Tests) ... python: Python/compile.c:3559:

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-05 Thread STINNER Victor
STINNER Victor added the comment: > bpo-40521: Make list free list per-interpreter (GH-20642) > https://github.com/python/cpython/commit/88ec9190105c9b03f49aaef601ce02b242a75273 This change contains an interesting fix: * _PyGC_Fini() clears gcstate->garbage list which can be stored in the

[issue40870] Custom AST can crash Python (debug build)

2020-06-05 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19869 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20649 ___ Python tracker ___

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-05 Thread STINNER Victor
STINNER Victor added the comment: bench_dict.patch: Microbenchmark on the C function PyDict_New() to measure the overhead of PR 20645. -- Added file: https://bugs.python.org/file49216/bench_dict.patch ___ Python tracker

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-05 Thread Mark Shannon
Mark Shannon added the comment: I'm worried about the performance impact of these changes, especially as many of the changes haven't been reviewed. Have you done any performance analysis or tests of the cumulative effect of all these changes? -- nosy: +Mark.Shannon

[issue36783] No documentation for _FromXandFold C API functions

2020-06-05 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 7.0 -> 8.0 pull_requests: +19870 pull_request: https://github.com/python/cpython/pull/20650 ___ Python tracker ___

[issue40870] Custom AST can crash Python (debug build)

2020-06-05 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: cross-linking pytest issue: https://github.com/pytest-dev/pytest/issues/7322 -- ___ Python tracker ___

[issue19670] SimpleCookie Generates Non-RFC6265-Compliant Cookies

2020-06-05 Thread Ido Michael
Ido Michael added the comment: I think it can be closed? -- nosy: +Ido Michael ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19670] SimpleCookie Generates Non-RFC6265-Compliant Cookies

2020-06-05 Thread Ido Michael
Change by Ido Michael : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40872] multiprocess.Lock is missing the locked() method

2020-06-05 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : multiprocessing is supposed to be a drop-in replacement for the threading module and multiprocessing.Lock() is advertised as a "a close analog of threading.Lock." but it is missing the locked() method that returns whether the current status of the lock.

[issue40871] threading.Event.wait_unset()

2020-06-05 Thread Jacob Kunnappally
New submission from Jacob Kunnappally : Just requesting a threading.Event.wait_unset(timeout=None) function. I would request the same for multiprocessing. My use case: I've made my own class that adds a little bit of IPC plumbing to the base Process class (ChildProcess). Each ChildProcess

[issue40872] multiprocess.Lock is missing the locked() method

2020-06-05 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +19871 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20651 ___ Python tracker ___

[issue38035] shared_semaphores cannot be shared across unrelated processes

2020-06-05 Thread Vinay Sharma
Vinay Sharma added the comment: As suggested I have sent a mail to Python Ideas regarding this issue. Link to Python Ideas Archive: https://mail.python.org/archives/list/python-id...@python.org/thread/X4AKFFMYEKW6GFOUMXMOJ2OBINNY2Q6L/ -- ___

[issue40873] Something wrong with html.unescape()

2020-06-05 Thread Валентин Dreyk
New submission from Валентин Dreyk : import html import xml.sax.saxutils as saxutils print(saxutils.unescape("")) # print(html.unescape("")) # ®hard html.unescape() replace "" to "®" even without ";" at the end. -- components: Library (Lib) messages: 370765 nosy: Валентин Dreyk