list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

Python

The Python generator in Umple allows you to embed Python code in Umple. Almost everything that can be generated by the Umple Java generator is also available: TXL transformation technology is used to convert generated Java to Python.

The Python generator also works on the command line, but if you are generating Python on the command line you need to install version 10.8b of FreeTXL first.

To create a Main function, follow the the last two Hello World examples for some tips. Specify public static void main(String [ ] args) { followed on subsequent lines by Python code, followed by a }

Currently Python code cannot be executed in UmpleOnline.



Currently Partially supported features:

  • Aspect oriented code Injection (before and after methods).



Currently unsupported features:

  • Tracing: This is very Java-specific.
  • Any Umple code that see creates synchronized methods in Java: See issue #2070 and #2071 for more information

If any of the features that are supported appear to function incorrectly, please submit a new issue here.