medcat.utils.legacy.v2_beta

Classes

RemappingUnpickler

python's Unpickler extended to interpreter sessions and more types

Functions

fix_module_and_cls_name(module_name, cls_name)

Module Contents

class medcat.utils.legacy.v2_beta.RemappingUnpickler(*args, **kwds)

Bases: dill.Unpickler

python’s Unpickler extended to interpreter sessions and more types

find_class(module, name)

Return an object from a specified module.

If necessary, the module will be imported. Subclasses may override this method (e.g. to restrict unpickling of arbitrary classes and functions).

This method is called whenever a class or a function object is needed. Both arguments passed are str objects.

Parameters:
  • module (str)

  • name (str)

_session = False
__init__(*args, **kwds)

Initialize self. See help(type(self)) for accurate signature.

_main
_ignore = False
load()

Load a pickle.

Read a pickled object representation from the open file object given in the constructor, and return the reconstituted object hierarchy specified therein.

__delattr__()

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__()

Return self==value.

__format__()

Default object formatter.

__ge__()

Return self>=value.

__getattribute__()

Return getattr(self, name).

__gt__()

Return self>value.

__hash__()

Return hash(self).

__le__()

Return self<=value.

__lt__()

Return self<value.

__ne__()

Return self!=value.

__reduce__()

Helper for pickle.

__reduce_ex__()

Helper for pickle.

__repr__()

Return repr(self).

__setattr__()

Implement setattr(self, name, value).

__sizeof__()

Returns size in memory, in bytes.

__str__()

Return str(self).

class memo
class persistent_load
_buffers
_file_readline
_file_read
encoding = 'ASCII'
errors = 'strict'
proto = 0
fix_imports = True
pop_mark()
dispatch
load_proto()
load_frame()
load_persid()
load_binpersid()
load_none()
load_false()
load_true()
load_int()
load_binint()
load_binint1()
load_binint2()
load_long()
load_long1()
load_long4()
load_float()
load_binfloat()
_decode_string(value)
load_string()
load_binstring()
load_binbytes()
load_unicode()
load_binunicode()
load_binunicode8()
load_binbytes8()
load_bytearray8()
load_next_buffer()
load_readonly_buffer()
load_short_binstring()
load_short_binbytes()
load_short_binunicode()
load_tuple()
load_empty_tuple()
load_tuple1()
load_tuple2()
load_tuple3()
load_empty_list()
load_empty_dictionary()
load_empty_set()
load_frozenset()
load_list()
load_dict()
_instantiate(klass, args)
load_inst()
load_obj()
load_newobj()
load_newobj_ex()
load_global()
load_stack_global()
load_ext1()
load_ext2()
load_ext4()
get_extension(code)
load_reduce()
load_pop()
load_pop_mark()
load_dup()
load_get()
load_binget()
load_long_binget()
load_put()
load_binput()
load_long_binput()
load_memoize()
load_append()
load_appends()
load_setitem()
load_setitems()
load_additems()
load_build()
load_mark()
load_stop()
medcat.utils.legacy.v2_beta.fix_module_and_cls_name(module_name, cls_name)
Parameters:
  • module_name (str)

  • cls_name (str)

Return type:

tuple[str, str]