Python Code Generation does not support multiple inheritance (#428)

Python supports multiple inheritance, but the Python code generator does not. Since inheritance order is important, the Properties view of a class shuld provide the "/superClass" property as a list of classes in which the order can be defined (order not viable in the editor).

Created
8 April 2015 19:13:31
Closed
12 May 2015 7:58:51
Requested by
Horacio Hoyos
State
Solved
Version
8.31.5567.37380
OperatingSystem
Windows 8 64bit
Solved in
8.35

Horacio 8 April 2015 19:17:30

Additionally, Python 3 supports abstract metaclasses, hence for abstract classes you could add the code that defines it is abstract:

from abc import ABCMeta

class BehavioralFeature(Feature, Namespace):

__metaclass__ = ABCMeta

Dusan Rodina - softwareideas.net 8 April 2015 20:18:15

Thank you for your notice. Generation of Python source code will be improved soon.

TrackedRequestComment
Your Name:
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]