python / cpython

The Python programming language
https://www.python.org
Other
63.32k stars 30.31k forks source link

Argument Clinic: Better internal implementation for `@getter` and `@setter` #113318

Open corona10 opened 10 months ago

corona10 commented 10 months ago

Even though we successed to provide @getter and @setter features from https://github.com/python/cpython/issues/112205 The current internal implementation is full of hacky workaround.

We need to improve the internal implementation for better generated C codes and maintenance. @erlend-aasland wrote some ideas for this: https://github.com/python/cpython/issues/112205#issuecomment-1861952795

corona10 commented 10 months ago

See also: https://github.com/python/cpython/pull/113160#issuecomment-1861902089

erlend-aasland commented 10 months ago

Thanks for creating this issue, Donghee. See https://github.com/python/cpython/issues/112205#issuecomment-1861952795 for more info.