[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:

[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

[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

[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,

[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

[issue41718] test.regrtest has way too many imports

2020-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows with current master, the baseline for running anything with 1 import (">>> import sys; len(sys.modules)") is 35 imported modules. Adding "import unittest" increases this to 80. What slightly puzzles me is that running --- import unittest

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

2020-09-04 Thread Steve Dower
Steve Dower added the comment: > With the change in PR 22098, the 32-bit interpreter will install to a > different location. To clarify this, I meant the 32-bit interpreter will install *packages* to a different location (when using the user scheme). -- assignee: -> steve.dower

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

2020-09-04 Thread Steve Dower
Steve Dower added the comment: New changeset dd18001c308fb3bb65006c91d95f6639583a3420 by Steve Dower in branch 'master': bpo-41627: Distinguish 32 and 64-bit user site packages on Windows (GH-22098) https://github.com/python/cpython/commit/dd18001c308fb3bb65006c91d95f6639583a3420

[issue41218] PyCF_ALLOW_TOP_LEVEL_AWAIT + list comprehension set .CO_COROUTINE falg.

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

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

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

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

2020-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: The original title was "Why does not range() support decimals?". In general, such questions should be directed to question forums, such as https://mail.python.org/mailman/listinfo/python-list or stackoverflow.com. This question has been answered on both,

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

2020-09-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d64d78be20ced6ac9de58e91e69eaba184e36e9b by Miss Islington (bot) in branch '3.9': bpo-41531: Fix compilation of dict literals with more than 0x elements (GH-21850) (GH-22107)

[issue41722] multiprocess error on large dataset

2020-09-04 Thread vishal rao
New submission from vishal rao : I am processing a large pandas dataframe using pathos framework which internally uses Python multiprocess package. I get the following error when i run the code with a large dataset. The issue doesn't occur on smaller datasets.

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

2020-09-04 Thread miss-islington
miss-islington added the comment: New changeset e92219d8f864a1a8eb381d98d5df4f1aa767dacb by Miss Islington (bot) in branch '3.9': bpo-29590: fix stack trace for gen.throw() with yield from (GH-19896) https://github.com/python/cpython/commit/e92219d8f864a1a8eb381d98d5df4f1aa767dacb

[issue41687] sendfile implementation is not compatible with Solaris

2020-09-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41671] inspect.getdoc/.cleandoc doesn't always remove trailing blank lines

2020-09-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +yselivanov stage: -> needs patch versions: +Python 3.10 -Python 3.7 ___ Python tracker ___

[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 106c1df736d38f5b411a8571b97275d0ecf1d0a9 by Miss Islington (bot) in branch '3.9': closes bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847) https://github.com/python/cpython/commit/106c1df736d38f5b411a8571b97275d0ecf1d0a9

[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 ___

[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*

[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 ___

[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 ___

[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)

[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
Change by miss-islington : -- pull_requests: +21189 pull_request: https://github.com/python/cpython/pull/22103 ___ Python tracker ___

[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
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)

[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)

[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 --

[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 --

[issue35228] Index search in CHM help crashes viewer

2020-09-04 Thread Steve Dower
Steve Dower added the comment: So I found the "owner" of the HTML Help component in Windows (I put owner in quotes because this tool is _very_ maintenance mode, so nothing short of a critical vulnerability is going to be touched) and he helped me do some debugging. In short, the index file

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

2020-09-04 Thread Stefan Krah
Stefan Krah added the comment: New changeset fb050d0d60f38dc9b6c30df1864020a92981be5b by Miss Islington (bot) in branch '3.9': bpo-41721: Add xlc options (GH-22097) https://github.com/python/cpython/commit/fb050d0d60f38dc9b6c30df1864020a92981be5b --

[issue38585] defusedexpat not supported past python 3.3/3.4

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

[issue38585] defusedexpat not supported past python 3.3/3.4

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

[issue38585] defusedexpat not supported past python 3.3/3.4

2020-09-04 Thread miss-islington
miss-islington added the comment: New changeset 51b84f8e96a441c498210f827c1297ee4973525f by Zackery Spytz in branch 'master': bpo-38585: Remove references to defusedexpat (GH-22095) https://github.com/python/cpython/commit/51b84f8e96a441c498210f827c1297ee4973525f -- nosy:

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

2020-09-04 Thread Stefan Krah
Stefan Krah added the comment: The code example is for 64-bit Linux with sizeof(long) == sizeof(long long). It also works on 32-bit xlc with int/long. -- ___ Python tracker

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

2020-09-04 Thread Steve Dower
Steve Dower 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 It's very easy to install both 32 and 64-bit runtimes (and it doesn't matter if they're user or system installs). But when

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

2020-09-04 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +21185 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22098 ___ 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

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

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

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

2020-09-04 Thread Stefan Krah
Stefan Krah added the comment: New changeset 84a7917b4c9afec07575065cffa143b91fe98c14 by Stefan Krah in branch 'master': bpo-41721: Add xlc options (GH-22096) https://github.com/python/cpython/commit/84a7917b4c9afec07575065cffa143b91fe98c14 --

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

2020-09-04 Thread Stefan Krah
Stefan Krah added the comment: -qmaxmem=-1 is added to disable verbose remarks. -- ___ Python tracker ___ ___ Python-bugs-list

[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

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

2020-09-04 Thread Stefan Krah
New submission from Stefan Krah : At least the xlc version on AIX 7.1 has aggressive optimizations even with -O: #include #include static int f(long *a, long long *b) { int t = *a; *b = 0; // cannot

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

2020-09-04 Thread Stefan Krah
Change by Stefan Krah : -- keywords: +patch pull_requests: +21183 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22096 ___ Python tracker ___

[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 ___

[issue38585] defusedexpat not supported past python 3.3/3.4

2020-09-04 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +21182 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22095 ___ 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

[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

[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 miss-islington
Change by miss-islington : -- pull_requests: +21181 pull_request: https://github.com/python/cpython/pull/22094 ___ 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)

[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

[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

[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

[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]

[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:

[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

[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

[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

[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? --

[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

[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

[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 ___

[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

[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

[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

[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 : -- keywords: +patch pull_requests: +21175 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22089 ___ Python tracker ___

[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:

[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 :)

[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

[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.

[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

[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. --

[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

[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 af
af added the comment: Any updates on this? -- nosy: +af ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 ___

[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']

[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:

[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 ___

[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 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 --

[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

[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

[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

[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. --

[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

[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

[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

[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

[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

[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 ___ ___

[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 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

  1   2   >