scenic.core.utils

Assorted utility functions.

Summary of Module Members

Functions

alarm

argsToString

cached

Decorator for making a method with no arguments cache its result

cached_property

get_type_args

Version of typing.get_args supporting Python 3.7.

get_type_origin

Version of typing.get_origin supporting Python 3.7.

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

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.

get_type_origin(tp)[source]

Version of typing.get_origin supporting Python 3.7.

get_type_args(tp)[source]

Version of typing.get_args supporting Python 3.7.