On Thu, 28 Sep 2017 12:48:15 -0600
Diana Clarke
<diana.joan.cla...@gmail.com> wrote:
> 
>     2) Added a new command line option N that allows you to specify
> any number of individual optimization flags.
> 
>     For example:
> 
>         python -N nodebug -N noassert -N nodocstring

We could instead reuse the existing -X option, which allows for
free-form implementation-specific flags.

> I'm also not certain if the various compile signatures are even open
> for change (int optimize => PyObject *optimizations), or if that's a
> no-no.

You probably want to keep the existing signatures for compatibility:
- in C, add new APIs with the new convention
- in Python, add a new (optional) function argument for the new
  convention

Regards

Antoine.


_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to