[issue20283] Wrong keyword parameter name in regex pattern methods

Terry J. Reedy report at bugs.python.org
Sun Jan 26 02:13:37 CET 2014


Terry J. Reedy added the comment:

Great. Old and new both in at least one release, when possible, is best. I should have thought of asking if that would be possible. In this case, I think the (undocumented) old should disappear in 3.5.

Since the mistaken 'pattern' name is not documented now, I would not add anything to the doc.

I would augment the the warning
 "The 'pattern' keyword parameter name is deprecated."
to briefly explain the deprecation and its timing by saying
 "The erroneous and undocumented 'pattern' keyword parameter name is deprecated and will be removed in version 3.5."

The patch did not upload correctly. I just see "Modules/_sre.c |   64 +++++++++++++++++++++++++++++++++++++++!!!!!!!!!!!!!!!!!!
  1 file changed, 44 insertions(+), 20 modifications(!)" when I open it in a new Firefox tab.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20283>
_______________________________________


More information about the Python-bugs-list mailing list