uproot.deserialization.read_object_any

Defined in uproot.deserialization on line 189.

uproot.deserialization.read_object_any(chunk, cursor, context, file, selffile, parent, as_class=None)
Parameters:

Generic read function, which may deliver an instance of any class and may reference previously read objects.

This function is the reason why uproot.Cursor has a refs; that dictionary holds previously read objects that might need to be accessed later.

The uproot.Cursor has an origin to account for the fact that seek positions for keys in the reference dict are relative to the start of the uproot.source.chunk.Chunk, rather than the start of the file (as it would have to be for decompressed chunks).