[issue39883] Use BSD0 license for code in docs

2020-09-04 Thread Todd Jennings
Todd Jennings added the comment: The pull request is https://github.com/python/python-docs-theme/pull/36 It doesn't seem to went let me add it to linked pull requests. -- ___ Python tracker

[issue41722] multiprocess error on large dataset

2020-09-04 Thread vishal rao
Change by vishal rao : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41719] Why does not range() support decimals?

2020-09-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the usual approach to the OP's problem is: >>> [x*0.5 for x in range(10)] [0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5] This technique generalizes to other sequences as well: >>> [x**2 for x in range(10)] [0, 1, 4, 9, 16, 25,

[issue41723] doc: issue in a sentence in py_compile

2020-09-04 Thread Sean Chao
New submission from Sean Chao : I think in https://docs.python.org/3.10/library/py_compile.html#py_compile.compile the sentence: > If dfile is specified, it is used as the name of the source file in error > messages when instead of file. should not have the 'when'. -- assignee:

[issue41719] Why does not range() support decimals?

2020-09-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: Generating a range of equally-spaced floats is tricky and the range builtin is not the right solution for this. For numerical work, we often need to specify the number of steps, not the step size. For instance, in numeric integration, we often like to

[issue41709] Idle erases clipboard upon closing

2020-09-04 Thread Kitty Beans
New submission from Kitty Beans : Idle erases the contents of my clipboard after copying any text from the idle window, and then closing idle. This happens on my Linux Mint 19.3 Laptop and Desktop; Windows 10 Laptop does not seem to have this issue (it has never altered my clipboard outside

[issue41707] Builtins like int() and float() should not blindly treat buffer protocol bytes as string characters.

2020-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue27572. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue41710] Timeout is affected by jumps in system time

2020-09-04 Thread Jonas Norling
New submission from Jonas Norling : The timeout for threading.Lock, threading.Condition, etc, is not using a monotonic clock — it is affected if the system time (realtime clock) is set. The attached program can be used to show the problem. It is expected to print "Took 2.000 s" repeatedly,

[issue41711] Socker send method throws a timeout exception

2020-09-04 Thread pig
Change by pig : Added file: https://bugs.python.org/file49441/tcpclient.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41712] REDoS in purge

2020-09-04 Thread yeting li
New submission from yeting li : I find this regex "(\d+\.\d+\.\d+)(\w+\d+)?$" may be stucked by input. The vulnerable regex is located in https://github.com/python/cpython/blob/54a66ade2067c373d31003ad260e1b7d14c81564/Tools/msi/purge.py#L15 The ReDOS vulnerability of the regex is mainly due to

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-09-04 Thread STINNER Victor
Change by STINNER Victor : -- title: test_interpreters leaked [1424, 1422, 1424] references -> _signal module leak: test_interpreters leaked [1424, 1422, 1424] references ___ Python tracker

[issue41700] test_c_locale_coercion: test_PYTHONCOERCECLOCALE_set_to_one() failed on PPC64 Fedora 3.9

2020-09-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 8f13ff959ae43fb6b8217845b2945779fe693b84 by Miss Islington (bot) in branch '3.9': bpo-41700: Skip test if the locale is not supported (GH-22081) (GH-22085) https://github.com/python/cpython/commit/8f13ff959ae43fb6b8217845b2945779fe693b84

[issue41700] test_c_locale_coercion: test_PYTHONCOERCECLOCALE_set_to_one() failed on PPC64 Fedora 3.9

2020-09-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 4bcff52447b472bc5c8698d4ab29c09df9e122b4 by Miss Islington (bot) in branch '3.8': bpo-41700: Skip test if the locale is not supported (GH-22081) (GH-22086) https://github.com/python/cpython/commit/4bcff52447b472bc5c8698d4ab29c09df9e122b4

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2020-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed duplicate issue #41709, Linux Mint 19.3, python 3.6.8 -- versions: -Python 3.7 ___ Python tracker ___

[issue41709] Tkinter erases clipboard upon closing

2020-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a duplicate of an existing tkinter and Linux issue we don't know how to fix. #40452 -- components: +Tkinter -IDLE resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Tkinter/IDLE: preserve clipboard on closure

[issue41715] REDoS inc_analyzer

2020-09-04 Thread yeting li
New submission from yeting li : Hi, I find this regex "^([a-zA-Z]|_\w*[a-zA-Z]\w*|[a-zA-Z]\w*)$" may be stucked by input. The vulnerable regex is located in https://github.com/python/cpython/blob/54a66ade2067c373d31003ad260e1b7d14c81564/Tools/c-analyzer/c_analyzer/common/info.py#L12 The ReDOS

[issue41715] REDoS in c_analyzer

2020-09-04 Thread yeting li
Change by yeting li : -- title: REDoS inc_analyzer -> REDoS in c_analyzer ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41715] REDoS in c_analyzer

2020-09-04 Thread yeting li
Change by yeting li : -- components: +Library (Lib) type: -> security versions: +Python 3.10 ___ Python tracker ___ ___

[issue41710] Timeout is affected by jumps in system time

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: bpo-23428 modified the pthread implementation of conditional variable to use pthread_condattr_setclock(, CLOCK_MONOTONIC) is available: commit 001fee14e0f2ba5f41fb733adc69d5965925a094. The change should be part of Python 3.8. What is your sys.thread_info

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: See bpo-41710 "Timeout is affected by jumps in system time". -- ___ Python tracker ___ ___

[issue41711] Socker send method throws a timeout exception

2020-09-04 Thread pig
New submission from pig : When tcpclient.py and tcpserver.py files are run on macOS at the same time, custom exceptions will be thrown due to exceeding the given timeout.Timed out: Timed out When one or two files are running on window, socker.send throws an exception socket.timeout: Timed

[issue36094] When using an SMTP SSL connection,, get ValueError.

2020-09-04 Thread Peter Stokes
Peter Stokes added the comment: I wanted to enquire as to if/when the proposed PR11998 is likely to be merged? I also wanted to note the similarity between this issue and issue41470 and to suggest that whilst the change proposed in commit e445ccbc of PR11998 [1] would be welcome, there may

[issue41713] test_interpreters leaked [1424, 1422, 1424] references

2020-09-04 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Fedora Rawhide Refleaks 3.x: https://buildbot.python.org/all/#/builders/565/builds/11 test_interpreters leaked [1424, 1422, 1424] references, sum=4270 According to git bisect, the leak was introduced by: commit

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: About the leak, the following three variables are also initialized multiple times by signal_exec(): static PyObject *DefaultHandler; static PyObject *IgnoreHandler; static PyObject *IntHandler; -- ___ Python

[issue41712] REDoS in purge

2020-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report yeting li. The pattern modification looks good to me. Do you mind to create a pull request? -- keywords: +easy nosy: +serhiy.storchaka stage: -> needs patch versions: +Python 3.8, Python 3.9

[issue41714] multiprocessing.Queue deadlock

2020-09-04 Thread Richard Purdie
Richard Purdie added the comment: Even my hack to call _writer.close() doesn't seem to be enough, it makes the problem rarer but there is still an issue. Basically, if you call cancel_join_thread() in one process, the queue is potentially totally broken in all other processes that may be

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-09-04 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +21173 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22087 ___ Python tracker ___

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: Another problem: PyOS_FiniInterrupts() is a public function of the C API which access global variables like IntHandler, DefaultHandler and IgnoreHandler. -- ___ Python tracker

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

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: > bpo-1635741: Port _signal module to multi-phase init (PEP 489) (GH-22049) This change is causing new issues: bpo-41713 "_signal module leak: test_interpreters leaked [1424, 1422, 1424] references". So I partially reverted it: PR 22087. --

[issue41711] Socker send method throws a timeout exception

2020-09-04 Thread pig
Change by pig : -- components: IO nosy: pppig0921 priority: normal severity: normal status: open title: Socker send method throws a timeout exception type: behavior versions: Python 3.7 ___ Python tracker

[issue41711] Socker send method throws a timeout exception

2020-09-04 Thread pig
Change by pig : Added file: https://bugs.python.org/file49442/tcpserver.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41715] REDoS in c_analyzer

2020-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would use NAME_RE = re.compile(r'(?![_\d]+\Z)(?!\d)\w+', re.ASCII) or NAME_RE = re.compile(r'(?=.*[A-Za-z])(?!\d)\w+', re.ASCII) and NAME_RE.fullmatch() instead of NAME_RE.match(). But why identifiers not containing letters are disabled at first

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: The signal module is really special. In Python, only the main thread of the main interpreter is supposed to be allowed to run Python signal handlers (but the C signal handler can be executed by any thread). The exec function of the _signal module runs

[issue41714] multiprocessing.Queue deadlock

2020-09-04 Thread Richard Purdie
Richard Purdie added the comment: I should also add that if we don't use cancel_join_thread() in the parser processes, things all work out ok. There is therefore seemingly something odd about the state that is leaving things in. This issue doesn't occur every time, its maybe 1 in 40 runs

[issue41715] REDoS in c_analyzer

2020-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +eric.snow, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41700] test_c_locale_coercion: test_PYTHONCOERCECLOCALE_set_to_one() failed on PPC64 Fedora 3.9

2020-09-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 54a66ade2067c373d31003ad260e1b7d14c81564 by Dong-hee Na in branch 'master': bpo-41700: Skip test if the locale is not supported (GH-22081) https://github.com/python/cpython/commit/54a66ade2067c373d31003ad260e1b7d14c81564 --

[issue41700] test_c_locale_coercion: test_PYTHONCOERCECLOCALE_set_to_one() failed on PPC64 Fedora 3.9

2020-09-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +21171 pull_request: https://github.com/python/cpython/pull/22085 ___ Python tracker

[issue41700] test_c_locale_coercion: test_PYTHONCOERCECLOCALE_set_to_one() failed on PPC64 Fedora 3.9

2020-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +21172 pull_request: https://github.com/python/cpython/pull/22086 ___ Python tracker ___

[issue41714] multiprocessing.Queue deadlock

2020-09-04 Thread Richard Purdie
New submission from Richard Purdie : We're having some problems with multiprocessing.Queue where the parent process ends up hanging with zombie children. The code is part of bitbake, the task execution engine behind OpenEmbedded/Yocto Project. I've cut down our code to the pieces in question

[issue41700] test_c_locale_coercion: test_PYTHONCOERCECLOCALE_set_to_one() failed on PPC64 Fedora 3.9

2020-09-04 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.10, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41700] test_c_locale_coercion: test_PYTHONCOERCECLOCALE_set_to_one() failed on PPC64 Fedora 3.9

2020-09-04 Thread Dong-hee Na
Dong-hee Na added the comment: This issue is fixed. Thanks for the report and review Victor! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2020-09-04 Thread af
af added the comment: Any updates on this? -- nosy: +af ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41654] Segfault when raising MemoryError

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: "AMD64 Arch Linux Asan 3.8" buildbot logs a compiler warning: https://buildbot.python.org/all/#builders/580/builds/4 Objects/exceptions.c: In function ‘MemoryError_dealloc’: Objects/exceptions.c:2298:23: warning: comparison of distinct pointer types lacks a

[issue41718] test.regrtest has way too many imports

2020-09-04 Thread STINNER Victor
New submission from STINNER Victor : Follow-up of bpo-40275. While investigating a crash on AIX (bpo-40068), I noticed that test_threading crashed because the test imports the logging module, and the logging has a bug on AIX on fork. I created an issue to reduce the number of imports made by

[issue40275] test.support has way too many imports

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: Sadly, the work done on this issue is useless until test.regrtest imports less modules as well. So I created bpo-41718 follow-up issue: "test.regrtest has way too many imports". I consider that the work is done on test.support, so I close this issue.

[issue41712] REDoS in purge

2020-09-04 Thread Zachary Ware
Zachary Ware added the comment: Does it matter? This is not a library, it is a script used occasionally by a release manager, called manually, and the only input to the regex is provided via a command-line argument in that manual call. I don't think Steve plans to REDoS himself :)

[issue41719] Why does not range() support decimals?

2020-09-04 Thread chen-y0y0
New submission from chen-y0y0 : # I try: >>> range(0,5,0.5) # I hope it will (0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.5). But... Traceback (most recent call last): File "", line 1, in range(0,5,0.5) TypeError: 'float' object cannot be interpreted as an integer -- components:

[issue41718] test.regrtest has way too many imports

2020-09-04 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +21175 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22089 ___ Python tracker ___

[issue41717] [AIX] test_io: files was modified by test_io: (@test_6488748_tmpæ) on POWER6 AIX 3.9

2020-09-04 Thread David Edelsohn
David Edelsohn added the comment: Bisection failed after 101 iterations and 0:20:29 -- ___ Python tracker ___ ___ Python-bugs-list

[issue41717] [AIX] test_io: files was modified by test_io: (@test_6488748_tmpæ) on POWER6 AIX 3.9

2020-09-04 Thread STINNER Victor
New submission from STINNER Victor : '@test_6488748_tmpæ' is likely TESTFN_NONASCII which is exposed as test.support.os_helper.TESTFN, but test_io has many many tests using TESTFN. https://buildbot.python.org/all/#/builders/330/builds/20 0:06:47 [130/425/1] test_io failed (env changed) (1 min

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: > Any updates on this? So far, nobody proposed a pull request. So no, there is no update. Someone has to step in, dig into the issue, propose a fix, then someone else has to review the PR, and finally the PR should be merged. --

[issue41718] test.regrtest has way too many imports

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: If I hack test.libregrtest.runtest to not import test.libregrtest.save_env, test_sys_modules imports only 148 instead of 233 modules. -- ___ Python tracker

[issue41718] test.regrtest has way too many imports

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: With PR 22089, test_sys_modules.py of msg376374 imports 152 imports rather than 233. It's better than Python 2.7 which imports 170 modules! -- ___ Python tracker

[issue41718] test.regrtest has way too many imports

2020-09-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41718] test.regrtest has way too many imports

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: In general, it's nice to have the following 4 checks: * multiprocessing.process._dangling * asyncio.events._event_loop_policy * urllib.requests._url_tempfiles * urllib.requests._opener The problem is that because of these checks, **any** unit test file of

[issue41715] REDoS in c_analyzer

2020-09-04 Thread yeting li
yeting li added the comment: I'm sorry there was a typo just now. replace _\w*[a-zA-Z]\w* with (_\d*)+([a-zA-Z]([_\d])*)+ -- ___ Python tracker ___

[issue41717] [AIX] test_io: files was modified by test_io: (@test_6488748_tmpæ) on POWER6 AIX 3.9

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: > Bisection failed after 101 iterations and 0:20:29 Oh :-( Does "./python -m test test_io --fail-env-changed -v" fail? -- ___ Python tracker

[issue39825] EXT_SUFFIX inconsistent between sysconfig and distutils.sysconfig (Windows)

2020-09-04 Thread mattip
Change by mattip : -- keywords: +patch nosy: +mattip nosy_count: 8.0 -> 9.0 pull_requests: +21174 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22088 ___ Python tracker

[issue41716] SyntaxError: EOL while scanning string literal

2020-09-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: You can't end a string with a bare backslash, not even an raw string. -- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue41716] SyntaxError: EOL while scanning string literal

2020-09-04 Thread chen-y0y0
New submission from chen-y0y0 : # I try to run: import os os.system(r"start C:\Windows\System32\") # But I get an Exception: SyntaxError: EOL while scanning string literal # A string after “r” means the string's original meaning. But…… -- components: Argument Clinic messages: 376361

[issue41715] REDoS in c_analyzer

2020-09-04 Thread yeting li
yeting li added the comment: You can use the dk.brics.automaton library to verify whether two regexes are equivalent. -- ___ Python tracker ___

[issue41716] SyntaxError: EOL while scanning string literal

2020-09-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: See the FAQ: https://docs.python.org/3/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash Also documented here: https://docs.python.org/dev/reference/lexical_analysis.html#string-and-bytes-literals Previous issues: #1271 and #31136

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-09-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4b8032e5a4994a7902076efa72fca1e2c85d8b7f by Victor Stinner in branch 'master': bpo-41713: _signal doesn't use multi-phase init (GH-22087) https://github.com/python/cpython/commit/4b8032e5a4994a7902076efa72fca1e2c85d8b7f --

[issue41715] REDoS in c_analyzer

2020-09-04 Thread yeting li
yeting li added the comment: I think we can replace \w*[a-zA-Z]\w* with (_\d*)+([a-zA-Z]([_\d])*)+ This is an equivalent fix and the fixed regex is safe. Does that sound right to you? -- ___ Python tracker

[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2020-09-04 Thread Mark Dickinson
Change by Mark Dickinson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-09-04 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26214] textwrap should minimize number of breaks in extra long words

2020-09-04 Thread Irit Katriel
Irit Katriel added the comment: You can do this already with the break_long_words arg of testwrap: >>> import itertools, textwrap >>> wr = textwrap.wrap >>> list(itertools.chain(*(wr(x, 5) for x in wr("123 123 1234567", width=5, >>> break_long_words=False ['123', '123', '12345', '67']

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-09-04 Thread Georges
Georges added the comment: As I think it is still important to have this fixed and considering the original PR was closed, I have created a new PR based on the original one while implementing the requested changes. https://github.com/python/cpython/pull/22090 -- versions: +Python

[issue41712] REDoS in purge

2020-09-04 Thread Steve Dower
Steve Dower added the comment: I've considered DoSing myself a few times, but then change my mind and just publish the release :) A PR to change it to "(\d+\.\d+\.\d+)([a-zA-Z]+\d+)?$" would be fine, but is not urgent. It certainly doesn't need to be backported, as this is only ever used

[issue26214] textwrap should minimize number of breaks in extra long words

2020-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code with nested wraps is awesome. But it does not work well. >>> list(itertools.chain(*(wr(x, 5) for x in wr("123 123 1234567 12", width=5, >>> break_long_words=False ['123', '123', '12345', '67', '12'] It is expected that '67' and '12' should be

[issue26214] textwrap should minimize number of breaks in extra long words

2020-09-04 Thread Irit Katriel
Irit Katriel added the comment: One more wrap: >>> wr(' '.join(itertools.chain(*(wr(x, 5) for x in wr("123 123 1234567 12", >>> width=5, break_long_words=False, 5) ['123', '123', '12345', '67 12'] -- ___ Python tracker

[issue41720] Missed "return NotImplemented" in Vec2D.__rmul__

2020-09-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Vec2D.__rmul__() misses "return NotImplemented" and therefore implicitly returns None for arguments which are not int or float. >>> import turtle >>> print(object() * turtle.Vec2D(1, 2)) None -- components: Library (Lib) messages: 376389 nosy:

[issue41678] File-level, optionally external sorting

2020-09-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion, but Pablo and I agree that this isn't within scope for the standard library. Marking as closed. If you want to discuss further, please post to the Python ideas list. -- resolution: -> rejected stage: -> resolved

[issue41720] Missed "return NotImplemented" in Vec2D.__rmul__

2020-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +21179 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22092 ___ Python tracker

[issue41710] Timeout is affected by jumps in system time

2020-09-04 Thread Jonas Norling
Jonas Norling added the comment: sys.thread_info = sys.thread_info(name='pthread', lock='semaphore', version='NPTL 2.31') on my system. Looking at the source I think the semaphore implementation will be used on all modern Linux systems. In my tests it works as expected on a Macintosh (3.8.5

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-09-04 Thread Georges
Change by Georges : -- nosy: +sim0n nosy_count: 4.0 -> 5.0 pull_requests: +21176 pull_request: https://github.com/python/cpython/pull/22090 ___ Python tracker ___

[issue41715] REDoS in c_analyzer

2020-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +21178 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22091 ___ Python tracker

[issue41282] Deprecate and remove distutils

2020-09-04 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I noticed that a new PEP draft [1] about deprecating distutils is uploaded. The current version [2] proposes to deprecate distutils in 3.10 and 3.11 and remove distutils in 3.12. [1] https://www.python.org/dev/peps/pep-0632/ [2]

[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-09-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +21180 pull_request: https://github.com/python/cpython/pull/22093 ___ Python tracker

[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64 by Serhiy Storchaka in branch 'master': bpo-40486: Specify what happens if directory content change diring iteration (GH-22025)

[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +21181 pull_request: https://github.com/python/cpython/pull/22094 ___ Python tracker ___

[issue41717] [AIX] test_io: files was modified by test_io: (@test_6488748_tmpæ) on POWER6 AIX 3.9

2020-09-04 Thread David Edelsohn
David Edelsohn added the comment: It's the same system. It doesn't fail alone. Didn't we both previously see issues with the interaction of tests due to the other of tests, that previous tests left things in the environment that affected later tests? --

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

2020-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 81715808716198471fbca0a3db42ac408468dbc5 by Serhiy Storchaka in branch 'master': bpo-41638: Improve ProgrammingError message for absent parameter. (GH-21999) https://github.com/python/cpython/commit/81715808716198471fbca0a3db42ac408468dbc5

[issue38585] defusedexpat not supported past python 3.3/3.4

2020-09-04 Thread miss-islington
miss-islington added the comment: New changeset 6386e86becc2096206e16d7f5fabb5752bdd9b37 by Miss Islington (bot) in branch '3.9': bpo-38585: Remove references to defusedexpat (GH-22095) https://github.com/python/cpython/commit/6386e86becc2096206e16d7f5fabb5752bdd9b37 --

[issue38585] defusedexpat not supported past python 3.3/3.4

2020-09-04 Thread miss-islington
miss-islington added the comment: New changeset 1470c9189c8b099e0be94b4d89842f5345b776ec by Miss Islington (bot) in branch '3.8': bpo-38585: Remove references to defusedexpat (GH-22095) https://github.com/python/cpython/commit/1470c9189c8b099e0be94b4d89842f5345b776ec --

[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-09-04 Thread miss-islington
miss-islington added the comment: New changeset e52f5bc898c9a11fb1d57a42a1f9ec60b424d576 by Miss Islington (bot) in branch '3.8': [3.8] bpo-40486: Specify what happens if directory content change diring iteration (GH-22025) (GH-22094)

[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-09-04 Thread miss-islington
miss-islington added the comment: New changeset bd078df28322f840afd363b6ba097b5506ea5098 by Miss Islington (bot) in branch '3.9': [3.9] bpo-40486: Specify what happens if directory content change diring iteration (GH-22025) (GH-22093)

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

2020-09-04 Thread miss-islington
miss-islington added the comment: New changeset 66e9c2aee4af846ab1b77faa8a46fe3a9373d943 by Miss Islington (bot) in branch '3.8': [3.8] closes bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847) (GH-22015)

[issue41654] Segfault when raising MemoryError

2020-09-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21188 pull_request: https://github.com/python/cpython/pull/22102 ___ Python tracker ___

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

2020-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +21189 pull_request: https://github.com/python/cpython/pull/22103 ___ Python tracker ___

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-09-04 Thread miss-islington
miss-islington added the comment: New changeset fbb9ee0a903fb9b7b4b807f85aed1de754da09e6 by Miss Islington (bot) in branch '3.9': [3.9] bpo-38787: Clarify docs for PyType_GetModule and warn against common mistake (GH-20215) (GH-21984)

[issue29590] Incorrect stack traces when re-entering a generator/coroutine stack via .throw()

2020-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +21191 pull_request: https://github.com/python/cpython/pull/22106 ___ Python tracker ___

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +21190 pull_request: https://github.com/python/cpython/pull/22105 ___ Python tracker ___

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +21192 pull_request: https://github.com/python/cpython/pull/22107 ___ Python tracker ___

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

2020-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Minimal example >>> a{ # or >>> a { In 3.8, this is immediately flagged as a SyntaxError. In 3.9 and master, a continuation prompt is issued. This strikes me as a parsing buglet that should preferably be fixed, as it implies that something valid *could*

[issue41663] Support Windows pseudoterminals in pty and termios modules

2020-09-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Library (Lib) stage: -> test needed type: -> enhancement versions: +Python 3.10 ___ Python tracker ___

[issue26214] textwrap should minimize number of breaks in extra long words

2020-09-04 Thread Irit Katriel
Irit Katriel added the comment: To clarify, this solution is a linear-time greedy one, with three passes: - the first pass puts each long word on its own line. - the second pass chops them up into words of at most width characters. - the third pass wraps them, when there are no more long

[issue41721] xlc: add -qalias=noansi -qmaxmem=-1

2020-09-04 Thread Stefan Krah
Change by Stefan Krah : -- nosy: David.Edelsohn, skrah priority: normal severity: normal status: open title: xlc: add -qalias=noansi -qmaxmem=-1 ___ Python tracker ___

[issue41721] xlc: add -qalias=noansi -qmaxmem=-1

2020-09-04 Thread Stefan Krah
Stefan Krah added the comment: We would also need -fwrapv to be safe, but I cannot find an equivalent option for xlc. The Intel compiler had a similar failure to #40244 that was resolved by -fwrapv (see #40223). -- ___ Python tracker

[issue41704] logging module needs some form of introspection or debugging support

2020-09-04 Thread Jack Jansen
Jack Jansen added the comment: @vinay, absolutely right on this being an anti-pattern:-) And also right on the statement that I can set a breakpoint on all three of logging.basicConfig, logging.config.fileConfig and logging.config.dictConfig, I had overlooked that (was looking for a single

  1   2   >