[issue40246] Different error messages for same error - invalid string prefixes

2020-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It's no different from other edge cases where for some reason the space seems > optional, like `1and 2`. The parser is not consistent here. `0or[]` is an error, while `0and[]` and `1or[]` are valid. See

[issue40334] PEP 617: new PEG-based parser

2020-04-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +19109 pull_request: https://github.com/python/cpython/pull/19786 ___ Python tracker ___

[issue40431] turtledemo/__main__.py: SyntaxError: invalid string prefix else"#fca"

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: Ok, the typo is now fixed in 3.7, 3.8 and master branches ;-) Thanks Miro for the bug reportand Kyle for the backport. -- ___ Python tracker

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-29 Thread Petr Viktorin
Petr Viktorin added the comment: reportlab reported failures on code like: norm=lambda m: m+(m and(m[-1]!='\n'and'\n'or'')or'\n') Note that `or` has a `r` in it. -- nosy: +petr.viktorin ___ Python tracker

[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: I fixed test.pythoninfo to ignore gdb output if the command failed. I also enhanced test_gdb error message: display stdout, stderr and the exit code. Backport to 3.8 and 3.7 will be merged as soon as the CI pass. -- resolution: -> fixed stage:

[issue40228] Make setting line number in frame more robust.

2020-04-29 Thread Mark Shannon
Mark Shannon added the comment: New changeset 57697245e1deafdedf68e5f21ad8890be591efc0 by Mark Shannon in branch 'master': bpo-40228: More robust frame.setlineno. (GH-19437) https://github.com/python/cpython/commit/57697245e1deafdedf68e5f21ad8890be591efc0 --

[issue40395] Scripts folder is Empty in python 3.8.2 for Windows 7.

2020-04-29 Thread kuzja
kuzja added the comment: Here the same problem occurred when installing Python in Win7 Pro. Both standard and custom (with pip checked) installations lead to the same result (i.e. the empty Scripts folder). It seems that the problem originates somewhere between Python 3.6 and 3.7, as 3.7

[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

2020-04-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +19117 pull_request: https://github.com/python/cpython/pull/19796 ___ Python tracker ___

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-29 Thread Eric V. Smith
Eric V. Smith added the comment: I think you're right, since rb obviously works, too. I just wanted to make sure we're covering all the bases. There's some code in either the stdlib or the test suite where I generate all of the valid prefixes (it's something like 80 prefixes). I can dig it

[issue40399] IO streams locking can be broken after fork() with threads

2020-04-29 Thread Delgan
Delgan added the comment: Yeah, I just wanted to illustrate the issue with a more realistic example. The thread is often abstracted away by a class or a library. Conclusion: do not abstract it away. :) I've noticed that the mere fact of using "sys.stderr.write()", without even involving a

[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: > Otherwise there were so many posts I didn't find an explicit ask of what you > wanted changed, Victor. I would like to make Azure Pipelines optional on GitHub PRs. I changed the issue title to make my request more explicit. --

[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

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

[issue40437] add string.snake function

2020-04-29 Thread Eric V. Smith
Eric V. Smith added the comment: What would be the full specification of this? If you want to use it for column names, what happens if the string starts with a $, or some character that can't be used by your particular database? I'm skeptical that this could be general purpose enough to be

[issue40428] [C API] Remove PyTuple_ClearFreeList() function (move it to the internal C API)

2020-04-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19115 pull_request: https://github.com/python/cpython/pull/19793 ___ Python tracker ___

[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

2020-04-29 Thread Jonathan Crall
New submission from Jonathan Crall : I first noticed this when testing xdoctest on Python 3.9, and then again when using IPython. I was finally able to generate a minimal working example in Python itself. The following code: python -c "print(eval(compile('[i for i in range(3)]',

[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

2020-04-29 Thread miss-islington
miss-islington added the comment: New changeset d9e904919197a22b95946f11ba5f24b796088c06 by Miss Islington (bot) in branch '3.8': bpo-40436: Fix code parsing gdb version (GH-19792) https://github.com/python/cpython/commit/d9e904919197a22b95946f11ba5f24b796088c06 --

[issue40437] add string.snake function

2020-04-29 Thread jeffolsi10
jeffolsi10 added the comment: I'd like also to point that there are few other cases: https://stackoverflow.com/questions/11273282/whats-the-name-for-hyphen-separated-case This is PascalCase: SomeSymbol This is camelCase: someSymbol This is snake_case: some_symbol So a possible function could

[issue40286] Add randbytes() method to random.Random

2020-04-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19118 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19797 ___ Python tracker ___

[issue9216] FIPS support for hashlib

2020-04-29 Thread miss-islington
miss-islington added the comment: New changeset e3dfb9b967c560f4d094092dcae4a16fc9634681 by Victor Stinner in branch 'master': bpo-9216: Expose OpenSSL FIPS_mode() as _hashlib.get_fips_mode() (GH-19703) https://github.com/python/cpython/commit/e3dfb9b967c560f4d094092dcae4a16fc9634681

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

2020-04-29 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +19119 pull_request: https://github.com/python/cpython/pull/19798 ___ Python tracker ___

[issue40399] IO streams locking can be broken after fork() with threads

2020-04-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: The TextIOWrapper uses an underlying BufferedWriter, which is thread-safe (and therefore has an internal lock). -- ___ Python tracker ___

[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

2020-04-29 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: > I first noticed this when testing xdoctest on Python 3.9, and then again when > using IPython. What is your Python 3.9 exact version number? I cannot reproduce your issue with Python 3.9.0a6: vstinner@apu$ ./python -c "print(eval(compile('[i for i in

[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-29 Thread STINNER Victor
Change by STINNER Victor : -- title: Remove Azure Pipelines from GitHub PRs -> Make Azure Pipelines optional on GitHub PRs ___ Python tracker ___

[issue40439] Error in an external reference

2020-04-29 Thread Patrick A.
New submission from Patrick A. : This URL doesn't exist anymore. If you click on this URL you have a 404 not found. https://www.dcl.hpi.uni-potsdam.de/home/loewis/table-3131.html The website was changed and Dr. Martin v. Löwis is not hosted on the new site. Regards -- assignee:

[issue40437] add string.snake function

2020-04-29 Thread jeffolsi10
jeffolsi10 added the comment: snake case has very specific definition : https://en.wikipedia.org/wiki/Snake_case I expect the function to implement the definition and not something that I or someone else desire. As for your question about '$' char I could ask the same thing for lower() The

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-29 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: What's also possible is to handle keywords at tokenizer level and return a different token type for each one of them (like with async and await), which is currently handled at parser level. This would enable us to allow reserved keywords right before a

[issue40286] Add randbytes() method to random.Random

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2d8757758d0d75882fef0fe0e3c74c4756b3e81e by Victor Stinner in branch 'master': bpo-40286: Remove C implementation of Random.randbytes() (GH-19797) https://github.com/python/cpython/commit/2d8757758d0d75882fef0fe0e3c74c4756b3e81e --

[issue40286] Add randbytes() method to random.Random

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: It removed the C implementation of randbytes(): it was the root issue which started discussions here and in bpo-40346. I rejected bpo-40346 (BaseRandom) and related PRs. I close the issue. -- stage: patch review -> resolved status: open -> closed

[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset ec9bea4a3766bd815148a27f61eb24e7dd459ac7 by Victor Stinner in branch 'master': bpo-40436: Fix code parsing gdb version (GH-19792) https://github.com/python/cpython/commit/ec9bea4a3766bd815148a27f61eb24e7dd459ac7 --

[issue25521] optparse module does not emit DeprecationWarning

2020-04-29 Thread John Hagen
John Hagen added the comment: With PEP 594 (https://www.python.org/dev/peps/pep-0594/) in the pipeline, is it time that optparse correctly emits DeprecationWarnings? -- ___ Python tracker

[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: I close the issue: it's already fixed in 3.9.0a6. If it's not the case, feel free to reopen the issue ;-) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

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

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it was a typo. You cannot combine anything with the u prefix. -- ___ Python tracker ___

[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

2020-04-29 Thread Miro Hrončok
Miro Hrončok added the comment: BTW The test gdb also crashes in the same way: test test_gdb crashed -- Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.9.0a6/Lib/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name)

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: Another issue: I still see "Azure Pipelines PR Expected — Waiting for status to be reported" 15 min after I created my PR :-/ Technically, I created the PR and then pushed a second commit to the PR. The only option is to close/reopen the PR to re-trigger

[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-29 Thread Brett Cannon
Brett Cannon added the comment: Best place to report workflow issues or to have discussions about it is https://github.com/python/core-workflow/. Otherwise there were so many posts I didn't find an explicit ask of what you wanted changed, Victor. --

[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

2020-04-29 Thread Jonathan Crall
Jonathan Crall added the comment: This can be closed, but for completeness, the test you ran didn't verify that the bug was fixed. This is because the hard coded compile flags I gave in my example seem to have changed in Python 3.9 (is this documented?). In python3.8 the compile flags I

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

2020-04-29 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 84724dd239c30043616487812f6a710b1d70cd4b by Dong-hee Na in branch 'master': bpo-1635741: Port _stat module to multiphase initialization (GH-19798) https://github.com/python/cpython/commit/84724dd239c30043616487812f6a710b1d70cd4b --

[issue40234] Disallow daemon threads in subinterpreters optionally.

2020-04-29 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40440] allow array.array construction from memoryview w/o copy

2020-04-29 Thread Benjamin Keen
New submission from Benjamin Keen : Currently the array.array object can export a memoryview, but there is no way to construct one from a memoryview without making a copy of the underlying data. So in that sense array.array only supports one half of the buffer protocol and this is to allow

[issue40439] Error in an external reference

2020-04-29 Thread Ammar Askar
Ammar Askar added the comment: Thank you for the report Patrick! For reference this is on the lexical analysis page: https://docs.python.org/3/reference/lexical_analysis.html > A non-normative HTML file listing all valid identifier characters for Unicode > 4.1 can be found at >

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2020-04-29 Thread Ammar Askar
Ammar Askar added the comment: There's been some additional discussion on https://discuss.python.org/t/parse-z-timezone-suffix-in-datetime/2220 -- nosy: +ammar2 ___ Python tracker

[issue40441] Plural typo in Design and History FAQ

2020-04-29 Thread alexpovel
New submission from alexpovel : The documentation under "Design and History FAQ" has a typo in its "Why doesn’t Python have a “with” statement for attribute assignments?" section: https://docs.python.org/3/faq/design.html#why-doesn-t-python-have-a-with-statement-for-attribute-assignments

[issue40437] add string.snake function

2020-04-29 Thread Eric V. Smith
Eric V. Smith added the comment: I remain unconvinced, but I'm only one person. You might want to bring this up on python-ideas to see if it can get some more support. But be aware this is going to have much less support that the recent PEP 616 removeprefix/removesuffix discussion, which

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Indeed, reverting commit 41d5b94af44e34ac05d4cd57460ed104ccf96628 makes it work with both parsers: ~/github/python/master master* ❯ ./python -X oldparser Python 3.9.0a6+ (heads/master-dirty:84724dd239, Apr 29 2020, 20:29:53) [GCC 9.3.0] on linux Type

[issue40437] add string.snake function

2020-04-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I don't understand the motivation, why would it be very useful when working with titles of columns that are to be used in databases columns? Databases can handle columns with spaces in their name: postgres=# create temporary table foo ("column with spaces"

[issue34990] year 2038 problem in compileall.py

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: I would prefer to mimick importlib._bootstrap_external which uses: def _pack_uint32(x): """Convert a 32-bit integer to little-endian.""" return (int(x) & 0x).to_bytes(4, 'little') Using 64-bit timestamp (PR 19651), treat timestamp as unsigned

[issue40328] Add tools for generating mappings_XX.h

2020-04-29 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 113feb3ec2b08948a381175d33b6ff308d24fceb by Dong-hee Na in branch 'master': bpo-40328: Add tool for generating cjk mapping headers (GH-19602) https://github.com/python/cpython/commit/113feb3ec2b08948a381175d33b6ff308d24fceb --

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > If it's all handled by the tokenizer, how come it's different in the > newparser? Is not different in the new parser: both parsers have analogous behaviour now: ~/github/python/master master ❯ ./python Python 3.9.0a6+ (heads/master:84724dd239, Apr

[issue40428] [C API] Remove PyTuple_ClearFreeList() function (move it to the internal C API)

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9a8c1315c3041fdb85d091bb8dc92f0d9dcb1529 by Victor Stinner in branch 'master': bpo-40428: Cleanup free list part of C API Changes doc (GH-19793) https://github.com/python/cpython/commit/9a8c1315c3041fdb85d091bb8dc92f0d9dcb1529 --

[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

2020-04-29 Thread Jonathan Crall
Jonathan Crall added the comment: Ah, sorry. I neglected all the important information. I tested this using: Python 3.9.0a5 (default, Apr 23 2020, 14:11:34) [GCC 8.3.0] Specifically, I ran in a docker container: DOCKER_IMAGE=circleci/python:3.9-rc docker pull $DOCKER_IMAGE docker run

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-29 Thread Eric V. Smith
Eric V. Smith added the comment: >From earlier in this issue: https://bugs.python.org/msg366164 > So a slightly shorter example uses ru''. This is an error because you can't > combine the r prefix and the u prefix (in fact you can't combine anything > with the r prefix). That's not true:

[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

2020-04-29 Thread miss-islington
miss-islington added the comment: New changeset beba1a808000d5fc445cb28eab96bdb4cdb7c959 by Miss Islington (bot) in branch '3.7': bpo-40436: Fix code parsing gdb version (GH-19792) https://github.com/python/cpython/commit/beba1a808000d5fc445cb28eab96bdb4cdb7c959 --

[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: Thanks Miro for the bug report, it's now fixed ;-) In PR 19792, Miro proposed to skip test_gdb is gdb is available but exit with non-zero exit code. I chose to raise a hard exception instead, to notify CI owners that something is wrong. I prefer to not make

[issue40346] Add random.BaseRandom to ease implementation of subclasses

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: I created this issue to propose PR 19631 (BaseRandom class) which looked like as a good idea to me: simple base class which fix different kind of problems. But it seems like other people would prefer a complete rewrite from scratch and require a PEP. I

[issue40437] add string.snake function

2020-04-29 Thread Eric V. Smith
Eric V. Smith added the comment: So then it appears the snake case function couldn't be used for database column names, without some additional processing. So, what is the use case for it? I just don't see a lot of use for this. -- ___ Python

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: > Please backport to 3.8, then it will become part of 3.8.3rc1 which I'll be > releasing tomorrow. I propose to *not* fix this bug in Python 3.8: * Python 3.8 stdlib doesn't seem to be impacted by this bug * The number of third party C extension modules

[issue40437] add string.snake function

2020-04-29 Thread jeffolsi10
jeffolsi10 added the comment: it can. This is why I'm asking this. Consider APIs that return list of names in camelCase. You must convert the keys to snakeCase to create tables from it as it's bad practice to have capitalised letters in columns or table names. Further more, consider someone

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-29 Thread Ammar Askar
Ammar Askar added the comment: Thank you for your work on this Domenico. For reviewing the code, would you mind creating a Github pull request for it as described here https://devguide.python.org/pullrequest/ -- nosy: +ammar2 ___ Python tracker

[issue40254] pyspecific directives are not translatable

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

[issue40444] multiprocessing.Pool deadlocks with only print statements

2020-04-29 Thread Darin Tay
New submission from Darin Tay : I ran into a deadlock that I've reduced to a small and consistent repro, tested on 3.7.5 and 3.8.0. Reading through https://bugs.python.org/issue6721 now I suspect it is just another case of that, but not certain. In particular, I'm not using any explicit

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-04-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19125 pull_request: https://github.com/python/cpython/pull/19804 ___ Python tracker ___

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The original issue was about different error messages in REPL and eval(). But it is not related to string prefixes. We have the same difference without involving strings: >>> a b File "", line 1 a b ^ SyntaxError: invalid syntax >>> eval("a

[issue40435] IDLE should catch user config file UnicodeDecodeError

2020-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I want this left open to fix IDLE exiting instead of continuing. The original IDLE authors could not anticipate all the things that users around the world (and OS developers) might do, and we maintainers are still plugging holes as they are reported.

[issue40440] allow array.array construction from memoryview w/o copy

2020-04-29 Thread Benjamin Keen
Change by Benjamin Keen : -- keywords: +patch pull_requests: +19121 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19800 ___ Python tracker ___

[issue40427] importlib of module results in different id than when imported with import keyword

2020-04-29 Thread John Andersen
John Andersen added the comment: Thank you! :) I must have missed that somehow -- ___ Python tracker ___ ___ Python-bugs-list

[issue40291] socket library support for CAN_J1939

2020-04-29 Thread miss-islington
miss-islington added the comment: New changeset 360371f79c48f15bbcee7aeecacf97a899913b25 by karl ding in branch 'master': bpo-40291: Add support for CAN_J1939 sockets (GH-19538) https://github.com/python/cpython/commit/360371f79c48f15bbcee7aeecacf97a899913b25 -- nosy:

[issue40445] compileall.compile_dir docs aren't updated for bpo-38112

2020-04-29 Thread Shantanu
New submission from Shantanu : While the signature was updated in the documentation, the text below wasn't, and still reflects the old default of 10. https://docs.python.org/3.9/library/compileall.html#compileall.compile_dir -- assignee: docs@python components: Documentation

[issue40437] add string.snake function

2020-04-29 Thread Eric V. Smith
Eric V. Smith added the comment: > One can also argue why python need to maintain str conversion at all if we > have such good extensions in different libs. Back when we were starting python 3.x there was discussion or removing these from str and bytes, but it was decided that breaking

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

2020-04-29 Thread Deomid Ryabkov
Deomid Ryabkov added the comment: https://bugs.python.org/issue40442 is a fresh instance of this, entirely self-inflicted. -- nosy: +rojer ___ Python tracker ___

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-04-29 Thread STINNER Victor
New submission from STINNER Victor : Attached PRs removed unused imports from the Python standard library. I used pyflakes and looked for "imported but unused" warnings. I ignored tons of warnings, since many are false alarms: imports done on purpose. Previous editions: * 2014: bpo-20976 *

[issue40437] add string.snake function

2020-04-29 Thread jeffolsi10
jeffolsi10 added the comment: Rémi Lapeyre not all of them. I can give list of many examples where snake case is needed. But the question is: Are we discussing if snake case is even needed or are we discussing if this should be in python core. Those are two totally different things. 1. The

[issue40441] Plural typo in Design and History FAQ

2020-04-29 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: After merging the associated PR, I believe this is resolved. Thanks Alex for reporting and solving this -- nosy: +nanjekyejoannah stage: -> resolved ___ Python tracker

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

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

[issue40334] PEP 617: new PEG-based parser

2020-04-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 69e802ed812e38cb68a4ab74af64b4f719b6cc78 by Lysandros Nikolaou in branch 'master': bpo-40334: Fix test_peg_parser to actually use the old parser (GH-19778) https://github.com/python/cpython/commit/69e802ed812e38cb68a4ab74af64b4f719b6cc78

[issue40442] Spurious warning emitted during fork() can deadlock a multi-threaded process

2020-04-29 Thread Deomid Ryabkov
New submission from Deomid Ryabkov : I know, I know - forking a multi-threaded process is bad. But it happens. This is related to https://bugs.python.org/issue40399 and https://bugs.python.org/issue6721 but is distinct because the problem is entirely self-inflicted. What happens: 1) A

[issue40442] Spurious warning emitted during fork() can deadlock a multi-threaded process

2020-04-29 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40402] Race condition in multiprocessing/connection.py: broken handle

2020-04-29 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-39995: race condition in concurrent.futures. More specific to _ThreadWakeup class, but with similar symptoms. -- nosy: +vstinner ___ Python tracker

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-04-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19124 pull_request: https://github.com/python/cpython/pull/19803 ___ Python tracker ___

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-04-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19126 pull_request: https://github.com/python/cpython/pull/19805 ___ Python tracker ___

[issue40442] Spurious warning emitted during fork() can deadlock a multi-threaded process

2020-04-29 Thread Deomid Ryabkov
Change by Deomid Ryabkov : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40440] allow array.array construction from memoryview w/o copy

2020-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: array.array should copy the content, to be able to modify it. It implements both the storage for data and the view of that storage. What you want is already implemented as the memoryview object. >>> import array >>> x = array.array('b', [1,2,3,4]) >>> x

[issue40434] Update of reasoning why there is no case statement

2020-04-29 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: What is your reasoning on referencing just one of the PEPs and not both of them? -- nosy: +nanjekyejoannah ___ Python tracker ___

[issue40291] socket library support for CAN_J1939

2020-04-29 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, good luck using this! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-04-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19123 pull_request: https://github.com/python/cpython/pull/19802 ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bfb1cf44658934cbcd9707fb717d6770c78fbeb3 by Serhiy Storchaka in branch 'master': bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)

[issue40431] turtledemo/__main__.py: SyntaxError: invalid string prefix else"#fca"

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

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

2020-04-29 Thread Petr Viktorin
Petr Viktorin added the comment: I'm working on the implementation as my time allows, here: https://github.com/encukou/cpython/pull/3 . Would it help to create a proper PR for CPython now? That would mean I could no longer do rebases/force-pushes, so the commits would be less readable. But

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-29 Thread Thomas Moreau
Thomas Moreau added the comment: I think this is a reasonable way to move on.Some of the locks can probably be removed but this needs careful investigation and in the mean time, it hinders everyone. Thanks victor for the fast fix up! To me, an interesting observation is that the failure

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-29 Thread Thomas Moreau
Change by Thomas Moreau : -- pull_requests: +19111 pull_request: https://github.com/python/cpython/pull/19788 ___ Python tracker ___

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-04-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I looked at the change and it seemed ok to me. Perhaps Thomas can give it a look too. -- assignee: aeros -> vstinner ___ Python tracker ___

[issue40434] Update of reasoning why there is no case statement

2020-04-29 Thread Ama Aje My Fren
New submission from Ama Aje My Fren : The design and history FAQ (https://docs.python.org/dev/faq/design.html#why-isn-t-there-a-switch-or-case-statement-in-python) explains why there is no case statement referencing PEP 275(https://www.python.org/dev/peps/pep-0275/). For Python 3 there is,

[issue40434] Update of reasoning why there is no case statement

2020-04-29 Thread Ama Aje My Fren
Change by Ama Aje My Fren : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40434] Update of reasoning why there is no case statement

2020-04-29 Thread Ama Aje My Fren
Change by Ama Aje My Fren : -- keywords: +patch pull_requests: +19110 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19787 ___ Python tracker ___

[issue40432] Pegen regenerate project for Windows not working

2020-04-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9b64ef3ac7b434065dbff0048b9103999e4b491a by Anthony Shaw in branch 'master': bpo-40432 Fix MSBuild project for Pegen grammars (#GH-9785) https://github.com/python/cpython/commit/9b64ef3ac7b434065dbff0048b9103999e4b491a --

[issue40334] PEP 617: new PEG-based parser

2020-04-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4db245ee9ddbe6c53d375de59a35ff59dea2a8e0 by Pablo Galindo in branch 'master': bpo-40334: refactor and cleanup for the PEG generators (GH-19775) https://github.com/python/cpython/commit/4db245ee9ddbe6c53d375de59a35ff59dea2a8e0

[issue40431] turtledemo/__main__.py: SyntaxError: invalid string prefix else"#fca"

2020-04-29 Thread miss-islington
miss-islington added the comment: New changeset adb1f853482e75e81ae0ae7307318a1051ca46b5 by Miss Islington (bot) in branch '3.7': [3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777) (GH-19784) https://github.com/python/cpython/commit/adb1f853482e75e81ae0ae7307318a1051ca46b5

[issue40405] asyncio.as_completed documentation misleading

2020-04-29 Thread Bar Harel
Bar Harel added the comment: @Kyle, looks good to me. Maybe this will work better? Together with the current example which shows the "earliest_result" variable of course. "Each coroutine returns the next result from the set of the remaining awaitables, based upon the order of completion."

[issue40432] Pegen regenerate project for Windows not working

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

  1   2   >