GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — __text_signature__ for __get__ methods is wrong · Issue #93021 · python/cpython

__text_signature__ for __get__ methods is wrong #93021

New issue
Copy link
New issue
Copy link
Closed
Closed
__text_signature__ for __get__ methods is wrong#93021
Copy link
Assignees
JelleZijlstra
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@JelleZijlstra
JelleZijlstra
opened on May 20, 2022
Issue body actions
In [18]: object.__init__.__get__.__text_signature__
Out[18]: '($self, instance, owner, /)'

In [19]: object.__init__.__get__(1)
Out[19]: <method-wrapper '__init__' of int object at 0x105e7d0b0>

In [20]: object.__init__.__get__(1, 2)
Out[20]: <method-wrapper '__init__' of int object at 0x105e7d0b0>

The signature claims there are two required positional arguments, but in fact the second argument is optional.

(Tested on 3.11 but I think it's wrong on all recent versions.)

Activity

  1. JelleZijlstra
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    3.11only security fixesonly security fixes
    3.10 (EOL)end of lifeend of life
    3.12only security fixesonly security fixes
    on May 20, 2022
  2. JelleZijlstra
    self-assigned this
    on May 20, 2022
  3. JelleZijlstra
    added a commit that references this issue on May 20, 2022

    pythongh-93021: Fix __text_signature__ for __get__

    7806f47
  4. ambv
    added a commit that references this issue on Jun 21, 2022

    gh-93021: Fix __text_signature__ for __get__ (GH-93023)

    4e08fbc
  5. miss-islington
    added 2 commits that reference this issue on Jun 21, 2022

    pythongh-93021: Fix __text_signature__ for __get__ (pythonGH-93023)

    706c9e3

    pythongh-93021: Fix __text_signature__ for __get__ (pythonGH-93023)

    c2049e4
  6. ambv
    added 2 commits that reference this issue on Jun 21, 2022

    gh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94085)

    a1565a8

    gh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94086)

    1b8aa7a
  7. ambv commented on Jun 21, 2022

    @ambv
    ambv
    on Jun 21, 2022
    Contributor
    More actions

    Fixed. Thanks! ✨ 🍰 ✨

  8. ambv
    closed this as completedon Jun 21, 2022
  9. serhiy-storchaka
    added a commit that references this issue on Jun 26, 2022

    Revert 30935 defer bpo45162 to 312 (#94285)

    1ffde3e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @JelleZijlstra
    JelleZijlstra

Labels

3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.