Skip to content

obj = object.__new__(cls) #57

Closed
@czgdp1807

Description

@czgdp1807

Description of the problem

Currently any class object is created by,

obj = object.__new__(cls)

For better readability, each such line should be replaced by the abstract superclass of that class.
Something like,

obj = <name_of_abstract_super_class>.__new__(cls)

For example, in arrays.py, OneDimensionalArray is created by,


However, the above should be replaced by,

obj = Array.__new__(cls)

Example of the problem

References/Other comments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions