Skip to content

Impossible to redeclare property in subclass #690

@faerot

Description

@faerot
class A:
     def _get_some(self):
          return 'some'
     some = property(_get_some)

class B(A):
     def _get_some(self):
          return 'some more'
     some = property(_get_some)

in javascript it will result in error
TypeError: Cannot redefine property: some

Maybe some javascript checks or wrappers should be implemented to allow python-style property re-declaration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions