On Wed, 12 Jun 2019 00:09:10 +0200
Victor Stinner <[email protected]> wrote:
> Update.
> 
> Le ven. 31 mai 2019 à 10:49, Petr Viktorin <[email protected]> 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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/6K2R62CVNZXUZF3OCK6VVQIY3SD3KLBY/

Reply via email to