Skip to content

3.13 __static_attributes__ ignores self parameters other than "self" #123860

Closed as not planned
@jsaponara

Description

@jsaponara

Bug report

Bug description:

Using a self parameter other than "self", static_attributes is empty (in 3.13.0rc2):

>>> class C:
...     def foo(self, a):
...         self.a = a
...         
>>> C.__static_attributes__
('a',)
>>> class D:
...     def foo(me, a):
...         me.a = a
...         
>>> D.__static_attributes__
()

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions