[issue45289] test_dbm and test_dbm_ndbm segfaults in M1 Mac

2021-09-25 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-09-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Typing `import sys; sys.exit()` every time I want to test something > quick on the REPL is awful UX. It truly is awful. So why do you do it that way? There are at least four other ways to cleanly exit the REPL. 1. raise SystemExit 2. exit() 3. quit()

[issue45290] test_multiprocessing_pool_circular_import fails in M1 mac

2021-09-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Seems that the issue went away when configuring the maxfiles with $ launchctl limit maxfiles instead of with "ulimit -n" -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

Re: XML Considered Harmful

2021-09-25 Thread Chris Angelico
On Sun, Sep 26, 2021 at 9:09 AM Eli the Bearded <*@eli.users.panix.com> wrote: > > In comp.lang.python, Chris Angelico wrote: > > Eli the Bearded <*@eli.users.panix.com> wrote: > >> I'd use one of the netpbm formats instead of JPEG. PBM for one bit > >> bitmaps, PGM for one channel (typically

Re: XML Considered Harmful

2021-09-25 Thread Eli the Bearded
In comp.lang.python, Chris Angelico wrote: > Eli the Bearded <*@eli.users.panix.com> wrote: >> I'd use one of the netpbm formats instead of JPEG. PBM for one bit >> bitmaps, PGM for one channel (typically grayscale), PPM for three >> channel RGB, and PAM for anything else (two channel gray plus

Posts from gmane no longer allowed?

2021-09-25 Thread Grant Edwards
I've been reading (and posting to) this list for many years by pointing an NNTP client at news://gmane.comp.python.general. Sometime in the past few days posts started being refused: You have tried posting to gmane.comp.python.general, which is a unidirectional mailing list. Gmane can

[issue45290] test_multiprocessing_pool_circular_import fails in M1 mac

2021-09-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > ulimit -n 1000 If i do this, the test hangs some times instead of crashing -- ___ Python tracker ___

[issue45249] Update doctect SyntaxErrors for location range

2021-09-25 Thread Andrei Kulakov
Andrei Kulakov added the comment: Terry: I got it mostly working using your 2nd suggestion, I will do some testing and should be able to put up a PR in the next couple of days. Thanks for looking at this and explaining! -- ___ Python tracker

Re: XML Considered Harmful

2021-09-25 Thread dn via Python-list
On 26/09/2021 10.48, 2qdxy4rzwzuui...@potatochowder.com wrote: > On 2021-09-25 at 15:20:19 -0500, > "Michael F. Stemper" wrote: > >> ... For instance, if >> I modeled a fuel like this: >> >> >> ton >> 21.96 >> 18.2 >> ... > Disclaimer: I am not a big XML fan, for a number of

Re: XML Considered Harmful

2021-09-25 Thread dn via Python-list
On 26/09/2021 10.07, Stefan Ram wrote: > "Michael F. Stemper" writes: >> fitting hierarchical >> data into rows/columns just seems wrong > > There were hierarchical database management systems like > IMS by IBM based on that point of view. Today,

[issue45290] test_multiprocessing_pool_circular_import fails in M1 mac

2021-09-25 Thread Ned Deily
Ned Deily added the comment: As a first step, try adding: ulimit -n 1000 to the buildbot test step. -- ___ Python tracker ___

Re: XML Considered Harmful

2021-09-25 Thread 2QdxY4RzWzUUiLuE
On 2021-09-25 at 15:20:19 -0500, "Michael F. Stemper" wrote: > ... For instance, if > I modeled a fuel like this: > > > ton > 21.96 > 18.2 > > > and a generating unit like this: > > > > > > > > > > > > >

[issue45290] test_multiprocessing_pool_circular_import fails in M1 mac

2021-09-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The same test sometimes hangs forever -- ___ Python tracker ___ ___ Python-bugs-list

RE: XML Considered Harmful

2021-09-25 Thread Avi Gross via Python-list
Michael, I don't care what you choose. Whatever works is fine for an internal use. But is the data scheme you share representative of your actual application? >From what I see below, unless the number of "point" variables is not always exactly four, the application might be handled well by any

[issue45026] More compact range iterator

2021-09-25 Thread Dennis Sweeney
Dennis Sweeney added the comment: I did more benchmarks on my Windows laptop, and it seems the difference goes away after using PGO. The benchmarking program: # from pyperf import Runner runner = Runner() for n in [10, 100, 1000, 10_000, 100_000]:

Could not initilalize crash reporting DB

2021-09-25 Thread Sir Real via Python-list
I have a script that chooses a paragraph at random from a text file then uses that paragraph to generate and send an email message. It's set up to run on Windows 7 startup. It has run without issue more than 400 times. Recently two consecutive runs produced the following messages...

[issue45290] test_multiprocessing_pool_circular_import fails in M1 mac

2021-09-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : == FAIL: test_multiprocessing_pool_circular_import (test.test_importlib.test_threaded_import.ThreadedImportTests)

Re: XML Considered Harmful

2021-09-25 Thread Michael F. Stemper
On 21/09/2021 13.12, Michael F. Stemper wrote: If XML is not the way to package data, what is the recommended approach? Well, there have been a lot of ideas put forth on this thread, many more than I expected. I'd like to thank everyone who took the time to contribute. Most of the reasons

[issue41914] test_pdb fails

2021-09-25 Thread Léon Planken
Léon Planken added the comment: So I went ahead to fix the issue and created a PR. I also signed the CLA, but I understand that needs a little time to process. I was bold/forward enough to add myself to the ACKS. Please feel remove me if this contribution is too trivial. --

[issue41914] test_pdb fails

2021-09-25 Thread Léon Planken
Change by Léon Planken : -- pull_requests: +26948 pull_request: https://github.com/python/cpython/pull/28564 ___ Python tracker ___

[issue45289] test_dbm and test_dbm_ndbm segfaults in M1 Mac

2021-09-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: test_gdbm segfaults in M1 Mac -> test_dbm and test_dbm_ndbm segfaults in M1 Mac ___ Python tracker ___

[issue45289] test_gdbm segfaults in M1 Mac

2021-09-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: See https://buildbot.python.org/all/#/builders/725/builds/4 -- ___ Python tracker ___ ___

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

2021-09-25 Thread Eryk Sun
Eryk Sun added the comment: Running the REPL with -S is unusual, so having to use sys.exit() or `raise SystemExit` in that case shouldn't be an issue. A user who wants custom behavior for `exit` could override sys.displayhook() in the PYTHONSTARTUP file. For example: import sys

[issue45289] test_gdbm segfaults in M1 Mac

2021-09-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- components: +macOS -Tests nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___

[issue45289] test_gdbm segfaults in M1 Mac

2021-09-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : 0:04:14 load avg: 3.86 [141/427/1] test_dbm crashed (Exit code -11) Fatal Python error: Segmentation fault Current thread 0x000102e2bd40 (most recent call first): File

[Python-announce] PyCon Tanzania 2021 - Call for Presentations and Workshop

2021-09-25 Thread Noah .
Dear Python Community, We hope that you are all well to that end and that you have been busy working on various awesome Python Projects. It's that time of the year folks and we would like to engage the community for another conference and workshops during the first week of December 2021. PyCon

[issue45285] c_char incorrectly treated as bytes in Structure

2021-09-25 Thread CireSnave
CireSnave added the comment: Wow. Thank you Eryk Sun. While that seems like a convoluted way to make a type act like the type it is...it works. Verified it with the following code: from ctypes import POINTER, c_char, sizeof, Structure class char_from_c(c_char): pass print("Size of

[issue45283] Top / function argument level ClassVar should not be allowed during `get_type_hints()`

2021-09-25 Thread Nikita Sobolev
Nikita Sobolev added the comment: Thank you, Ken Jin! Very clear explanation! > It seems the current consensus is to use that import for code with purely > static typing, and not use it with runtime typing libraries. Is it an official position? Or just a common usage pattern? What can we do

[issue45283] Top / function argument level ClassVar should not be allowed during `get_type_hints()`

2021-09-25 Thread Ken Jin
Ken Jin added the comment: > 1. By adding the same `_type_check` logic we can reduce the inconsistency > between two versions. It would be easier for users to migrate from one > version to another. That's definitely a plus. But please consider this hypothetical scenario: - Let's say some

[issue45026] More compact range iterator

2021-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is nothing in code that could explain a measureable difference in creating the range objects or the range object iterators. And indeed, it is in the range of the standard deviation, so it is non-existent. --

[issue45287] zipfile.is_zipfile returns true for a rar file containing zips

2021-09-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> is_zipfile false positives ___ Python tracker ___

[issue45286] zipfile missing API for links

2021-09-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Improve zipfile: add support for symlinks ___ Python tracker

[issue37921] Improve zipfile: add support for symlinks

2021-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Adding support of symlinks in ZIP files will make the zipfile module vulnerable to symlink attacks like like with TAR files (see https://en.wikipedia.org/wiki/Tar_(computing)#Duplicates). Until we find a solution to this, adding support of symlinks is

[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But you will not get them in creation order, even if omit the final sort, because: 1. dir() returns names sorted alphabetically, not in order of creation. 2. Dynamic class attributes are added at the end, and inherited attributes follow attributes defined

[issue45283] Top / function argument level ClassVar should not be allowed during `get_type_hints()`

2021-09-25 Thread Nikita Sobolev
Nikita Sobolev added the comment: Just to bring in some context for this discussion: https://github.com/python/cpython/pull/28279 We have dicussed in the PR above that current implementation depends on existing of `__future__` import of `annotations`. With `from __future__ import

Re: XML Considered Harmful

2021-09-25 Thread Jon Ribbens via Python-list
On 2021-09-25, Peter J. Holzer wrote: > On 2021-09-24 23:32:47 -, Jon Ribbens via Python-list wrote: >> JSON Schema provides a way to denote composite types. > > I probably wasn't clear what I meant. In XML, every element has a tag, > which is basically its type. So by looking at an XML file

[issue44892] Configparser fails when the .cfg file contains inline 'comments'

2021-09-25 Thread Diego Ramirez
Diego Ramirez added the comment: Sure, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Different "look and feel" of some built-in functions

2021-09-25 Thread Dieter Maurer
Steve Keller wrote at 2021-9-25 00:15 +0200: >"Dieter Maurer" writes: > >> Steve Keller wrote at 2021-9-24 11:48 +0200: >> >Why do some built-in Python functions feel so differently: >> >> Because the typical use cases are different >> >> [...] >> >> >while other functions like set.union() and

Re: Different "look and feel" of some built-in functions

2021-09-25 Thread Chris Angelico
On Sun, Sep 26, 2021 at 2:27 AM Dieter Maurer wrote: > > Stefan Ram wrote at 2021-9-24 16:48 GMT: > >"Dieter Maurer" writes: > >>A list is ordered. Therefore, it is important where > >>in this order an element is added. Thus, for a list, > >>`append` is a better name than `add` -- because it

[issue45020] Freeze all modules imported during startup.

2021-09-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.09.2021 18:20, STINNER Victor wrote: > > STINNER Victor added the comment: > > Marc-Andre: I suppose that you're talking about LANDMARK in Modules/getpath.c > and PC/getpathp.c. Now that you mention it: yes, that as well :-) But os.py is used in

Re: Different "look and feel" of some built-in functions

2021-09-25 Thread Dieter Maurer
Stefan Ram wrote at 2021-9-24 16:48 GMT: >"Dieter Maurer" writes: >>A list is ordered. Therefore, it is important where >>in this order an element is added. Thus, for a list, >>`append` is a better name than `add` -- because it already >>tells us in the name where it adds the new element. > > In

[issue45020] Freeze all modules imported during startup.

2021-09-25 Thread STINNER Victor
STINNER Victor added the comment: Marc-Andre: I suppose that you're talking about LANDMARK in Modules/getpath.c and PC/getpathp.c. -- ___ Python tracker ___

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-09-25 Thread STINNER Victor
STINNER Victor added the comment: > Do you have any information about when will be it released in 3.11? Here is a schedule of Python 3.11 releases: https://www.python.org/dev/peps/pep-0664/ In the meanwhile, you can develop a C extension to get the feature. --

[Python-announce] EuroPython Society: General Assembly 2021

2021-09-25 Thread Marc-Andre Lemburg
As last year, we are holding the General Assembly (GA) of the EuroPython Society (EPS) online for this year. General Assembly In accordance with our bylaws, we are calling for the EuroPython Society General Assembly to be held on Sunday, October 10th 2020, from 19:00 - 21:00

[Python-announce] PyEmpaq 0.2

2021-09-25 Thread Facundo Batista
PyEmpaq is a simple but powerful Python packer to run any project with any virtualenv dependencies anywhere. With PyEmpaq you can convert any Python project into a single `.pyz` file with all the project's content packed inside. That single file is everything that needs to be distributed. When

EuroPython Society: General Assembly 2021

2021-09-25 Thread Marc-Andre Lemburg
As last year, we are holding the General Assembly (GA) of the EuroPython Society (EPS) online for this year. General Assembly In accordance with our bylaws, we are calling for the EuroPython Society General Assembly to be held on Sunday, October 10th 2020, from 19:00 - 21:00

[issue45283] Top / function argument level ClassVar should not be allowed during `get_type_hints()`

2021-09-25 Thread Ken Jin
Ken Jin added the comment: This makes ``get_type_hints`` quite opinionated and backwards incompatible. The first line the docs says "This is often the same as obj.__annotations__". I also agree with Guido. FYI, we've tried to *reduce* usage of `_type_check` in new features since version

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-09-25 Thread Benjamin Szőke
Benjamin Szőke added the comment: Do you have any information about when will be it released in 3.11? -- ___ Python tracker ___ ___

[issue45020] Freeze all modules imported during startup.

2021-09-25 Thread Guido van Rossum
Guido van Rossum added the comment: The plan is to add __file__ back, based on where the stdlib lives (we won’t do any stat() calls for frozen files). -- ___ Python tracker

[issue45283] Top / function argument level ClassVar should not be allowed during `get_type_hints()`

2021-09-25 Thread Guido van Rossum
Guido van Rossum added the comment: Hm. IMO it is up to static type checkers to reject bad use of types. The runtime should be relaxed so type checkers can develop new features assigning new semantics to such constructs. -- nosy: +gvanrossum ___

[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-09-25 Thread Cristobal Riaga
Cristobal Riaga added the comment: Added sort_result parameter (bool=True) on getmembers function inside Lib/inspect.py, that, as it name says, allows you to getmembers result without sorting it. I'm needed of this and it seems impossible to achieve because of 367 line:

[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-09-25 Thread Cristobal Riaga
New submission from Cristobal Riaga : Added `sort_result` parameter (`bool=True`) on `getmembers` function inside `Lib/inspect.py`, that, as it name says, allows you to `getmembers` result without sorting it. I'm needed of this and it seems impossible to achieve because of [`367`

[issue44892] Configparser fails when the .cfg file contains inline 'comments'

2021-09-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Configparser fails when the .cfg file contains comments -> Configparser fails when the .cfg file contains inline 'comments' ___ Python tracker

[issue44892] Configparser fails when the .cfg file contains comments

2021-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please report back on the pip issue to read more of the doc, about inline comments in https://docs.python.org/3/library/configparser.html#customizing-parser-behaviour like I should have before writing what I did. -- resolution: -> not a bug stage:

[issue45287] zipfile.is_zipfile returns true for a rar file containing zips

2021-09-25 Thread mxmlnkn
New submission from mxmlnkn : I have created a RAR file containing two zip files like this: zip bag.zip README.md CHANGELOG.md zip bag1.zip CHANGELOG.md rar a zips.rar bag.zip bag1.zip And when calling `zipfile.is_zipfile` on zips.rar, it returns true even though it obviously is not a zip.

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

2021-09-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Typing `import sys; sys.exit()` every time I want to test something quick on > the REPL is awful UX. Without disagreeing with the general sentiment, just note that you can always do Ctrl-D. -- ___

[issue41914] test_pdb fails

2021-09-25 Thread Léon Planken
Léon Planken added the comment: Here's the issue again when running test_pdb.py for 3.11 (repository main). The same problem now occurs twice, and only inside the `screen` environment. - 8< - ~/Temp/cpython> ./python Lib/test/test_pdb.py

[issue44892] Configparser fails when the .cfg file contains comments

2021-09-25 Thread Diego Ramirez
Diego Ramirez added the comment: Hi Terry, I didn't see your response. I think this won't be possible, taking in count the comment that Serhiy posted: > By default configparser does not support inline comments. "# percentage sign > '%'" is a part of value. If you want to support inline

Re: XML Considered Harmful

2021-09-25 Thread Karsten Hilbert
Am Fri, Sep 24, 2021 at 08:59:23PM +0200 schrieb Peter J. Holzer: > JSON: Has a few primitive data types (bool, number, string) and a two > compound types (list, dict(string -> any)). Still missing many > frequently used data types (e.g. dates) But that (dates) at least has a well-known mapping

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

2021-09-25 Thread Filipe Laíns
Filipe Laíns added the comment: > In my view, that's exactly why it _shouldn't_ have a special treatment. After > all, site can add many more builtins. Do you want all of them to have > autocall? No, and I did not suggest anything of the sort. I just want the exit because of its integral

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-09-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks Livius for all these nice enhancements! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7834ff26cbcd4d8394d64d80d9f51a364d38b1c6 by Victor Stinner in branch 'main': bpo-21302: Add nanosleep() implementation for time.sleep() in Unix (GH-28545) https://github.com/python/cpython/commit/7834ff26cbcd4d8394d64d80d9f51a364d38b1c6

[issue45286] zipfile missing API for links

2021-09-25 Thread mxmlnkn
New submission from mxmlnkn : When using zipfile as a library to get simple files, there is no way to method to determine whether a ZipInfo object is a link or not. Moreover, links can be simply opened and read like normal files and will contain the link path, which is unexpected in most

Re: XML Considered Harmful

2021-09-25 Thread Peter J. Holzer
On 2021-09-24 23:32:47 -, Jon Ribbens via Python-list wrote: > On 2021-09-24, Chris Angelico wrote: > > On Sat, Sep 25, 2021 at 8:53 AM dn via Python-list > > wrote: > >> On 25/09/2021 06.59, Peter J. Holzer wrote: > >> > CSV: Good for tabular data of a single data type (strings). As soon as

[issue45283] Top / function argument level ClassVar should not be allowed during `get_type_hints()`

2021-09-25 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +26946 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28563 ___ Python tracker ___

[issue43914] Highlight invalid ranges in SyntaxErrors

2021-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: This is complete now. Thanks! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 ___ Python tracker

[issue43914] Highlight invalid ranges in SyntaxErrors

2021-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c523022ba8f81a3661b4ac8be81706ed095d5769 by Łukasz Langa in branch '3.10': [3.10] bpo-43914: What's New 3.10: add new SyntaxError attributes (GH-28558) (GH-28562) https://github.com/python/cpython/commit/c523022ba8f81a3661b4ac8be81706ed095d5769

[issue45166] get_type_hints + Final + future annotations = TypeError

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

[issue45166] get_type_hints + Final + future annotations = TypeError

2021-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1f08d16c90b6619607fe0656328062ab986cce29 by Łukasz Langa in branch '3.9': [3.9] bpo-45166: fixes `get_type_hints` failure on `Final` (GH-28279) (GH-28561) https://github.com/python/cpython/commit/1f08d16c90b6619607fe0656328062ab986cce29

[issue45166] get_type_hints + Final + future annotations = TypeError

2021-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d312b8516e11027ce97897d39764e242f0f57087 by Miss Islington (bot) in branch '3.10': bpo-45166: fixes `get_type_hints` failure on `Final` (GH-28279) (GH-28560) https://github.com/python/cpython/commit/d312b8516e11027ce97897d39764e242f0f57087

[issue43914] Highlight invalid ranges in SyntaxErrors

2021-09-25 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26945 pull_request: https://github.com/python/cpython/pull/28562 ___ Python tracker ___

[issue43914] Highlight invalid ranges in SyntaxErrors

2021-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 71f8ff45c62bd6b792919ac7c3804a8628ae12cb by Terry Jan Reedy in branch 'main': bpo-43914: Whats New 310: add new SyntaxError attributes (GH-28558) https://github.com/python/cpython/commit/71f8ff45c62bd6b792919ac7c3804a8628ae12cb -- nosy:

Re: Different "look and feel" of some built-in functions

2021-09-25 Thread Oscar Benjamin
On Sat, 25 Sept 2021 at 02:16, Chris Angelico wrote: > On Sat, Sep 25, 2021 at 11:11 AM Oscar Benjamin > wrote: > > > > On Sat, 25 Sept 2021 at 02:01, Chris Angelico wrote: > >> > >> On Sat, Sep 25, 2021 at 10:56 AM Oscar Benjamin > >> wrote: > >> > > >> > On Sat, 25 Sept 2021 at 00:37, Greg

[issue45166] get_type_hints + Final + future annotations = TypeError

2021-09-25 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26944 pull_request: https://github.com/python/cpython/pull/28561 ___ Python tracker ___

[issue45166] get_type_hints + Final + future annotations = TypeError

2021-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 784905dbeff68cf788bbeefe0a675af1af04affc by Nikita Sobolev in branch 'main': bpo-45166: fixes `get_type_hints` failure on `Final` (GH-28279) https://github.com/python/cpython/commit/784905dbeff68cf788bbeefe0a675af1af04affc -- nosy:

[issue45166] get_type_hints + Final + future annotations = TypeError

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

[issue45020] Freeze all modules imported during startup.

2021-09-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Eric, I noticed that you are freezing os.py. Please be aware that this module is often being used as indicator for where the stdlib was installed (the stdlib itself does this in site.py to read the LICENSE and the test suite also uses os.__file__ in a

[issue42969] pthread_exit & PyThread_exit_thread from PyEval_RestoreThread etc. are harmful

2021-09-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: **If** we add a callback API for this, I agree with vstinner's https://bugs.python.org/issue42969#msg402558 commentary on the other callback APIs. We can do this one similarly and keep it simple. - Why? It's the initial simplicity that provides those

[issue45280] Empty typing.NamedTuple creation is not tested

2021-09-25 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +26942 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28559 ___ Python tracker ___

[issue45275] Make argparse print description of subcommand when invoke help doc on subcommand

2021-09-25 Thread Nikita Sobolev
Nikita Sobolev added the comment: Hi! >From your description it is not clear how exactly you create your subcommand. >From my experience, it works. Demo: ``` import argparse parser = argparse.ArgumentParser(description='Process some integers.') subparsers = parser.add_subparsers() #

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-09-25 Thread Hai Shi
Hai Shi added the comment: > More generally, this would need solving one of the remaining limitations of > the limited API (PEPs 489, 630): type-specific data. Agree. We can't track and destroy the memory block created from the heap now. -- ___