b.static_tuple : module documentation

Part of bzrlib

Interface thunk for a StaticTuple implementation.
Function expect_static_tuple Check if the passed object is a StaticTuple.
Function as_tuples Ensure that the object and any referenced objects are plain tuples.
def expect_static_tuple(obj):
Check if the passed object is a StaticTuple.

Cast it if necessary, but if the 'static_tuple' debug flag is set, raise an error instead.

As apis are improved, we will probably eventually stop calling this as it adds overhead we shouldn't need.

def as_tuples(obj):
Ensure that the object and any referenced objects are plain tuples.
Parametersobja list, tuple or StaticTuple
Returnsa plain tuple instance, with all children also being tuples.
API Documentation for Bazaar, generated by pydoctor at 2019-04-24 00:18:01.