[Pyrex] New to Pyrex: how to I make strings as attributes?

Simon Burton simon at arrowtheory.com
Sun Oct 31 10:36:31 CET 2004


On Sat, 30 Oct 2004 10:21:15 +0200
Lennart Regebro <regebro at nuxeo.com> wrote:

> 
> Now, this is all fine. But how do I get that pesky char szPname[32] into 
> a python accessible string attribute? Nothing I tried would both compile 
> and return the string in question when accesed from python...

I think pyrex will do it automatically for you. Just access szPname and pretend it's
a python object. eg. self.szPname = mic.szPname

Simon.


-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 



More information about the Pyrex mailing list