[issue20148] Convert the _sre module to use Argument Clinic

2014-01-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +inspect.signature fails on some functions which use Argument Clinic ___ Python tracker ___ __

[issue20148] Convert the _sre module to use Argument Clinic

2014-01-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Argument Clinic doesn't support named constants as default values, Argument Clinic: broken support for 'O!' ___ Python tracker __

[issue20148] Convert the _sre module to use Argument Clinic

2014-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Maybe we could use a better literal value? Like 2**31 - 1? This only a placeholder. It will be replaced by named constant in final patch. 2**31 - 1 is not better here than any other arbitrary value. > I don't understand the pydoc thing. Can you elaborate

[issue20148] Convert the _sre module to use Argument Clinic

2014-01-06 Thread Larry Hastings
Larry Hastings added the comment: Obviously we can't live with manually editing the output from Argument Clinic, so I'll get you a fix for O! today. Maybe we could use a better literal value? Like 2**31 - 1? I don't understand the pydoc thing. Can you elaborate? --

[issue20148] Convert the _sre module to use Argument Clinic

2014-01-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file33329/sre_clinic.patch ___ Python tracker ___ ___

[issue20148] Convert the _sre module to use Argument Clinic

2014-01-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is preliminary patch which converts the _sre module to use Argument Clinic. 22 functions are converted. There are thre problems: * Issue20141. The code was manually edited after Argument Clinic (and should be edited again for next run of Argument Cli