[issue45296] IDLE: Better document close and exit.

2021-09-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unfortunately, I have discovered, the new wording is better but only correct for IDLE when Shell is the only window. On the file menu, I want to: A. Change 'Close' to 'Close Window', so it is clear that 'Close'/Alt-F4 only close the window and not IDLE. B.

FlaskCon's CFP is now open till Oct 24

2021-09-28 Thread Abdur-Rahmaan Janhangeer
Greetings folks, FlaskCon is around again this year, the very latest conf of the year. Bouncing in the first week of December, 1 2 3 4. CFP is open, submit -> https://flaskcon.com/ Any queries, let them fly to flask...@gmail.com Kind Regards, Abdur-Rahmaan Janhangeer about

[issue45308] multiprocessing default fork child process will not free object, which is inherited from parent process

2021-09-28 Thread eleven xiang
Change by eleven xiang : -- resolution: not a bug -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45308] multiprocessing default fork child process will not free object, which is inherited from parent process

2021-09-28 Thread eleven xiang
eleven xiang added the comment: Below is the log: // parent process call and increase it from 10 to 11. process 71481, this = 0x7f4f271b5054, m_val = 10, A constructor called!!! process 71481, this = 0x7f4f271b5054, m_val = 11, INC called!!! // child process inherit with 11, and then also

[issue45308] multiprocessing default fork child process will not free object, which is inherited from parent process

2021-09-28 Thread eleven xiang
eleven xiang added the comment: I still have some questions about is, so re-open it. You mean it is the fork principle, but if change the script to use os.fork(), the child process will inherit from parent, and also free it. You could refer below change: from ctypes import cdll import

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 12:06 PM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > ... Or, even better, to be able to read off a hex dump and see E8 03 > > and instantly read it as "1,000 little-endian". > > 59535 big endian. Warningm flamebait ahead: Who thinks in little > endian? (I was raised

[issue40321] urllib.request does not support HTTP response status code 308

2021-09-28 Thread Roland Crosby
Roland Crosby added the comment: Hi, wanted to ping those watching this issue - there is a complete PR on GitHub, and all contributors have signed the CLA, but the bot hasn't updated the CLA status on the PR so it's still shown as blocking. Would appreciate if someone could manually fix the

Re: OT: AttributeError

2021-09-28 Thread 2QdxY4RzWzUUiLuE
On 2021-09-29 at 09:21:34 +1000, Chris Angelico wrote: > ... read off a hex dump and see E8 > 03 and instantly read it as "1,000 little-endian". ITYM 000,1 little-endian. ;-) (Or possibly 000.1, depending on your locale.) -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: AttributeError

2021-09-28 Thread 2QdxY4RzWzUUiLuE
On 2021-09-29 at 09:21:34 +1000, Chris Angelico wrote: > On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > > > On 2021-09-29 at 11:38:22 +1300, > > dn via Python-list wrote: > > > > > For those of us who remember/can compute in binary, octal, hex, or > > > decimal

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 11:59 AM dn via Python-list wrote: > If I hold up two fingers, am I insulting you, or asking for three of > something? > A Roman soldier walked into a bar holding up two fingers. "Five beers, please" ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: AttributeError

2021-09-28 Thread dn via Python-list
On 29/09/2021 12.21, Chris Angelico wrote: > On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: >> >> On 2021-09-29 at 11:38:22 +1300, >> dn via Python-list wrote: >> >>> For those of us who remember/can compute in binary, octal, hex, or >>> decimal as-needed: >>> Why do

[issue45313] Counter.elements() wrong error message

2021-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: The elements() method is working correctly: >>> from collections import Counter >>> aCounter = Counter('abracadabra') >>> list(aCounter.elements()) ['a', 'a', 'a', 'a', 'a', 'b', 'b', 'r', 'r', 'c', 'd'] No arguments should be passed into

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 10:06 AM Greg Ewing wrote: > > On 29/09/21 12:21 pm, Chris Angelico wrote: > > to the extent that you automatically read 65 and 0x41 as the same > > number. > > Am I too geeky for reading both of them as 'A'? > Not even slightly, and I did deliberately choose a printable

Re: OT: AttributeError

2021-09-28 Thread Greg Ewing
On 29/09/21 12:21 pm, Chris Angelico wrote: to the extent that you automatically read 65 and 0x41 as the same number. Am I too geeky for reading both of them as 'A'? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-09-28 Thread STINNER Victor
Change by STINNER Victor : -- Removed message: https://bugs.python.org/msg394832 ___ Python tracker ___ ___ Python-bugs-list

Re: XML Considered Harmful

2021-09-28 Thread dn via Python-list
On 29/09/2021 06.53, Michael F. Stemper wrote: > On 28/09/2021 10.53, Stefan Ram wrote: >> "Michael F. Stemper" writes: >>> Well, I could continue to hard-code the data into one of the test >>> programs >> >>    One can employ a gradual path from a program with hardcoded >>    data to an entity

Re: XML Considered Harmful

2021-09-28 Thread Greg Ewing
On 29/09/21 4:37 am, Michael F. Stemper wrote: I'm talking about something made from tons of iron and copper that is oil-filled and rotates at 1800 rpm. To avoid confusion, we should rename them "electricity comprehensions". -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-09-29 at 11:38:22 +1300, > dn via Python-list wrote: > > > For those of us who remember/can compute in binary, octal, hex, or > > decimal as-needed: > > Why do programmers confuse All Hallows'/Halloween for

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-09-28 Thread Guido van Rossum
Guido van Rossum added the comment: Shouldn't we just close the issue and the unused PR? Otherwise we'll just have yet another vague bpo issue that doesn't have anything particularly actionable -- "there's some code that could be refactored" is not enough of a reason to have a bpo issue

Re: OT: AttributeError

2021-09-28 Thread 2QdxY4RzWzUUiLuE
On 2021-09-29 at 11:38:22 +1300, dn via Python-list wrote: > For those of us who remember/can compute in binary, octal, hex, or > decimal as-needed: > Why do programmers confuse All Hallows'/Halloween for Christmas Day? That one is also very old. (Yes, I know the answer. No, I will not spoil

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-09-28 Thread Eric Snow
Eric Snow added the comment: I have what I need for now (stdlib dir). There may be more info to preserve, but I'll leave it others to pursue that. -- assignee: eric.snow -> ___ Python tracker

OT: AttributeError

2021-09-28 Thread dn via Python-list
On 29/09/2021 10.50, Stefan Ram wrote: > (For Python programmers who have watched "Game of Thrones".) > > |>>> class girl: > |... pass > |... > |>>> girl = girl() > |>>> print( girl.name ) > |Traceback (most recent call last): > | File "", line 1, in > |AttributeError: A girl has no name.

Re: XML Considered Harmful

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 8:00 AM Stefan Ram wrote: > JSON is a kind of a subset of JavaScript for JavaScript > programmers. In Python, we can use JSON too, or we can > use Python itself. > > When some external requirement to use a data exchange > notation like JSON should appear, one can

[issue22239] asyncio: nested event loop

2021-09-28 Thread Rob Moore
Change by Rob Moore : -- nosy: +rob.moore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45269] c_make_encoder() has uncovered error: "argument 1 must be dict or None"

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

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Steve Dower
Steve Dower added the comment: Looks like you should take the discussion to issue35665, and this one can stay closed. -- ___ Python tracker ___

[issue45269] c_make_encoder() has uncovered error: "argument 1 must be dict or None"

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1cb17be3e6a4d94629606a613acd07f78d50348b by Miss Islington (bot) in branch '3.10': bpo-45269: test wrong `markers` type to `c_make_encoder` (GH-28540) (GH-28609) https://github.com/python/cpython/commit/1cb17be3e6a4d94629606a613acd07f78d50348b

[issue45269] c_make_encoder() has uncovered error: "argument 1 must be dict or None"

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c6b5ceae3475d7782ed88f4e54bdb2232a8eb088 by Miss Islington (bot) in branch '3.9': bpo-45269: test wrong `markers` type to `c_make_encoder` (GH-28540) (GH-28610) https://github.com/python/cpython/commit/c6b5ceae3475d7782ed88f4e54bdb2232a8eb088

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2021-09-28 Thread pukkandan
pukkandan added the comment: > A workaround for Python would require a major rewrite of the Windows CA store > integration. We don't have any capacity to work on that area In theory, the issue can be worked around by simply loading each certificate separately. See

[issue45269] c_make_encoder() has uncovered error: "argument 1 must be dict or None"

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e046aabbe386fdf32bae6ffb7fae5ce479fd10c6 by Nikita Sobolev in branch 'main': bpo-45269: test wrong `markers` type to `c_make_encoder` (GH-28540) https://github.com/python/cpython/commit/e046aabbe386fdf32bae6ffb7fae5ce479fd10c6 -- nosy:

[issue45269] c_make_encoder() has uncovered error: "argument 1 must be dict or None"

2021-09-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26980 pull_request: https://github.com/python/cpython/pull/28609 ___ Python tracker

[issue45269] c_make_encoder() has uncovered error: "argument 1 must be dict or None"

2021-09-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +26981 pull_request: https://github.com/python/cpython/pull/28610 ___ Python tracker ___

[issue45307] Removal of _PyImport_FindExtensionObject() in 3.10 limits custom extension module loaders

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ec4e2ec241acb3bf4e04a351c06c0b05a1e4b7d2 by Serhiy Storchaka in branch '3.10': [3.10] bpo-45307: Restore private C API function _PyImport_FindExtensionObject() (GH-28594)

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-09-28 Thread Sebastian Berg
Sebastian Berg added the comment: > But if tp_name is created dynamically, it could lead to a dangling pointer. I will guess this is probably just an oversight/bug since the main aim was to move towards heap-types, and opened an issue: https://bugs.python.org/issue45315 --

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2021-09-28 Thread Christian Heimes
Christian Heimes added the comment: Could you please open an OpenSSL bug on the projects bug tracker https://github.com/openssl/openssl/ and explain the issue there? They might be able to implement a workaround for the broken certificates or advise you how to handle the invalid

[issue45315] `PyType_FromSpec` does not copy the name

2021-09-28 Thread Sebastian Berg
New submission from Sebastian Berg : As noted in the issue: https://bugs.python.org/issue15870#msg402800 `PyType_FromSpec` assumes that the `name` passed is persistent for the program lifetime. This seems wrong/unnecessary: We are creating a heap-type, a heap-type's name is stored as a

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Christian Heimes
Change by Christian Heimes : -- assignee: christian.heimes -> nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list

[issue35606] Add prod() function to the math module

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset cd00fee8dd63bc3a1360280f55640409cb579a05 by Miss Islington (bot) in branch '3.9': bpo-35606: Fix math.prod tests using 'start' as keyword parameter (GH-28595) (GH-28604)

[issue41223] `object`-backed `memoryview`'s `tolist` errors

2021-09-28 Thread Dennis Sweeney
Dennis Sweeney added the comment: Can you describe your use-case more? In particular, why use memoryview(a).tolist() instead of a.tolist()? Or some other numpy operations like a.flat or a.view()? Or even numpy.array(memoryview(a)) to recover a numpy array from a memoryview? If this were

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Pedjas
Pedjas added the comment: This hurts number of Python applications, even those published by large players. Basically, any attempt to read any certificate (for example to load any https url) fails due to this issue. For example: - QGIS fails to load map tiles on https links. Python issue

RE: XML Considered Harmful

2021-09-28 Thread Avi Gross via Python-list
Not lucky at all, Michael. The problem is he published a number of things with Paul Erdős a few years after I got my degrees and went to Bell laboratories. I never met Erdős but he was prolific and had 507 people publish with him as co-authors. I would have loved to as I also speak languages he

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-09-28 Thread Josh Haberman
Josh Haberman added the comment: > Everything is copied by `_FromSpec` after all. One thing I noticed isn't copied is the string pointed to by tp_name: https://github.com/python/cpython/blob/0c50b8c0b8274d54d6b71ed7bd21057d3642f138/Objects/typeobject.c#L3427 This isn't an issue if tp_name

Re: XML Considered Harmful

2021-09-28 Thread Michael F. Stemper
On 28/09/2021 13.27, Avi Gross wrote: Well, Michael, if you want to go back to the eighties, and people you worked with, I did my Thesis with a professor who later had an Erdős number of 1! Too bad I never got around to publishing something with him or I could have been a 2! Lucky you. If a

Re: XML Considered Harmful

2021-09-28 Thread Karsten Hilbert
Am Tue, Sep 28, 2021 at 12:53:49PM -0500 schrieb Michael F. Stemper: > This sounds like a suggestion that I hard-code the data into a > module. I suppose that I could have half-a-dozen modules with > different data sets and ln them as required: > > $ rm GenData.py* FuelData.py* > $ ln gendata1.py

RE: XML Considered Harmful

2021-09-28 Thread Avi Gross via Python-list
Well, Michael, if you want to go back to the eighties, and people you worked with, I did my Thesis with a professor who later had an Erdős number of 1! Too bad I never got around to publishing something with him or I could have been a 2! But that work, being so long ago, was not in Python but

RE: XML Considered Harmful

2021-09-28 Thread Avi Gross via Python-list
I replied to Michael privately but am intrigued by his words here: "The thing that creates realistic test cases is my brain." I consider extensions to my brain to include using a language like Python on my computer and in particular, to take a model I think of and instantiate it. Lots of people

[issue45314] Using target python while cross-building

2021-09-28 Thread Frans
New submission from Frans : While trying to cross-compile Python-3.9.7, I came across the next error report: i586-cross-linux-gcc -Xlinker -export-dynamic -o python Programs/python.o -L. -lpython3.9 -lcrypt -ldl -lpthread -lm -lm

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-09-28 Thread Eric Snow
Eric Snow added the comment: New changeset 0c50b8c0b8274d54d6b71ed7bd21057d3642f138 by Eric Snow in branch 'main': bpo-45211: Remember the stdlib dir during startup. (gh-28586) https://github.com/python/cpython/commit/0c50b8c0b8274d54d6b71ed7bd21057d3642f138 --

Re: XML Considered Harmful

2021-09-28 Thread Michael F. Stemper
On 28/09/2021 10.53, Stefan Ram wrote: "Michael F. Stemper" writes: Well, I could continue to hard-code the data into one of the test programs One can employ a gradual path from a program with hardcoded data to an entity sharable by different programs. When I am hurried to rush to

[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-09-28 Thread sping
sping added the comment: For the AIX link error that Pablo brought up, there is merged pull request https://github.com/libexpat/libexpat/pull/510 upstream. -- ___ Python tracker

[issue45313] Counter.elements() wrong error message

2021-09-28 Thread Eric V. Smith
Eric V. Smith added the comment: When reporting a bug, please give a full example that we can run. I assume aCounter is of type collections.Counter? Assuming so, the "1 positional argument" is "self". The second argument is the number 1, which is an error. So the error is correct.

[issue45313] Counter.elements() wrong error message

2021-09-28 Thread bytebites
New submission from bytebites : aCounter.elements(1) gives wrong error message: TypeError: Counter.elements() takes 1 positional argument but 2 were given -- messages: 402795 nosy: bytebites priority: normal severity: normal status: open title: Counter.elements() wrong error message

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2021-09-28 Thread Dimitrije Milović
Dimitrije Milović added the comment: Maybe better to continue in my newly opened tread https://bugs.python.org/issue45312 since I suppose I wasn't correctly specific (read I am a noob!), and pukkandan was more so. And my government fixing their certificates?! No chance i hell, they are like

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-09-28 Thread Sebastian Berg
Sebastian Berg added the comment: Just to note, that there are two – somewhat distinct – issues here in my opinion: 1. `FromSpec` does not scan `bases` for the correct metaclass, which it could; this could even be considered a bug? 2. You cannot pass in a desired metaclass, which may require

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2021-09-28 Thread Christian Heimes
Christian Heimes added the comment: We cannot fix the issue in Python. Please report the problem to OpenSSL and to your government. Either OpenSSL needs to relax its cert parser again or your government has to replace the broken certificates with correct certificates. -- assignee:

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: +Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute superseder: -> Function ssl.create_default_context raises exception on Windows 10 when called with

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread pukkandan
pukkandan added the comment: Also, the pictures uploaded by the OP are misleading since they are from a version of the code that was specifically intended for debugging the issue. the problem can be better seen in this comment

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Steve Dower
Steve Dower added the comment: Adding Christian, as he's our expert in this area, and was also driving the other bug. -- assignee: -> christian.heimes components: +SSL nosy: +christian.heimes ___ Python tracker

Re: XML Considered Harmful

2021-09-28 Thread Michael F. Stemper
On 28/09/2021 02.25, Peter J. Holzer wrote: On 2021-09-27 21:01:04 -0400, Avi Gross via Python-list wrote: You keep talking about generators, though. If the generators are outside of your program, then yes, you need to read in whatever they produce. As I understood it, the "generators" don't

Re: XML Considered Harmful

2021-09-28 Thread Michael F. Stemper
On 27/09/2021 20.01, Avi Gross wrote: Michael, Given your further explanation, indeed reading varying numbers of points in using a CSV is not valid, albeit someone might just make N columns (maybe a few more than 7) to handle a hopefully worst case. Definitely it makes more sense to read in a

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread pukkandan
pukkandan added the comment: Hi, I am the maintainer of the above mentioned project. I was planning to implement a patch for this. But I asked OP to report the issue here anyway since I do not believe this is the intended behavior. For context, the issue is occurring when using the

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Steve Dower
Steve Dower added the comment: Python doesn't include any trusted certificates - it reads them from the operating system. So you'll need to get the operating system vendors to include it if you want it to be trusted by default. Additionally, some libraries include a copy of Mozilla's bundle

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Dimitrije Milović
Dimitrije Milović added the comment: OK, will let the yt-dlp author pukkandan on GitHub know. Thanks for the quick answer. The only downside in this will be that this will have to be donne for many programs and scripts in the future; and for more and more persons (using our ID certificate

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Steve Dower
Steve Dower added the comment: This needs to be a feature request against the script that you're running. They have the option of not verifying TLS certificates if they choose not to, but they are explicitly enabling the checks right now. We can't add a command line option to disable it for

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Steve Dower
Steve Dower added the comment: The goal is reduced stack depth, not reframing the entire call model around not having a C stack. We can't even reasonably rewrite getattr() without supporting callbacks from C into Python, so further generalisation is very unlikely. But if you inspect the

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Dimitrije Milović
Change by Dimitrije Milović : Added file: https://bugs.python.org/file50314/135087546-e6fd1b05-6858-4e0f-ad3f-857c614bb15b.png ___ Python tracker ___

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Dimitrije Milović
Change by Dimitrije Milović : Added file: https://bugs.python.org/file50313/135081521-83d466d9-c71d-465c-96a2-652c2549c461.png ___ Python tracker ___

[issue45312] "MUPCA Root" Certificates - treated as invalid and cause error, but are walid and necessary

2021-09-28 Thread Dimitrije Milović
New submission from Dimitrije Milović : I just commented to the issue here https://bugs.python.org/issue35665?@ok_message=issue%2035665%20files%20edited%20ok&@template=item, but noticed "closed" so better start a new one issue, and to further update the importance of those certificates... I

[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-09-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The backport to 3.8 broke 3.8.12 in AIX: 0/Modules/_decimal/libmpdec/sixstep.o build/temp.aix-7.1-3.8/tmp/python3.8-3.8.12-0/Modules/_decimal/libmpdec/transpose.o -L. -L/opt/bb/lib -L/opt/bb/lib64 -R/opt/bb/lib64 -lm -o

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2021-09-28 Thread Dimitrije Milović
Change by Dimitrije Milović : Removed file: https://bugs.python.org/file50310/Untitled.png ___ Python tracker ___ ___ Python-bugs-list

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2021-09-28 Thread Dimitrije Milović
Change by Dimitrije Milović : Added file: https://bugs.python.org/file50311/Untitled.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2021-09-28 Thread Dimitrije Milović
Dimitrije Milović added the comment: Just to ad to the issue, and to further update the importance of those certificates... I came to this issue (still persistent with all python versions since 3.6) while using yt-dlp: https://github.com/yt-dlp/yt-dlp/issues/1060 I obviously have the SAME

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2021-09-28 Thread Dimitrije Milović
Change by Dimitrije Milović : Added file: https://bugs.python.org/file50310/Untitled.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44919] TypedDict subtypes ignore any other metaclasses in 3.9+

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: The change to disallow this in Python 3.9 was deliberate, see BPO-40187 and its description. Your attempt to make `isinstance()` work with TypedDict subclasses goes directly against this design. In fact, PEP 589 explicitly says that: - Methods are not

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Christian Tismer
Christian Tismer added the comment: Very much appreciated approach. Too bad that things stop when people are writing extensions as usual. Or do you think we can teach them how to avoid the C stack? Anyway, good luck! -- ___ Python tracker

[issue28206] signal.Signals not documented

2021-09-28 Thread Hinrich Mahler
Change by Hinrich Mahler : -- nosy: +Bibo-Joshi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45311] Threading Semaphore and BoundedSemaphore release method implementation improvement

2021-09-28 Thread Besart Dollma
New submission from Besart Dollma : Hi, I was looking at the implementation of Semaphore and BoundedSemaphore in threading.py and I saw that `notify` is called on a loop n times while it supports an n parameter.

[issue35606] Add prod() function to the math module

2021-09-28 Thread miss-islington
miss-islington added the comment: New changeset fd52afd1928643a715202147b1ce5b0d130ec252 by Miss Islington (bot) in branch '3.10': bpo-35606: Fix math.prod tests using 'start' as keyword parameter (GH-28595) https://github.com/python/cpython/commit/fd52afd1928643a715202147b1ce5b0d130ec252

[issue45307] Removal of _PyImport_FindExtensionObject() in 3.10 limits custom extension module loaders

2021-09-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I don't understand which long term solution do you propose. A kind reminder that for 3.10 we cannot add new APIs so this proposal still *makes sense* for the short term (3.10). -- ___ Python tracker

[issue45307] Removal of _PyImport_FindExtensionObject() in 3.10 limits custom extension module loaders

2021-09-28 Thread STINNER Victor
STINNER Victor added the comment: > Until 3.10 makes equivalent functionality available or another workaround is > supported, I don't understand which long term solution do you propose. > a properly designed public API is probably a better solution Can you propose a public API? --

[issue45296] IDLE: Change Ctrl-Z note in exit/quit repr on Windows

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: The wording chosen by Terry, i.e. "Ctrl-D (end-of-file)", is pretty clear. Merged and fixed. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45296] IDLE: Change Ctrl-Z note in exit/quit repr on Windows

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset acd46feff3c06d3f1d00ab850e530c519445a737 by Miss Islington (bot) in branch '3.10': bpo-45296: Fix exit/quit message on Windows (GH-28577) (GH-28600) https://github.com/python/cpython/commit/acd46feff3c06d3f1d00ab850e530c519445a737 --

[issue45296] IDLE: Change Ctrl-Z note in exit/quit repr on Windows

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 813fbba4cab4556e55d6044c05725a26ec20b648 by Miss Islington (bot) in branch '3.9': bpo-45296: Fix exit/quit message on Windows (GH-28577) (GH-28601) https://github.com/python/cpython/commit/813fbba4cab4556e55d6044c05725a26ec20b648 --

[issue35606] Add prod() function to the math module

2021-09-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +26979 pull_request: https://github.com/python/cpython/pull/28604 ___ Python tracker ___

[issue35606] Add prod() function to the math module

2021-09-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 84975146a7ce64f1d50dcec8311b7f7188a5c962 by Pablo Galindo Salgado in branch 'main': bpo-35606: Fix math.prod tests using 'start' as keyword parameter (GH-28595)

[issue35606] Add prod() function to the math module

2021-09-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 11.0 -> 12.0 pull_requests: +26978 pull_request: https://github.com/python/cpython/pull/28603 ___ Python tracker

[issue45254] HAS_SHMEM detection logic is duplicated in implementation and tests

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: The logic is currently duplicated because trying to import `shared_memory` is how support discovery is supposed to work in user code. `multiprocessing.managers` doesn't export HAS_SHMEM (it's not in `__all__` and it's not documented). Making tests rely on it

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-09-28 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Fedora Stable LTO + PGO 3.10 (build 357): https://buildbot.python.org/all/#/builders/651/builds/357 First test_multiprocessing_forkserver failed, then test_multiprocessing_spawn, then test_multiprocessing_fork. I confirm that these tests fail if the

[issue45308] multiprocessing default fork child process will not free object, which is inherited from parent process

2021-09-28 Thread STINNER Victor
STINNER Victor added the comment: That's the principle of fork. You should use a different spawn method if you don't want to inherit resources inherited from the parent process, like spawn or forkserver: https://docs.python.org/dev/library/multiprocessing.html#contexts-and-start-methods

[issue45296] IDLE: Change Ctrl-Z note in exit/quit repr on Windows

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e649e0658ff2af87b07d994c05ae048e16e31aae by Terry Jan Reedy in branch 'main': bpo-45296: Fix exit/quit message on Windows (GH-28577) https://github.com/python/cpython/commit/e649e0658ff2af87b07d994c05ae048e16e31aae -- nosy: +lukasz.langa

[issue45296] IDLE: Change Ctrl-Z note in exit/quit repr on Windows

2021-09-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +26977 pull_request: https://github.com/python/cpython/pull/28601 ___ Python tracker ___

[issue45296] IDLE: Change Ctrl-Z note in exit/quit repr on Windows

2021-09-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26976 pull_request: https://github.com/python/cpython/pull/28600 ___ Python tracker

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We are starting to optimize first the easy cases of CALL_FUNCTION and move slowly to add more and more calls into it. This approach has the advantage that allow us to take it in small increments. -- ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Christian Tismer
Christian Tismer added the comment: FWIW, getting all function to avoid the C stack will most probably take a long time, if it happens at all. Especially functions which might call into Python multiple times must be re-designed heavily, turned into multiple pieces to be in tail position.

[issue35606] Add prod() function to the math module

2021-09-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +26975 pull_request: https://github.com/python/cpython/pull/28595 ___ Python tracker ___

[issue44841] ZipInfo crashes on filemode

2021-09-28 Thread Gabor Rakosy
Gabor Rakosy added the comment: Like Ronald Oussoren wrote "ZipInfo does not have a filemode attribute, that's why it is not in ZipInfo.__slots__." import zipfile file_zip = zipfile.ZipFile("test-one-dir.zip", mode='r') for info in file_zip.infolist(): print(info)

[issue45309] asyncio task can not be used to open_connection and read data.

2021-09-28 Thread 穆兰
穆兰 added the comment: Hope some one could fix it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-09-28 Thread Mark Shannon
Mark Shannon added the comment: PR 28488 has no NEWS entry, or What's New entry. However, adding multiple entries will be confusing, so that's best left until all calls to Python functions and method don't use the C stack. -- ___ Python tracker

[issue45309] asyncio task can not be used to open_connection and read data.

2021-09-28 Thread 穆兰
New submission from 穆兰 : The server code: import asyncio import struct counter = 0 async def on_connection(r: asyncio.StreamReader, w: asyncio.StreamWriter): msg = struct.pack("HB", 3, 0) w.write(msg) await w.drain() global counter counter += 1 print(counter, "client")

[issue45307] Removal of _PyImport_FindExtensionObject() in 3.10 limits custom extension module loaders

2021-09-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +pablogsal priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list

  1   2   >