>>> import soy
>>> f = soy.File('tests/grey5.soy')
[['.soy0', 'soy.colors.Color', 'grey5']]
>>>

So far, so good.  I used a modified writ_encoder.py from my py-ogg2 package 
(svn.xiph.org) to generate this.

The next step, where I find myself stuck at the moment, is how to obtain a 
reference to a class (or create an instance of it) when you have it's name in a 
variable.

For that matter, how File can be used to create an instance of something 
without all the creation variables.  Certain things like a Screen and Window 
just cannot be saved nor expected to be available by a certain name.

ideas welcome, otherwise I'll find a solution to this tomarrow
_______________________________________________
PySoy-Dev mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-dev

Reply via email to