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

2020-02-22 Thread hai shi
Change by hai shi : -- pull_requests: +17974 pull_request: https://github.com/python/cpython/pull/18608 ___ Python tracker ___

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

2020-02-18 Thread miss-islington
miss-islington added the comment: New changeset 5d38517aa1836542a5417b724c093bcb245f0f47 by Hai Shi in branch 'master': bpo-1635741: Port _bz2 extension module to multiphase initialization(PEP 489) (GH-18050) https://github.com/python/cpython/commit/5d38517aa1836542a5417b724c093bcb245f0f47

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

2020-02-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4c1b6a6f4fc46add0097efb3026cf3f0c89f88a2 by Hai Shi in branch 'master': bpo-1635741: Port _abc extension to multiphase initialization (PEP 489) (GH-18030) https://github.com/python/cpython/commit/4c1b6a6f4fc46add0097efb3026cf3f0c89f88a2

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

2020-02-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7d7956833cc37a9d42807cbfeb7dcc041970f579 by Hai Shi in branch 'master': bpo-1635741: Port _contextvars module to multiphase initialization (PEP 489) (GH-18374) https://github.com/python/cpython/commit/7d7956833cc37a9d42807cbfeb7dcc041970f579

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

2020-02-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset b2b6e27bcab44e914d0a0b170e915d6f1604a76d by Hai Shi in branch 'master': bpo-1635741: Port _crypt extension module to multiphase initialization (PEP 489) (GH-18404)

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

2020-02-16 Thread hai shi
hai shi added the comment: Leave a note for myself: I check the remaining object roughly(though dump_refs function), most of remaining object is 'str', such as: '0x7f779cf0 [13] str'->'0x7f779cf0 [26] str' So far, I don't know which file and fileno create those object. MAYBE I need

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

2020-02-12 Thread hai shi
Change by hai shi : -- pull_requests: +17859 pull_request: https://github.com/python/cpython/pull/18486 ___ Python tracker ___

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

2020-02-11 Thread miss-islington
miss-islington added the comment: New changeset 1ea45ae257971ee7b648e3b031603a31fc059f81 by Hai Shi in branch 'master': bpo-1635741: Port _codecs extension module to multiphase initialization (PEP 489) (GH-18065)

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

2020-02-07 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-02-07 Thread hai shi
Change by hai shi : -- pull_requests: +17780 pull_request: https://github.com/python/cpython/pull/18404 ___ Python tracker ___

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

2020-02-06 Thread hai shi
Change by hai shi : -- pull_requests: +17750 pull_request: https://github.com/python/cpython/pull/18374 ___ Python tracker ___

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

2020-02-05 Thread hai shi
hai shi added the comment: > 1) python-ast.c have one question, i fix it in PR18365. > 2) most of the questions in extension module, for example: > https://github.com/python/cpython/blob/master/Modules/gcmodule.c#L2019-L2022 brandt does relevant work already in PR17276、PR38823. --

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

2020-02-05 Thread hai shi
hai shi added the comment: update the above info: 1) python-ast.c have one question, i fix it in PR18365. -- ___ Python tracker ___

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

2020-02-05 Thread hai shi
hai shi added the comment: i thinkt that not checking `PyModule_AddObject()`'s result may cause this probleam too. 1) python-ast.c have one question, i fix it in PR18358. 2) most of the questions in extension module, for example:

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

2020-02-05 Thread hai shi
Change by hai shi : -- pull_requests: +17740 pull_request: https://github.com/python/cpython/pull/18365 ___ Python tracker ___

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

2020-02-04 Thread hai shi
Change by hai shi : -- pull_requests: +17733 pull_request: https://github.com/python/cpython/pull/18358 ___ Python tracker ___

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

2020-01-19 Thread hai shi
Change by hai shi : -- pull_requests: +17457 pull_request: https://github.com/python/cpython/pull/18066 ___ Python tracker ___

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

2020-01-19 Thread hai shi
Change by hai shi : -- pull_requests: +17456 pull_request: https://github.com/python/cpython/pull/18065 ___ Python tracker ___

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

2020-01-18 Thread hai shi
Change by hai shi : -- pull_requests: +17445 pull_request: https://github.com/python/cpython/pull/18050 ___ Python tracker ___

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

2020-01-18 Thread hai shi
Change by hai shi : -- pull_requests: +17444 pull_request: https://github.com/python/cpython/pull/18049 ___ Python tracker ___

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

2020-01-16 Thread hai shi
Change by hai shi : -- pull_requests: +17428 pull_request: https://github.com/python/cpython/pull/18032 ___ Python tracker ___

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

2020-01-16 Thread hai shi
Change by hai shi : -- pull_requests: +17425 pull_request: https://github.com/python/cpython/pull/18030 ___ Python tracker ___

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

2020-01-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset ed154c387efc5f978ec97900ec9e0ec6631d5498 by Victor Stinner (Hai Shi) in branch 'master': bpo-1635741: Port _json extension module to multiphase initialization (PEP 489) (GH-17835)

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

2020-01-11 Thread hai shi
hai shi added the comment: FWIW, i counted the difference of each file's refs after `Py_Finalize()`. [('Objects/dictobject.c', 21434), ('Python/marshal.c', 8135), ('Objects/codeobject.c', 6245), ('Objects/listobject.c', 6037), ('Objects/tupleobject.c', 4169), ('Objects/boolobject.c', 2433),

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

2020-01-06 Thread hai shi
hai shi added the comment: Compare to _Py_ForgetReference(), _Py_INC_REFTOTAL in _Py_NewReference() looks redundant. REF: https://github.com/python/cpython/blob/master/Include/object.h#L442 master brach baseline in my vm: ``` sys.gettotalrefcount(): 18049 sys.gettotalrefcount(): 22463 ```

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

2020-01-06 Thread hai shi
Change by hai shi : -- pull_requests: +17299 pull_request: https://github.com/python/cpython/pull/17883 ___ Python tracker ___

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

2020-01-05 Thread hai shi
hai shi added the comment: One part of this issue is that all C extensions of the stdlib should be updated to implement the PEP 489 "Multi-phase extension module initialization". > I try to port _json extension module to multiphase initialization module, but > the baseline(using victor's

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

2020-01-05 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +17262 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/17835 ___ Python tracker

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

2019-10-22 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-32026 as a duplicate of this issue. -- ___ Python tracker ___ ___

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

2019-10-22 Thread STINNER Victor
STINNER Victor added the comment: One part of this issue is that all C extensions of the stdlib should be updated to implement the PEP 489 "Multi-phase extension module initialization". -- ___ Python tracker

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

2019-10-22 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-21387 as a duplicate of this issue. -- ___ Python tracker ___ ___

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

2019-10-22 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-26888 as a duplicate of this issue. -- ___ Python tracker ___ ___

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

2019-10-22 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-6741 as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list

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

2019-10-22 Thread STINNER Victor
STINNER Victor added the comment: I tested on the master branch of Python: --- #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[]) {

<    1   2   3   4