[Cython] [FEATURE REQUEST] VisualBasic
Stefan Behnel
stefan_ml at behnel.de
Thu Nov 6 07:32:55 CET 2014
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
More information about the cython-devel
mailing list