Changes between Version 30 and Version 31 of j2p
- Timestamp:
- 06/21/23 11:10:47 (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v30 v31 44 44 If function calls in python deliver a wrong object (not matching the above mapping), the translator has to inject additional code to convert it to the proper object. For example, {{{Map.getKeys()}}} in python would be {{{set(map.keys())}}} where the extra {{{set}}} converts the dict_keys into a proper set. 45 45 46 Note that some classes like {{{Arrays}}} or {{{Override}}} do not have a direct python equivalent. calls to static functions in these classes can still be translated. 46 Some more notes: 47 * some classes like {{{Arrays}}} or {{{Override}}} do not have a direct python equivalent. calls to static functions in these classes can still be translated. 48 * Different java classes, eg {{{Map}}} {{{AbstractMap}}} and {{{HashMap}}}, may translate to the same python class ({{{map}}}). This can be done because translation is only 1 way. 47 49 48 50 == Usage