On Wed, 12 Jun 2019 00:09:10 +0200
Victor Stinner <vstin...@redhat.com> wrote:
> Update.
> 
> Le ven. 31 mai 2019 à 10:49, Petr Viktorin <encu...@gmail.com> a écrit :
> > PEP 570 (Positional-Only Parameters) changed the signatures of
> > PyCode_New() and types.CodeType(), adding a new argument for "posargcount". 
> >  
> 
> Pablo proposed a PR to revert PyCode_New() API to Python 3.7 API:
> https://github.com/python/cpython/pull/13959
> 
> I dislike "PyCode_NewEx"  name, it will become worse when another
> parameter will be added in the future. I prefer "With" naming. I
> prefer "PyCode_NewWithPosArgs()" name.

Or perhaps the alternative is a struct-based approach:

typedef struct {
// ...
} PyCodeOptions;

PyObject* PyCode_New(PyCodeOptions opts);

?

Regards

Antoine.

_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/6K2R62CVNZXUZF3OCK6VVQIY3SD3KLBY/

Reply via email to