Change by hai shi :
--
pull_requests: +17780
pull_request: https://github.com/python/cpython/pull/18404
___
Python tracker
<https://bugs.python.org/issue1635
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
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue38823>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Change by hai shi :
--
pull_requests: +17795
pull_request: https://github.com/python/cpython/pull/18419
___
Python tracker
<https://bugs.python.org/issue39
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
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
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
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
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
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_
Change by hai shi :
--
components: +Extension Modules -Interpreter Core
___
Python tracker
<https://bugs.python.org/issue39585>
___
___
Python-bugs-list mailin
Change by hai shi :
--
pull_requests: +17859
pull_request: https://github.com/python/cpython/pull/18486
___
Python tracker
<https://bugs.python.org/issue1635
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
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
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
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue39511>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Change by hai shi :
--
nosy: +nascheme
___
Python tracker
<https://bugs.python.org/issue39382>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
hai shi added the comment:
I will create PR later.
--
___
Python tracker
<https://bugs.python.org/issue39646>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
Change by hai shi :
--
pull_requests: +17912
pull_request: https://github.com/python/cpython/pull/18520
___
Python tracker
<https://bugs.python.org/issue36
hai shi added the comment:
you are welcome ;0
--
___
Python tracker
<https://bugs.python.org/issue39646>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by hai shi :
--
pull_requests: +17974
pull_request: https://github.com/python/cpython/pull/18608
___
Python tracker
<https://bugs.python.org/issue1635
Change by hai shi :
--
pull_requests: +17978
pull_request: https://github.com/python/cpython/pull/18613
___
Python tracker
<https://bugs.python.org/issue1635
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
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
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
hai shi added the comment:
copy that, thanks for your explanation, victor.
--
___
Python tracker
<https://bugs.python.org/issue39796>
___
___
Python-bugs-list m
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
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
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)
>
hai shi added the comment:
Thanks, serhiy.
--
___
Python tracker
<https://bugs.python.org/issue39585>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 `_
Change by hai shi :
--
pull_requests: +18344
pull_request: https://github.com/python/cpython/pull/18987
___
Python tracker
<https://bugs.python.org/issue39
Change by hai shi :
--
pull_requests: +18359
pull_request: https://github.com/python/cpython/pull/19012
___
Python tracker
<https://bugs.python.org/issue1635
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_
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
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
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
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
Change by hai shi :
--
pull_requests: +18367
pull_request: https://github.com/python/cpython/pull/19018
___
Python tracker
<https://bugs.python.org/issue1635
hai shi added the comment:
Wow, thanks, victor. those msgs is very helpful to me.
--
___
Python tracker
<https://bugs.python.org/issue39968>
___
___
Python-bug
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
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
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
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
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
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue39984>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by hai shi :
--
pull_requests: +18423
pull_request: https://github.com/python/cpython/pull/19069
___
Python tracker
<https://bugs.python.org/issue1635
Change by hai shi :
--
pull_requests: +18424
pull_request: https://github.com/python/cpython/pull/19069
___
Python tracker
<https://bugs.python.org/issue39
Change by hai shi :
--
pull_requests: +18432
pull_request: https://github.com/python/cpython/pull/19076
___
Python tracker
<https://bugs.python.org/issue39
Change by hai shi :
--
pull_requests: +18444
pull_request: https://github.com/python/cpython/pull/19084
___
Python tracker
<https://bugs.python.org/issue1635
Change by hai shi :
--
pull_requests: +18460
pull_request: https://github.com/python/cpython/pull/19100
___
Python tracker
<https://bugs.python.org/issue1635
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40014>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40050>
___
___
Python-bugs-list mailing list
Unsubscribe:
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: +
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
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
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
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
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40024>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40003>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40077>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by hai shi :
--
pull_requests: +18610
pull_request: https://github.com/python/cpython/pull/19252
___
Python tracker
<https://bugs.python.org/issue1635
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40137>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40144>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by hai shi :
--
pull_requests: +18669
pull_request: https://github.com/python/cpython/pull/19307
___
Python tracker
<https://bugs.python.org/issue1635
Change by hai shi :
--
pull_requests: +18705
pull_request: https://github.com/python/cpython/pull/19341
___
Python tracker
<https://bugs.python.org/issue40
Change by hai shi :
--
pull_requests: +18708
pull_request: https://github.com/python/cpython/pull/19344
___
Python tracker
<https://bugs.python.org/issue40
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40170>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40173>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40217>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40149>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by hai shi :
--
pull_requests: +18792
pull_request: https://github.com/python/cpython/pull/19438
___
Python tracker
<https://bugs.python.org/issue40
Change by hai shi :
--
nosy: +shihai1991
___
Python tracker
<https://bugs.python.org/issue40237>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
hai shi added the comment:
> Looks like it worked.
Oh, sorry, I checked the wrong gate.
--
___
Python tracker
<https://bugs.python.org/issue40237>
___
___
Py
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
Change by hai shi :
--
pull_requests: +18819
pull_request: https://github.com/python/cpython/pull/19464
___
Python tracker
<https://bugs.python.org/issue40
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
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
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
201 - 300 of 700 matches
Mail list logo