[Pyrex] access to c data class members

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Aug 28 01:53:17 UTC 2006


Daniele Varrazzo wrote:

>          (<MyClass>newObj).data = getData()

I wouldn't recommend doing things like that, not only
because it's dangerous type-wise, but because it's
somewhat uncertain what will happen to the reference
counts.

Some day I may make Pyrex smarter about constructor
calls so that this particular type check can be
eliminated.

--
Greg



More information about the Pyrex mailing list