scenic.core.utils

Assorted utility functions.

Summary of Module Members

Functions

alarm

argsToString

batched

cached

Decorator for making a method with no arguments cache its result

cached_method

Decorator for making a method cache its result on a per-object basis.

cached_property

loadMesh

Classes

DefaultIdentityDict

Dictionary which is the identity map by default.

Member Details

cached(oldMethod)[source]

Decorator for making a method with no arguments cache its result

cached_method(oldMethod)[source]

Decorator for making a method cache its result on a per-object basis.

Like functools.lru_cache(maxsize=None) except using a separate cache for each object, with the cache automatically deallocated when the object is garbage collected.

class DefaultIdentityDict[source]

Dictionary which is the identity map by default.

The map works on all objects, even unhashable ones, but doesn’t support all of the standard mapping operations.