[Python-Dev] RFC on PEP 680 -- tomllib: Support for Parsing TOML in the Standard Library

2022-01-27 Thread Shantanu Jain
Hello all, Link to the PEP: https://www.python.org/dev/peps/pep-0680/ Please redirect discussion to: https://discuss.python.org/t/13040 PEP 680 proposes adding the tomllib module to the standard library for parsing TOML . The main motivation is to address bootstrapping problems

[Python-Dev] Re: Request to revert unittest and configparser incompatible changes in Python 3.11

2022-01-27 Thread Steven D'Aprano
On Wed, Jan 26, 2022 at 02:40:32PM -0800, Neil Schemenauer wrote: > On 2022-01-18 23:14, Gregory P. Smith wrote: > > > >Our stdlib unittest already enables warnings by default per > >https://bugs.python.org/issue10535. > > > >Getting the right people to pay attention to them is always the hard

[Python-Dev] PEP 678: Enriching Exceptions with Notes

2022-01-27 Thread Zac Hatfield Dodds
Hi all, I've written PEP 678, proposing the addition of a __note__ attribute which can be used to enrich displayed exceptions. This is particularly useful with ExceptionGroup, or where exception chaining is unsuitable, and ensures that 'orphan' output is not produced if the annotated exception

[Python-Dev] Re: Python no longer leaks memory at exit

2022-01-27 Thread Eric Snow
On Thu, Jan 27, 2022 at 8:40 AM Victor Stinner wrote: > tl; dr Python no longer leaks memory at exit on the "python -c pass" command > ;-) Thanks to all for the effort on this! Would it be worth adding a test to make sure we don't start leaking memory again? -eric

[Python-Dev] Re: Python no longer leaks memory at exit

2022-01-27 Thread Dong-hee Na
Hey Victor First of all, I would like to thank Victor for all his efforts to resolve this issue. And I want to thank the other contributors to this issue as well! I am very happy to hear that we can close bpo-1635741. This has been a long mission requiring patience and I'm proud to finally be

[Python-Dev] Python no longer leaks memory at exit

2022-01-27 Thread Victor Stinner
Hi, tl; dr Python no longer leaks memory at exit on the "python -c pass" command ;-) == Bug report == In 2007, the bpo-1635741 issue was reported on SourceForge: "Interpreter seems to leak references after finalization". This bug is 15 years old. It saw the bugs migration from SourceForge to

[Python-Dev] Re: Request to revert unittest and configparser incompatible changes in Python 3.11

2022-01-27 Thread Christopher Barker
On Wed, Jan 26, 2022 at 12:50 PM Neil Schemenauer wrote: > maybe we should be more aggressive about showing PendingDeprecationWarning > if it comes from code that seems to be written by the user, e.g. outside > site-packages > > That would be pretty straightforward. > or not from a package