ctypes

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Thu Apr 30 01:58:05 EDT 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