[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Kumar Aditya


New submission from Kumar Aditya :

functools' singledispatch does not support GenericAlias

```py
from functools import singledispatch

@singledispatch
def func(x):
print("any")

@func.register
def _(x: list[str]):
print("list[str]")


func(["a", "b"])

```

--
components: Library (Lib)
messages: 408179
nosy: kumaraditya303, rhettinger
priority: normal
severity: normal
status: open
title: functools' singledispatch does not support GenericAlias
type: enhancement
versions: Python 3.11

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



[issue22239] asyncio: nested event loop

2021-12-10 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue45855] PyCapsule_Import still using PyImport_ImportModuleNoBlock

2021-12-11 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303
nosy_count: 2.0 -> 3.0
pull_requests: +28271
pull_request: https://github.com/python/cpython/pull/30046

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



[issue23469] Delete Misc/*.wpr files

2021-12-11 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 4.0 -> 5.0
pull_requests: +28287
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30067

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



[issue20369] concurrent.futures.wait() blocks forever when given duplicate Futures

2021-12-17 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 4.0 -> 5.0
pull_requests: +28385
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30168

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



[issue46119] Update bundled pip to 21.3.1 and setuptools to 59.7.0

2021-12-17 Thread Kumar Aditya


Change by Kumar Aditya :


--
components: Distutils
nosy: dstufft, eric.araujo, kumaraditya303, pablogsal
priority: normal
severity: normal
status: open
title: Update bundled pip to 21.3.1 and setuptools to 59.7.0
versions: Python 3.11

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



[issue46119] Update bundled pip to 21.3.1 and setuptools to 59.7.0

2021-12-17 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue23819] test_asyncio fails when run under -O

2021-12-19 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +28416
pull_request: https://github.com/python/cpython/pull/30195

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



[issue42413] Replace custom exceptions for timeouts with TimeoutError

2021-12-19 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303
nosy_count: 13.0 -> 14.0
pull_requests: +28418
pull_request: https://github.com/python/cpython/pull/30197

___
Python tracker 
<https://bugs.python.org/issue42413>
___
___
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-19 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 8.0 -> 9.0
pull_requests: +28432
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30211

___
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



[issue46148] Optimize pathlib

2021-12-22 Thread Kumar Aditya


New submission from Kumar Aditya :

Issue for tracking improving performance of pathlib module.

--
components: Library (Lib)
messages: 409015
nosy: gvanrossum, kumaraditya303
priority: normal
severity: normal
status: open
title: Optimize pathlib
type: performance
versions: Python 3.11

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



[issue46148] Optimize pathlib

2021-12-22 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46148] Optimize pathlib

2021-12-22 Thread Kumar Aditya


Kumar Aditya  added the comment:

Optimizations include:

- Remove redundant check for functools lru_cache
- Replace attrgetter as it is slower than direct access

--

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



[issue46148] Optimize pathlib

2021-12-22 Thread Kumar Aditya


Kumar Aditya  added the comment:

Benchmarks for attrgetter is provided in the PR.

--

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



[issue20392] Inconsistency with uppercase file extensions in MimeTypes.guess_type

2021-12-22 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 4.0 -> 5.0
pull_requests: +28451
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30229

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



[issue20823] [doc] Clarify copyreg.pickle() documentation

2021-12-22 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 3.0 -> 4.0
pull_requests: +28452
pull_request: https://github.com/python/cpython/pull/30230

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



[issue7262] [doc] codecs.open() + eol (windows)

2021-12-22 Thread Kumar Aditya


Change by Kumar Aditya :


--
versions:  -Python 3.10, Python 3.9

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



[issue7262] [doc] codecs.open() + eol (windows)

2021-12-22 Thread Kumar Aditya


Change by Kumar Aditya :


--
versions: +Python 3.10, Python 3.9

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



[issue7262] [doc] codecs.open() + eol (windows)

2021-12-22 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303
nosy_count: 5.0 -> 6.0
pull_requests: +28453
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30231

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



[issue46160] IPy->IPSet AttributeError: module 'collections' has no attribute 'MutableSet'

2021-12-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

In Python 3.10 these deprecated aliases where removed from collections module.
To fix it you can change `collections.MutableSet` to 
`collections.abc.MutableSet`.

See 
https://docs.python.org/3/whatsnew/3.9.html#you-should-check-for-deprecationwarning-in-your-code

--
nosy: +kumaraditya303

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



[issue46157] Typo in JSON documentation

2021-12-23 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 2.0 -> 3.0
pull_requests: +28458
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30237

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



[issue26897] [doc] Clarify Popen stdin, stdout, stderr

2021-12-23 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 3.0 -> 4.0
pull_requests: +28459
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30231

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



[issue46157] Typo in JSON documentation

2021-12-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

I'll fix them all :)

--

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



[issue46157] Typo in JSON documentation

2021-12-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

I have fixed most of them in the PR which I found correct, rest can be fixed 
later on.

--

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



[issue46157] Typo in JSON documentation

2021-12-23 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +28461
pull_request: https://github.com/python/cpython/pull/30239

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



[issue46157] Typo in JSON documentation

2021-12-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

Fixed in a new PR @Serhiy

--

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



[issue45863] tarfile zeroes ustar header fields unnecessarily

2021-12-27 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +ethan.furman

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



[issue45924] Incorrect traceback when future's exception is raised multiple times

2021-12-27 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 5.0 -> 6.0
pull_requests: +28489
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30274

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



[issue26552] Failing ensure_future still creates a Task

2021-12-29 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303
nosy_count: 5.0 -> 6.0
pull_requests: +28502
pull_request: https://github.com/python/cpython/pull/30288

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



[issue46119] Update bundled pip to 21.3.1 and setuptools to 59.7.0

2022-01-04 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +28602
pull_request: https://github.com/python/cpython/pull/30393

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



[issue46148] Optimize pathlib

2022-01-05 Thread Kumar Aditya


Kumar Aditya  added the comment:

I am withdrawing this for now and since there is already a bpo for vectorcall I 
am closing this.

--

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



[issue46148] Optimize pathlib

2022-01-05 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument

2022-01-06 Thread Kumar Aditya


Kumar Aditya  added the comment:

The PR introduced a typo in the method signature see 
https://github.com/python/cpython/pull/30427#discussion_r779497305

--
nosy: +kumaraditya303

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



[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument

2022-01-06 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +28634
pull_request: https://github.com/python/cpython/pull/30430

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



[issue46244] typing._TypeVarLike missing __slots__

2022-01-06 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue45661] [meta] Freeze commonly used stdlib modules.

2022-01-06 Thread Kumar Aditya


Kumar Aditya  added the comment:

functools and contextlib are very common so they should be deep-frozen. 
warnings and re would be nice to do.

--
nosy: +gvanrossum, kumaraditya303

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



[issue45661] [meta] Freeze commonly used stdlib modules.

2022-01-07 Thread Kumar Aditya


Kumar Aditya  added the comment:

Can you elaborate a bit about "This can have negative affects for performance" 
as I think freezing modules has only one downside of increasing binary size ?

> For WASM builds we want to make the wasm binary as small as possible.

If WASM would become an officially supported platform then there can be a patch 
to disable freezing on such platforms otherwise I don't see how because of WASM 
we cannot deepfreeze for other platforms which benefit from it.

--

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



[issue45925] Upgrade macOS and Windows installers to use SQLite 3.37.2

2022-01-08 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 7.0 -> 8.0
pull_requests: +28689
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30485

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



[issue46309] Task created by StreamReaderProtocol gets garbage collected.

2022-01-08 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue46223] asyncio cause infinite loop during debug

2022-01-08 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue46148] Optimize pathlib

2022-01-09 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy:  -kumaraditya303

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



[issue28249] doctest.DocTestFinder reports incorrect line numbers with exclude_empty=False

2022-01-09 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303
type:  -> behavior
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5

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



[issue46324] 'import traceback' Causes a Crash

2022-01-09 Thread Kumar Aditya


Kumar Aditya  added the comment:

Python has a token module so you should use any other name for your module.

--
nosy: +kumaraditya303

___
Python tracker 
<https://bugs.python.org/issue46324>
___
___
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-01-09 Thread Kumar Aditya


Kumar Aditya  added the comment:

Targeting Python 3.11 as it a performance improvement.

--
nosy: +kumaraditya303, vstinner
versions:  -Python 3.10, Python 3.7, Python 3.8, Python 3.9

___
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



[issue46315] Add support for WebAssembly System Interface (wasm32-wasi)

2022-01-09 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue46310] Simplify `for` loop in `.close()` method in `asyncio/windows_events`

2022-01-09 Thread Kumar Aditya


Change by Kumar Aditya :


--
components: +asyncio -Library (Lib)
nosy: +kumaraditya303, yselivanov

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



[issue46265] Error when cross compiling for hardfloat MIPS

2022-01-09 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +pablogsal

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



[issue46318] asyncio and ssl: ResourceWarning: unclosed transport

2022-01-09 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



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

2022-01-10 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46244] typing._TypeVarLike missing __slots__

2022-01-10 Thread Kumar Aditya


Kumar Aditya  added the comment:

Can this be closed now ?

--
versions:  -Python 3.10

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



[issue46339] PEG parser segfault from ast.literal_eval

2022-01-10 Thread Kumar Aditya


Kumar Aditya  added the comment:

I tested it on 3.10.1 and it didn't segfault on Windows 11 so seems like 3.11 
regression.

--
nosy: +kumaraditya303

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



[issue46333] ForwardRef.__eq__ does not respect module parameter

2022-01-10 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue46340] DeprecationWarning emitted when running asyncio tests

2022-01-10 Thread Kumar Aditya


Change by Kumar Aditya :


--
components: asyncio
nosy: asvetlov, kumaraditya303, yselivanov
priority: normal
pull_requests: 28727
severity: normal
status: open
title: DeprecationWarning emitted when running asyncio tests
versions: Python 3.11

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



[issue46374] Assertion failed in ceval.c

2022-01-14 Thread Kumar Aditya


Change by Kumar Aditya :


--
components: Interpreter Core
nosy: kumaraditya303
priority: normal
severity: normal
status: open
title: Assertion failed in ceval.c
type: crash

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



[issue46374] Assertion failed in ceval.c

2022-01-14 Thread Kumar Aditya


Change by Kumar Aditya :


--
versions: +Python 3.11

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



[issue46374] Assertion failed in ceval.c

2022-01-14 Thread Kumar Aditya

New submission from Kumar Aditya :

The following code causes Assertion failed on Windows 11 


import cProfile
def test():
import sys
import dis

with cProfile.Profile() as p:
test()

Error:

❯ ./python.bat main.py 
Running Debug|x64 interpreter...
Assertion failed: frame->f_lasti >= 0, file D:\cpython\Python\ceval.c, line 6509

--

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



[issue46374] Assertion failed in ceval.c

2022-01-14 Thread Kumar Aditya


Kumar Aditya  added the comment:

Tested commit is 7c770d3350813a82a639fcb3babae0de2b87aaae

--

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



[issue46374] Assertion failed in ceval.c

2022-01-14 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +Mark.Shannon

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



[issue46375] io.BytesIO does not have peek()

2022-01-14 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +benjamin.peterson, kumaraditya303, stutzbach

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



[issue46383] _zoneinfo module_free has invalid function signature

2022-01-15 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303
nosy_count: 3.0 -> 4.0
pull_requests: +28813
pull_request: https://github.com/python/cpython/pull/30611

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



[issue40962] Add documentation for asyncio._set_running_loop()

2022-01-16 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +asvetlov, yselivanov

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



[issue46395] `Concatenate` is not covered to be a return type in `test_typing`

2022-01-16 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +gvanrossum, kj

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



[issue46405] Warning compiling main on Windows

2022-01-16 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
nosy: +kumaraditya303
nosy_count: 6.0 -> 7.0
pull_requests: +28830
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30627

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



[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-17 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-17 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-17 Thread Kumar Aditya


Kumar Aditya  added the comment:

I would like to work on this.

--

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



[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-17 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +28833
pull_request: https://github.com/python/cpython/pull/30630

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



[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303
nosy_count: 15.0 -> 16.0
pull_requests: +28840
pull_request: https://github.com/python/cpython/pull/30637

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



[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7

2022-01-18 Thread Kumar Aditya


Kumar Aditya  added the comment:

These tests seems to be expected to fail on alpine.

See 
https://github.com/alpinelinux/aports/blob/b36ed9bba2fdbf49a98dfdc3377c29271525082f/main/python3/APKBUILD#L123

--
nosy: +kumaraditya303

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



[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7

2022-01-18 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy:  -kumaraditya303

___
Python tracker 
<https://bugs.python.org/issue46390>
___
___
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-01-18 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy:  -kumaraditya303

___
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



[issue46429] Merge all deepfrozen files into one

2022-01-18 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: gvanrossum, kumaraditya303
priority: normal
severity: normal
status: open
title: Merge all deepfrozen files into one
versions: Python 3.11

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



[issue46429] Merge all deepfrozen files into one

2022-01-18 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46430] intern strings in deepfrozen modules

2022-01-19 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: gvanrossum, kumaraditya303
priority: normal
severity: normal
status: open
title: intern strings in deepfrozen modules
versions: Python 3.11

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



[issue46430] intern strings in deepfrozen modules

2022-01-19 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46430] intern strings in deepfrozen modules

2022-01-19 Thread Kumar Aditya


New submission from Kumar Aditya :

Interns strings in deep-frozen modules.

See https://github.com/faster-cpython/ideas/issues/218

--

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



[issue38912] test_asyncio altered the execution environment

2022-01-19 Thread Kumar Aditya


Kumar Aditya  added the comment:

See https://github.com/python/cpython/pull/30274 test_asyncio is always failing 
with env changed.

--
nosy: +kumaraditya303
status: pending -> open

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



[issue46443] Deepfreeze use preallocated small ints

2022-01-19 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: gvanrossum, kumaraditya303
priority: normal
pull_requests: 28907
severity: normal
status: open
title: Deepfreeze use preallocated small ints
versions: Python 3.11

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



[issue46443] Deepfreeze use preallocated small ints

2022-01-19 Thread Kumar Aditya


New submission from Kumar Aditya :

It saves space in the codeobjects created by deepfreeze and reuses already 
cached ints so no allocation overhead.

--

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



[issue46430] intern strings in deepfrozen modules

2022-01-19 Thread Kumar Aditya


Kumar Aditya  added the comment:

This speeds up comparison of strings by just comparing their pointers so it is 
much faster.

--

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



[issue46443] Deepfreeze use preallocated small ints

2022-01-19 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue45767] Fix types for dev_t processing in posix module

2022-01-20 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +serhiy.storchaka

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



[issue46400] Please update bundled libexpat to 2.4.3 with security fixes

2022-01-20 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware

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



[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-21 Thread Kumar Aditya


New submission from Kumar Aditya :

In asyncio, the Generic classes return the class itself in __class_getitem__ 
instead of GenericAlias, because of this they cannot be introspected as 
GenericAlias objects.

Running Debug|x64 interpreter...
Python 3.11.0a4+ (main, Jan 22 2022, 10:00:18) [MSC v.1930 64 bit (AMD64)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> asyncio.Future

>>> asyncio.Future[int] 

>>> list

>>> list[int]
list[int]
>>> list[int].__args__
(,)
>>> asyncio.Future[int].__args__
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: type object '_asyncio.Future' has no attribute '__args__'

--
messages: 411231
nosy: asvetlov, kumaraditya303, yselivanov
priority: normal
severity: normal
status: open
title: asyncio Generic classes should return GenericAlias in __class_getitem__
type: behavior
versions: Python 3.11

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



[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-21 Thread Kumar Aditya


Change by Kumar Aditya :


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

___
Python tracker 
<https://bugs.python.org/issue46469>
___
___
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-21 Thread Kumar Aditya


Kumar Aditya  added the comment:

The following patch further reduces the reference but not sure if it is correct.

diff --git a/Objects/object.c b/Objects/object.c
index a5ee8eef4a..2ba6d14d5b 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1853,6 +1853,9 @@ static PyTypeObject* static_types[] = {
 &PyClassMethod_Type,
 &PyCode_Type,
 &PyComplex_Type,
+&PyContext_Type,
+&PyContextVar_Type,
+&PyContextToken_Type,
 &PyCoro_Type,
 &PyDictItems_Type,
 &PyDictIterItem_Type,
@@ -1911,6 +1914,13 @@ static PyTypeObject* static_types[] = {
 &_PyAsyncGenAThrow_Type,
 &_PyAsyncGenWrappedValue_Type,
 &_PyCoroWrapper_Type,
+&_PyHamt_Type,
+&_PyHamt_ArrayNode_Type,
+&_PyHamt_BitmapNode_Type,
+&_PyHamt_CollisionNode_Type,
+&_PyHamtKeys_Type,
+&_PyHamtValues_Type,
+&_PyHamtItems_Type,
 &_PyInterpreterID_Type,
 &_PyManagedBuffer_Type,
 &_PyMethodWrapper_Type,


Before:
Running Debug|x64 interpreter...
[4929 refs, 1988 blocks]
After:
Running Debug|x64 interpreter...
[4541 refs, 1853 blocks]

--
nosy: +kumaraditya303

___
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



[issue46421] unittest ValueError when invoking as module

2022-01-22 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303, serhiy.storchaka
type:  -> behavior
versions: +Python 3.11, Python 3.9

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



[issue43079] wrong IP address range given for ipv4_mapped

2022-01-22 Thread Kumar Aditya


Change by Kumar Aditya :


--
versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8

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



[issue46471] use global singletons for single byte bytes objects in deepfreeze

2022-01-22 Thread Kumar Aditya


New submission from Kumar Aditya :

By using global singletons for single byte bytes objects in deepfreeze, there 
is no need to generate c code for it so it reduces the size of generated c file 
and reduces memory use of the objects when they are allocated on the heap as 
now they are statically allocated and they are already immortal.

--
components: Build
messages: 411245
nosy: gvanrossum, kumaraditya303
priority: normal
severity: normal
status: open
title: use global singletons for single byte bytes objects in deepfreeze
type: enhancement
versions: Python 3.11

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



[issue46471] use global singletons for single byte bytes objects in deepfreeze

2022-01-22 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46340] DeprecationWarning emitted when running asyncio tests

2022-01-22 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +28970
pull_request: https://github.com/python/cpython/pull/30785

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



[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Kumar Aditya


Change by Kumar Aditya :


--
versions: +Python 3.10, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue46469>
___
___
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 Kumar Aditya


Kumar Aditya  added the comment:

> Would it be possible to enhance deepfreeze be produce a list of all 
> (immortal) code objects?

It is tricky because the deepfreeze modules are generated by the bootstrap 
interpreter in Linux/MacOS and the downloaded python from nuget interpreter on 
Windows so when the bootstrap interpreter is built there will be no list of 
code objects to begin with so it won't work as intended.
But I have an idea : If we can #define Py_DEEPFROZEN_MODULES in the final 
interpreter but not in the bootstrap one, and then in pylifecycle.c an extern 
function can free up deep-frozen modules memory if Py_DEEPFROZEN_MODULES which 
will be defined in deepfreeze.c then it should work.

--

___
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



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

2022-01-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

Clearing co_quickened is easy, but it would requires changes to the build 
system to change the build order on Windows and bootstrap interpreter on 
Windows. I manually edited the Windows project files but it requires generating 
deepfreeze.c before hand. It cleared around ~60 memory blocks on Windows.

See branch https://github.com/kumaraditya303/cpython/commits/fix-code

--

___
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



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

2022-01-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

bootstrap interpreter on Windows => bootstrap interpreter on Unix

--

___
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



[issue46486] Rename DesciptorClassification => DescriptorClassification in specialize.c

2022-01-23 Thread Kumar Aditya


New submission from Kumar Aditya :

Rename DesciptorClassification => DescriptorClassification in specialize.c as 
DesciptorClassification has a typo.

--
messages: 411365
nosy: Mark.Shannon, kj, kumaraditya303
priority: normal
severity: normal
status: open
title: Rename DesciptorClassification => DescriptorClassification in 
specialize.c
versions: Python 3.11

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



[issue46486] Rename DesciptorClassification => DescriptorClassification in specialize.c

2022-01-23 Thread Kumar Aditya


Change by Kumar Aditya :


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

___
Python tracker 
<https://bugs.python.org/issue46486>
___
___
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-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

FYI, I updated the build files and got it working on Windows and clears around 
~60 memory blocks. See the latest commit in branch.

--

___
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



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

2022-01-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

> Be careful, Python must remain usable after Py_Finalize(): it's legit to call 
> Py_Initialize() again and execute new Python code. Example executing the same 
> code 4 times, each time Py_Initialize() and Py_Finalize() are called:

./Programs/_testembed test_repeated_init_exec 'print("Hello")'

With the current design, it isn't possible though because the code objects are 
modified in place so if co_quickened is freed the VM still tries to execute the 
copied instructions.

See 
https://github.com/python/cpython/blob/76dc047a0e88d10aad0405228d56e94438cdd91c/Python/specialize.c#L425

--

___
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



  1   2   3   >