@Bruno: O is defined a a global variable but it is just a convention. If you continued:
bla = Omega() bla is O # False bla == O # False bla.engines == O.engines # True :-) # probably some consequence of defining Omega as singleton in C++ (the C++ object is the same but Python object wrapping it not) ... O = Vector3(0,0,0) # origin of coordinate system # to have desired nonsense, you have to overwrite O name ... O.engines = [...] # O.engines? stil works :-D :-D now you are getting to troubles :-) Jan 2015-07-23 14:50 GMT+02:00 Bruno Chareyre <bruno.chare...@3sr-grenoble.fr>: > > > bla=Omega() > > bla.engines? > > Docstring: [...] accessed using O.engines > > > > Do you see the problem? Do I really access the engines of "bla" as > > "O.engines"? > For some reason the answer is actually "yes", haha. > But I guess you will get the general idea. > B > > > > _______________________________________________ > Mailing list: https://launchpad.net/~yade-dev > Post to : yade-dev@lists.launchpad.net > Unsubscribe : https://launchpad.net/~yade-dev > More help : https://help.launchpad.net/ListHelp >
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp