Skip to content

colon @property on Seg7x4 hides multiple colon access on BigSeg7x4 #98

@angerer

Description

@angerer

The @Property that was added to the Seg7x4 class to mediate access to the self.colon = Colon() class member is interfering with using the member directly on the BigSeg7x4 subclass. The @Property methods are being inherited from the superclass and only the self.colon[0] item can be accessed.

I'm happy to put together a pull request, but wasn't sure if you'd want to remove the @Property methods from the superclass or override them in the subclass. If the property methods are going to be left, I would expect the self.colon member of the class to be renamed to self._colon to help clear up confusion about accessing it directly. (Though, I come from a Java background and I'm still learning the Python idoms and that might be incorrect.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions