pyopendds icon indicating copy to clipboard operation
pyopendds copied to clipboard

IDL to Python Implementation

Open iguessthislldo opened this issue 5 years ago • 2 comments

Originally I was going to generate Python IDL code "on the fly", but I got caught up in the idea that users should be able to look at the generated code and easily understand it, sorta like they should theoretically be able to do with C++ code (although tao_idl code looks terrible in practice).

The problem is that IDL/C models of including and forward declaration don't perfectly fit with the Python import system. This wouldn't be a problem but I want there to be default values on struct fields and that doesn't seem like it's easy to do. The result was circular import issues that I couldn't get around.

For now I'm returning to the dynamic type route, at least until I reach the 0.1, where I get basic_test to be functional, then I would like to reassess the feasibility of generating normal Python code.

iguessthislldo avatar Dec 24 '19 07:12 iguessthislldo