Results 20 issues of Ken Jin

Currently, we have `str` and `LiteralStr`. These don't do a good job expressing the range of values a string may have. Let's say we have the following function: ```python Email:...

topic: feature

The following code: ```python # rep.py from typing import Protocol class Proto(Protocol): pass class A: pass class B(A, Proto): pass ``` ``` import rep ``` Fails on a 3.11 debug...

Linked to #93911. For `__getattr__`, we specialize as per normal as long as the specialized bytecode can succeed without raising `AttributeError`. For `__getattribute__`, a specialized instruction is created to inline...

awaiting merge

Due to a current lack of representative macrobenchmarks, it is very difficult to decide on whether complex accelerators for some parts of typing are worth implementing in the future. Hence,...

BPO | [46939](https://bugs.python.org/issue46939) --- | :--- Nosy | @markshannon, @brandtbucher, @Fidget-Spinner PRs | python/cpython#31707python/cpython#31936 *Note: these values reflect the state of the issue at the time it was migrated and...

3.11

# Feature or enhancement ### Proposal: This issue mostly mirrors Mark's original one at https://github.com/faster-cpython/ideas/issues/632. As part of PEP 703, tagged pointers will help achieve deferred reference counting. Tagged pointers...

type-feature
topic-free-threading

How to add a new bytecode specialization is knowledge only a few of us remember right now. We should document this somewhere (devguide or CPython, I don't mind). Hopefully a...

help wanted
good first issue

Related to https://github.com/pytorch/pytorch/issues/111441, but will not fix it until we implement function caching/higher order operators for for loops. **See below for results, roughly 10% compilation speedup for medium loops, 20%...

triaged
open source
module: dynamo
ciflow/inductor
release notes: dynamo

Only tags all pointers 0b11 and NULL and immortal stuff as deferred for now. * Issue: gh-117139

awaiting change review
topic-free-threading

`DECREF_INPUTS_AND_REUSE_FLOAT` and `_Py_DECREF_SPECIALIZED` are problematic in that they don't follow standard CPython reference semantics that we plan for the deferred refcounting. The easiest solution would be to get rid of...