[issue43528] "connect_read_pipe" raises errors on Windows for STDIN

2022-04-07 Thread Kumar Aditya


Change by Kumar Aditya :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> ProactorEventLoop doesn't support stdin/stdout nor files with 
connect_read_pipe/connect_write_pipe

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



[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2022-04-07 Thread Kumar Aditya


Kumar Aditya  added the comment:

Most of the static variables were removed by GH-31366 so I closed those PRs as 
they were outdated, however some static variable still exist.

--
nosy: +kumaraditya

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



[issue24837] await process.wait() does not work with a new_event_loop

2022-03-30 Thread Kumar Aditya


Kumar Aditya  added the comment:

@asvetlov This is bug no longer exists, on main branch this is the output and 
it does not hangs:

DEBUG:asyncio:Using selector: EpollSelector
True

--
nosy: +asvetlov, kumaraditya

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


Change by Kumar Aditya :


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

___
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



[issue47127] Specialize call for c functions with METH_FASTCALL|METH_KEYWORDS

2022-03-30 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46712] Share global string identifiers in deepfreeze

2022-03-28 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +30230
pull_request: https://github.com/python/cpython/pull/32152

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



[issue47127] Specialize call for c functions with METH_FASTCALL|METH_KEYWORDS

2022-03-26 Thread Kumar Aditya


New submission from Kumar Aditya :

Specialize call for c functions with METH_FASTCALL|METH_KEYWORDS flags.

It is the second largest PRECALL specialization failure as per the stats.

See 
https://github.com/faster-cpython/ideas/blob/main/stats.md#specialization-attempts-10

--
components: Interpreter Core
messages: 416058
nosy: Dennis Sweeney, Mark.Shannon, kumaraditya303
priority: normal
pull_requests: 30204
severity: normal
status: open
title: Specialize call for c functions with METH_FASTCALL|METH_KEYWORDS
type: performance
versions: Python 3.11

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



[issue47062] Implement asyncio.Runner context manager

2022-03-25 Thread Kumar Aditya


Kumar Aditya  added the comment:

With this change, Github Actions fails first time and it passes in the second 
rerun of running asyncio tests.

See https://github.com/python/cpython/runs/5682275663?check_suite_focus=true 
and main branch.

--
nosy: +kumaraditya303

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


Change by Kumar Aditya :


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

___
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-03-25 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +30185
pull_request: https://github.com/python/cpython/pull/32107

___
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



[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-03-23 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +30160
pull_request: https://github.com/python/cpython/pull/32073

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



[issue47012] Speed up iteration of bytes and bytearray

2022-03-23 Thread Kumar Aditya


Change by Kumar Aditya :


--
components: +Interpreter Core
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

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



[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-03-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

@asvetlov Do you have any insight for this issue?

--

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



[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-21 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue47010] Implement zero copy writes in SelectorSocketTransport in asyncio

2022-03-14 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue47012] Speed up iteration of bytes and bytearray

2022-03-14 Thread Kumar Aditya


New submission from Kumar Aditya :

Benchmark and results are attached in the PR.

--
messages: 415129
nosy: gvanrossum, kumaraditya303
priority: normal
pull_requests: 29965
severity: normal
status: open
title: Speed up iteration of bytes and bytearray
type: performance
versions: Python 3.11

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



[issue47010] Implement zero copy writes in SelectorSocketTransport in asyncio

2022-03-14 Thread Kumar Aditya


New submission from Kumar Aditya :

Currently, _SelectorSocketTransport transport creates a copy of the data before 
sending which in case of large amount of data, can create multiple giga bytes 
copies of data before sending.

Script demonstrating current behavior:

-

import asyncio
import memory_profiler

@memory_profiler.profile
async def handle_echo(reader: asyncio.StreamReader, writer: 
asyncio.StreamWriter):
data = b'x' * 1024 * 1024 * 1000 # 1000 MiB payload
writer.write(data)
await writer.drain()
writer.close()

async def main():
server = await asyncio.start_server(
handle_echo, '127.0.0.1', )

addrs = ', '.join(str(sock.getsockname()) for sock in server.sockets)
print(f'Serving on {addrs}')

async with server:
asyncio.create_task(server.start_serving())
reader, writer = await asyncio.open_connection('127.0.0.1', )
while True:
data = await reader.read(1024 * 1024 * 100)
if not data:
break

asyncio.run(main())
-

Memory profile result:

Filename: test.py

Line #Mem usageIncrement  Occurrences   Line Contents
=
 4 17.7 MiB 17.7 MiB   1   @memory_profiler.profile
 5 async def handle_echo(reader: 
asyncio.StreamReader, writer: asyncio.StreamWriter):
 6   1017.8 MiB   1000.1 MiB   1   data = b'x' * 1024 * 1024 * 
1000 # 1000 MiB payload
 7   2015.3 MiB997.5 MiB   1   writer.write(data)
 8   2015.3 MiB   -988.1 MiB   2   await writer.drain()
 9   1027.1 MiB   -988.1 MiB   1   writer.close()



To make it zero copy, python's buffer protocol can be used and use memory views 
of data to save RAM. The writelines method currently joins all the data before 
sending whereas it can use `socket.sendmsg` to make it more memory efficient.


Links:

- writelines - 
https://github.com/python/cpython/blob/2153daf0a02a598ed5df93f2f224c1ab2a2cca0d/Lib/asyncio/transports.py#L116

- socket.sendmsg - 
https://docs.python.org/3/library/socket.html#socket.socket.sendmsg

- memory_profiler -
https://pypi.org/project/memory-profiler/

--
components: asyncio
messages: 415124
nosy: asvetlov, gvanrossum, kumaraditya303, yselivanov
priority: normal
severity: normal
status: open
title: Implement zero copy writes in SelectorSocketTransport in asyncio
type: resource usage
versions: Python 3.11

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



[issue46944] Use FASTCALL calling convention in generator.throw

2022-03-12 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46953] use FASTCALL for __import__ builtin

2022-03-12 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46993] Speed up bytearray creation from list and tuple

2022-03-12 Thread Kumar Aditya


New submission from Kumar Aditya :

The attached PR speeds up bytearray creation from list and tuple.

Benchmark (uses pyperf):
-
import pyperf

runner = pyperf.Runner()
runner.timeit(name="bench bytearray",
  stmt="bytearray([42]*1)",)
-

Results:

-
Mean +- std dev: [base] 74.8 us +- 5.5 us -> [patch] 53.2 us +- 3.3 us: 1.41x 
faster
-

--
components: Interpreter Core
messages: 414987
nosy: gvanrossum, kumaraditya303
priority: normal
pull_requests: 29935
severity: normal
status: open
title: Speed up bytearray creation from list and tuple
type: performance
versions: Python 3.11

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



[issue46892] Async Call-Stack Reconstruction

2022-03-11 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +gvanrossum, kumaraditya303

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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-09 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +vstinner

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



[issue46881] Statically allocate and initialize the latin1 characters.

2022-03-09 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2022-03-09 Thread Kumar Aditya


Kumar Aditya  added the comment:

@asvetlov Anything left to do here or can this be closed ?

--
nosy: +kumaraditya303

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



[issue30740] SSLError when cancelling an SSL connection

2022-03-09 Thread Kumar Aditya


Kumar Aditya  added the comment:

This is fixed on main branch with bpo-44011 and does not raises exception. This 
can be closed now @asvetlov.

--
nosy: +asvetlov, kumaraditya303
versions: +Python 3.11 -Python 3.6

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



[issue33886] SSL on aiomysql hangs on reconnection

2022-03-09 Thread Kumar Aditya


Kumar Aditya  added the comment:

The main branch has rewritten ssl implementation with bpo-44011. This is 
outdated now and does not has a reproducer. This can be closed @asvetlov.

--
nosy: +kumaraditya303

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



[issue39951] Ignore specific errors when closing ssl connections

2022-03-09 Thread Kumar Aditya


Kumar Aditya  added the comment:

@asvetlov This has been fixed on main branch with bpo-44011. This can be closed 
now.

--
nosy: +kumaraditya303
versions: +Python 3.11 -Python 3.10, Python 3.8, Python 3.9

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



[issue46953] use FASTCALL for __import__ builtin

2022-03-08 Thread Kumar Aditya


Kumar Aditya  added the comment:

Occurrence of __import__ calls in stdlib:

grep __import__ Lib/*/*.py | wc -l

28

It is common to import directly via __import__ outside the stdlib too.

--

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



[issue46953] use FASTCALL for __import__ builtin

2022-03-08 Thread Kumar Aditya


Kumar Aditya  added the comment:

The PR uses argument clinic and not hand written parsing code, which in turn is 
faster.

--

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



[issue46953] use FASTCALL for __import__ builtin

2022-03-07 Thread Kumar Aditya


New submission from Kumar Aditya :

Use FASTCALL for __import__ builtin.

Benchmark:
--
import pyperf

runner = pyperf.Runner()
runner.timeit(name="bench __import__",
  stmt="__import__('asyncio')"


Result:

Mean +- std dev: [base] 191 ns +- 16 ns -> [patch] 112 ns +- 11 ns: 1.71x faster

--
components: Interpreter Core
messages: 414729
nosy: Dennis Sweeney, Mark.Shannon, kumaraditya303
priority: normal
pull_requests: 29865
severity: normal
status: open
title: use FASTCALL for __import__ builtin
type: performance
versions: Python 3.11

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


Change by Kumar Aditya :


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

___
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



[issue46944] Use FASTCALL calling convention in generator.throw

2022-03-07 Thread Kumar Aditya


New submission from Kumar Aditya :

Use FASTCALL calling convention in generator.throw to avoid creating a 
temporary tuple to pass arguments to the function.

--
components: Interpreter Core
messages: 414660
nosy: Mark.Shannon, kumaraditya303
priority: normal
pull_requests: 29839
severity: normal
status: open
title: Use FASTCALL calling convention in generator.throw
versions: Python 3.11

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



[issue46341] duplicate paragraphs - asyncio Coroutines and Tasks file

2022-03-07 Thread Kumar Aditya


Change by Kumar Aditya :


--
versions: +Python 3.11 -Python 3.10

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



[issue46341] duplicate paragraphs - asyncio Coroutines and Tasks file

2022-03-07 Thread Kumar Aditya


New submission from Kumar Aditya :

This has been fixed in GH-31388. This can be closed now.

--
nosy: +AlexWaygood, kumaraditya303

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



[issue43447] Generate vectorcall code to parse arguments using Argument Clinic

2022-03-06 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue46937] convert remaining functions to AC in _weakref

2022-03-06 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +corona10

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



[issue46937] convert remaining functions to AC in _weakref

2022-03-06 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46937] convert remaining functions to AC in _weakref

2022-03-06 Thread Kumar Aditya


New submission from Kumar Aditya :

Convert remaining functions to AC in _weakref so that they use the FASTCALL 
calling convection.

--
messages: 414609
nosy: kumaraditya303
priority: normal
severity: normal
status: open
title: convert remaining functions to AC in _weakref
versions: Python 3.11

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



[issue30556] asyncio.wait very slow with FIRST_COMPLETED

2022-03-04 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +asvetlov

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



[issue36098] asyncio: ssl client-server with "slow" read

2022-03-04 Thread Kumar Aditya


Kumar Aditya  added the comment:

This has been fixed with bpo-44011 on main branch.

Output on main branch:

--
/workspaces/cpython/main.py:42: DeprecationWarning: There is no current event 
loop
  loop = asyncio.get_event_loop()
received 8192, total 8192
received 8192, total 16384
received 8192, total 24576
received 8192, total 32768
received 8192, total 40960
received 8192, total 49152
received 8192, total 57344
received 8192, total 65536
received 8192, total 73728
received 8192, total 81920
received 8192, total 90112
received 8192, total 98304
received 8192, total 106496
received 8192, total 114688
received 8192, total 122880
received 8192, total 131072
received 8192, total 139264
received 8192, total 147456
received 8192, total 155648
received 8192, total 163840
received 8192, total 172032
received 8192, total 180224
received 8192, total 188416
received 8192, total 196608
received 8192, total 204800
received 8192, total 212992
received 8192, total 221184
received 8192, total 229376
received 8192, total 237568
received 8192, total 245760
received 8192, total 253952
received 8192, total 262144
received 8192, total 270336
received 8192, total 278528
received 8192, total 286720
received 8192, total 294912
received 8192, total 303104
received 8192, total 311296
received 8192, total 319488
received 8192, total 327680
received 8192, total 335872
received 8192, total 344064
received 8192, total 352256
received 8192, total 360448
received 8192, total 368640
received 8192, total 376832
received 8192, total 385024
received 8192, total 393216
received 8192, total 401408
received 8192, total 409600
received 0, total 409600



This can be closed now @asvetlov.

--
nosy: +kumaraditya303

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



[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2022-03-04 Thread Kumar Aditya


Kumar Aditya  added the comment:

Since bpo-issue44011 is fixed, this can be closed now @asvetlov.

--
nosy: +kumaraditya303

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



[issue45065] test_asyncio failed (env changed) on s390x RHEL8 Refleaks 3.10: RuntimeError('Event loop is closed') in _SSLProtocolTransport.__del__

2022-03-03 Thread Kumar Aditya


Kumar Aditya  added the comment:

asyncio ssl implementation has been rewritten with bpo-44011: This is outdated 
now and should be closed @vstinner.

--
nosy: +kumaraditya303

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



[issue37368] test_asyncio: test_create_server_ssl_match_failed() failed on s390x SLES 3.x and logged an unraisable exception

2022-03-03 Thread Kumar Aditya


Kumar Aditya  added the comment:

This is outdated as the last failure was almost a year ago. This should be 
closed or at least marked pending @vstinner.

--
nosy: +kumaraditya303

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



[issue46832] unicodeobject.c doesn't compile when defined EXPERIMENTAL_ISOLATED_SUBINTERPRETERS, variable "interned" not found

2022-03-03 Thread Kumar Aditya


Kumar Aditya  added the comment:

@vstinner it is broken on main branch also.

--
nosy: +kumaraditya303

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



[issue36709] Asyncio SSL keep-alive connections raise errors after loop close.

2022-03-03 Thread Kumar Aditya

Kumar Aditya  added the comment:

The original issue is fixed on main branch with bpo-44011 GH-31275,
It now only raises warnings but no exceptions:

---
(env) @kumaraditya303 ➜ /workspaces/cpython (latin1 ✗) $ python main.py
/workspaces/cpython/main.py:12: DeprecationWarning: There is no current event 
loop
  loop = asyncio.get_event_loop()
/workspaces/cpython/env/lib/python3.11/site-packages/certifi/core.py:36: 
DeprecationWarning: path is deprecated. Use files() instead. Refer to 
https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy
 for migration advice.
  _CACERT_CTX = get_path("certifi", "cacert.pem")
sys:1: ResourceWarning: unclosed 
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspaces/cpython/Lib/asyncio/sslproto.py:116: ResourceWarning: unclosed 
transport 
  _warnings.warn(
/workspaces/cpython/Lib/asyncio/selector_events.py:710: ResourceWarning: 
unclosed transport <_SelectorSocketTransport fd=7>
  _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
ResourceWarning: Enable tracemalloc to get the object allocation traceback

---

@asvetlvo This can be closed now.

--
nosy: +kumaraditya303
type:  -> behavior
versions: +Python 3.11 -Python 3.7

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



[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2022-03-03 Thread Kumar Aditya


Kumar Aditya  added the comment:

On main branch with rewritten SSL implementation GH-31275 bpo-44011, this 
raises TimeoutError:


opened
close started

Traceback (most recent call last):
  File "/workspaces/cpython/main.py", line 18, in 
asyncio.run(main())
^^^
  File "/workspaces/cpython/Lib/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
   ^
  File "/workspaces/cpython/Lib/asyncio/base_events.py", line 645, in 
run_until_complete
return future.result()
   ^^^
  File "/workspaces/cpython/main.py", line 14, in main
await writer.wait_closed()
^^
  File "/workspaces/cpython/Lib/asyncio/streams.py", line 344, in wait_closed
await self._protocol._get_close_waiter(self)

TimeoutError: SSL shutdown timed out


This issue has been fixed, it can be closed @asvetlov.

--
nosy: +kumaraditya303
type: performance -> behavior
versions:  -Python 3.10, Python 3.8, Python 3.9

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



[issue45062] test_asyncio: test_huge_content_recvinto() failed on PPC64LE RHEL8 Refleaks 3.9

2022-03-03 Thread Kumar Aditya


Kumar Aditya  added the comment:

@vstinner This issue has not been happening on the CI recently so can this be 
marked as pending or even close it and reopen when it does fail?

--
nosy: +kumaraditya303

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



[issue46832] unicodeobject.c doesn't compile when defined EXPERIMENTAL_ISOLATED_SUBINTERPRETERS, variable "interned" not found

2022-03-03 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +eric.snow, vstinner

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



[issue46881] Statically allocate and initialize the latin1 characters.

2022-02-28 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46881] Statically allocate and initialize the latin1 characters.

2022-02-28 Thread Kumar Aditya


New submission from Kumar Aditya :

Statically allocate and initialize the latin1 characters. This *should* make 
iterating over a ascii strings faster as it avoids an atomic read in 
PyInterpreterState_GET() to get unicode state in get_latin1_char, makes 
get_latin1_char branchless and can be used in deepfreeze for identifiers.

--
components: Interpreter Core
messages: 414195
nosy: Mark.Shannon, eric.snow, gvanrossum, kumaraditya303
priority: normal
severity: normal
status: open
title: Statically allocate and initialize the latin1 characters.
versions: Python 3.11

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



[issue46877] [doc] unittest.doModuleCleanups() does not exist

2022-02-28 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29738
pull_request: https://github.com/python/cpython/pull/31613

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



[issue46877] [doc] unittest.doModuleCleanups() does not exist

2022-02-28 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46877] [doc] unittest.doModuleCleanups() does not exist

2022-02-28 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-02-28 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-02-28 Thread Kumar Aditya


Change by Kumar Aditya :


--
versions: +Python 3.11 -Python 3.8, Python 3.9

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



[issue30698] asyncio sslproto do not shutdown ssl layer cleanly

2022-02-27 Thread Kumar Aditya


Kumar Aditya  added the comment:

Since https://bugs.python.org/issue44011 is fixed now, this can be closed.
@asvetlov

--
nosy: +kumaraditya303
versions: +Python 3.11 -Python 3.5, Python 3.6, Python 3.7

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



[issue46748] Python.h includes stdbool.h

2022-02-26 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue42760] inspect.iscoroutine returns False for asynchronous generator methods

2022-02-26 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

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



[issue45533] loop.sock_connect doesn't resolve the address parameter on Windows

2022-02-26 Thread Kumar Aditya


Kumar Aditya  added the comment:

Can you provide a minimal reproducer otherwise it is hard to know if there is 
any bug.

--
nosy: +kumaraditya303

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



[issue45159] data_received called on protocol after call to pause_reading on ssl transport

2022-02-26 Thread Kumar Aditya


Kumar Aditya  added the comment:

Since https://bugs.python.org/issue44011 is fixed, this can be closed now.

--
nosy: +kumaraditya303

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



[issue46661] Duplicate deprecation warnings in docs for asyncio

2022-02-26 Thread Kumar Aditya


Kumar Aditya  added the comment:

This was fixed in https://github.com/python/cpython/pull/31388, so this can be 
closed now.

--
nosy: +kumaraditya303

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


Kumar Aditya  added the comment:

@asvetlov I tested it on main branch and indeed it is fixed on main branch with 
https://bugs.python.org/issue44011.

--

___
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



[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-02-26 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29722
pull_request: https://github.com/python/cpython/pull/31599

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



[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2022-02-26 Thread Kumar Aditya


Change by Kumar Aditya :


--
type:  -> enhancement
versions: +Python 3.11 -Python 3.10

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



[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2022-02-26 Thread Kumar Aditya


Kumar Aditya  added the comment:

This has been fixed in the main branch since 
https://github.com/python/cpython/pull/31275, this can be closed now.

--
nosy: +kumaraditya303

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



[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-25 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29720
pull_request: https://github.com/python/cpython/pull/31597

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


Change by Kumar Aditya :


--
pull_requests: +29719
pull_request: https://github.com/python/cpython/pull/31596

___
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



[issue46712] Share global string identifiers in deepfreeze

2022-02-25 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29718
pull_request: https://github.com/python/cpython/pull/31596

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


Kumar Aditya  added the comment:

> Okay, let's change the error handling. @Kumar, can you handle that?

How it should be handled? Currently PyUnicode_InternInPlace ignores any errors 
and does not return it. It would be backwards-incompatible to change that, 
moreover as I explained in 
https://github.com/python/cpython/pull/30683#discussion_r800648477 
intern_strings only check if all the items are strings which will be always 
true in case of deep-freeze so I don't think anything needs to be changed here. 
I would be interested to know if I am missing something though.

--

___
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-02-23 Thread Kumar Aditya


Kumar Aditya  added the comment:

I have created a PR to fix the memory leak, See 
https://github.com/python/cpython/pull/31549

--

___
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-02-23 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29670
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31549

___
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



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

2022-02-11 Thread Kumar Aditya


Change by Kumar Aditya :


--
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

___
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



[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-11 Thread Kumar Aditya


Change by Kumar Aditya :


--
versions: +Python 3.11 -Python 3.10

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



[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-11 Thread Kumar Aditya


Kumar Aditya  added the comment:

I created a draft PR by rebasing the old implementation of 3.10 for 3.11 so we 
can investigate the build-bots failure and fix them so this can be committed 
for 3.11.

See https://github.com/python/cpython/pull/31275

--

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



[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-11 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29438
pull_request: https://github.com/python/cpython/pull/31275

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



[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-11 Thread Kumar Aditya


Kumar Aditya  added the comment:

Since it was reverted as it was beta period, Can this be committed again as 
3.11 is in alpha currently?  @asvetlov

--
nosy: +kumaraditya303

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



[issue43216] Removal of @asyncio.coroutine in Python 3.11

2022-02-11 Thread Kumar Aditya


Kumar Aditya  added the comment:

Can this be closed now?

--
nosy: +kumaraditya303

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



[issue46709] test_urllib: testInterruptCaught() has a race condition and fails randomly

2022-02-11 Thread Kumar Aditya


Kumar Aditya  added the comment:

Same issue as https://bugs.python.org/issue46465, PR 
https://github.com/python/cpython/pull/30826 fixes this.

--
nosy: +kumaraditya303

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



[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-02-10 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29428
pull_request: https://github.com/python/cpython/pull/31261

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



[issue46712] Share global string identifiers in deepfreeze

2022-02-10 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46712] Share global string identifiers in deepfreeze

2022-02-10 Thread Kumar Aditya


Kumar Aditya  added the comment:

I have refactored generate_global_objects.py, and now instead of hard-coding 
every identifier manually, it now scans *.c files extracts the identifiers used 
in it and then generate the header file. This has multiple advantages:

- No need to manually add identifiers, as soon as it is used in a c file it is 
added to the global identifiers struct.
- It simplifies the codegen a lot.
- Remove the need of special casing certain file for checking now it is just a 
set of identifiers and auto removes unused global strings.

--
nosy: +eric.snow

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



[issue46712] Share global string identifiers in deepfreeze

2022-02-10 Thread Kumar Aditya


New submission from Kumar Aditya :

Since bpo-46541, the global strings are statically allocated so they can now be 
referenced by deep-frozen modules just like any other singleton. Sharing 
identifiers with deepfreeze will reduce the duplicated strings hence it would 
save space.

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

--
messages: 413003
nosy: gvanrossum, kumaraditya303
priority: normal
severity: normal
status: open
title: Share global string identifiers in deepfreeze
versions: Python 3.11

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



[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-10 Thread Kumar Aditya


Change by Kumar Aditya :


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

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


Kumar Aditya  added the comment:

I consider this done so closing it as improving the error handling of interning 
it out of scope of this issue.

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

___
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



[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-04 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29310
pull_request: https://github.com/python/cpython/pull/31131

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



[issue46597] Remove Python 3.3 compatibility code from overlapped.c

2022-02-02 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-02 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-02 Thread Kumar Aditya


New submission from Kumar Aditya :

This reduces the size of the data segment by 300 KB of the executable because 
if the modules are deep-frozen then the marshalled frozen data just wastes 
space. This was inspired by comment by @gvanrossum in #29118 (comment). Note: 
There is a new option `--deepfreeze-only` in freeze_modules.py to change this 
behavior, it is on be default to save disk space.

# du -s ./python before
27892   ./python
# du -s ./python after
27524   ./python

--
components: Build
messages: 412346
nosy: gvanrossum, kumaraditya303
priority: normal
severity: normal
status: open
title: Exclude marshalled-frozen data if deep-freezing to save 300 KB space
versions: Python 3.11

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



[issue40077] Convert static types to heap types: use PyType_FromSpec()

2022-02-01 Thread Kumar Aditya


Kumar Aditya  added the comment:

On Windows PC/winreg.c has PyHKEY_Type static type which isn't cleared at exit 
too.

--
nosy: +kumaraditya303

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



[issue46597] Remove Python 3.3 compatibility code from overlapped.c

2022-02-01 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46597] Remove Python 3.3 compatibility code from overlapped.c

2022-02-01 Thread Kumar Aditya


New submission from Kumar Aditya :

Remove Python 3.3 compatibility code from overlapped.c.

https://github.com/python/cpython/blob/108e66b6d23efd0fc2966163ead9434b328c5f17/Modules/overlapped.c#L27

--
components: asyncio
messages: 412245
nosy: asvetlov, kumaraditya303, yselivanov
priority: normal
severity: normal
status: open
title: Remove Python 3.3 compatibility code from overlapped.c
versions: Python 3.11

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



[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-30 Thread Kumar Aditya


Change by Kumar Aditya :


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

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



[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Kumar Aditya


Kumar Aditya  added the comment:

Oh, I didn't see your PR and commented as it was not mentioned in this bpo. 
Would you like to split the PR or continue with yours, either way is fine?

--

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

2022-01-28 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29185
pull_request: https://github.com/python/cpython/pull/31003

___
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



[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29184
pull_request: https://github.com/python/cpython/pull/31002

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



[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Kumar Aditya


Kumar Aditya  added the comment:

I was reading typeobject.c and noticed that creating a super object currently 
requires creating a frame object which is created lazily and is slow and it 
would work with the InterpreterFrame as well so I created a PR for this 
optimization and now it does not requires creating frame objects.

--
nosy: +kumaraditya303

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


Change by Kumar Aditya :


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

___
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



[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-28 Thread Kumar Aditya


Kumar Aditya  added the comment:

Another solution would be to shard the tests on windows i.e. run tests on two 
different jobs concurrently, edgedb does this. 
See https://github.com/edgedb/edgedb/actions/runs/1746736086

--

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



[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-28 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29166
pull_request: https://github.com/python/cpython/pull/30987

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



[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-28 Thread Kumar Aditya


Change by Kumar Aditya :


--
pull_requests: +29164
pull_request: https://github.com/python/cpython/pull/30985

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



  1   2   3   >