Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • C cpython
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • cpython
  • Repository
You need to sign in or sign up before continuing.
  • cpython
  • Objects
  • typeobject.c
Find file BlameHistoryPermalink
  • Guido van Rossum's avatar
    Change in policy: when a slot_tp_xxx function looks for the __xxx__ method, · 60718732
    Guido van Rossum authored Aug 28, 2001
    don't use getattr, but only look in the dict of the type and base types.
    This prevents picking up all sorts of weird stuff, including things defined
    by the metaclass when the object is a class (type).
    
    For this purpose, a helper function lookup_method() was added.  One or two
    other places also use this.
    60718732
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7