Ticket #797 (new bug)

Opened 3 years ago

Fix the fake renaming of C++ classes

Reported by: janez Owned by: janez
Milestone: Future Component: other
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

Aleš disabled it due problems with unpickling (mismatching ob_types). It would seem that only classes which are imported directly into new modules, without redefining them, may be renamed. This also makes sense from the user perspective - to actually construct an instance of the core class for classes which are redefined in modules, the user must use the core module, hence renaming would be misleading.

In addition, Ales says:

Da, problematični so tisti razredi ki so redefinirani (ni nujno da so izpeljani). Mislim, da je težava tudi omejena samo na tiste razrede ki vračajo 'ob_type' kot reconstructor v reduce metodi (razredi z pickleLoader-jem bi morali biti varni).

Note: See TracTickets for help on using tickets.