Zaxebo Yaxebo schrieb am 06.11.2014 um 02:35: > Stefan>>> A directive, see Options.py. There are already two directives > called "warn.undeclared" and "infer_types.verbose". Combining those should > get close to what you are looking for. > > Zaxebo1>> thanks. it works as i wished. You are really really my saviour. > > =============== > Now only thing left, is that I will NOT want to declare the type of each > variable as > cdef int a1 > cdef double a2 > I will also want an additional option of "var", so that I can take advantage > of DUCK TYPING etc etc, as in: > cdef var a3
Do you mean like cdef object a3 or cdef a3 ? Because that already exists and assigns type "arbitrary Python object" to the variable. If you want to be more specific, use fused types (a.k.a. generics). Stefan _______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel