[Pyrex] class variables - do they exist
    Helmut Jarausch 
    jarausch at igpm.rwth-aachen.de
       
    Sat Apr  1 14:43:45 CEST 2006
    
    
  
Hi,
is it possible in Pyrex to have class variables
like  (does not work)
cdef class FOO :
  cdef Init_Code
  Init_Code= [1,2,3]
  cdef Obj_Init
  def set_init(IC) :
    FOO.Init_Code= IC
  def __new__(self):
    self.Obj_Init= FOO.Init_Code
and then using it like
FOO.set_init([3,7,13])
X= FOO()
Many thanks for a hint,
Helmut.
-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
    
    
More information about the Pyrex
mailing list