# uproot.deserialization.compile_class

Defined in [uproot.deserialization](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/deserialization.py) on [line 49](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/deserialization.py#L49).

### uproot.deserialization.compile_class(file, classes, class_code, class_name)

* **Parameters:**
  * **file** ([uproot.ReadOnlyFile](uproot.reading.ReadOnlyFile.html.md)) – File to use to generate
    [uproot.Model](uproot.model.Model.html.md) classes as needed from its
    [streamers](uproot.reading.ReadOnlyFile.html.md#uproot-reading-readonlyfile-streamers) and `file_path`
    for error messages.
  * **classes** (*dict*) – MutableMapping in which to add the finished class.
  * **class_code** (*str*) – Python code string defining the new class.
  * **class_name** (*str*) – Python (encoded) name of the new class. See
    uproot.model.classname_decode and
    [uproot.classname_encode](uproot.model.classname_encode.html.md).

Compile a new class from Python code and insert it in the dict of classes.
