Re: Class constant for extension

2006-12-23 Thread Martin Miller
[EMAIL PROTECTED] wrote: > Hi, > > I have written a small prototype Python extension for a C-library. > > I have the methods all sorted out and it is working fine. > > In the C-library, they are various constants of types like string, > integer, float and matrix. I'd like to expose them as RE

Class constant for extension

2006-12-19 Thread Yue . Nicholas
Hi, I have written a small prototype Python extension for a C-library. I have the methods all sorted out and it is working fine. In the C-library, they are various constants of types like string, integer, float and matrix. I'd like to expose them as READONLY values. Is the use of PyMemb