[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
keywords: +patch
nosy: +corona10
nosy_count: 5.0 -> 6.0
pull_requests: +28303
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30082

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



[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 5.0 -> 6.0
pull_requests: +28310
pull_request: https://github.com/python/cpython/pull/30082

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



[issue30225] EBADF error on x86 Tiger 3.x buildbot

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 4.0 -> 5.0
pull_requests: +28309
pull_request: https://github.com/python/cpython/pull/30082

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



[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 191c431de7d9b23484dd16f67e62c6e85a1fac7f by Dong-hee Na in branch 
'main':
bpo-45919: Use WinAPI GetFileType() in is_valid_fd() (GH-30082)
https://github.com/python/cpython/commit/191c431de7d9b23484dd16f67e62c6e85a1fac7f


--

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



[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
stage: patch review -> resolved
status: open -> closed

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



[issue45915] Use fcntl(fd, F_GETFD) to check whether an fd is valid

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 3.0 -> 4.0
pull_requests: +28311
pull_request: https://github.com/python/cpython/pull/30082

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



[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +28313
pull_request: https://github.com/python/cpython/pull/30090

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



[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 9130a4d62032468e0d4949aaa49c29afb0d854ca by Dong-hee Na in branch 
'main':
bpo-45919: Remove out of date comment (GH-30090)
https://github.com/python/cpython/commit/9130a4d62032468e0d4949aaa49c29afb0d854ca


--

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



[issue46106] OpenSSL 1.1.1m is now available

2021-12-18 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2021-12-27 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +vstinner

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



[issue45189] Drop the "list_frozen" command from _test_embed.

2021-12-27 Thread Dong-hee Na


Change by Dong-hee Na :


--
keywords: +patch
nosy: +corona10
nosy_count: 2.0 -> 3.0
pull_requests: +28488
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30273

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



[issue45189] Drop the "list_frozen" command from _test_embed.

2021-12-27 Thread Dong-hee Na


Change by Dong-hee Na :


--
stage: patch review -> resolved
status: open -> closed

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



[issue45189] Drop the "list_frozen" command from _test_embed.

2021-12-27 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 196b53eb1e62871ca80dee180e4891b4dd5c52ac by Dong-hee Na in branch 
'main':
bpo-45189: Drop the "list_frozen" command from _test_embed. (GH-30273)
https://github.com/python/cpython/commit/196b53eb1e62871ca80dee180e4891b4dd5c52ac


--
stage: patch review -> resolved
status: open -> closed

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



[issue46070] _PyImport_FixupExtensionObject() regression causing a crash in subintepreters

2021-12-28 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46070] _PyImport_FixupExtensionObject() regression causing a crash in subintepreters

2021-12-28 Thread Dong-hee Na


Dong-hee Na  added the comment:

I can reproduce the crash on my macOS with main branch version.

Fatal Python error: Segmentation fault

Thread 0x700010389000 (most recent call first):
  File "/Users/user/oss/cpython/bug.py", line 16 in doIt
  File "/Users/user/oss/cpython/Lib/threading.py", line 968 in run
  File "/Users/user/oss/cpython/Lib/threading.py", line 1031 in _bootstrap_inner
  File "/Users/user/oss/cpython/Lib/threading.py", line 988 in _bootstrap

Current thread 0x7f386000 (most recent call first):
  File "/Users/user/oss/cpython/bug.py", line 16 in doIt
  File "/Users/user/oss/cpython/Lib/threading.py", line 968 in run
  File "/Users/user/oss/cpython/Lib/threading.py", line 1031 in _bootstrap_inner
  File "/Users/user/oss/cpython/Lib/threading.py", line 988 in _bootstrap

Thread 0x7e383000 (most recent call first):
  File "/Users/user/oss/cpython/bug.py", line 16 in doIt
  File "/Users/user/oss/cpython/Lib/threading.py", line 968 in run
  File "/Users/user/oss/cpython/Lib/threading.py", line 1031 in _bootstrap_inner
  File "/Users/user/oss/cpython/Lib/threading.py", line 988 in _bootstrap

Thread 0x7d38 (most recent call first):
  File "/Users/user/oss/cpython/bug.py", line 16 in doIt
  File "/Users/user/oss/cpython/Lib/threading.py", line 968 in run
  File "/Users/user/oss/cpython/Lib/threading.py", line 1031 in _bootstrap_inner
  File "/Users/user/oss/cpython/Lib/threading.py", line 988 in _bootstrap

Thread 0x00010a590e00 (most recent call first):
  File "/Users/user/oss/cpython/Lib/threading.py", line 1125 in 
_wait_for_tstate_lock
  File "/Users/user/oss/cpython/Lib/threading.py", line 1105 in join
  File "/Users/user/oss/cpython/bug.py", line 23 in func
  File "/Users/user/oss/cpython/bug.py", line 25 in 

Extension modules: _testcapi (total: 1)
[1]9098 segmentation fault  ./python.exe bug.py

--

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



[issue46176] mmap module add MAP_STACK constant mostly for OpenBSD

2021-12-29 Thread Dong-hee Na


New submission from Dong-hee Na :


New changeset 66c47b63a0df3143fe48d6efc1183eecda2a363d by David CARLIER in 
branch 'main':
bpo-46176: mmap module adding MAP_STACK constant. (GH-30252)
https://github.com/python/cpython/commit/66c47b63a0df3143fe48d6efc1183eecda2a363d


--
nosy: +corona10

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



[issue46176] mmap module add MAP_STACK constant mostly for OpenBSD

2021-12-29 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy:  -corona10
stage:  -> resolved
status: open -> closed

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



[issue46085] OrderedDict iterator allocates di_result unnecessarily

2021-12-29 Thread Dong-hee Na


Change by Dong-hee Na :


--
keywords: +patch
nosy: +corona10
nosy_count: 4.0 -> 5.0
pull_requests: +28504
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30290

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



[issue43424] Document the `controller.name` field in `webbrowser` module

2021-12-29 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset d12bec69931503be78cd555cf7bc22ad6f4f2bd5 by Nikita Sobolev in 
branch 'main':
bpo-43424: Deprecate `webbrowser.MacOSXOSAScript._name` attribute (GH-30241)
https://github.com/python/cpython/commit/d12bec69931503be78cd555cf7bc22ad6f4f2bd5


--
nosy: +corona10

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



[issue46085] OrderedDict iterator allocates di_result unnecessarily

2021-12-29 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset fb44d0589615590b1e7895ba78a038e96b15a219 by Dong-hee Na in branch 
'main':
bpo-46085: Fix iterator cache mechanism of OrderedDict. (GH-30290)
https://github.com/python/cpython/commit/fb44d0589615590b1e7895ba78a038e96b15a219


--

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



[issue46085] OrderedDict iterator allocates di_result unnecessarily

2021-12-29 Thread Dong-hee Na


Dong-hee Na  added the comment:

Thanks for reporting Kevin!

--
stage: patch review -> resolved
status: open -> closed

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



[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-01 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-07 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset e63066cfed27511c9b786d61761f87f7a532571a by Nikita Sobolev in 
branch 'main':
bpo-46299: improve `test_descr.py` with stricter error handling (GH-30471)
https://github.com/python/cpython/commit/e63066cfed27511c9b786d61761f87f7a532571a


--
nosy: +corona10

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



[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-07 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +28678
pull_request: https://github.com/python/cpython/pull/30475

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



[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-08 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 45d44b950f1dab0ef90d0a8f4fa75ffaae71500b by Dong-hee Na in branch 
'main':
bpo-46299: Improve test_descr (GH-30475)
https://github.com/python/cpython/commit/45d44b950f1dab0ef90d0a8f4fa75ffaae71500b


--

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



[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-08 Thread Dong-hee Na


Change by Dong-hee Na :


--
stage: patch review -> resolved
status: open -> closed

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



[issue46205] test.libregrtest: Race condition in runtest_mp leads to hangs (never exits)

2022-01-08 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46205] test.libregrtest: Race condition in runtest_mp leads to hangs (never exits)

2022-01-10 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset e13cdca0f5224ec4e23bdd04bb3120506964bc8b by Sam Gross in branch 
'main':
bpo-46205: exit if no workers are alive in runtest_mp (GH-30470)
https://github.com/python/cpython/commit/e13cdca0f5224ec4e23bdd04bb3120506964bc8b


--

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



[issue46205] test.libregrtest: Race condition in runtest_mp leads to hangs (never exits)

2022-01-10 Thread Dong-hee Na


Change by Dong-hee Na :


--
versions:  -Python 3.8

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



[issue46205] test.libregrtest: Race condition in runtest_mp leads to hangs (never exits)

2022-01-10 Thread Dong-hee Na


Change by Dong-hee Na :


--
stage: patch review -> resolved
status: open -> closed

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



[issue46345] Add an explicit test for `get_type_hints` for a class field with `None` default

2022-01-12 Thread Dong-hee Na


Dong-hee Na  added the comment:

When I take a look at previous PRs, most of adding test cases were not 
backported.
The backported cases were triggered by bug issues.
But let's pass this case as an exceptional case.

--
nosy: +corona10

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



[issue46345] Add an explicit test for `get_type_hints` for a class field with `None` default

2022-01-12 Thread Dong-hee Na


Dong-hee Na  added the comment:

@gvanrossum

Ah okay, Looks like bpo-46195 is the root of this issue.
In this case, backporting is reasonable.

--

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



[issue46345] Add an explicit test for `get_type_hints` for a class field with `None` default

2022-01-12 Thread Dong-hee Na


Change by Dong-hee Na :


--
versions: +Python 3.10, Python 3.9

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



[issue46345] Add an explicit test for `get_type_hints` for a class field with `None` default

2022-01-12 Thread Dong-hee Na


Dong-hee Na  added the comment:

@sobolevn

Do you want to close it?
Cleaning up the issue is one of the duties of triage members :)

--

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



[issue46358] Modernize `test_asyncio/test_base_events.py`

2022-01-13 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset f779faccd3a7a7e8c372492e858d021c449cdd85 by Nikita Sobolev in 
branch 'main':
bpo-46358: modernize `test_asyncio` (GH-30562)
https://github.com/python/cpython/commit/f779faccd3a7a7e8c372492e858d021c449cdd85


--
nosy: +corona10

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



[issue46368] faulthandler: add the ability to dump all interpreters, not only the current interpreter

2022-01-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46378] Experiment with LLVM BOLT binary optimizer

2022-01-14 Thread Dong-hee Na


New submission from Dong-hee Na :

Just experiment how it will be worth :)

Thread: https://github.com/faster-cpython/ideas/issues/224

--
assignee: corona10
messages: 410570
nosy: corona10
priority: normal
severity: normal
status: open
title: Experiment with LLVM BOLT binary optimizer
type: performance
versions: Python 3.11

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



[issue46378] Experiment with LLVM BOLT binary optimizer

2022-01-15 Thread Dong-hee Na


Change by Dong-hee Na :


--
components: +Build

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



[issue46386] Improve `test_typing::test_immutability_by_copy_and_pickle`

2022-01-15 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 09087b8519316608b85131ee7455b664c00c38d2 by Nikita Sobolev in 
branch 'main':
bpo-46386: improve `test_typing:test_immutability_by_copy_and_pickle` (GH-30613)
https://github.com/python/cpython/commit/09087b8519316608b85131ee7455b664c00c38d2


--
nosy: +corona10

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



[issue46386] Improve `test_typing::test_immutability_by_copy_and_pickle`

2022-01-15 Thread Dong-hee Na


Dong-hee Na  added the comment:

Thank you @sobolevn !

--
stage: patch review -> resolved
status: open -> closed

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-19 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 8105dd24112509fab2eabfce5352afc41e3a34b6 by Nikita Sobolev in 
branch '3.9':
[3.9] bpo-46425: Fix direct invocation of multiple test modules (GH-30666) 
(GH-30700)
https://github.com/python/cpython/commit/8105dd24112509fab2eabfce5352afc41e3a34b6


--

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-19 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset a6a088548063226233c08b8d35dde130746fdd10 by Nikita Sobolev in 
branch '3.10':
[3.10] bpo-46425: Fix direct invocation of multiple test modules (GH-30666) 
(GH-30699)
https://github.com/python/cpython/commit/a6a088548063226233c08b8d35dde130746fdd10


--

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



[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue45452] Support crash tolerance feature for gdbm module

2022-01-21 Thread Dong-hee Na


Dong-hee Na  added the comment:

After discussion with Victor by using DM, I decided to provide high-level API 
instead of low-level APIs.

- gdbm.open(filename, snapshots=(foo, bar)) 

will do everything at once.

Regards,
Dong-hee

--

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



[issue45452] Support crash tolerance feature for gdbm module

2022-01-21 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +vstinner

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



[issue37093] http.client aborts header parsing upon encountering non-ASCII header names

2022-01-21 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46249] [sqlite3] move set lastrowid out of the query loop and enable it for executemany()

2022-01-22 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 38afeb1a336f0451c0db86df567ef726f49f6438 by Erlend Egeberg 
Aasland in branch 'main':
bpo-46249: Move set lastrowid out of the sqlite3 query loop (GH-30489)
https://github.com/python/cpython/commit/38afeb1a336f0451c0db86df567ef726f49f6438


--
nosy: +corona10

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



[issue46249] [sqlite3] move set lastrowid out of the query loop and enable it for executemany()

2022-01-22 Thread Dong-hee Na


Change by Dong-hee Na :


--
stage: patch review -> resolved
status: open -> closed

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



[issue46478] DirEntry.stat() of os.scandir() has no dir_fd parameter

2022-01-22 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46465] Regression caused by CALL_FUNCTION specialization for C function calls

2022-01-22 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46476] Not all memory allocated by _Py_Quicken() is released at Python exit

2022-01-22 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46481] Implement vectorcall protocol for weakref_call()

2022-01-22 Thread Dong-hee Na


New submission from Dong-hee Na :

Triggered by Victor's suggestion:

- Well-used.
- Easy to enhance performance.
- Performance enhancement is notable.
Mean +- std dev: [weakref_base] 49.3 ns +- 2.2 ns -> [weakref_vectorcall] 27.7 
ns +- 0.9 ns: 1.78x faster

--
assignee: corona10
components: Interpreter Core
files: bench_weakref.py
messages: 411350
nosy: corona10, vstinner
priority: normal
severity: normal
status: open
title: Implement vectorcall protocol for weakref_call()
type: performance
versions: Python 3.11
Added file: https://bugs.python.org/file50578/bench_weakref.py

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



[issue46481] Implement vectorcall protocol for weakref_call()

2022-01-22 Thread Dong-hee Na


Change by Dong-hee Na :


--
keywords: +patch
pull_requests: +29007
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30820

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



[issue46481] Implement vectorcall protocol for weakref_call()

2022-01-23 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 76dc047a0e88d10aad0405228d56e94438cdd91c by Dong-hee Na in branch 
'main':
bpo-46481: Implement vectorcall for weakref.ref.__call__ method. (GH-30820)
https://github.com/python/cpython/commit/76dc047a0e88d10aad0405228d56e94438cdd91c


--

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



[issue46481] Implement vectorcall protocol for weakref_call()

2022-01-23 Thread Dong-hee Na


Change by Dong-hee Na :


--
stage: patch review -> resolved
status: open -> closed

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



[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Dong-hee Na


Change by Dong-hee Na :


--
priority: normal -> release blocker

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



[issue45578] Missing tests for the dis module

2022-01-26 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 84f093918a4be663775afe2933f4be86f72fe495 by Nikita Sobolev in 
branch 'main':
bpo-45578: add a test case for `dis.findlabels` (GH-30058)
https://github.com/python/cpython/commit/84f093918a4be663775afe2933f4be86f72fe495


--
nosy: +corona10

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



[issue43698] Use syntactically correct examples on abc package page

2022-01-26 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset b9d8980d89bfaa4bf16d60f0488adcc9d2cbf5ef by Nikita Sobolev in 
branch 'main':
bpo-43698: do not use `...` as argument name in docs (GH-30502)
https://github.com/python/cpython/commit/b9d8980d89bfaa4bf16d60f0488adcc9d2cbf5ef


--
nosy: +corona10

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



[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-26 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset ac0c6e128cb6553585af096c851c488b53a6c952 by Jelle Zijlstra in 
branch 'main':
bpo-46527: allow calling enumerate(iterable=...) again (GH-30904)
https://github.com/python/cpython/commit/ac0c6e128cb6553585af096c851c488b53a6c952


--

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



[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-26 Thread Dong-hee Na


Dong-hee Na  added the comment:

So since no more regression is expected, I would like to propose merging the PR 
and once we need to change the implementation, we can revert Vectorcall 
anytime, Rollbacking Vectorcall will not raise any behavior regression so 
anytime we can rollback it.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

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



[issue42926] Split compiler into code-gen, optimizer and assembler.

2022-01-26 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46551] Provide number of workers option for fast PGO build time

2022-01-27 Thread Dong-hee Na


New submission from Dong-hee Na :

Compiling CPython with the PGO option is good for CPython performance but 
compile time is very painful since PGO profiling is executed with a single 
thread.

When I tested with run -m test --pgo -j8, it doesn't affect to optimized result 
with fast build time.

so I would like to provide the option for the number of workers for PGO build. 
and also with this feature, we can include more PGO tests more aggressively.

@vstinner, Do you have any suggestions for this option?
- a: ./configure --enable-optimizations --pgo-workers=8
- b: ./configure --enable-optimizations --with-concurrent-pgo
- c: ./configure --enable-optimizations (By detecting system cpu count)

Following metrics is the reference for decision making :)

## Build Time
AS-IS:
real4m42.799s

TO-BE(this case -j8): 
real2m10.405s

## No performance regression
I didn't check how the environment is reliable but there looks no regression.
++-+---+
| Benchmark  | base| workers   |
++=+===+
| 2to3   | 409 ms  | 412 ms: 1.01x slower  |
++-+---+
| chaos  | 115 ms  | 114 ms: 1.01x faster  |
++-+---+
| deltablue  | 6.66 ms | 6.59 ms: 1.01x faster |
++-+---+
| fannkuch   | 605 ms  | 611 ms: 1.01x slower  |
++-+---+
| float  | 138 ms  | 129 ms: 1.07x faster  |
++-+---+
| go | 220 ms  | 215 ms: 1.02x faster  |
++-+---+
| hexiom | 10.3 ms | 10.1 ms: 1.02x faster |
++-+---+
| json_dumps | 19.6 ms | 19.2 ms: 1.02x faster |
++-+---+
| json_loads | 40.6 us | 39.7 us: 1.02x faster |
++-+---+
| logging_silent | 180 ns  | 173 ns: 1.04x faster  |
++-+---+
| logging_simple | 8.89 us | 8.81 us: 1.01x faster |
++-+---+
| nqueens| 134 ms  | 136 ms: 1.01x slower  |
++-+---+
| pathlib| 24.6 ms | 24.2 ms: 1.01x faster |
++-+---+
| pickle | 16.1 us | 15.9 us: 1.01x faster |
++-+---+
| pickle_dict| 41.4 us | 38.1 us: 1.09x faster |
++-+---+
| pickle_list| 6.27 us | 5.09 us: 1.23x faster |
++-+---+
| pickle_pure_python | 499 us  | 492 us: 1.01x faster  |
++-+---+
| pidigits   | 285 ms  | 290 ms: 1.02x slower  |
++-+---+
| python_startup | 12.1 ms | 12.2 ms: 1.01x slower |
++-+---+
| python_startup_no_site | 8.91 ms | 8.89 ms: 1.00x faster |
++-+---+
| raytrace   | 510 ms  | 500 ms: 1.02x faster  |
++-+---+
| regex_compile  | 211 ms  | 210 ms: 1.00x faster  |
++-+---+
| regex_effbot   | 4.99 ms | 4.88 ms: 1.02x faster |
++-+---+
| regex_v8   | 37.3 ms | 36.3 ms: 1.03x faster |
++-+---+
| richards   | 73.6 ms | 72.2 ms: 1.02x faster |
++-+---+
| scimark_fft| 542 ms  | 552 ms: 1.02x slower  |
++-+---+
| scimark_lu | 189 ms  | 184 ms: 1.03x faster  |
++-+---+
| scimark_monte_carlo| 106 ms  | 106 ms: 1.01x slower  |
++-+---+
| scimark_sor| 199 ms  | 196 ms: 1.01x faster  |
++-+---+
| spectral_norm  | 177 ms  | 176 ms: 1.01x faster  |
++-+---+
| unpack_sequence| 64.9 ns | 63.7 ns: 1.02x faster |
++-+---+
| unpickle   | 21.5 us | 21.6 us: 1.

[issue46551] Provide number of workers option for fast PGO build time

2022-01-27 Thread Dong-hee Na


Dong-hee Na  added the comment:

> You only test libregrtest.main and libregrtest.runtest_mp modules which > 
> don't execute code. Does it mean that running tests is useless to train > the 
> PGO?

Sorry, I didn't check all affects except performance regression,
and there was already related discussion and decided not to do:
https://bugs.python.org/issue24915#msg251128
'I think the --pgo flag needs only work in single process mode, since
multi-process would probably not write out the profiling data properly.'

I close the issue as won't do.

--
assignee: corona10 -> 
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

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



[issue46378] Experiment with LLVM BOLT binary optimizer

2022-01-27 Thread Dong-hee Na


Dong-hee Na  added the comment:

Only 1% gain, so we decided not to adopt it yet.
see: https://github.com/faster-cpython/ideas/issues/224#issuecomment-1022371595

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

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



[issue46593] memoryview lacks support for half floats

2022-01-31 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46600] Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call

2022-02-01 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-01 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-04 Thread Dong-hee Na


Change by Dong-hee Na :


--
assignee:  -> corona10
nosy: +corona10

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-04 Thread Dong-hee Na


Change by Dong-hee Na :


--
keywords: +patch
pull_requests: +29316
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31138

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-04 Thread Dong-hee Na


Change by Dong-hee Na :


Added file: https://bugs.python.org/file50604/bench_callback.py

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



[issue46648] `test.test_urllib2.MiscTests.test_issue16464` started to fail

2022-02-05 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46648] `test.test_urllib2.MiscTests.test_issue16464` started to fail

2022-02-05 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests:  -29325

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



[issue46657] Add mimalloc memory allocator

2022-02-06 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10, nascheme

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



[issue46657] Add mimalloc memory allocator

2022-02-06 Thread Dong-hee Na


Dong-hee Na  added the comment:

I add Neil to the nosy list since he is one of the kick-off members with this 
amazing works :)

--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na


Dong-hee Na  added the comment:

@hydroflask

It does not show impressive performance enhancement, so I decided not to change 
it
See PR 31138

--
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na


Dong-hee Na  added the comment:

@hydroflask

I am one of the big fans of applying vectorcall :)

> The benchmark you did is not reflective of my use-case. I have a codebase 
> that I have completely converted into a C extension using mypyc.

Can you provide me a minimal benchmarkable script(if you need to include mypyc 
it's okay) to persuade other core dev?

--

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



[issue45955] Calling read() on HTTPError may cause KeyError in tempfile

2022-02-06 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na


Dong-hee Na  added the comment:

@vstinner

I got a similar result from hydroflask's benchmark.
I think that is worth reopening this issue WDYT?

--
nosy: +erlendaasland, vstinner

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na


Dong-hee Na  added the comment:

@hydroflask

Would you like to run your benchmark with my latest PR?

--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na


Change by Dong-hee Na :


Added file: https://bugs.python.org/file50610/bench_callback_v3.py

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na


Dong-hee Na  added the comment:

With v3 benchmark

Mean +- std dev: [base] 1.32 us +- 0.02 us -> [opt] 1.18 us +- 0.02 us: 1.13x 
faster

--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na


Change by Dong-hee Na :


--
stage: resolved -> patch review

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-06 Thread Dong-hee Na


Change by Dong-hee Na :


--
resolution: wont fix -> 
status: closed -> open

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-07 Thread Dong-hee Na


Dong-hee Na  added the comment:

@vstinner

PR 31188 cause reference leak, please check

Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 5.38 Run tests sequentially
0:00:00 load avg: 5.38 [1/1] test_ctypes
beginning 6 repetitions
123456
..
test_ctypes leaked [1028, 1026, 1028] references, sum=3082
test_ctypes leaked [2, 1, 3] memory blocks, sum=6
test_ctypes failed (reference leak)

== Tests result: FAILURE ==

1 test failed:
test_ctypes

Total duration: 3.2 sec
Tests result: FAILURE

--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-07 Thread Dong-hee Na


Dong-hee Na  added the comment:

No leak after if I revert PR 31188 on my local

--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-07 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +29379
pull_request: https://github.com/python/cpython/pull/31209

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-07 Thread Dong-hee Na


Dong-hee Na  added the comment:

@vstinner

PR 31209 is for fixing the leak.

--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-07 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset e959dd9f5c1d8865d4e10c49eb30ee0a4fe2735d by Dong-hee Na in branch 
'main':
bpo-46323 Fix ref leak if ctypes.CFuncPtr raises an error. (GH-31209)
https://github.com/python/cpython/commit/e959dd9f5c1d8865d4e10c49eb30ee0a4fe2735d


--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-08 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset b5527688aae11d0b5af58176267a9943576e71e5 by Dong-hee Na in branch 
'main':
bpo-46323: Use PyObject_Vectorcall while calling ctypes callback function 
(GH-31138)
https://github.com/python/cpython/commit/b5527688aae11d0b5af58176267a9943576e71e5


--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-08 Thread Dong-hee Na


Dong-hee Na  added the comment:

@hydroflask

All patches are merged!
Thanks for all your suggestions :)

--
stage: patch review -> resolved
status: open -> closed

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-08 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +29395
pull_request: https://github.com/python/cpython/pull/31224

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-08 Thread Dong-hee Na


Dong-hee Na  added the comment:

@hydroflask

Sound reasonable, I submitted a new patch to use alloca which is already used 
in _ctypes module.

--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-08 Thread Dong-hee Na


Dong-hee Na  added the comment:

And it even better from performance view

--

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



[issue46685] Add additional tests for new features in `typing.py`

2022-02-09 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset d2d1d49eaccaa83eb8873ba15f2fc9562143bc56 by Nikita Sobolev in 
branch 'main':
bpo-46685: cover `TypeError` of `ForwardRef(1)` in `test_typing` (GH-31223)
https://github.com/python/cpython/commit/d2d1d49eaccaa83eb8873ba15f2fc9562143bc56


--
nosy: +corona10

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-09 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset d18120cd67b4297f78bfc9bf7b36774cf0bf15f2 by Dong-hee Na in branch 
'main':
bpo-46323: Reduce stack usage of ctypes python callback function. (GH-31224)
https://github.com/python/cpython/commit/d18120cd67b4297f78bfc9bf7b36774cf0bf15f2


--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-10 Thread Dong-hee Na


Dong-hee Na  added the comment:

@hydroflask @vstinner

Okay let's remove if statement, I will send a patch soon.

--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-10 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +29418
pull_request: https://github.com/python/cpython/pull/31249

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-10 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset db052851a70fd95d047c6263fc16a75e4d47b3ed by Dong-hee Na in branch 
'main':
bpo-46323: Allow alloca(0) for python callback function of ctypes (GH-31249)
https://github.com/python/cpython/commit/db052851a70fd95d047c6263fc16a75e4d47b3ed


--

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-11 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +29434
pull_request: https://github.com/python/cpython/pull/31272

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



[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-11 Thread Dong-hee Na


Dong-hee Na  added the comment:

> Was reviewing the code and noticed that a double-free was introduced in the 
> recent changes:

Thanks, that looks like my mistake

--

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



  1   2   3   4   5   6   7   8   9   10   >