pypi pottery 1.0.4
v1.0.4

latest releases: 3.0.0, 2.3.7, 2.3.6...
3 years ago
  1. Optimization: Define __slots__ on ContextTimer
    • This makes ContextTimer objects slightly smaller and attribute lookups slightly faster
  2. Quality of Life: By default, set expiration on CachedOrderedDicts
    • Prior to this, if you had a large keyspace, your CachedOrderedDict could've grown unbounded
    • The timeout defaults to 1 minute
    • The timeout gets reset back to 1 minute every time you set a key
    • If your keyspace has a known/controlled cardinality, you can disable the timeout by passing timeout=None to CachedOrderedDict.__init__()

What's Changed

Full Changelog: v1.0.3...v1.0.4

Don't miss a new pottery release

NewReleases is sending notifications on new releases.