This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ezio.melotti, mrabarnett, r.david.murray, serhiy.storchaka
Date 2017-04-11.20:28:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491942504.65.0.615945582018.issue30045@psf.upfronthosting.co.za>
In-reply-to
Content
Currently re.escape() parameter has a name "pattern", but in the documentation the name of the parameter is "string".

The name "pattern" is not correct, and maybe even misleading. The argument of escape() is not a pattern, it is an arbitrary string, and escape() makes a pattern from it by escaping special characters.

It is unlikely that the argument is passed to re.escape() by keyword. Therefore renaming it to "string" shouldn't break existing code.
History
Date User Action Args
2017-04-11 20:28:24serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, r.david.murray
2017-04-11 20:28:24serhiy.storchakasetmessageid: <1491942504.65.0.615945582018.issue30045@psf.upfronthosting.co.za>
2017-04-11 20:28:24serhiy.storchakalinkissue30045 messages
2017-04-11 20:28:24serhiy.storchakacreate