We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template.__hash__()
Template.__eq__()
Given our definition of Template.__eq__(), probably it falls out as:
class Template: def __hash__(self): return hash(self.args) class Interpolation: def __hash__(self): return hash((self.value, self.expr, self.conv, self.format_spec))
Which implies that Template is only hashable if all of its values is.
Template
But @lysnikolaou perhaps something different will fall out of implementation?
The text was updated successfully, but these errors were encountered:
Add section on Template.__hash__(). Closes #19
bf6115b
davepeck
lysnikolaou
No branches or pull requests
Given our definition of
Template.__eq__()
, probably it falls out as:Which implies that
Template
is only hashable if all of its values is.But @lysnikolaou perhaps something different will fall out of implementation?
The text was updated successfully, but these errors were encountered: