classification
Title: Expose regular expression and match objects types in the re module
Type: enhancement Stage: patch review
Components: Extension Modules, Library (Lib), Regular Expressions Versions: Python 3.7
process
Status: open Resolution:
Dependencies: 30398 Superseder:
Assigned To: serhiy.storchaka Nosy List: ezio.melotti, mrabarnett, serhiy.storchaka
Priority: normal Keywords:

Created on 2017-05-18 09:17 by serhiy.storchaka, last changed 2017-05-18 09:50 by serhiy.storchaka.

Pull Requests
URL Status Linked Edit
PR 1646 open serhiy.storchaka, 2017-05-18 09:22
Messages (2)
msg293914 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-05-18 09:17
Proposed patch adds re.Patter and re.Match types (names are conforming with the typing module) that represent the types of compiled regular expressin objects and match objects. The purpose of this is exposing the documentation of the methods of these objects in the module documentation produced by pydoc.

The patch also changes the __module__ attribute of these classes and re.error (this enhances the help and repr and increases pickle compatibility of re.error), adds docstrings for re.error and many descriptors, and fixes few other docstrings.
msg293917 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-05-18 09:49
The part with re.error docstring is extracted in separate issue30398. It should be backported.
History
Date User Action Args
2017-05-18 09:50:07serhiy.storchakasetdependencies: + Add a docstring for re.error
2017-05-18 09:49:56serhiy.storchakasetmessages: + msg293917
2017-05-18 09:22:39serhiy.storchakasetpull_requests: + pull_request1741
2017-05-18 09:17:51serhiy.storchakacreate