xdev.class_reloader module

Candidate for deprecation. (I haven’t used this in ages; not sure if it still works)

xdev.class_reloader.reload_class(self, verbose=True, reload_module=True)[source]

Reload a class for a specific instance.

(populates any new methods that may have just been written)

Ported from utool

xdev.class_reloader._reload_class_methods(self, class_, verbose=True)[source]

rebinds all class methods

Parameters:
  • self (object) – class instance to reload

  • class_ (type) – type to reload as