python-attrs / python-attrs/attrs

Possible class creation optimization

Open
#1,083 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Performance
Dominant language
Python
Stars
5.8k
Forks
480
Avg merge
2h 15m
Merged PRs (30d)
2

Description

Was looking at the CPython issue tracker and noticed https://github.com/python/cpython/issues/100930

It looks like attrs doesn't do this either. I don't know if this is wanted or whether this can work with linecache.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked CPython issue 100930 and comparing its proposed class-creation optimization with how attrs currently generates classes. Investigate whether the approach remains compatible with linecache, then establish the desired behavior and tests before attempting implementation; no attrs file or test is named in this issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.