[issue44913] segfault in call to embedded PyModule_New

2021-08-23 Thread hai shi
hai shi added the comment: This bpo isn't a bug, so I close it now. If there are some enhancements need to be discussed, we can reopen it:) -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +26377 pull_request: https://github.com/python/cpython/pull/27926 ___ Python tracker ___

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-23 Thread Xiaolong Liu
Xiaolong Liu added the comment: Andrei: No multiprocessing or multithreading was used when creating the zip file. -- ___ Python tracker ___

[issue44989] Fix documentation for truth testing

2021-08-23 Thread Steven D'Aprano
New submission from Steven D'Aprano : Truth testing states that "Any object can be tested for truth value" but from 3.9 onwards, doing so with NotImplemented is deprecated and will be made a TypeError. https://docs.python.org/3/library/stdtypes.html#truth-value-testing It is also not true

[issue44988] Use the newest tcl/tk support

2021-08-23 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +26376 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27925 ___ Python tracker

[issue44988] Use the newest tcl/tk support

2021-08-23 Thread 张峻铭
New submission from 张峻铭 <3180471...@qq.com>: The newest tcl/tk(8.7) has been released. If python uses the newest tcl/tk, tkinter will be better in these respects: 1. progressbar will be added text on it. 2. the scrollbar, text and canvas will be moved more smoothly. 3. tcl/tk8.7 includes

[issue42538] AsyncIO strange behaviour

2021-08-23 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> asyncio.create_task() documentation should mention user needs to keep reference to the task ___ Python tracker

[issue42538] AsyncIO strange behaviour

2021-08-23 Thread Nick Coghlan
Nick Coghlan added the comment: While filed later, issue44665 correctly describes the problem reported here: asyncio is behaving as expected, but the docs don't make it clear that you need to save a reference to the result of ensure_future()/create_task() if you don't want to risk the task

[issue44981] wildcard imports should normalise names in `__all__`

2021-08-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Mon, Aug 23, 2021 at 05:42:59PM +, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Should getattr() normalize attribute name? If no, it will produce > surprises further along the way. If yes, it will add significant > overhead.

[issue44987] Speed up unicode normalization of ASCII strings

2021-08-23 Thread Steven D'Aprano
New submission from Steven D'Aprano : I think there is an opportunity to speed up some unicode normalisations significantly. In 3.9 at least, the normalisation appears to be dependent on the length of the string: >>> setup="from unicodedata import normalize; s = 'reverse'" >>> t1 =

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: Liu: Thanks for the report! By the way on re-reading my message, of course by opening and closing archive on each file using the `with` block, you take care of the first issue I mentioned (although it's not very efficient). And I assume there was no

[issue44892] [configparser] Module configparser fails when the config file contains a "%" inside a commentary

2021-08-23 Thread Diego Ramirez
Change by Diego Ramirez : -- nosy: +uranusjr title: [configparser] Module configparser fails when the file contains a "%" inside a commentary -> [configparser] Module configparser fails when the config file contains a "%" inside a commentary ___

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-23 Thread Xiaolong Liu
Xiaolong Liu added the comment: Andrei: Never mind. Yes. It is hardly impossible to sort out a problem when it cannot be reproduced. Just close it plz. Anyway, many thanks for your suggestions. -- ___ Python tracker

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-08-23 Thread Diego Ramirez
Change by Diego Ramirez : -- nosy: +DiddiLeija ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread Mark Roseman
Mark Roseman added the comment: Łukasz, thank you very much for your help with getting these changes merged in! I hope others will chime in with suggestions and/or edits to the newer or substantially revised sections. There is most definitely lots of room for improvement. One specific

[issue44985] Inconsistent returned value of inspect.getfullargspec(object.__init__).

2021-08-23 Thread Eric V. Smith
Eric V. Smith added the comment: Well, as you note, technically object.__init__ does take args and kwargs. It just raises an exception if if finds any. What are you proposing to change here? -- components: -Distutils, Parser nosy: +eric.smith ___

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-23 Thread Bastian Neuburger
Bastian Neuburger added the comment: Update: .NET 3.5 installation worked out fine via VS 2019 installer, I also added the VS2017 build tools as a precaution since the VM builds take some time. Afterwards build.bat still failed during wix steps, complaining about missing python.exe in

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg400182 ___ Python tracker ___ ___ Python-bugs-list

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's pure python code for experimentation: from marshal import dumps, loads def marshal_set(s): return dumps(sorted(s, key=dumps)) def unmarshal_set(m): return frozenset(loads(m)) def test(s): assert

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-08-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset fa6304a5225787054067bb56089632146d288b20 by Idan Moral in branch 'main': bpo-44690: Adopt binacii.a2b_base64's strict mode in base64.b64decode (GH-27272) https://github.com/python/cpython/commit/fa6304a5225787054067bb56089632146d288b20

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not worried about the regex vs binascii C implementation performance at all. -- nosy: +gregory.p.smith ___ Python tracker ___

[issue44986] Date formats in help messages of argparse

2021-08-23 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +26375 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27923 ___ Python tracker

[issue44986] Date formats in help messages of argparse

2021-08-23 Thread Matías Senger
New submission from Matías Senger : If the help message of an argument in argparse contains a date format, e.g. %Y-%m-%d, it crashes when printing the help after being invoked with the -h option. Uploaded an example. -- components: Library (Lib) files: deleteme.py messages: 400183

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's pure python code for expirmentation: from marshal import dumps, loads def marshal_set(s): return dumps(sorted((dumps(value), value) for value in s)) def unmarshal_set(m): return {value for dump, value in loads(m)}

[issue44984] Rewrite test_null_strings in _testcapi

2021-08-23 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Serhiy! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I can clean it up and convert it to a PR if we decide > we want to go this route. +1 This is by far the smallest intervention that has been discussed. -- ___ Python tracker

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-23 Thread Steve Dower
Steve Dower added the comment: I don't think we upload the artifact from the MSI builds, sorry. If Visual Studio has an option for the older version of .NET, then yeah, that'll do it. But because it was an OS component, you may have to do it through the OS dialog in the link I posted.

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-23 Thread Bastian Neuburger
Bastian Neuburger added the comment: Ah ok. Do you know if VS 2019 will do the job at all? I encountered a few (unrelated) projects on github that state they will only build with VS 2017. I will install .NET 3.5 via the VS 2019 installer (should do the trick, right?) and see how it turns

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-23 Thread Steve Dower
Steve Dower added the comment: Oh I remember this one. The Wix toolset still requires .NET 3.5, which you have to install manually these days. Because it's being launched as a console app, the UI never gets triggered. I thought we had this in the devguide already... but maybe not (or not

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: Liu: apologies for the confusion, I missed that when coming back to the thread for the 2nd time. I took a look at the code and one potential issue I see is that you are opening the file in 'w' mode if stat size is 0 (or if file isn't valid), and in 'a'

[issue44962] asyncio.create_task weakrefset race condition

2021-08-23 Thread Thomas Grainger
Thomas Grainger added the comment: > weakref.WeakSet is not thread-safe, which means concurrent create_task's in > different threads (even on separate event loops) is not safe. actually it looks like WeakSet is *supposed* to be thread-safe ``` import patchy patchy.patch(

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-23 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > What about new tests and NEWS update? See PR 27642 for the expanded tests, and PR 27922 for amending news entries. I didn't combine the two, as I figured you might have more comments on the former PR. --

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread miss-islington
miss-islington added the comment: New changeset e4795103025aeef295a8c5f75cc7c33801f93a24 by Miss Islington (bot) in branch '3.10': bpo-42560: simplify/merge architecture info in Tkinter docs (GH-27839) https://github.com/python/cpython/commit/e4795103025aeef295a8c5f75cc7c33801f93a24

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-23 Thread Bastian Neuburger
Bastian Neuburger added the comment: Attached is the full output of: - msbuild.exe -version - get_externals.bat - build.bat For the first few build tasks there are git related errors, which make sense since I ran the build from a downloaded zip release of the source instead of a git clone.

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- Removed message: https://bugs.python.org/msg399133 ___ Python tracker ___ ___ Python-bugs-list

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26374 pull_request: https://github.com/python/cpython/pull/27922 ___ Python tracker ___

[issue44962] asyncio.create_task weakrefset race condition

2021-08-23 Thread Thomas Grainger
Change by Thomas Grainger : -- pull_requests: +26373 pull_request: https://github.com/python/cpython/pull/27921 ___ Python tracker ___

[issue44984] Rewrite test_null_strings in _testcapi

2021-08-23 Thread miss-islington
miss-islington added the comment: New changeset 6ff7fefc914541ec5afdd3c8193da80818cb0817 by Miss Islington (bot) in branch '3.10': bpo-44984: Rewrite test_null_strings in _testcapi (GH-27904) https://github.com/python/cpython/commit/6ff7fefc914541ec5afdd3c8193da80818cb0817 --

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +26372 pull_request: https://github.com/python/cpython/pull/27920 ___ Python tracker ___

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e41912c6348362489d2514565a70782591f23902 by Mark Roseman in branch 'main': bpo-42560: simplify/merge architecture info in Tkinter docs (GH-27839) https://github.com/python/cpython/commit/e41912c6348362489d2514565a70782591f23902 --

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread miss-islington
miss-islington added the comment: New changeset 8351df6e3652a41ffc720066a68b666bbef1df67 by Miss Islington (bot) in branch '3.10': bpo-42560: add warning to Tkinter docs about outdated pre-8.5 documentation online (GH-27836)

[issue44980] Clean up tests that return a value that isn't None

2021-08-23 Thread miss-islington
miss-islington added the comment: New changeset 10955353ce25a52741e8f72fdbb6f4b150ee4dc7 by Miss Islington (bot) in branch '3.10': bpo-44980: fix test_constructor to return None value (GH-27898) https://github.com/python/cpython/commit/10955353ce25a52741e8f72fdbb6f4b150ee4dc7 --

[issue44980] Clean up tests that return a value that isn't None

2021-08-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset de49eacee85dbd56bfa261200604766ca6042d66 by Miss Islington (bot) in branch '3.9': bpo-44980: fix test_constructor to return None value (GH-27898) (GH-27914) https://github.com/python/cpython/commit/de49eacee85dbd56bfa261200604766ca6042d66

[issue32397] textwrap output may change if you wrap a paragraph twice

2021-08-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- type: behavior -> enhancement versions: +Python 3.11 -Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Brandt Bucher
Brandt Bucher added the comment: This rough proof-of-concept seems to have the desired effect: diff --git a/Python/marshal.c b/Python/marshal.c index 1260704c74..70f9c4b109 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -503,9 +503,23 @@ w_complex_object(PyObject *v, char flag, WFILE

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-23 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > first-time contributors need a maintainer to approve the workflows for their > PRs How is manually dispatched workflows different from just opening a PR to your own fork? I do that from time to time in order to run the CI before opening a PR against

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +26371 pull_request: https://github.com/python/cpython/pull/27915 ___ Python tracker ___

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1eb451031a64b4f28d737ee7f394252ae9a76118 by Mark Roseman in branch 'main': bpo-42560: add warning to Tkinter docs about outdated pre-8.5 documentation online (GH-27836)

[issue44980] Clean up tests that return a value that isn't None

2021-08-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26369 pull_request: https://github.com/python/cpython/pull/27913 ___ Python tracker

[issue44980] Clean up tests that return a value that isn't None

2021-08-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 27b761a11a14521617a01257eb3767150bec3a74 by andrei kulakov in branch 'main': bpo-44980: fix test_constructor to return None value (GH-27898) https://github.com/python/cpython/commit/27b761a11a14521617a01257eb3767150bec3a74 -- nosy:

[issue44980] Clean up tests that return a value that isn't None

2021-08-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +26370 pull_request: https://github.com/python/cpython/pull/27914 ___ Python tracker ___

[issue44984] Rewrite test_null_strings in _testcapi

2021-08-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b0df288c946143352237f28c78481d935ba1502c by Łukasz Langa in branch '3.9': [3.9] bpo-44984: Rewrite test_null_strings in _testcapi (GH-27904) (GH-27910) https://github.com/python/cpython/commit/b0df288c946143352237f28c78481d935ba1502c --

[issue43306] Error in multiprocessing.Pool's initializer doesn't stop execution

2021-08-23 Thread Aaron
Aaron added the comment: What should the behavior be if an exception is raised in a pool worker during bootstrapping / initialization function execution? I think an exception should be raised in the process owning the Pool, and in the fix I'm tinkering around with I just raise a

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +26367 pull_request: https://github.com/python/cpython/pull/27911 ___ Python tracker ___

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +26368 pull_request: https://github.com/python/cpython/pull/27912 ___ Python tracker ___

[issue42560] Improve Tkinter Documentation

2021-08-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 08830a4f75553682e8d1ea6cdabd4c3472c59e28 by Mark Roseman in branch 'main': bpo-42560: rewrite of Tkinter docs "life preserver" (GH-27842) https://github.com/python/cpython/commit/08830a4f75553682e8d1ea6cdabd4c3472c59e28 --

[issue44984] Rewrite test_null_strings in _testcapi

2021-08-23 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26366 pull_request: https://github.com/python/cpython/pull/27910 ___ Python tracker ___

[issue44962] asyncio.create_task weakrefset race condition

2021-08-23 Thread Thomas Grainger
Change by Thomas Grainger : -- keywords: +patch pull_requests: +26365 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27909 ___ Python tracker ___

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Brandt Bucher
Brandt Bucher added the comment: Ah, yeah. Could we add a flag to disable the reference mechanism, just for frozenset elements? It would make marshalled frozensets a bit bigger (unless we re-marshalled each one after sorting)... but I still prefer that to adding more logic/subclasses to

[issue44984] Rewrite test_null_strings in _testcapi

2021-08-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4d689173861257c69adc6dc1dca4171946ddb57f by Serhiy Storchaka in branch 'main': bpo-44984: Rewrite test_null_strings in _testcapi (GH-27904) https://github.com/python/cpython/commit/4d689173861257c69adc6dc1dca4171946ddb57f -- nosy:

[issue44984] Rewrite test_null_strings in _testcapi

2021-08-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26364 pull_request: https://github.com/python/cpython/pull/27908 ___ Python tracker

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-23 Thread Steve Dower
Steve Dower added the comment: > I think you could also test this out by going to my fork ... Good point, and I can't trigger a build on your fork. This seems okay to me. -- ___ Python tracker

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, it cannot be fixed in marshal itself. s = {("string", 1), ("string", 2), ("string", 3)} All tuples contain references to the same string. The first serialized tuple will contain serialization of the string, all other will contain references to it. So

[issue44981] wildcard imports should normalise names in `__all__`

2021-08-23 Thread Eric V. Smith
Eric V. Smith added the comment: How about making it an error to have non-NFKC normalized names in __all__? -- ___ Python tracker ___

[issue44981] wildcard imports should normalise names in `__all__`

2021-08-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should getattr() normalize attribute name? If no, it will produce surprises further along the way. If yes, it will add significant overhead. Even star-import can get significant impact. -- nosy: +serhiy.storchaka

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Brandt Bucher
Brandt Bucher added the comment: Could this issue be fixed in marshal itself? Off the top of my head, one possible option could be to use the marshalled bytes of each elements as a sort key, rather than the elements themselves. So serialize, *then* sort? --

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-08-23 Thread miss-islington
miss-islington added the comment: New changeset 27f2f62ad490afc8e4dd6d80351916a9d06b97e3 by Miss Islington (bot) in branch '3.10': bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-23 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-08-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1a995b0ceefdf7eb59963f3ab395c47d8da226e3 by Ken Jin in branch 'main': bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872) https://github.com/python/cpython/commit/1a995b0ceefdf7eb59963f3ab395c47d8da226e3 --

[issue43306] Error in multiprocessing.Pool's initializer doesn't stop execution

2021-08-23 Thread Aaron
Aaron added the comment: I ran into this bug answering this question on Stack Overflow: https://stackoverflow.com/questions/68890437/cannot-use-result-from-multiprocess-pool-directly I have minimized the code required to replicate the behavior, but it boils down to: when using "spawn" to

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-23 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: > On the main request, provided the workflow_dispatch is only triggerable by > non-contributors in their own fork (without any of our tokens/etc.) then it's > fine by me. If it allows anyone to trigger CI builds against the main repo, > I'd rather

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-23 Thread Steve Dower
Steve Dower added the comment: I kicked off the build on the PR so we can see what errors it finds. Nothing jumps out as obviously wrong in the changes, but it only takes one missing reference to a file to break it all. If you want to share the errors from your test machine, copy-pasting

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-23 Thread Steve Dower
Steve Dower added the comment: > first-time contributors need a maintainer to approve the workflows for their > PRs This is an important security consideration, so I'd rather not go and change it. On the main request, provided the workflow_dispatch is only triggerable by non-contributors

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-23 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: Another observation, first-time contributors need a maintainer to approve the workflows for their PRs -- from the looks of it that isn't an instant process and could take a few days, so this also gives first-time contributors a way to check their

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-23 Thread Brett Cannon
Brett Cannon added the comment: Add Lukasz to get his opinion on this idea. -- nosy: +lukasz.langa ___ Python tracker ___ ___

[issue44985] Inconsistent returned value of inspect.getfullargspec(object.__init__).

2021-08-23 Thread Mehrzad
New submission from Mehrzad : The inspection `inspect.getfullargspec(object.__init__)` shows that `object.__init__` takes both varargs (starred) and varkw (double-starred) arguments.* However, it is impossible to call `object.__init__` with varargs or varkw arguments. If one tries to call

[issue44981] wildcard imports should normalise names in `__all__`

2021-08-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: Okay, reopening the ticket with a new description. `from module import *` should use the same NFKC normalisation on the names in `__all__`. To be clear, I don't propose that `__all__` should be modified. -- resolution: not a bug -> stage:

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-23 Thread Xiaolong Liu
Xiaolong Liu added the comment: It seems the indents were automatically removed in the message box. I shared the code snippet formmated here: https://www.online-python.com/cDojvl2CMS -- ___ Python tracker

[issue44982] Add vendor information

2021-08-23 Thread Filipe Laíns
Filipe Laíns added the comment: > I am unsure if having two different interpreters is a good solution, and it > certainly requires some cooperation with distros. That is not the goal with this! I think both this issue and the PEP are parallel. My goal here is to streamline the vendor

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-23 Thread Xiaolong Liu
Xiaolong Liu added the comment: Serhiy: Thanks for your explanation. The file was created by zipfile module. I used the script hundreds of times, while only once (the uploaded zipped file) was abnormal. Since the project ended a long time ago, I cannot reproduce the error right now. I

[issue44984] Rewrite test_null_strings in _testcapi

2021-08-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26362 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27904 ___ Python tracker

[issue44984] Rewrite test_null_strings in _testcapi

2021-08-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : test_null_strings in Modules/_testcapimodule.c was initially added in 7580146b5c7025976f0907a9893e01dc3d3d3457 for testing PyObject_Str(NULL) and PyObject_Unicode(NULL). PyObject_Unicode() was removed in 3.0, so now the test calls PyObject_Str(NULL)

[issue44982] Add vendor information

2021-08-23 Thread Matthias Klose
Matthias Klose added the comment: A bunch of people, consisting of Filipe Lains himself, Geoffrey Thomas, Donald Stufft, Tzu-Ping Chung, Pradyun Gedam, Stefano Rivera, Elana Hashman, and myself (Matthias Klose), and with feedback from Carol Willing and Christian Heimes were preparing a PEP

[issue40951] csv skipinitialspace no longer working

2021-08-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: I cannot reproduce with 3.7.7, when run with the linked example, the output looks fine: ['country_id', 'country_name', 'region_id'] ['AR', 'Argentina', '2'] ['AU', 'Australia', '3'] ['BE', 'Belgium', '1'] ['BR', 'Brazil', '2'] ['CA', 'Canada', '2'] I think

[issue44983] Wrong definition of a starred expression in the Language Reference

2021-08-23 Thread Takuo Matsuoka
New submission from Takuo Matsuoka : Being unaware of the processes here, I have posted the issue to the python-idea mailing list. Please refer to it. https://mail.python.org/archives/list/python-id...@python.org/message/TCWYZIIRZWIR7CDJWDAUBCAMU2CBFB3Y/ Thank you. -- assignee:

[issue44982] Add vendor information

2021-08-23 Thread Filipe Laíns
New submission from Filipe Laíns : In the effort of making the UX better with vendored Python versions, I think it would make sense to track and expose vendor information. Initially, the vendor information would be comprised of two fields, the vendor string (eg. `Debian`) and the vendor name

[issue28474] WinError(): Python int too large to convert to C long

2021-08-23 Thread Adam Meily
Adam Meily added the comment: I can potentially take a stab at writing up a PR for this. I've also seen this affecting other locations that eventually call FormatMessage, including: - ctypes.format_error() - this original issue - os.strerror() - OSError(winerror=X) I will most likely look

[issue44913] segfault in call to embedded PyModule_New

2021-08-23 Thread hai shi
hai shi added the comment: > Or are you saying something can be done in Python's components to handle this use case transparently? so the user won't have to put GIL locks in his code. Sorry, I don't explain it good enough. You have said what I wanted to say:) > Yes, but if the extension is

[issue39232] asyncio crashes when tearing down the proactor event loop

2021-08-23 Thread Shane Mai
Shane Mai added the comment: I added some code to wait for all tasks completion before exit: currentTask = asyncio.current_task() for t in asyncio.all_tasks(): if currentTask != t: await t and still got the exception Then I think it created additional thread

[issue44913] segfault in call to embedded PyModule_New

2021-08-23 Thread Madhu
Madhu added the comment: * hai shi <1629695372.88.0.481350414879.issue44...@roundup.psfhosted.org> Wrote on Mon, 23 Aug 2021 05:09:32 + > hai shi added the comment: >> which can be wrapped within the calls to PyGILState_Ensure/Release. > OK, it's a good idea. But I think this

[issue43075] ReDoS in urllib.request

2021-08-23 Thread Gianluca Gabrielli
Gianluca Gabrielli added the comment: RedHat has now assigned CVE-2021-3733 to this security bug. -- nosy: +crazybyte ___ Python tracker ___

[issue44981] `module has no attribute` when `__all__` includes certain unicode characters

2021-08-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2021-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: We've got some buildbot failures; GH-27902 should fix them. Apologies for not catching this while reviewing GH-27901. -- ___ Python tracker

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2021-08-23 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: +26360 pull_request: https://github.com/python/cpython/pull/27902 ___ Python tracker ___

[issue44979] pathlib: support relative path construction

2021-08-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I am rejecting this for the reasons explained in the Github PR: """This seems like an extremely specific API. Perhaps you want to propose it for inclusion in pytest, but I don't think it belongs in pathlib. (also, it's not difficult to spell out

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2021-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: > If SupportsComplex and SupportsBytes are just for "has __complex__/__bytes__ > method", they are virtually useless. I agree that "SupportsComplex" isn't directly useful in user-land. I think its main value is as a building block in things like

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2021-08-23 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 24b63c695ae0a95b06379eaadace66735abac1e2 by Dong-hee Na in branch 'main': bpo-24234: Implement bytes.__bytes__ (GH-27901) https://github.com/python/cpython/commit/24b63c695ae0a95b06379eaadace66735abac1e2 --

[issue44019] operator.call/operator.__call__

2021-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: This seems like a reasonable addition to me. Victor: any thoughts? -- nosy: +mark.dickinson, vstinner ___ Python tracker ___

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2021-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 6082bb5addab93755ab6e2bd2ed6021b391e10d1 by Mark Dickinson in branch 'main': bpo-24234: implement complex.__complex__ (GH-27887) https://github.com/python/cpython/commit/6082bb5addab93755ab6e2bd2ed6021b391e10d1 --

  1   2   >