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

2022-02-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 4657bf701670215ce69b89401b2307022a3b0a7d by Victor Stinner in 
branch 'main':
bpo-1635741: Fix winreg reference leaks (GH-31560)
https://github.com/python/cpython/commit/4657bf701670215ce69b89401b2307022a3b0a7d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-02-24 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +29683
pull_request: https://github.com/python/cpython/pull/31560

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-02-24 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c9c178fdb1af01e441a6c83f3a21a67e5dd9f17d by Victor Stinner in 
branch 'main':
bpo-1635741: test_embed cheks that Python does not leak (GH-31555)
https://github.com/python/cpython/commit/c9c178fdb1af01e441a6c83f3a21a67e5dd9f17d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-02-24 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +29677
pull_request: https://github.com/python/cpython/pull/31555

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-28 Thread STINNER Victor


STINNER Victor  added the comment:

The negative refcount issue has been fixed ;-)

At commit 9a241271139a317597aca71d5971346b2cfe7dbd, Python now leaks exactly 0 
reference count and 0 memory block at exit:

$ ./python -I -X showrefcount -c pass
[0 refs, 0 blocks]

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-27 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-35774 as a duplicate of this issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-27 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks to recent enhancements, epecially in bpo-46417, the last memory blocks 
are now released at Python exit! The initial issue has been fixed!!! This bug 
was 15 years old! Current main branch:

$ ./python -I -X showrefcount -c pass
[-5 refs, 0 blocks]

"0 blocks" means that Python no longer leaks memory at exit. You can use 
Valgrind to check it ;-)

The negative reference count is being discussed in bpo-46449.

I close this issue since it has an insane history: too many pull requests, 
changes, etc.

While the work is not 100% done (we need to convert remaining static types to 
heap types, and convert extensions to multi-phase init), I prefer to address 
remaining issues in (existing or new) separated issues. See for example the 
bpo-40077: "Convert static types to heap types: use PyType_FromSpec()".

I would like to thank everybody who helped to fix this issue! It's hard to list 
all names since this issue is a meta issues made of many sub-issues which also 
have sub-issues. Authors of PEP 573 and PEP 630 also helped fixing this issue!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11 -Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

My work on bpo-46417 reduces the number of leak references from around 10k to 
... minus 4 references :-) Clearing static types and a few "static" objects 
helped a lot!

> New changeset a1444f43584af0f7a0af72aa06ba0a86ae5a87a2 by Victor Stinner in 
> branch 'main':
> bpo-46417: Fix _PyStaticType_Dealloc() (GH-30810)
> https://github.com/python/cpython/commit/a1444f43584af0f7a0af72aa06ba0a86ae5a87a2

At commit a1444f43584af0f7a0af72aa06ba0a86ae5a87a2, I get:

$ ./python -I -X showrefcount -c pass
[-4 refs, 61 blocks]

I have to investigate why it's negative. It may be caused by bpo-46449 issue.

See also: https://bugs.python.org/issue46417#msg411307

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

In bpo-46417, I pushed a change to call _PyDebug_PrintTotalRefs() after 
destroying the interpreter. I backported locally this change to other Python 
versions to compare the progress on old Python versions:

./python -I -X showrefcount -c pass command:

* Python 3.7: [22636 refs, 7453 blocks]
* Python 3.8: [18082 refs, 5867 blocks]
* Python 3.9: [17786 refs, 5766 blocks]
* Python 3.10: [10725 refs, 3978 blocks]
* current main branch: [2957 refs, 1240 blocks]

Yeah, main is way better than Python 3.10! I pushed many changes in 
bpo-46417 to clear most static types, it helps a lot!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-21 Thread STINNER Victor


STINNER Victor  added the comment:

Using "./python -IsS" command, sys.modules now only has 3 extensions which are 
not created by PyModuleDef_Init():

* builtins
* _io
* sys

The builtins and sys extensions use many static types. Converting these static 
types to heap types is blocked by bpo-40601. Soon, bpo-46417 will clear these 
types. Py_Finalize() does its best to clear explicitly builtins and sys 
namespaces.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +28932
pull_request: https://github.com/python/cpython/pull/30744

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-17 Thread STINNER Victor


STINNER Victor  added the comment:

> I wrote PR 20763 to "finalize" static types in Py_Finalize(). It mostly 
> works, but "./Programs/_testembed test_forced_io_encoding" crash. (...)

I created bpo-46417 follow-up issue: "[subinterpreters] Clear static types in 
Py_Finalize()".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-10 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303
nosy_count: 25.0 -> 26.0
pull_requests: +28726
pull_request: https://github.com/python/cpython/pull/30525

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-10 Thread Yu Zhao


Change by Yu Zhao :


--
nosy: +CharlieZhao
nosy_count: 24.0 -> 25.0
pull_requests: +28723
pull_request: https://github.com/python/cpython/pull/30522

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-11-04 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
nosy: +Jim Fasarakis-Hilliard, TCsaba, amaury.forgeotdarc, christian.heimes, 
corona10, eric.snow, h-vetinari, isoschiz, koubaa, kylotan, lukasz.langa, 
miss-islington, orsenthil, pconnell, petr.viktorin, phsilva, python-dev, 
santoso.wijaya, serhiy.storchaka, shihai1991, tlesher, vstinner, ysj.ray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-11-04 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
assignee: docs@python -> 
components: +Interpreter Core, Subinterpreters -Documentation
nosy: +erlendaasland -ahmedsayeed1982, docs@python
versions: +Python 3.10 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-11-04 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
Removed message: https://bugs.python.org/msg405698

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-11-04 Thread Ahmed Sayeed


Ahmed Sayeed  added the comment:

Possibly similar to 23220 however on 64-bit recent Debian sid with
trivial code I see : https://www.webb-dev.co.uk/category/crypto/

mimas$ 
mimas$ uname -a  http://www.compilatori.com/category/services/
Linux mimas 5.10.0-6-sparc64 #1 Debian 5.10.28-1 (2021-04-09) sparc64 GNU/Linux
mimas$ 
http://www.acpirateradio.co.uk/category/services/
mimas$ 
mimas$ /usr/bin/gcc --version  http://www.logoarts.co.uk/category/services/
gcc (Debian 10.2.1-6) 10.2.1 20210110
Copyright (C) 2020 Free Software Foundation, Inc. 
http://www.mconstantine.co.uk/crypto/kilimanjaro/
This is free software; see the source for copying conditions.  There is NO 
http://www.slipstone.co.uk/category/services/ 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mimas$  http://embermanchester.uk/category/services/

mimas$ 
mimas$ cat -n foo.c  http://connstr.net/category/services/
 1
 2  #include 
 3  #include 
 4 http://joerg.li/category/services/
 5  int main(int argc, char **argv)
 6  {
 7  int a = 1;
 8 http://www.jopspeech.com/category/services/
 9  printf("a = %i\n", a);
10 http://www.wearelondonmade.com/category/services/
11  printf(" = %p\n", );
12
13  return EXIT_SUCCESS;
14 https://waytowhatsnext.com/category/crypto/
15  }
16
mimas$  http://www.iu-bloomington.com/category/crypto/

mimas$ 
mimas$ /usr/bin/gcc -std=iso9899:1999 -pedantic -pedantic-errors -fno-builtin 
https://komiya-dental.com/category/crypto/  -g -m64 -O0 -mno-app-regs 
-mcpu=ultrasparc -mmemory-model=tso -o foo foo.c 
mimas$  http://www-look-4.com/category/services/

mimas$ 
mimas$ TERM=dumb LC_ALL=C /usr/bin/gdb ./foo https://www.mktrade.fi/ruiskuvalu
GNU gdb (Debian 10.1-2) 10.1.90.20210103-git g -m64 -O0 -mno-app-regs 
-mcpu=ultrasparc -mmemory-model=tso -o 
http://www.go-mk-websites.co.uk/crypto/namibia/ foo foo. g -m64 -O0 
-mno-app-regs -mcpu=ultrasparc -mmemory-model=tso 
http://fishingnewsletters.co.uk/services/camping-equipment/ -o foo foo. g -m64 
-O0 -mno-app-regs -mcpu=ultrasparc -mmemory-model=tso -o foo foo.

--
assignee:  -> docs@python
components: +Documentation -Interpreter Core, Subinterpreters
nosy: +ahmedsayeed1982, docs@python -Jim Fasarakis-Hilliard, TCsaba, 
amaury.forgeotdarc, christian.heimes, corona10, eric.snow, erlendaasland, 
h-vetinari, isoschiz, koubaa, kylotan, lukasz.langa, miss-islington, orsenthil, 
pconnell, petr.viktorin, phsilva, python-dev, santoso.wijaya, serhiy.storchaka, 
serhiy.storchaka, shihai1991, tlesher, vstinner, ysj.ray
versions: +Python 3.6 -Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-06-29 Thread h-vetinari


Change by h-vetinari :


--
nosy: +h-vetinari

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-05-01 Thread Csaba Torda


Change by Csaba Torda :


--
nosy: +TCsaba

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-03-15 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-15698 "PEP 3121, 384 Refactoring applied to pyexpat module" as a 
duplicate of this issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-01-13 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 2396614b8958ad202378fd71a598eb4106ac5896 by Dong-hee Na in branch 
'master':
bpo-1635741: Fix PyModule_AddObjectRef to use EXPORT_FUNC (GH-24205)
https://github.com/python/cpython/commit/2396614b8958ad202378fd71a598eb4106ac5896


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-01-12 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +23031
pull_request: https://github.com/python/cpython/pull/24205

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-01-12 Thread STINNER Victor


STINNER Victor  added the comment:

> In GH-23598, PyModule_AddObjectRef was added as EXPORT_DATA. Shouldn't it be 
> EXPORT_FUNC?

Oh, I didn't notice that there was EXPORT_DATA. Right, EXPORT_FUNC must be used.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-01-12 Thread Petr Viktorin


Petr Viktorin  added the comment:

In GH-23598, PyModule_AddObjectRef was added as EXPORT_DATA. Shouldn't it be 
EXPORT_FUNC?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-01-08 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +23002
pull_request: https://github.com/python/cpython/pull/24175

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-01-08 Thread STINNER Victor


STINNER Victor  added the comment:

> New changeset 0b858cdd5d114f0890b11b6c4d6559d0ceb468ab by Erlend Egeberg 
> Aasland in branch 'master':
> bpo-1635741: Convert _multibytecodec to multi-phase init (GH-24095)

This change introduced two regressions:

* bpo-42846: "Using _multibytecodec module on Windows, test_threading/embed get 
failure" (FIXED)
* bpo-42866: "test test_multibytecodec: 
Test_IncrementalEncoder.test_subinterp() leaks references"

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-01-04 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0b858cdd5d114f0890b11b6c4d6559d0ceb468ab by Erlend Egeberg 
Aasland in branch 'master':
bpo-1635741: Convert _multibytecodec to multi-phase init (GH-24095)
https://github.com/python/cpython/commit/0b858cdd5d114f0890b11b6c4d6559d0ceb468ab


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-01-04 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c8a87addb1fa35dec79ed8f227eba3694fc36234 by Mohamed Koubaa in 
branch 'master':
bpo-1635741: Port pyexpat to multi-phase init (PEP 489) (GH-2)
https://github.com/python/cpython/commit/c8a87addb1fa35dec79ed8f227eba3694fc36234


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-01-04 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +22926
pull_request: https://github.com/python/cpython/pull/24095

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-29 Thread STINNER Victor


STINNER Victor  added the comment:

> No refs leaking anymore!?

Well, there is another test:

$ ./python -X showrefcount -c pass
[23547 refs, 6589 blocks]

Python still leaks 23547 refs at exit.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-29 Thread Paulo Henrique Silva


Paulo Henrique Silva  added the comment:

Repeated msg355187 testing on master[056c08211b].

---
#include 

void func()
{
Py_Initialize(); Py_Finalize();
Py_ssize_t cnt = _Py_GetRefTotal();
printf("sys.gettotalrefcount(): %zd\n", cnt);
}

int main(int argc, char *argv[])
{
Py_SetProgramName(L"./_testembed");
for (int i=0; i < 10; i++) {
func();
}
}
---

No refs leaking anymore!?

---
sys.gettotalrefcount(): 10241
sys.gettotalrefcount(): 10241
sys.gettotalrefcount(): 10241
sys.gettotalrefcount(): 10241
sys.gettotalrefcount(): 10241
sys.gettotalrefcount(): 10241
sys.gettotalrefcount(): 10241
sys.gettotalrefcount(): 10241
sys.gettotalrefcount(): 10241
sys.gettotalrefcount(): 10241

---

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-27 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 897387d2c8a956e74770c6bdd0447dfec61e8e27 by Erlend Egeberg 
Aasland in branch 'master':
bpo-1635741: sqlite3: Fix ref leak introduced by commit bf64d90 (GH-23972)
https://github.com/python/cpython/commit/897387d2c8a956e74770c6bdd0447dfec61e8e27


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-27 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +22817
pull_request: https://github.com/python/cpython/pull/23972

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-27 Thread STINNER Victor


STINNER Victor  added the comment:

Progress: 77% (102/132) of extension modules use the new C API.

I used different grep commands to count *all* extension modules, not only the 
Modules/ directory:

$ grep -E '\' $(find -name "*.c"|grep -v Doc/|grep -v 
moduleobject.c)|wc -l
30
$ grep -E '\' $(find -name "*.c"|grep -v Doc/|grep -v 
moduleobject.c)|wc -l
102

--

Modules/ directory: 79% (94/119) of extension modules use the new API.

$ grep -E '\' $(find Modules -name "*.c")|wc -l
25
$ grep -E '\' $(find Modules -name "*.c")|wc -l
94

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-27 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset bf64d9064ab641b1ef9a0c4bda097ebf1204faf4 by Erlend Egeberg 
Aasland in branch 'master':
bpo-1635741: sqlite3 uses Py_NewRef/Py_XNewRef (GH-23170)
https://github.com/python/cpython/commit/bf64d9064ab641b1ef9a0c4bda097ebf1204faf4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-26 Thread STINNER Victor


STINNER Victor  added the comment:

I checked for ^.*tp_new.*=.*NULL regex in "git log -p" command output. I 
checked all commits up to May 8 2016, the commit which added:

+((PyTypeObject *)v)->tp_new = NULL;

I met "FlagsType.tp_new = NULL;" multiple times since the code moved multiple 
times.

Apart of the issue in _curses_panel.panel, I didn't see any other removal by 
mistake. In this issue, the work started in 2019, so I consider that it's ok. 
No other tp_new=NULL was removed by mistake.

Again, if tp_new=NULL is used, I suggest to write a function test to ensure 
that it's not possible to instanciate the type.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

The pitfall of PyType_FromModuleAndSpec() is that it makes types instantiable 
by default if tp_new is not provided. Created objects can crash when you try to 
use them because they are not properly initialized.

When there was few uses of PyType_FromModuleAndSpec() I fixed them and added 
tests, but now there are much more types created with 
PyType_FromModuleAndSpec(). Please check all other uses of 
PyType_FromModuleAndSpec(), add workarounds and tests.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-25 Thread STINNER Victor


STINNER Victor  added the comment:

> These changes introduced a regression in test_curses (see issue42694). And I 
> afraid then introduced regressions in other modules for which there were not 
> purposed tests.

In my experience, when a type is modified to prevent creating an instance using 
type(), there is a test for that. The issue with bpo-42694 is that test_curses 
is skipped by default, and it might be skipped on buildbots which don't have 
curses.

(I wrote a fix for bpo-42694, but let's discuss it there.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-22 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 6d9ec8bbfa07161431dc6190dd0772a6fbaf7ebd by Christian Heimes in 
branch 'master':
bpo-1635741: Port resource extension module to module state (GH-23462)
https://github.com/python/cpython/commit/6d9ec8bbfa07161431dc6190dd0772a6fbaf7ebd


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-20 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

These changes introduced a regression in test_curses (see issue42694). And I 
afraid then introduced regressions in other modules for which there were not 
purposed tests.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-17 Thread STINNER Victor


STINNER Victor  added the comment:

> * bpo-15651: PEP 3121, 384 refactoring applied to elementtree module

Oops, this was a mistake. This one is not fixed yet.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-17 Thread STINNER Victor


STINNER Victor  added the comment:

Statistics on C extension modules using the new API (PyModuleDef_Init) / total:

* 3.9: 52 / 120 (43%)
* master: 94 / 119 (79%)

25 extension modules are still using the old API (PyModule_Create).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-17 Thread STINNER Victor


STINNER Victor  added the comment:

I marked the following issues as duplicates of this one:

* bpo-15651: PEP 3121, 384 refactoring applied to elementtree module
* bpo-15650: PEP 3121, 384 refactoring applied to dbm module
* bpo-15712: PEP 3121, 384 Refactoring applied to unicodedata module
* bpo-15674: PEP 3121, 384 Refactoring applied to _thread module
* bpo-15669: PEP 3121, 384 Refactoring applied to sre module

I also closed bpo-15848 "PEP 3121, 384 Refactoring applied to xxsubtype module" 
(but not marked it as a duplicate of this one).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 6104013838e181e3c698cb07316f449a0c31ea96 by Victor Stinner in 
branch 'master':
bpo-1635741: Port _thread to multiphase init (GH-23811)
https://github.com/python/cpython/commit/6104013838e181e3c698cb07316f449a0c31ea96


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-16 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22671
pull_request: https://github.com/python/cpython/pull/23811

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset fcc6935384b933fbe1a1ef659ed455a3b74c849a by Victor Stinner in 
branch 'master':
Add symbols of the stable ABI to python3dll.c (GH-23598)
https://github.com/python/cpython/commit/fcc6935384b933fbe1a1ef659ed455a3b74c849a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 8203c73f3bb1f51614279b6e23af2ec587d1fa22 by Victor Stinner in 
branch 'master':
bpo-1635741: Refactor _threadmodule.c (GH-23793)
https://github.com/python/cpython/commit/8203c73f3bb1f51614279b6e23af2ec587d1fa22


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-16 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22649
pull_request: https://github.com/python/cpython/pull/23793

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-12-01 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22465
pull_request: https://github.com/python/cpython/pull/23598

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-27 Thread mohamed koubaa


Change by mohamed koubaa :


--
pull_requests: +22417
pull_request: https://github.com/python/cpython/pull/23535

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-24 Thread Senthil Kumaran


Change by Senthil Kumaran :


--
nosy: +orsenthil

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-23 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +serhiy.storchaka, serhiy.storchaka
nosy_count: 20.0 -> 21.0
pull_requests: +22365, 22366
pull_request: https://github.com/python/cpython/pull/23443

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-23 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +serhiy.storchaka
nosy_count: 20.0 -> 21.0
pull_requests: +22365
pull_request: https://github.com/python/cpython/pull/23443

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-22 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22354
pull_request: https://github.com/python/cpython/pull/23462

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-21 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset ea97ebab3578a6e0bb505da96819ac44d422a6cb by Christian Heimes in 
branch 'master':
bpo-1635741: Port select module to multiphase init (GH-23409)
https://github.com/python/cpython/commit/ea97ebab3578a6e0bb505da96819ac44d422a6cb


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-21 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 035deee265c7fb227ddc87222fa48761231d8bd7 by Christian Heimes in 
branch 'master':
bpo-1635741: Port _posixsubprocess module to multiphase init (GH-23406)
https://github.com/python/cpython/commit/035deee265c7fb227ddc87222fa48761231d8bd7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-20 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset a6109ef68d421712ba368ef502c4789e8de113e0 by Erlend Egeberg 
Aasland in branch 'master':
bpo-1635741: Convert _sre types to heap types and establish module state (PEP 
384) (GH-23393)
https://github.com/python/cpython/commit/a6109ef68d421712ba368ef502c4789e8de113e0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-20 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 2db8e35489d63b976a463fb1d2a6c29f4f965c21 by Mohamed Koubaa in 
branch 'master':
bpo-1635741: Enhance _datetime error handling (GH-23139)
https://github.com/python/cpython/commit/2db8e35489d63b976a463fb1d2a6c29f4f965c21


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22302
pull_request: https://github.com/python/cpython/pull/23409

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22299
pull_request: https://github.com/python/cpython/pull/23406

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread miss-islington


miss-islington  added the comment:


New changeset b437aa83f9374b86b7756705e8dc83b72a99e037 by Christian Heimes in 
branch 'master':
bpo-1635741: Port _posixshmem extension module to multiphase initialization 
(GH-23404)
https://github.com/python/cpython/commit/b437aa83f9374b86b7756705e8dc83b72a99e037


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22297
pull_request: https://github.com/python/cpython/pull/23404

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread STINNER Victor


STINNER Victor  added the comment:

I closed the following issues as duplicates of this issue:

* bpo-15707: "PEP 3121, 384 Refactoring applied to signal module" (duplicate of 
bpo-41713)
* bpo-15670: "PEP 3121, 384 Refactoring applied to ssl module" (duplicate of 
bpo-42333)
* bpo-15668: "PEP 3121, 384 Refactoring applied to random module"
* bpo-15675: "PEP 3121, 384 Refactoring applied to array module"
* bpo-15734: "PEP 3121, 384 Refactoring applied to spwd module"
* bpo-15671: "PEP 3121, 384 Refactoring applied to struct module"
* bpo-15705: "PEP 3121, 384 Refactoring applied to sha256 module"
* bpo-15697: "PEP 3121 refactoring applied to pwd module"
* bpo-15714: "PEP 3121, 384 Refactoring applied to grp module"
* bpo-15665: "PEP 3121, 384 refactoring applied to lsprof module"
* bpo-15849: "PEP 3121, 384 Refactoring applied to xx module"
* bpo-15653: "PEP 3121, 384 refactoring applied to hashopenssl module"

See also bpo-15787: "[meta issue] PEP 3121, 384 Refactoring" (still open since 
it depends on other open issues).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread miss-islington


miss-islington  added the comment:


New changeset 588c7c9f08a673472a29e3f8f7fda9e343212e7d by Dong-hee Na in branch 
'master':
bpo-1635741: Fix _struct for build bot error (GH-23402)
https://github.com/python/cpython/commit/588c7c9f08a673472a29e3f8f7fda9e343212e7d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Christian Heimes


Christian Heimes  added the comment:

$ find -name '*.c' -and -not -name moduleobject.c | xargs grep -l 
PyModule_Create\( | sort
./Doc/includes/custom2.c
./Doc/includes/custom3.c
./Doc/includes/custom4.c
./Doc/includes/custom.c
./Doc/includes/sublist.c
./Modules/_asynciomodule.c
./Modules/cjkcodecs/multibytecodec.c
./Modules/_csv.c
./Modules/_ctypes/_ctypes.c
./Modules/_cursesmodule.c
./Modules/_datetimemodule.c
./Modules/_decimal/_decimal.c
./Modules/_elementtree.c
./Modules/_io/_iomodule.c
./Modules/_multiprocessing/posixshmem.c
./Modules/ossaudiodev.c
./Modules/_pickle.c
./Modules/_posixsubprocess.c
./Modules/pyexpat.c
./Modules/readline.c
./Modules/selectmodule.c
./Modules/socketmodule.c
./Modules/_sqlite/module.c  [*]
./Modules/_sre.c  [*]
./Modules/_ssl.c  [*]
./Modules/_testbuffer.c
./Modules/_testcapimodule.c
./Modules/_testimportmultiple.c
./Modules/_testinternalcapi.c
./Modules/_threadmodule.c
./Modules/_tkinter.c
./Modules/_tracemalloc.c
./Modules/_xxsubinterpretersmodule.c
./Modules/_xxtestfuzz/_xxtestfuzz.c
./PC/_msi.c
./PC/msvcrtmodule.c
./PC/winreg.c
./PC/winsound.c
./Tools/peg_generator/peg_extension/peg_extension.c

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread miss-islington


miss-islington  added the comment:


New changeset 646d7fdefbbc95a83df665698af7385d10bde66c by Christian Heimes in 
branch 'master':
bpo-1635741: Port gc module to multiphase initialization (GH-23377)
https://github.com/python/cpython/commit/646d7fdefbbc95a83df665698af7385d10bde66c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +22294
pull_request: https://github.com/python/cpython/pull/23402

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +22293
pull_request: https://github.com/python/cpython/pull/23401

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset cfeb5437a8910e28726422a14a93a36584e32238 by Christian Heimes in 
branch 'master':
bpo-1635741: Port _struct to multiphase initialization (GH-23398)
https://github.com/python/cpython/commit/cfeb5437a8910e28726422a14a93a36584e32238


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22290
pull_request: https://github.com/python/cpython/pull/23398

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset bf9d70a1a5255080b7a5e55f319dfffd5f20fdcd by Christian Heimes in 
branch 'master':
bpo-1635741: Port spwd to multiphase initialization (GH-23390)
https://github.com/python/cpython/commit/bf9d70a1a5255080b7a5e55f319dfffd5f20fdcd


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +22285
pull_request: https://github.com/python/cpython/pull/23393

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread miss-islington


miss-islington  added the comment:


New changeset 3094dd5fb5fa3ed91f5e2887887b193edbc976d2 by Christian Heimes in 
branch 'master':
bpo-1635741: Port _queue to multiphase initialization (GH-23376)
https://github.com/python/cpython/commit/3094dd5fb5fa3ed91f5e2887887b193edbc976d2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22282
pull_request: https://github.com/python/cpython/pull/23390

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-19 Thread STINNER Victor


STINNER Victor  added the comment:

About multi-phase init, it's nice to see the list of modules using the "legacy" 
init API getting smaller at each Python release!

Example adding a log to PyModule_Create2():

+fprintf(stderr, "LEGACY MODULE INIT: %s\n", module->m_name);

python3.6 -c pass: 16 modules using the legacy API

LEGACY MODULE INIT: builtins
LEGACY MODULE INIT: sys
LEGACY MODULE INIT: _warnings
LEGACY MODULE INIT: _imp
LEGACY MODULE INIT: _warnings
LEGACY MODULE INIT: _thread
LEGACY MODULE INIT: _weakref
LEGACY MODULE INIT: io
LEGACY MODULE INIT: marshal
LEGACY MODULE INIT: posix
LEGACY MODULE INIT: zipimport
LEGACY MODULE INIT: _codecs
LEGACY MODULE INIT: _signal
LEGACY MODULE INIT: errno
LEGACY MODULE INIT: _stat

python3.10 -c pass: only 2 modules using the legacy API

LEGACY IMPORT: _thread
LEGACY IMPORT: io

16 (Python 3.6) => 2 (Python 3.10) is a nice progress ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset fa2eee975dbf7d2728021ef9d97328bbe88351cf by Christian Heimes in 
branch 'master':
bpo-1635741: Port grp and pwd to multiphase initialization (GH-23360)
https://github.com/python/cpython/commit/fa2eee975dbf7d2728021ef9d97328bbe88351cf


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset cc0cd43c0f96dac413e54855e9c77ec4b73bd2f8 by Christian Heimes in 
branch 'master':
bpo-1635741: Port _random to multiphase initialization (GH-23359)
https://github.com/python/cpython/commit/cc0cd43c0f96dac413e54855e9c77ec4b73bd2f8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 6f4635fe20457a7c513050bb117c2f0511cd4e44 by Victor Stinner in 
branch 'master':
bpo-1635741: Port _warnings to the multi-phase init (GH-23379)
https://github.com/python/cpython/commit/6f4635fe20457a7c513050bb117c2f0511cd4e44


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22273
pull_request: https://github.com/python/cpython/pull/23381

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22272
pull_request: https://github.com/python/cpython/pull/23379

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 622307142130d36a30644233441333247838af38 by Victor Stinner in 
branch 'master':
bpo-1635741: Convert _imp to multi-phase init (GH-23378)
https://github.com/python/cpython/commit/622307142130d36a30644233441333247838af38


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22271
pull_request: https://github.com/python/cpython/pull/23378

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22270
pull_request: https://github.com/python/cpython/pull/23377

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22269
pull_request: https://github.com/python/cpython/pull/23376

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 46f59ebd01e22cc6a56fd0691217318c1d801a49 by Christian Heimes in 
branch 'master':
bpo-1635741: Port _hashlib to multiphase initialization (GH-23358)
https://github.com/python/cpython/commit/46f59ebd01e22cc6a56fd0691217318c1d801a49


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset c7011012fac91a30923e39dbce7611f1b3ca8506 by Christian Heimes in 
branch 'master':
bpo-1635741: Port symtable module to multiphase initialization (GH-23361)
https://github.com/python/cpython/commit/c7011012fac91a30923e39dbce7611f1b3ca8506


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22254
pull_request: https://github.com/python/cpython/pull/23361

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

For sqlite3, see bpo-42064

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread Christian Heimes


Christian Heimes  added the comment:

$ grep -l -R PyModule_Create . | sort
./_asynciomodule.c
./cjkcodecs/cjkcodecs.h
./cjkcodecs/multibytecodec.c
./_csv.c
./_ctypes/_ctypes.c
./_cursesmodule.c
./_datetimemodule.c
./_decimal/_decimal.c
./_elementtree.c
./gcmodule.c
./grpmodule.c  [*]
./_hashopenssl.c  [*]
./_io/_iomodule.c
./_multiprocessing/posixshmem.c
./ossaudiodev.c
./_pickle.c
./_posixsubprocess.c
./pwdmodule.c  [*]
./pyexpat.c  [*]
./_queuemodule.c
./_randommodule.c
./readline.c
./selectmodule.c
./socketmodule.c
./spwdmodule.c
./_sqlite/module.c
./_sre.c
./_ssl.c  [*]
./_struct.c
./symtablemodule.c
./_testbuffer.c
./_testcapimodule.c
./_testimportmultiple.c
./_testinternalcapi.c
./_threadmodule.c
./_tkinter.c
./_tracemalloc.c
./_xxsubinterpretersmodule.c
./_xxtestfuzz/_xxtestfuzz.c

[*] == open PR

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22253
pull_request: https://github.com/python/cpython/pull/23360

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-18 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22252
pull_request: https://github.com/python/cpython/pull/23359

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-17 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22251
pull_request: https://github.com/python/cpython/pull/23358

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-17 Thread STINNER Victor


STINNER Victor  added the comment:

> For the signal module, see bpo-41713.

Done: the _signal module uses again the multi-phase init API.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-16 Thread STINNER Victor


STINNER Victor  added the comment:

For the signal module, see bpo-41713.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-15 Thread mohamed koubaa


Change by mohamed koubaa :


--
pull_requests: +22195
pull_request: https://github.com/python/cpython/pull/23304

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-12 Thread Christian Heimes


Christian Heimes  added the comment:

See bpo-42333 for _ssl module. The PR introduces module state and ports the 
_ssl extension to multiphase initialization.

--
nosy: +christian.heimes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

See bpo-27400 for the _datetime module: strptime_module variable is not cleared 
by Py_Finalize().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ba2958ed40d284228836735cbed4a155190e0998 by Victor Stinner in 
branch 'master':
bpo-40170: Fix PyType_Ready() refleak on static type (GH-23236)
https://github.com/python/cpython/commit/ba2958ed40d284228836735cbed4a155190e0998


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-11-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22134
pull_request: https://github.com/python/cpython/pull/23236

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   >