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

re match object methods have no docstrings #56606

Closed
nedbat opened this issue Jun 24, 2011 · 4 comments
Closed

re match object methods have no docstrings #56606

nedbat opened this issue Jun 24, 2011 · 4 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@nedbat
Copy link
Member

nedbat commented Jun 24, 2011

BPO 12397
Nosy @terryjreedy, @nedbat, @merwok, @serhiy-storchaka
Superseder
  • bpo-16443: Add docstrings to regular expression match objects
  • 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 = None
    closed_at = <Date 2013-01-26.15:19:45.369>
    created_at = <Date 2011-06-24.12:46:43.237>
    labels = ['type-bug']
    title = 're match object methods have no docstrings'
    updated_at = <Date 2013-01-26.15:19:45.367>
    user = 'https://github.com/nedbat'

    bugs.python.org fields:

    activity = <Date 2013-01-26.15:19:45.367>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-01-26.15:19:45.369>
    closer = 'serhiy.storchaka'
    components = []
    creation = <Date 2011-06-24.12:46:43.237>
    creator = 'nedbat'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 12397
    keywords = []
    message_count = 4.0
    messages = ['138937', '138959', '139008', '180680']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'nedbat', 'eric.araujo', 'SilentGhost', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '16443'
    type = 'behavior'
    url = 'https://bugs.python.org/issue12397'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

    @nedbat
    Copy link
    Member Author

    nedbat commented Jun 24, 2011

    If I have a match object in hand, and ask for help on its methods, there is no information:

    >>> m = re.match("a", "a")
    >>> help(m.group)
    Help on built-in function group:
    group(...)

    >>

    @nedbat nedbat added the type-bug An unexpected behavior, bug, or error label Jun 24, 2011
    @SilentGhost
    Copy link
    Mannequin

    SilentGhost mannequin commented Jun 24, 2011

    2.6 is in security-only mode, if I'm not mistaken.

    @terryjreedy
    Copy link
    Member

    Yes, and ditto for 3.1.

    @serhiy-storchaka
    Copy link
    Member

    Fixed in bpo-16443.

    @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
    type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants