[issue41533] Bugfix: va_build_stack leaks the stack if do_mkstack fails

2020-08-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 75c80b0bda89debf312f075716b8c467d411f90e by Tony Solomonik in branch 'master': closes bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847) https://github.com/python/cpython/commit/75c80b0bda89debf312f075716b8c467d411f90e

[issue41533] Bugfix: va_build_stack leaks the stack if do_mkstack fails

2020-08-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +21114 pull_request: https://github.com/python/cpython/pull/22014 ___ Python tracker

[issue41533] Bugfix: va_build_stack leaks the stack if do_mkstack fails

2020-08-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +21115 pull_request: https://github.com/python/cpython/pull/22015 ___ Python tracker ___

[issue41653] About the use of cpython console mode problem

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am replacing the text snippet screenshot with a link to the online doc: https://docs.python.org/3/c-api/init.html#c.Py_Initialize The only encoding python 'forces' in recent Python is utf-8 in utf-8 mode and on some systems. See

[issue41615] sys.argv may be None or an empty list

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New link works and I read it, including the reference to #839151. -- ___ Python tracker ___ ___

[issue41513] High accuracy math.hypot()

2020-08-29 Thread Raymond Hettinger
Change by Raymond Hettinger : Added file: https://bugs.python.org/file49435/best_frac.py ___ Python tracker ___ ___ Python-bugs-list

[issue41513] High accuracy math.hypot()

2020-08-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +21113 pull_request: https://github.com/python/cpython/pull/22013 ___ Python tracker ___

[issue41615] sys.argv may be None or an empty list

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just noticed that Py_Initialize "does not set sys.argv; use PySys_SetArgvEx() for that." https://docs.python.org/3/c-api/init.html#c.Py_Initialize https://docs.python.org/3/c-api/init.html#c.PySys_SetArgvEx void PySys_SetArgvEx(int argc, wchar_t **argv, int

[issue37095] [Feature Request]: Add zstd support in tarfile

2020-08-29 Thread Ma Lin
Ma Lin added the comment: I have spent two weeks, almost complete the code, a preview: https://github.com/animalize/cpython/pull/8/files Write directly for stdlib, since there are already zstd modules on pypi. In addition, the API of zstd is simple, not as complicated as lzma. Can also use

[issue41637] Calling with an infinite number of parameters is not detected

2020-08-29 Thread Camion
Camion added the comment: Well, I know an infinite loop  is not necessarily wrong, especially in a generator. and I also know how to avoid this problem. My problem is not there. It's just that I believe it should possibly crash the program and not the interpreter. I even wonder if being able

[issue41513] High accuracy math.hypot()

2020-08-29 Thread Tim Peters
Tim Peters added the comment: About test_frac.py, I changed the main loop like so: got = [float(expected)] # NEW for hypot in hypots: actual = hypot(*coords) got.append(float(actual)) # NEW err = (actual - expected) /

[issue41637] Calling with an infinite number of parameters is not detected

2020-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It does not differ much from list(inf()). Sooner or later it will raise MemoryError. You can interrupt the execution by pressing Ctrl-C. Although the response may be slow if your computer started swapping. There is nothing special about unpacking infinite

[issue41246] IOCP Proactor same socket overlapped callbacks

2020-08-29 Thread Jim Jewett
Change by Jim Jewett : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41638] Error message: sqlite3.ProgrammingError: You did not supply a value for binding # might be improved

2020-08-29 Thread Evens Fortuné
Evens Fortuné added the comment: Yes we could say that the documentation can be lacking but that doesn't means it's a bug in the code. If you feel that the documentation need to be improved then you should submit a patch to the documentation and not how the code should be changed. If you

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2020-08-29 Thread Andy Maier
New submission from Andy Maier : I found that os.path.relpath() on Windows raises ValueError when the path and the start path are on different drives. This is to be expected, as there is no single root on Windows. On Python 3.7, the behavior is: >>> os.path.relpath('c:/abc', 'a:/')

[issue19521] Parallel build race condition on AIX since python-2.7

2020-08-29 Thread Stefan Krah
Stefan Krah added the comment: Okay, thanks. The -G option is of course attractive for Linux projects because it requires minimal changes in the build machinery. I've added support for libmpdec/libmpdec++ (next release) for AIX-style shared libraries (shr.o inside libmpdec.a). The AIX

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2020-08-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware type: -> behavior ___ Python tracker ___

[issue41662] Bugs in binding parameters in sqlite3

2020-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +21104 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21998 ___ Python tracker

[issue19521] Parallel build race condition on AIX since python-2.7

2020-08-29 Thread Stefan Krah
Stefan Krah added the comment: I can't find the reason for: if test -z "$EXPORTSYMS"; then EXPORTSYMS="Modules/python.exp" fi Modules/python.exp is hardcoded elsewhere, and I'd rather set EXPORTSYMS unconditionally on AIX and unset it unconditionally for all

[issue41638] Error message: sqlite3.ProgrammingError: You did not supply a value for binding # might be improved

2020-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that the error message should contain the name of the absent parameter instead of its index when parameters are supplied as a dict. It is more informative and would consistent with other error message. As for including the number of a record in

[issue41638] Error message: sqlite3.ProgrammingError: You did not supply a value for binding # might be improved

2020-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +21105 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21999 ___ Python tracker

[issue19521] Parallel build race condition on AIX since python-2.7

2020-08-29 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +21103 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21997 ___ Python tracker ___

[issue41662] Bugs in binding parameters in sqlite3

2020-08-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are few bugs in the code for binding parameters specified in the sqlite3 module: 1. If argument "parameters" is a list, PyList_GET_ITEM() is called in a loop, but the size of the list is read only once before loop. Since the list can be changed

[issue41658] http.client not allowing non-ascii in headers

2020-08-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add a short script explaining the problem? There were some recent security issues fixed in http.client disallowing non-ascii headers issue39603 -- nosy: +xtreak ___ Python tracker

[issue41640] module zipfile issue on closing

2020-08-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks, I am closing this in favor of issue40564. Jason has provided some possible approaches in issue40564 (msg375964) and would be helpful to follow the discussion there since it has more details. -- nosy: +jaraco resolution: ->

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

2020-08-29 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +21109 pull_request: https://github.com/python/cpython/pull/22003 ___ Python tracker ___

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2020-08-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger nosy_count: 6.0 -> 7.0 pull_requests: +2 pull_request: https://github.com/python/cpython/pull/21994 ___ Python tracker

[issue41663] Support Windows pseudoterminals in pty and termios modules

2020-08-29 Thread Chad Smith
New submission from Chad Smith : The pty and termios modules do not support Windows. Current Python pty documentation suggest Windows might be supported: > The Linux code is supposed to work on other platforms, but hasn’t been tested > yet. but I have confirmed that it is not while adding

[issue41610] Any Raspberry Pi Zero Projects to try?

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mika and supriya: this is not a 'forum'. It is a workspace for discussing possible and actual improvements to out githup python/cpython and python/devguide repositories via github pull requests. (Other python repositories have their own discussion

[issue32642] add support for path-like objects in sys.path

2020-08-29 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 6.0 -> 7.0 pull_requests: +21106 pull_request: https://github.com/python/cpython/pull/22000 ___ Python tracker ___

[issue41654] Segfault when raising MemoryError

2020-08-29 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41513] High accuracy math.hypot()

2020-08-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 27de28607a248e5ffb8838162fca466a58c2e284 by Raymond Hettinger in branch 'master': bpo-41513: Save unnecessary steps in the hypot() calculation (#21994) https://github.com/python/cpython/commit/27de28607a248e5ffb8838162fca466a58c2e284

[issue33802] Regression in logging configuration

2020-08-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger nosy_count: 6.0 -> 7.0 pull_requests: +21112 pull_request: https://github.com/python/cpython/pull/21994 ___ Python tracker

[issue19521] Parallel build race condition on AIX since python-2.7

2020-08-29 Thread Stefan Krah
Stefan Krah added the comment: New changeset 88b86a9752afc2c50ca196f6ba1a8d62d71cf398 by Miss Islington (bot) in branch '3.9': bpo-19521: Fix parallel build race condition on AIX (GH-22001) https://github.com/python/cpython/commit/88b86a9752afc2c50ca196f6ba1a8d62d71cf398 --

[issue6721] Locks in the standard library should be sanitized on fork

2020-08-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger nosy_count: 26.0 -> 27.0 pull_requests: +21110 pull_request: https://github.com/python/cpython/pull/21994 ___ Python tracker

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-08-29 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I had a look at this. I have been testing with the input a{x}, which faces the same problem. It's actually because of an invalid_* rule. The call stack looks like this: ... invalid_comprehension_rule(Parser * p)

[issue41658] http.client not allowing non-ascii in headers

2020-08-29 Thread Aliona Matveeva
Aliona Matveeva added the comment: hi Karthikeyan Singaravelan! I'm working with a russian database called 1C. it's pretty popular here in Russia, and its 'twist' is that everything there (I mean code) is written in Russian, i.e. cyrillic. So it's obvious and normal that the request/response

[issue19521] Parallel build race condition on AIX since python-2.7

2020-08-29 Thread Stefan Krah
Stefan Krah added the comment: New changeset e6dcd371b2c54a94584dd124e8c592a496d46a47 by Stefan Krah in branch 'master': bpo-19521: Fix parallel build race condition on AIX (GH-21997) https://github.com/python/cpython/commit/e6dcd371b2c54a94584dd124e8c592a496d46a47 --

[issue19521] Parallel build race condition on AIX since python-2.7

2020-08-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +21107 pull_request: https://github.com/python/cpython/pull/22001 ___ Python tracker

[issue19521] Parallel build race condition on AIX since python-2.7

2020-08-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +21108 pull_request: https://github.com/python/cpython/pull/22002 ___ Python tracker ___

[issue19521] Parallel build race condition on AIX since python-2.7

2020-08-29 Thread Stefan Krah
Stefan Krah added the comment: This is in master and 3.9.1. I'll not backport to 3.8 because a release candidate is imminent. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.9

[issue6721] Locks in the standard library should be sanitized on fork

2020-08-29 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: -21110 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2020-08-29 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: -2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41615] sys.argv may be None or an empty list

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: The docs are normative as well as descriptive. The specific doc for sys.argv is https://docs.python.org/3/library/sys.html#sys.argv. It says that a proper Python stdlib sys module has an args attribute that is a non-empty list whose first item is a

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2020-08-29 Thread Spencer Baugh
Spencer Baugh added the comment: My mistake, I see now this is just https://bugs.python.org/issue33786 and is already fixed. -- ___ Python tracker ___

[issue41620] Python Unittest does not return results object when the test is skipped

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: You should justify the proposed change here on the issue, and see if the doc says anything about the issue either way. -- nosy: +ezio.melotti, michael.foord, rbcollins, terry.reedy ___ Python tracker

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2020-08-29 Thread Spencer Baugh
Spencer Baugh added the comment: I'm not sure this was the correct fix - or at least, this creates further issues with asynccontextmanager. Consider the following code: --- import contextlib import types @contextlib.asynccontextmanager async def acm(): # GeneratorExit

[issue41615] sys.argv may be None or an empty list

2020-08-29 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Terry. The correct URL is [jaraco/keyring#445](https://github.com/jaraco/keyring/issues/445). -- ___ Python tracker ___

[issue41660] multiprocessing.Manager objects lose connection info

2020-08-29 Thread Tim Peters
Tim Peters added the comment: And more weirdness, changing the tail to: for i in range(10): state_value.value = i state_ready.clear() producerprocess = MyProducer(state_value, state_ready) consumerprocess = MyConsumer(state_value, state_ready)

[issue41246] IOCP Proactor same socket overlapped callbacks

2020-08-29 Thread Tony
Tony added the comment: bump -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41279] Add a StreamReaderBufferedProtocol

2020-08-29 Thread Tony
Tony added the comment: bump -- title: Convert StreamReaderProtocol to a BufferedProtocol -> Add a StreamReaderBufferedProtocol ___ Python tracker ___

[issue41533] Bugfix: va_build_stack leaks the stack if do_mkstack fails

2020-08-29 Thread Tony
Tony added the comment: bump -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41660] multiprocessing.Manager objects lose connection info

2020-08-29 Thread Tim Peters
Tim Peters added the comment: Noting that adding a `.join()` to the failing code on the StackOverflow report appeared to fix that problem too. In hindsight, I guess I'm only mildly surprised that letting the main process run full speed into interpreter shutdown code while worker processes

[issue41664] re.sub does NOT substitute all the matching patterns when re.IGNORECASE is used

2020-08-29 Thread Anit Rajpurohit
New submission from Anit Rajpurohit : Usage of re flags leads to inconsistent results when 1. The pattern directly used in re.sub 2. The pattern is re.compile'd and used Note 1: Input string is all in the lowercase 'all is fair in love and war' Note 2: Results are always consistent in case

[issue41622] Add support for emoji-data.txt and emoji-variation-sequences.txt to unicodedata

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Base facts: The Unicode Character Database, UCD, is defined in Tech Report 44, https://www.unicode.org/reports/tr44/. The latest files (now for 13.0) are at https://www.unicode.org/Public/UCD/latest/ and in particular, in the ucd subdirectory.

[issue41627] Relocate user site packages on Windows 32-bit

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: If it is otherwise possible to user-only install both 32 and 64 bit versions, then using the same site-packages strikes me a bug, even if only fixed in the next version. -- nosy: +terry.reedy ___ Python tracker

[issue41629] __class__ not set defining 'X' as

2020-08-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: __class__ not set defining 'X' as . Was __classcell__ propagated to type.__new__? -> __class__ not set defining 'X' as ___ Python tracker

[issue41634] Typo in curses documentation

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a1473d2c9106abbdc619bdcc973c15a87e3f0f12 by Miss Islington (bot) in branch '3.8': bpo-41634: Fix a typo in the curses documentation (GH-21958) https://github.com/python/cpython/commit/a1473d2c9106abbdc619bdcc973c15a87e3f0f12 -- nosy:

[issue41634] Typo in curses documentation

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6b5e88744cb48156a5dee47244dbc1b0dd82567c by Miss Islington (bot) in branch '3.9': bpo-41634: Fix a typo in the curses documentation (GH-21958) https://github.com/python/cpython/commit/6b5e88744cb48156a5dee47244dbc1b0dd82567c --

[issue41664] re.sub does NOT substitute all the matching patterns when re.IGNORECASE is used

2020-08-29 Thread Matthew Barnett
Matthew Barnett added the comment: The 4th argument of re.sub is 'count', not 'flags'. re.IGNORECASE has the numeric value of 2, so: re.sub(r'[aeiou]', '#', 'all is fair in love and war', re.IGNORECASE) is equivalent to: re.sub(r'[aeiou]', '#', 'all is fair in love and war',

[issue41634] Typo in curses documentation

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Karthikeyan, I went ahead and merged and closed this trivial fix because I could not imagine any reason to hold it up. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue41637] Calling with an infinite number of parameters is not detected

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, I get an indefinite hang rather than an overt crash with a crash box. I believe that there was some swapping out to disk. I got the same with list(itertools.count()). If you got a core dump or crash report, you might upload it. There is

[issue41645] Typo First Page of Documentation

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that a second verb might be better but 'is' is wrong. How about Python has ... and uses a simple but effective approach .. -- nosy: +terry.reedy ___ Python tracker

[issue41653] About the use of cpython console mode problem

2020-08-29 Thread Terry J. Reedy
Change by Terry J. Reedy : Removed file: https://bugs.python.org/file49430/Screenshot_2020_0828_104656.png ___ Python tracker ___ ___