Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Apr 10, 2021

  • Split type_new() into into many small functions.
  • Add type_new_ctx structure to pass variables between subfunctions.
  • Initialize some PyTypeObject and PyHeapTypeObject members earlier
    in type_new_alloc().
  • Rename variables.
  • Add "weakref" identifier for type_new_visit_slots().
  • Factorize code to convert a method into a classmethod
    (init_subclass and class_getitem).
  • Add braces to respect PEP 7.
  • Move variable declaration where the variable is initialized.

https://bugs.python.org/issue43770

* Split type_new() into into many small functions.
* Add type_new_ctx structure to pass variables between subfunctions.
* Initialize some PyTypeObject and PyHeapTypeObject members earlier
  in type_new_alloc().
* Rename variables.
* Add "__weakref__" identifier for type_new_visit_slots().
* Factorize code to convert a method into a classmethod
  (__init_subclass__ and __class_getitem__).
* Add braces to respect PEP 7.
* Move variable declaration where the variable is initialized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants