Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose regular expression and match objects types in the re module #74582

Closed
serhiy-storchaka opened this issue May 18, 2017 · 4 comments
Closed
Assignees
Labels
3.7 (EOL) end of life extension-modules C modules in the Modules dir stdlib Python modules in the Lib dir topic-regex type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

BPO 30397
Nosy @gvanrossum, @ezio-melotti, @serhiy-storchaka, @ilevkivskyi
PRs
  • bpo-30397: Add re.Pattern and re.Match. #1646
  • Dependencies
  • bpo-30398: Add a docstring for re.error
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2017-10-04.17:19:41.900>
    created_at = <Date 2017-05-18.09:17:51.681>
    labels = ['extension-modules', 'expert-regex', 'type-feature', 'library', '3.7']
    title = 'Expose regular expression and match objects types in the re module'
    updated_at = <Date 2017-10-04.17:19:41.899>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2017-10-04.17:19:41.899>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2017-10-04.17:19:41.900>
    closer = 'serhiy.storchaka'
    components = ['Extension Modules', 'Library (Lib)', 'Regular Expressions']
    creation = <Date 2017-05-18.09:17:51.681>
    creator = 'serhiy.storchaka'
    dependencies = ['30398']
    files = []
    hgrepos = []
    issue_num = 30397
    keywords = []
    message_count = 4.0
    messages = ['293914', '293917', '294918', '303714']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'ezio.melotti', 'mrabarnett', 'serhiy.storchaka', 'levkivskyi']
    pr_nums = ['1646']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue30397'
    versions = ['Python 3.7']

    @serhiy-storchaka
    Copy link
    Member Author

    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.

    @serhiy-storchaka serhiy-storchaka added the 3.7 (EOL) end of life label May 18, 2017
    @serhiy-storchaka serhiy-storchaka self-assigned this May 18, 2017
    @serhiy-storchaka serhiy-storchaka added extension-modules C modules in the Modules dir stdlib Python modules in the Lib dir topic-regex type-feature A feature request or enhancement labels May 18, 2017
    @serhiy-storchaka
    Copy link
    Member Author

    The part with re.error docstring is extracted in separate bpo-30398. It should be backported.

    @serhiy-storchaka
    Copy link
    Member Author

    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.

    @serhiy-storchaka
    Copy link
    Member Author

    New changeset 0b5e61d by Serhiy Storchaka in branch 'master':
    bpo-30397: Add re.Pattern and re.Match. (bpo-1646)
    0b5e61d

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life extension-modules C modules in the Modules dir stdlib Python modules in the Lib dir topic-regex type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant