Can a object be both mutable and hashable?

Follow

The answer: #3! Functions and generators, for example, are both mutable and hashable. This works because that part that's examined by == is immutable.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.