[x3d-public] Progress on Python API all examples compile and run(but do nothing)

John Carlson yottzumm at gmail.com
Mon Mar 11 16:12:04 PDT 2019


>All three look interesting and similar.

>AFAICT these might all be compatible variations on Python syntax, if we get the API bindings correct.  Then the "which style?" question becomes a matter of programmer preference, fitting the task at hand.

Yep, but I don’t think they are pythonic yet.  HelloWorld.kwargs.py follows the vpython style, I think.

>Seems like a worthy goal to pursue, either making it work compatibly or else figuring out just what the limitations & tradeoffs might be.

I am not sure, but I think that @property may make it incompatible with X3DJSAIL, and we will need a layer on top to make this API compatible with pyjnius API (similar to jsail and sai packages in X3DJSAIL).  It’s probably a non-issue a this point, just need to see what the @property API looks like for an API.

Please become knowledgeable about *my* template methods (please examine def setter and def getter methods in packagemanager.py) before meeting.  We need to decide if we want to generate the API at compile/run time (using the language’s built in features) or build time (using a build script), currently template methods are a build script feature, but probably can be simplified by using a language feature (or likely, a combination).  Thanks!

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190311/88de2e2d/attachment.html>


More information about the x3d-public mailing list