Skip to content

Missing special methods for object #773

Closed

Description

@z33ky

As per python/mypy#2581.

object is missing some special methods. __getattribute__ is mentioned in the mypy issue, but there are more, like __bool__ for instance.

Activity

  1. z33ky commented on Dec 15, 2016

    @z33ky
    ContributorAuthor

    I'm trying myself on a pull request adding these by going through the Python documentation for special methods.
    While I'm going through them I'll reorder the methods I encounter as they are in the docs, if that's fine.

  2. gvanrossum commented on Dec 15, 2016

    @gvanrossum
    Member
  3. JukkaL commented on Dec 15, 2016

    @JukkaL
    Contributor

    As mentioned in a comment left at the PR, please check that the methods actually exist at runtime (e.g., evaluate object().__bool__).

  4. gvanrossum commented on Jan 4, 2017

    @gvanrossum
    Member

    Closed by #774.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions