Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Thu Apr 30 07:58:05 CEST 2009

In message <mailman.4805.1241051447.11746.python-list at python.org>, Gabriel 
Genellina wrote:

> c_float_p = ctypes.POINTER(ctypes.c_float)
> c_short_p = ctypes.POINTER(ctypes.c_short)

I like to do

    import ctypes as ct

to shorten the references:

    c_float_p = ct.POINTER(ct.c_float)
    c_short_p = ct.POINTER(ct.c_short)

Lawrence "Death To Wildcard Imports" D'Oliveiro

More information about the Python-list mailing list