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

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

[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/issu

[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.p

[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.p

[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

[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/issu

[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/issue23

[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/issu

[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

[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

[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/issu

[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/issue46

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

[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.p

[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/issu

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

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

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

[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

[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.p

[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

[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

[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/issue46

[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/issue46

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

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

[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

[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/issu

[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/issue46

[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/issue46

[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.or

[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/issue46

[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/issue46

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

[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/issue45

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

[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.p

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

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

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

[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/issu

[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/issue46

[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/issue46

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

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

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

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

[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/issue1

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

[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/is

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

[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

[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/issue46

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

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

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

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

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

[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/issu

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

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

[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.p

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

[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/issu

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

[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/issue46

[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/issu

[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

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

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

[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/issue46

[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/issu

[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/issue46

[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/issu

[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/issue46

[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/issu

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

[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/issue46

[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/issue46

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

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

[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/issue46

[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

[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/issu

[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

[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/issu

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

[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

[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/issu

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

[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/issue46

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

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

[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

[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/issu

[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: Ren

[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/issu

[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/issue46

[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: ./Progr

  1   2   3   >