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

Strange signature for memoryview constructor #73297

Closed
anntzer mannequin opened this issue Dec 30, 2016 · 3 comments
Closed

Strange signature for memoryview constructor #73297

anntzer mannequin opened this issue Dec 30, 2016 · 3 comments
Assignees
Labels
3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@anntzer
Copy link
Mannequin

anntzer mannequin commented Dec 30, 2016

BPO 29111
Nosy @larryhastings, @skrah, @1st1, @anntzer
Files
  • issue29111.diff
  • 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/skrah'
    closed_at = <Date 2016-12-30.11:31:28.208>
    created_at = <Date 2016-12-30.01:59:52.958>
    labels = ['interpreter-core', 'type-bug', '3.7']
    title = 'Strange signature for memoryview constructor'
    updated_at = <Date 2016-12-30.11:31:28.207>
    user = 'https://github.com/anntzer'

    bugs.python.org fields:

    activity = <Date 2016-12-30.11:31:28.207>
    actor = 'skrah'
    assignee = 'skrah'
    closed = True
    closed_date = <Date 2016-12-30.11:31:28.208>
    closer = 'skrah'
    components = ['Interpreter Core']
    creation = <Date 2016-12-30.01:59:52.958>
    creator = 'Antony.Lee'
    dependencies = []
    files = ['46089']
    hgrepos = []
    issue_num = 29111
    keywords = ['patch']
    message_count = 3.0
    messages = ['284302', '284324', '284327']
    nosy_count = 5.0
    nosy_names = ['larry', 'skrah', 'python-dev', 'yselivanov', 'Antony.Lee']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue29111'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    @anntzer
    Copy link
    Mannequin Author

    anntzer mannequin commented Dec 30, 2016

    The return value of inspect.signature(memoryview) is rather strange:

    Python 3.5.2 (default, Nov  7 2016, 11:31:36) 
    [GCC 6.2.1 20160830] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import inspect; inspect.signature(memoryview)
    <Signature (module, /, object)>

    @anntzer anntzer mannequin added the stdlib Python modules in the Lib dir label Dec 30, 2016
    @serhiy-storchaka serhiy-storchaka added interpreter-core (Objects, Python, Grammar, and Parser dirs) 3.7 (EOL) end of life type-bug An unexpected behavior, bug, or error and removed stdlib Python modules in the Lib dir labels Dec 30, 2016
    @skrah
    Copy link
    Mannequin

    skrah mannequin commented Dec 30, 2016

    The patch seems to fix it. $module was a thing at some point, I don't know whether the semantics changed or if it was wrong in the first place.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Dec 30, 2016

    New changeset 1e1e24629218 by Stefan Krah in branch '3.5':
    Issue bpo-29111: Fix memoryview signature.
    https://hg.python.org/cpython/rev/1e1e24629218

    @skrah skrah mannequin closed this as completed Dec 30, 2016
    @skrah skrah mannequin self-assigned this Dec 30, 2016
    @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 interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant