Skip to content

[DOC] __new__() is (indeed) a static method #128162

@eliegoudout

Description

@eliegoudout

The doc states:

object.new(cls[, ...])

Called to create a new instance of class cls.__new__() is a static method (special-cased so you need not declare it as such) that takes the class of which an instance was requested as its first argument.

Should it not be "class method" instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions