[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cb90c89de14aab636739b3e810cf949e47b54a0c by Pablo Galindo in branch 'master': bpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442) https://github.com/python/cpython/commit/cb90c89de14aab636739b3e810cf949e47b54a0c --

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset fc96e5474a7bda1c5dec66420e4467fc9f7ca968 by Victor Stinner in branch 'master': bpo-36236: Fix _PyPathConfig_ComputeSysPath0() for empty argv (GH-12441) https://github.com/python/cpython/commit/fc96e5474a7bda1c5dec66420e4467fc9f7ca968 -

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: Pablo: is Python 3.7 affected by the issue? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yup: ~ ❯ cd /tmp /tmp ❯ mkdir check /tmp ❯ cd check /tmp/check ❯ rm -rf ../check /tmp/check ❯ python3.7 -m pdb Fatal Python error: pymain_compute_path0: memory allocation failed ValueError: character U+e0895f00 is not in range [U+; U+10] Cur

[issue36366] Patcher stop method should be idempotent

2019-03-19 Thread Michael Foord
Michael Foord added the comment: It's almost certainly an oversight rather than a design decision. I'd be happy with the change you suggest Karthikeyan. -- ___ Python tracker ___

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-19 Thread Brett Cannon
Brett Cannon added the comment: I agree that if it's a good example of using wsgiref then it should exist in the wsgiref docs as an example. Then that would mean dropping the script and updating the Makefile. -- nosy: +brett.cannon ___ Python trac

[issue36326] Build-out help() to read __slots__ with an optional data dictionary

2019-03-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: The direct assignments to __doc__ are reasonable for named tuples because there usually isn't any code between the factory function call and the __doc__ assignments. For other classes, the technique is awkward because it widely separates the initial fiel

[issue36342] test_venv fails on Android with clang

2019-03-19 Thread Brett Cannon
Brett Cannon added the comment: So this is a test_multiprocessing issue? If it is then the title is misleading. -- nosy: +brett.cannon ___ Python tracker ___ _

[issue36343] Certificate added to Win Store not available

2019-03-19 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36370] "Fatal Python error: Cannot recover from stack overflow" from SymPy tests

2019-03-19 Thread Aaron Meurer
New submission from Aaron Meurer : I am getting a Fatal Python error: Cannot recover from stack overflow. running the SymPy tests on a branch of mine where the tests fail. I have reproduced this in Python 3.6.7, as well as CPython master (fc96e5474a7bda1c5dec66420e4467fc9f7ca968). Here are t

[issue36347] Renaming the constants for the .flags of PyMemberDef

2019-03-19 Thread Josh Rosenberg
Josh Rosenberg added the comment: Pretty sure you can't actually get rid of READONLY; it's part of the public API. Adding PY_READONLY to match PY_READWRITE is fine, but unlike WRITE_RESTRICTED/PY_WRITE_RESTRICTED (which isn't used at all in Py3, has been non-functional since 2.3, and caused

[issue36371] FancyGetopt.generate_help crashes with TypeError

2019-03-19 Thread Maxim
New submission from Maxim : Hi! FancyGetopt.generate_help crashes if help text in option_table is None: instance = FancyGetopt([('long', 'l', None)]) help_text = instance.generate_help() TypeError Traceback (most recent call last) in > 1 a.generate_help()

[issue36371] FancyGetopt.generate_help crashes with TypeError

2019-03-19 Thread Maxim
Change by Maxim : -- keywords: +patch pull_requests: +12400 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue35866] concurrent.futures deadlock

2019-03-19 Thread Jakub Wilk
Jakub Wilk added the comment: There are two processes running (parent and child) when the thing hangs. I'm attaching GDB backtraces for both. -- Added file: https://bugs.python.org/file48223/gdb-bt-parent.txt ___ Python tracker

[issue35866] concurrent.futures deadlock

2019-03-19 Thread Jakub Wilk
Change by Jakub Wilk : Added file: https://bugs.python.org/file48224/gdb-bt-child.txt ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue36372] Flawed handling of URL redirect

2019-03-19 Thread Brrr Grrr
New submission from Brrr Grrr : I'm unable to use `urlopen` to open 'https://www.annemergmed.com/article/S0196-0644(99)70271-4/abstract' with Python 3.7. I believe this to be flawed URL redirection, possibly due to flawed URL parsing. ```python from sys import version version '3.7.2 (default

[issue10514] configure does not create accurate Makefile on AIX

2019-03-19 Thread Michael Felt
Michael Felt added the comment: >From memory I do not believe this is still a problem, at least on Python3. There was recently a different issue (do not recall the #) where there was an issue with CXX regardless of compiler. In any case, the apporach I would recommend would be to export the

[issue36372] Flawed handling of URL redirect

2019-03-19 Thread Brrr Grrr
Brrr Grrr added the comment: Please note that the `requests` package, for example, has no trouble reading this URL. I don't want to use that package for this task for certain other reasons though. ```python >>> import requests >>> requests.__version__ '2.21.0' >>> requests.get('https://www.a

[issue36372] Flawed handling of URL redirect

2019-03-19 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) -IO nosy: +orsenthil type: crash -> behavior ___ Python tracker ___ ___ Python

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-03-19 Thread dtrauma
New submission from dtrauma : https://docs.python.org/3.7/library/asyncio-task.html#running-tasks-concurrently For asyncio.gather, the docs should probably say The loop argument is deprecated and scheduled for removal in Python 3.10. as they do for all the other loop arguments of other functi

[issue36371] FancyGetopt.generate_help crashes with TypeError

2019-03-19 Thread SilentGhost
SilentGhost added the comment: I'm not sure why you're using distutils, but two extra spaces at the end of string is not likely to be fixed. The module is frozen and only present in the tree for historical reasons. -- components: +Distutils nosy: +SilentGhost, dstufft, eric.araujo re

[issue36372] Flawed handling of URL redirect

2019-03-19 Thread Brrr Grrr
Brrr Grrr added the comment: This error is not due to cookies either. I tried `HTTPCookieProcessor` with no luck. Cookies help with opening certain other URLs but evidently not with this one. -- ___ Python tracker

[issue36372] Flawed handling of URL redirect

2019-03-19 Thread Brrr Grrr
Brrr Grrr added the comment: That's not to say that cookies are not needed for this URL. They may very well be needed using HTTPCookieProcessor. I'm saying that cookies alone won't solve this issue. -- ___ Python tracker

[issue36324] Inverse cumulative normal distribution function

2019-03-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +12402 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue36324] Inverse cumulative normal distribution function

2019-03-19 Thread miss-islington
miss-islington added the comment: New changeset fe13883f01da855967403acab77e0f16707a56cb by Miss Islington (bot) (Raymond Hettinger) in branch 'master': bpo-36324: Improved code formatting for the NormalDist.inv_cdf rational approximation (GH-12448) https://github.com/python/cpython/commit/f

[issue36374] A possible null pointer dereference in compile.c's merge_consts_recursive()

2019-03-19 Thread Zackery Spytz
New submission from Zackery Spytz : If PyDict_SetDefault() fails in merge_consts_recursive(), Py_INCREF() will be called on a null pointer. -- components: Interpreter Core messages: 338411 nosy: ZackerySpytz priority: normal severity: normal status: open title: A possible null pointer

[issue36374] A possible null pointer dereference in compile.c's merge_consts_recursive()

2019-03-19 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +12403 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue28937] str.split(): remove empty strings when sep is not None

2019-03-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: @ebarry, any interest in converting your patch to a GitHub pull request? Thanks! -- nosy: +cheryl.sabella versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue32147] improve performance of binascii.unhexlify() by using conversion table

2019-03-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since this PR was merged, can the issue be closed? -- nosy: +cheryl.sabella ___ Python tracker ___ __

[issue18016] subprocess should open stdin in mode w+b on windows

2019-03-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since Steve was inclined to close this in 2014 and there haven't been any additional comments since then, I am going to close this now. -- nosy: +cheryl.sabella resolution: -> works for me stage: -> resolved status: open -> closed _

[issue35388] _PyRuntime_Initialize() called after Py_Finalize() does nothing

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset fd23cfa464ab93273370475900819c1ea37c852f by Victor Stinner in branch 'master': bpo-35388: Fix _PyRuntime_Finalize() (GH-12443) https://github.com/python/cpython/commit/fd23cfa464ab93273370475900819c1ea37c852f -- __

[issue35388] _PyRuntime_Initialize() called after Py_Finalize() does nothing

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

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12404 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36365] Objects/structseq.c: warning: 'strncpy' specified bound depends on the length of the source argument

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

[issue36365] Objects/structseq.c: warning: 'strncpy' specified bound depends on the length of the source argument

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset c70ab02df2894c34da2223fc3798c0404b41fd79 by Victor Stinner in branch 'master': bpo-36365: Rewrite structseq_repr() using _PyUnicodeWriter (GH-12440) https://github.com/python/cpython/commit/c70ab02df2894c34da2223fc3798c0404b41fd79 --

[issue36365] Objects/structseq.c: warning: 'strncpy' specified bound depends on the length of the source argument

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12405 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset f7959a9fe7e7e316899c60251e29390c4ed0307a by Victor Stinner in branch '3.7': bpo-36236: Handle removed cwd at Python init (GH-12450) https://github.com/python/cpython/commit/f7959a9fe7e7e316899c60251e29390c4ed0307a -- _

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: Pablo: Oh ok, thanks for testing. I fixed 3.7 as well. Would you mind to validate my fix? -- ___ Python tracker ___

[issue36365] Objects/structseq.c: warning: 'strncpy' specified bound depends on the length of the source argument

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea3592d7ef6308bf9f6c7d86556f9b36f5ca0060 by Victor Stinner in branch '3.7': bpo-36365: Fix compiler warning in structseq.c (GH-12451) https://github.com/python/cpython/commit/ea3592d7ef6308bf9f6c7d86556f9b36f5ca0060 -- ___

[issue36362] Detected unused variables in import.c and HAVE_DYNAMIC_LOADING=False with --with-address-sanitizer

2019-03-19 Thread miss-islington
miss-islington added the comment: New changeset 0d765e3849f1010276bb349b557b79ed94befa0b by Miss Islington (bot) (Stéphane Wirtel) in branch 'master': bpo-36362: Avoid unused variables when HAVE_DYNAMIC_LOADING is not defined (GH-12430) https://github.com/python/cpython/commit/0d765e3849f1010

[issue36362] Detected unused variables in import.c and HAVE_DYNAMIC_LOADING=False with --with-address-sanitizer

2019-03-19 Thread Brett Cannon
Brett Cannon added the comment: Thanks! -- nosy: +brett.cannon resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28937] str.split(): remove empty strings when sep is not None

2019-03-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @veky - Thank you for pointing out splitlines(keepends=True). If we wanted consistency, then we'd change the sense and use something like .split(keepempty=True), however: * I don't like run-on names, so I would suggest keep_empty * Maybe just `keep` is eno

[issue36372] Flawed handling of URL redirect

2019-03-19 Thread Brrr Grrr
Brrr Grrr added the comment: I now used a custom HTTPRedirectHandler with `max_redirections = 20`. The default is 10. This workaround addresses the issue, although it doesn't rule out a cleaner fix. -- ___ Python tracker

[issue36333] memory leaks detected with valgrind for python -V

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: "./python -V" no longer leaks, so I close the issue. See bpo-36356 for the follow-up. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12406 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12407 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36375] PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules

2019-03-19 Thread Cameron Simpson
New submission from Cameron Simpson : This issue is to track the implementation of PEP 499 which we hope to get into the upcoming 3.8 release. I've made it because cpython PRs want a bpo number in the subject line. I'll link in the proposed PR once I've filed off a few grammar issues I've jus

[issue26103] Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

2019-03-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: It looks like this issue can be closed now that it's merged? -- nosy: +cheryl.sabella ___ Python tracker ___

[issue36375] PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules

2019-03-19 Thread Cameron Simpson
Change by Cameron Simpson : -- keywords: +patch pull_requests: +12408 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue36143] Auto-generate Lib/keyword.py

2019-03-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12409 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue26517] Crash in installer

2019-03-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: Closing this as 'works for me' as no additional information had been provided by the OP to help reproduce the issue. -- nosy: +cheryl.sabella resolution: -> works for me stage: -> resolved status: open -> closed

[issue33635] OSError when using pathlib.Path.rglob() to list device files

2019-03-19 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue36301] Add _Py_PreInitialize() function

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12410 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36301] Add _Py_PreInitialize() function

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset f29084d611a6ca504c99a0967371374febf0ccc3 by Victor Stinner in branch 'master': bpo-36301: Add _PyRuntime.pre_initialized (GH-12457) https://github.com/python/cpython/commit/f29084d611a6ca504c99a0967371374febf0ccc3 -- _

[issue28937] str.split(): remove empty strings when sep is not None

2019-03-19 Thread Emanuel Barry
Emanuel Barry added the comment: Unfortunately not. I no longer have the time or means to work on this, sorry. I hope someone else can pick it up. -- ___ Python tracker ___ _

[issue28937] str.split(): remove empty strings when sep is not None

2019-03-19 Thread Emanuel Barry
Change by Emanuel Barry : -- nosy: -ebarry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36301] Add _Py_PreInitialize() function

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12411 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29301] decimal: Use FASTCALL and/or Argument Clinic

2019-03-19 Thread Ma Lin
Ma Lin added the comment: > AC will not happen: It makes the module too large and unreadable. AC has great performance improvements these days: issue35582 and issue36127 It's quite worthy of reconsidering this decision. -- nosy: +Ma Lin ___ Python

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4a1468e593c4b67d8c78b78070fff9e18ec5d790 by Victor Stinner in branch 'master': bpo-36356: Fix _PyCoreConfig_Read() (GH-12454) https://github.com/python/cpython/commit/4a1468e593c4b67d8c78b78070fff9e18ec5d790 -- ___

[issue36376] Wrong position of SyntaxError in IDLE

2019-03-19 Thread Vedran Čačić
New submission from Vedran Čačić : Open IDLE, New File, put this inside: 'abcde\ ') x = 123456789 And try to Run Module. Of course, the syntax error is extra ) at the end of the second line. But it is not highlighted. What's highlighted is 123 in the third line. Some additional ob

[issue36376] Wrong position of SyntaxError in IDLE

2019-03-19 Thread Vedran Čačić
Change by Vedran Čačić : -- assignee: -> terry.reedy components: +IDLE nosy: +terry.reedy versions: +Python 3.7 ___ Python tracker ___ _

[issue36376] Wrong position of SyntaxError in IDLE

2019-03-19 Thread Vedran Čačić
Change by Vedran Čačić : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36377] Python 'datastructures.html' docs page needs improvement because of ambiguity

2019-03-19 Thread parkito
New submission from parkito : Hi, I have lots of interests in python data structures and their inheritance relationships so I often look around in python collections and collections.abc module. ``` https://docs.python.org/3/tutorial/datastructures.html#comparing-sequences-and-other-types ```

[issue36377] Python 'datastructures.html' docs page needs improvement because of ambiguity

2019-03-19 Thread parkito
parkito added the comment: Hi, I have lots of interests in python data structures and their inheritance relationships so I often look around in python collections and collections.abc module. ``` https://docs.python.org/3/tutorial/datastructures.html#comparing-sequences-and-other-types ``` P

[issue36370] "Fatal Python error: Cannot recover from stack overflow" from SymPy tests

2019-03-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: >From the stack trace it looks like some kind of recursion occurs on the tests >causing the crash. Sympy is not a part of stdlib. Can you please add a pure >Python reproducer or this is something that needs to be fixed by reporting to >sympy repo.

[issue36366] Patcher stop method should be idempotent

2019-03-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the confirmation. I will raise a PR for this. -- ___ Python tracker ___ ___

[issue36377] Python 'datastructures.html' docs page needs improvement because of ambiguity

2019-03-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-03-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker ___ ___ Python-bugs-list

[issue22166] test_codecs leaks references

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: Codec tests don't leak anymore. I lost track of this very old issue. I don't think that anything should be done. Python code base changed a lot since 2014. I close the issue. -- resolution: -> fixed stage: needs patch -> resolved status: open -> clo

[issue23984] Documentation error: Descriptors

2019-03-19 Thread miss-islington
miss-islington added the comment: New changeset abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c by Miss Islington (bot) (Shubham Aggarwal) in branch 'master': bpo-23984: Improve descriptor documentation (GH-1034) https://github.com/python/cpython/commit/abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c ---

[issue23984] Documentation error: Descriptors

2019-03-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +12412 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36376] Wrong position of SyntaxError in IDLE

2019-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE should display the same error message and mark the error at the same spot that Python tells it too, which is to say, what is display and where it is marked when running Python in a console/terminal. The only difference is that IDLE uses red background

[issue36301] Add _Py_PreInitialize() function

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset fa1537684869186da7938e4330361bf02363bac8 by Victor Stinner in branch 'master': bpo-36301: Add _PyPreCmdline internal API (GH-12458) https://github.com/python/cpython/commit/fa1537684869186da7938e4330361bf02363bac8 -- _

[issue32147] improve performance of binascii.unhexlify() by using conversion table

2019-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36276] Python urllib CRLF injection vulnerability

2019-03-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am going to make a note that the Superseder 1) https://bugs.python.org/issue30458 - is listed only as pending request for 2.7 with the intention to raise an Exception. However, this bug demonstrates a vulnerability in all versions of Python (including 3.

<    1   2