Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue30397

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Expose regular expression and match objects types in the re module
Type:enhancementStage:resolved
Components:Extension Modules, Library (Lib), Regular ExpressionsVersions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:30398Superseder:
Assigned To: serhiy.storchakaNosy List: ezio.melotti, gvanrossum, levkivskyi, mrabarnett, serhiy.storchaka
Priority:normalKeywords:

Created on2017-05-18 09:17 byserhiy.storchaka, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 1646mergedserhiy.storchaka,2017-05-18 09:22
Messages (4)
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 separateissue30398. It should be backported.
msg294918 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2017-06-01 08:14
Added GvR and Ivan because this is related to the typing module. This change allows re.Patter and re.Match be just imported from the re module.
msg303714 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2017-10-04 17:09
New changeset0b5e61ddca73ad4fe597fb15065115b0285c8849 by Serhiy Storchaka in branch 'master':bpo-30397: Add re.Pattern and re.Match. (#1646)https://github.com/python/cpython/commit/0b5e61ddca73ad4fe597fb15065115b0285c8849
History
DateUserActionArgs
2022-04-11 14:58:46adminsetgithub: 74582
2017-10-04 17:19:41serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-10-04 17:09:51serhiy.storchakasetmessages: +msg303714
2017-06-01 08:19:05serhiy.storchakasetnosy: +levkivskyi
2017-06-01 08:14:30serhiy.storchakasetnosy: +gvanrossum
messages: +msg294918
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
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp