[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 <https://bugs.python.org/issue1635

[issue25753] Reference leaks in test_smtplib

2020-02-07 Thread hai shi
hai shi added the comment: > I cannot reproduce these leaks. I think this issue should be closed. +1, I have run 15+ times in my vm but not found these leaks:( -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issu

[issue38823] Improve stdlib module initialization error handling.

2020-02-07 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue38823> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39585] Delete a pending item in _warning.c

2020-02-08 Thread hai shi
New submission from hai shi : a pend item could be removed (https://github.com/python/cpython/blob/master/Python/_warnings.c#L493). two reasons: 1) every warning have `__name__` and it must not NULL(`The tp_name slot must be set;` from pep0253) 2) the `__name__` of Warning class(including

[issue39585] Delete a pending item in _warning.c

2020-02-08 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +17789 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18414 ___ Python tracker <https://bugs.python.org/issu

[issue39585] Delete a pending item in _warning.c

2020-02-08 Thread hai shi
hai shi added the comment: If I am wrong, remove the check operation of `name` is fine. -- ___ Python tracker <https://bugs.python.org/issue39585> ___ ___ Pytho

[issue39573] Make PyObject an opaque structure in the limited C API

2020-02-08 Thread hai shi
Change by hai shi : -- pull_requests: +17795 pull_request: https://github.com/python/cpython/pull/18419 ___ Python tracker <https://bugs.python.org/issue39

[issue39593] Adding a unit test of ctypes

2020-02-09 Thread hai shi
New submission from hai shi : strlen(data) can not be replaced by Py_SIZE(value) in https://github.com/python/cpython/blob/master/Modules/_ctypes/cfield.c#L1297. victor have give a great example about it in https://github.com/python/cpython/pull/18419 I create this bpo for two reasons: 1

[issue39593] Adding a unit test of ctypes

2020-02-09 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +17801 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18424 ___ Python tracker <https://bugs.python.org/issu

[issue39593] ctypes s_set() uses strlen() and so truncates string at null character

2020-02-10 Thread hai shi
hai shi added the comment: releated bpo: issue12769 s_get() in cfield.c function have similar behavior. So far, this is a planned action(lack evidence). -- ___ Python tracker <https://bugs.python.org/issue39

[issue39593] ctypes s_set() uses strlen() and so truncates string at null character

2020-02-11 Thread hai shi
hai shi added the comment: I am not sure it have realtion of libffi's type or not? `s_set()` and `s_get()`'s type of ffi is `FFI_TYPE_POINTER`; REF: https://www.manpagez.com/info/libffi/libffi-3.0.13/libffi_6.php#index-ffi_005ftype_0

[issue39593] ctypes s_set() uses strlen() and so truncates string at null character

2020-02-11 Thread hai shi
hai shi added the comment: I guess the `xx_get()` and `xx_set()` function's process logic have relation with ffi's type, after I checked some `xx_get()` and `xx_set()`'s process logic. -- ___ Python tracker <https://bugs.pyt

[issue39585] Delete a pending item in _warning.c

2020-02-11 Thread hai shi
hai shi added the comment: > What if a warning has a metaclass with a custom __getattribute__ method? Sorry, ppperry. I don't understand your question clearly. Could you give me some examples? This function could be touched when user call `warnings.warn_

[issue39585] Delete a pending item in _warning.c

2020-02-11 Thread hai shi
Change by hai shi : -- components: +Extension Modules -Interpreter Core ___ Python tracker <https://bugs.python.org/issue39585> ___ ___ Python-bugs-list mailin

[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 <https://bugs.python.org/issue1635

[issue39573] Make PyObject an opaque structure in the limited C API

2020-02-13 Thread hai shi
hai shi added the comment: Hi, guys. Is there value in adding `PyNone_Check` macro?(`_PyNone_Type` is not esposed to CAPI directly, so I am not sure about it) If the answer is 'yes', i can add it ;) -- nosy: +shihai1991 ___ Python track

[issue39573] Make PyObject an opaque structure in the limited C API

2020-02-13 Thread hai shi
hai shi added the comment: >"obj == Py_None" is a very common pattern. >You have check how it is done in HPy: https://github.com/pyhandle/hpy >See also bpo-39511: "[subinterpreters] Per-interpreter singletons (None, >>True, False, et

[issue39573] Make PyObject an opaque structure in the limited C API

2020-02-13 Thread hai shi
hai shi added the comment: > By the way, please find another more inclusive way to say hi, see: https://heyguys.cc/ Oh, copy that. Sorry for my poor english. -- ___ Python tracker <https://bugs.python.org/issu

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-02-13 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue39511> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2020-02-15 Thread hai shi
Change by hai shi : -- pull_requests: +17889 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18512 ___ Python tracker <https://bugs.python.org/issu

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2020-02-15 Thread hai shi
hai shi added the comment: Looks like `builtins.vars` and `builtins.dir` should be migrated to AC too, so I create PR18512. -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue20

[issue39639] Remove Suite node from AST

2020-02-15 Thread hai shi
hai shi added the comment: I am not sure there have any relation with jython's python.asdl? https://github.com/jythontools/jython/blob/master/ast/Python.asdl#L10 -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/is

[issue39382] abstract_issubclass() doesn't take bases tuple item ref

2020-02-15 Thread hai shi
Change by hai shi : -- nosy: +nascheme ___ Python tracker <https://bugs.python.org/issue39382> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39646] compile warning in unicodeobject.c

2020-02-15 Thread hai shi
New submission from hai shi : Objects/unicodeobject.c: In function ‘PyUnicode_IsIdentifier’: ./Include/cpython/unicodeobject.h:396:38: warning: ‘data’ may be used uninitialized in this function [-Wmaybe-uninitialized] ((const Py_UCS4 *)(data))[(index

[issue39646] compile warning in unicodeobject.c

2020-02-15 Thread hai shi
hai shi added the comment: I will create PR later. -- ___ Python tracker <https://bugs.python.org/issue39646> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39646] compile warning in unicodeobject.c

2020-02-16 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +17896 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18519 ___ Python tracker <https://bugs.python.org/issu

[issue39646] compile warning in unicodeobject.c

2020-02-16 Thread hai shi
hai shi added the comment: I don't find a good idea so I just add init operation :( -- ___ Python tracker <https://bugs.python.org/issue39646> ___ ___ Pytho

[issue39647] Update doc of init_config.rst

2020-02-16 Thread hai shi
New submission from hai shi : Due to issue36465, the desc of `dump_refs` in init_config.rst should be udpated. -- assignee: docs@python components: Documentation messages: 362066 nosy: docs@python, shihai1991, vstinner priority: normal severity: normal status: open title: Update doc of

[issue39647] Update doc of init_config.rst

2020-02-16 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +17897 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18520 ___ Python tracker <https://bugs.python.org/issu

[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 fi

[issue36465] Make release and debug ABI compatible

2020-02-17 Thread hai shi
Change by hai shi : -- pull_requests: +17912 pull_request: https://github.com/python/cpython/pull/18520 ___ Python tracker <https://bugs.python.org/issue36

[issue39646] compile warning in unicodeobject.c

2020-02-17 Thread hai shi
hai shi added the comment: you are welcome ;0 -- ___ Python tracker <https://bugs.python.org/issue39646> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17050] argparse.REMAINDER doesn't work as first argument

2020-02-18 Thread hai shi
hai shi added the comment: > Okay. Would it be all right if I submit a fix to get it working at least in > the subparser case? Hi, dHannasch. According raymond and paul's opinion, you could try to create a PR to update argparse's doc. -- n

[issue9182] document “--” as a way to distinguish option w/ narg='+' from positional argument in argparse

2020-02-19 Thread hai shi
hai shi added the comment: It exists in master, so it still need a patch. -- nosy: +rhettinger, shihai1991 versions: +Python 3.9 -Python 2.7, Python 3.2 ___ Python tracker <https://bugs.python.org/issue9

[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 <https://bugs.python.org/issue1635

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

2020-02-22 Thread hai shi
Change by hai shi : -- pull_requests: +17978 pull_request: https://github.com/python/cpython/pull/18613 ___ Python tracker <https://bugs.python.org/issue1635

[issue39796] warning extension module inited twice in python3.9

2020-02-29 Thread hai shi
New submission from hai shi : In master branch, `_PyWarnings_Init()` have been called twice. ``` (gdb) bt #0 _PyWarnings_Init () at Python/_warnings.c:1338 #1 0x00525df3 in pycore_init_import_warnings (tstate=tstate@entry=0x9a19c0, sysmod=0x77f7e5f0) at Python/pylifecycle.c:680

[issue39796] warning extension module inited twice in python3.9

2020-02-29 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +18062 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18700 ___ Python tracker <https://bugs.python.org/issu

[issue39796] warning extension module inited twice in python3.9

2020-03-02 Thread hai shi
hai shi added the comment: Wow, Thanks, victor, much useful infos. >In Python 3, _PyWarnings_Init() calls PyModule_Create() which creates a module >but doesn't add it to sys.modules. this operation will be executed in _bootstrap_external. > We want the _warnings module to be

[issue39796] warning extension module inited twice in python3.9

2020-03-02 Thread hai shi
hai shi added the comment: copy that, thanks for your explanation, victor. -- ___ Python tracker <https://bugs.python.org/issue39796> ___ ___ Python-bugs-list m

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-07 Thread hai shi
hai shi added the comment: > we have no idea what Py_mod_create might have done that needs to be cleaned > up. Looks like no extension module author use `Py_mod_create` slots now. -- ___ Python tracker <https://bugs.python.org/i

[issue39337] codecs.lookup() ignores non-ASCII characters, whereas encodings.normalize_encoding() copies them

2020-03-08 Thread hai shi
Change by hai shi : -- keywords: +patch nosy: +shihai1991 nosy_count: 3.0 -> 4.0 pull_requests: +18202 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18845 ___ Python tracker <https://bugs.python.org/i

[issue39337] codecs.lookup() ignores non-ASCII characters, whereas encodings.normalize_encoding() copies them

2020-03-08 Thread hai shi
hai shi added the comment: > I would prefer that codecs.lookup() and encodings.normalize_encoding() behave > the same. Either always ignore or always copy. How about calling `encodings.normalize_encoding() in codecs.normalizestring()` to keep same behavior?(I create PR18845) >

[issue39585] Delete a pending item in _warning.c

2020-03-14 Thread hai shi
hai shi added the comment: Thanks, serhiy. -- ___ Python tracker <https://bugs.python.org/issue39585> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39337] codecs.lookup() ignores non-ASCII characters, whereas encodings.normalize_encoding() copies them

2020-03-14 Thread hai shi
hai shi added the comment: > How about calling `encodings.normalize_encoding() in > codecs.normalizestring()` to keep same behavior?(I create PR18845) I have try this idea, but it make the testcase of test_io.py failed because some object will call `codecs.Lookup()` in `_

[issue39337] codecs.lookup() ignores non-ASCII characters, whereas encodings.normalize_encoding() copies them

2020-03-14 Thread hai shi
Change by hai shi : -- pull_requests: +18344 pull_request: https://github.com/python/cpython/pull/18987 ___ Python tracker <https://bugs.python.org/issue39

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

2020-03-15 Thread hai shi
Change by hai shi : -- pull_requests: +18359 pull_request: https://github.com/python/cpython/pull/19012 ___ Python tracker <https://bugs.python.org/issue1635

[issue39968] move extension modules' macros of `get_xx_state()` to inline function.

2020-03-15 Thread hai shi
New submission from hai shi : as victor and petr said in PR18613:inline function is more better than macros, so I plan move all extension modules' macros of `get_xx_state()` to inline function. Note: some inline get_xx_state() can not be used directly in `tp_traverse`、`tp_free` and `tp_

[issue39968] move extension modules' macros of `get_xx_state()` to inline function.

2020-03-15 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +18366 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19017 ___ Python tracker <https://bugs.python.org/issu

[issue39968] move extension modules' macros of `get_module_state()` to inline function.

2020-03-15 Thread hai shi
Change by hai shi : -- title: move extension modules' macros of `get_xx_state()` to inline function. -> move extension modules' macros of `get_module_state()` to inline function. ___ Python tracker <https://bugs.pytho

[issue39968] port extension modules' macros of `get_module_state()` to inline function.

2020-03-15 Thread hai shi
Change by hai shi : -- title: move extension modules' macros of `get_module_state()` to inline function. -> port extension modules' macros of `get_module_state()` to inline function. ___ Python tracker <https://bugs.pytho

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

2020-03-15 Thread hai shi
hai shi added the comment: hundreds of encoding names can not be released in Py_Finalize(). for example: ``` 0x7ff482f589e0 [1] 'iso_8859_1_1987' 0x7ff482f58970 [1] 'iso_8859_1' ``` --> ``` 0x7ff482f589e0 [2] 'iso_8859_1_1987

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

2020-03-15 Thread hai shi
Change by hai shi : -- pull_requests: +18367 pull_request: https://github.com/python/cpython/pull/19018 ___ Python tracker <https://bugs.python.org/issue1635

[issue39968] port extension modules' macros of `get_module_state()` to inline function.

2020-03-16 Thread hai shi
hai shi added the comment: Wow, thanks, victor. those msgs is very helpful to me. -- ___ Python tracker <https://bugs.python.org/issue39968> ___ ___ Python-bug

[issue39968] port extension modules' macros of `get_module_state()` to inline function.

2020-03-16 Thread hai shi
Change by hai shi : -- pull_requests: +18377 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19028 ___ Python tracker <https://bugs.python.org/issu

[issue39968] port extension modules' macros of `get_module_state()` to inline function.

2020-03-16 Thread hai shi
hai shi added the comment: > See also: https://github.com/python/cpython/runs/509226542#step:4:305 Oh, thanks, Dong-hee Na. I create a PR for this typo error. -- ___ Python tracker <https://bugs.python.org/issu

[issue39968] port extension modules' macros of `get_module_state()` to inline function.

2020-03-16 Thread hai shi
hai shi added the comment: > Oh, macOS job was marked as success on PR 19017 :-( yeah, it's weird. This macOS job should be enhanced? -- ___ Python tracker <https://bugs.python.org

[issue39337] codecs.lookup() ignores non-ASCII characters, whereas encodings.normalize_encoding() copies them

2020-03-17 Thread hai shi
hai shi added the comment: > Maybe we should just add a private function for test in _testcapi. Oh, there have a problem with this idea: struct _is is defined in internal/pycore_pystate.h. _testcapi must test the public Python C API, not CPython internal C

[issue39337] codecs.lookup() ignores non-ASCII characters, whereas encodings.normalize_encoding() copies them

2020-03-17 Thread hai shi
hai shi added the comment: > Use _testinternalcapi in this case. oh, forgive me. I don't atttention this extension module before :( -- ___ Python tracker <https://bugs.python.org

[issue39984] Move some ceval fields from _PyRuntime.ceval to PyInterpreterState.ceval

2020-03-18 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue39984> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-03-19 Thread hai shi
Change by hai shi : -- pull_requests: +18423 pull_request: https://github.com/python/cpython/pull/19069 ___ Python tracker <https://bugs.python.org/issue1635

[issue39337] codecs.lookup() ignores non-ASCII characters, whereas encodings.normalize_encoding() copies them

2020-03-19 Thread hai shi
Change by hai shi : -- pull_requests: +18424 pull_request: https://github.com/python/cpython/pull/19069 ___ Python tracker <https://bugs.python.org/issue39

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-19 Thread hai shi
Change by hai shi : -- pull_requests: +18432 pull_request: https://github.com/python/cpython/pull/19076 ___ Python tracker <https://bugs.python.org/issue39

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

2020-03-19 Thread hai shi
Change by hai shi : -- pull_requests: +18444 pull_request: https://github.com/python/cpython/pull/19084 ___ Python tracker <https://bugs.python.org/issue1635

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

2020-03-21 Thread hai shi
Change by hai shi : -- pull_requests: +18460 pull_request: https://github.com/python/cpython/pull/19100 ___ Python tracker <https://bugs.python.org/issue1635

[issue40014] os.getgrouplist() can fail on macOS

2020-03-22 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40014> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-03-22 Thread hai shi
hai shi added the comment: > I noticed that caches on Lib/encodings/__init__.py and codec_search_cach of > PyInterpreterState are the places holding the refs. I removed those caches > and number went do to. Good Catch, Paulo. IMHO, caches is useful in codecs(it's impr

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

2020-03-23 Thread hai shi
hai shi added the comment: > The last merged pull request, GH-GH-19084, causes refleaks in importlib > tests. Stable buildbots are failing, I can reproduce on macOS Catalina. thanks, Łukasz. I catched this problem in my vm of centos too. I don't the broken reason

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-23 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40050> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-25 Thread hai shi
hai shi added the comment: `_divide_and_round()` would be deleted in https://github.com/python/cpython/blob/master/Lib/datetime.py#L2516. if it's removed L2516 of datetime.py, `test_name_cleanup()` would be failed.Looks like it's a planed behavior~ -- nosy: +

[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-25 Thread hai shi
hai shi added the comment: add a pdb point in L11 of test_datetime.py 8 try: 9 pure_tests = import_fresh_module(TESTS, fresh=['datetime', '_strptime'], 10 blocked=['_datetime']) 11

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

2020-03-25 Thread hai shi
hai shi added the comment: >Sorry for the noise, but I just wanted to say thanks to the people working on >this issue 13 years after I reported it. :) Far too many open-source projects >arbitrarily close bugs just because they don't have time to fix them and they >never

[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-29 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +18576 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19213 ___ Python tracker <https://bugs.python.org/issu

[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-29 Thread hai shi
hai shi added the comment: > I believe it's a known problem with either `import_fresh_module` or `datetime` after removed the cleanup operation of `sys.modules` in PR19213, the testcases is successed in my local vm(I am not sure there have any other potenti

[issue40024] Add PyModule_AddType helper function

2020-03-29 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40024> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40003] test.regrtest: add an option to run test.bisect_cmd on failed tests, use it on Refleaks buildbots

2020-03-29 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40003> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40077] Convert static types to PyType_FromSpec()

2020-03-30 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40077> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-03-31 Thread hai shi
Change by hai shi : -- pull_requests: +18610 pull_request: https://github.com/python/cpython/pull/19252 ___ Python tracker <https://bugs.python.org/issue1635

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-04-01 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40137> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40144] resource: RLIMIT_xxx and RUSAGE_xxx constants are missing on macOS 10.15.4

2020-04-01 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40144> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40144] resource: RLIMIT_xxx and RUSAGE_xxx constants are missing on macOS 10.15.4

2020-04-02 Thread hai shi
hai shi added the comment: > The PR modify the resource module. Oh. H. I see :-D Do I miss something? -- ___ Python tracker <https://bugs.python.org/issu

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

2020-04-02 Thread hai shi
Change by hai shi : -- pull_requests: +18669 pull_request: https://github.com/python/cpython/pull/19307 ___ Python tracker <https://bugs.python.org/issue1635

[issue40077] Convert static types to PyType_FromSpec()

2020-04-03 Thread hai shi
Change by hai shi : -- pull_requests: +18705 pull_request: https://github.com/python/cpython/pull/19341 ___ Python tracker <https://bugs.python.org/issue40

[issue40077] Convert static types to PyType_FromSpec()

2020-04-03 Thread hai shi
Change by hai shi : -- pull_requests: +18708 pull_request: https://github.com/python/cpython/pull/19344 ___ Python tracker <https://bugs.python.org/issue40

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-04-04 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40170> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40173] test.support.import_fresh_module fails to correctly block submodules when fresh is specified

2020-04-04 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40173> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40173] test.support.import_fresh_module fails to correctly block submodules when fresh is specified

2020-04-06 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +18754 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19390 ___ Python tracker <https://bugs.python.org/issu

[issue40173] test.support.import_fresh_module fails to correctly block submodules when fresh is specified

2020-04-06 Thread hai shi
hai shi added the comment: > I *think* the problem is that in the step where _save_and_remove_module is > called on fresh_name (see here: > https://github.com/python/cpython/blob/76db37b1d37a9daadd9e5b320f2d5a53cd1352ec/Lib/test/support/__init__.py#L328-L329) Looks like deleting

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-04-07 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40217> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40149] test_threading leaked [38, 38, 38] references, sum=114

2020-04-07 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40149> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40077] Convert static types to PyType_FromSpec()

2020-04-08 Thread hai shi
Change by hai shi : -- pull_requests: +18792 pull_request: https://github.com/python/cpython/pull/19438 ___ Python tracker <https://bugs.python.org/issue40

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-09 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker <https://bugs.python.org/issue40237> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-10 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +18816 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19460 ___ Python tracker <https://bugs.python.org/issu

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-10 Thread hai shi
hai shi added the comment: > Maybe CFLAGS_NODIST should be used instead of CFLAGS. Looks like it worked. > Python is built GCC with -ftest-coverage option. More exact description is: Python is built GCC with --coverage option, --coverage option including -ftest-coverage

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-10 Thread hai shi
hai shi added the comment: > Looks like it worked. Oh, sorry, I checked the wrong gate. -- ___ Python tracker <https://bugs.python.org/issue40237> ___ ___ Py

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-04-10 Thread hai shi
hai shi added the comment: > This macro should be converted to an opaque function Can I try it? -- ___ Python tracker <https://bugs.python.org/issu

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-04-10 Thread hai shi
Change by hai shi : -- pull_requests: +18819 pull_request: https://github.com/python/cpython/pull/19464 ___ Python tracker <https://bugs.python.org/issue40

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-11 Thread hai shi
hai shi added the comment: After `CFLAGS` replcaced by `CFLAGS_NODIST`, some extension module built failed, some info like: *** WARNING: renaming "_struct" since importing it failed: build/lib.linux-x86_64-3.9/_struct.cpython-39-x86_64-linux-gnu.so: undefined symbol: __gcov_merg

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-11 Thread hai shi
hai shi added the comment: FWIW, gcc Instrumentation Options in https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html -- ___ Python tracker <https://bugs.python.org/issue40

[issue39953] Let's update ssl error codes

2020-04-12 Thread hai shi
hai shi added the comment: Got some compiling error of _ssl extension module in my vm after PR19082 merged: building '_ssl' extension gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -fPIC -I./Include -I. -I/usr/local/include -I/temp/shihai/cpython/Include -I/temp/shihai/c

<    1   2   3   4   5   6   7   8   >