Skip to content

Bug? Namedtuple int incompatible with int property. #8679

Closed Answered by erictraut
bukzor asked this question in Q&A
Discussion options

You must be logged in to vote

A property is not the same as a normal attribute. In your example, the property doesn't support setting or deleting. Even if it did, the behavior would differ if you accessed the property from the class rather than a class instance. These declarations are not compatible, hence the error.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@bukzor
Comment options

@erictraut
Comment options

Answer selected by bukzor
@bukzor
Comment options

@erictraut
Comment options

@bukzor
Comment options

@bukzor
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants