Open jbrown299 opened 3 years ago
May be better to define it as property.
Hi James. This is an interesting idea but I'm torn. The rule of thumb I use is 'property for static values, method for dynamic'. Personally I'd find it confusing to have our object's is_live
attribute be True now, and False five minutes from now.
Methods by contrast are clearly evaluated at runtime, fulfilling the python axium Explicit is better than implicit..
Thoughts?
Inside NetworkStatusDocumentV3 you have is_fresh method:
is_reasonably_live
likenetworkstatus_consensus_reasonably_live
. It is used when tor client try use old consensus but not so old.<
and>
or<=
and>=
From torpy sources: