announce: FAQs suggested

Thomas Heller theller at ctypes.org
Fri Nov 10 15:27:52 CET 2006


p.lavarre at ieee.org schrieb:
>> > > http://effbot.org/pyfaq/suggest.htm
>> > FAQ: How do I say returns void in ctypes?
>> That's in the ctypes documentation, where it belongs.
> 
> Thank you, before I never had found "Use None for void a function not
> returning anything" at:
> http://starship.python.net/crew/theller/ctypes/reference.html
> 
> Now I see, that find corresponds to:
> http://docs.python.org/dev/lib/ctypes-foreign-functions.html
> 
> I think this remains an FAQ, because I see void is missing from much
> more prominent places:
> http://docs.python.org/dev/lib/node452.html "Fundamental data types"

I don't think it belongs in the above section because 'void' is not a type.

> http://docs.python.org/dev/lib/ctypes-return-types.html

A note could probably be added to this section.

> Finding a way to suggest improving those docs would help more than
> suggesting an FAQ, I agree.
> 
>> > > > http://effbot.org/pyfaq/suggest.htm
>> > FAQ: How do I say unsigned char in ctypes?
>> That's in the ctypes documentation, where it belongs.
> 
> Yes and no.  The whole FAQ suggested was:
> 
> FAQ: How do I say unsigned char in ctypes?
> A: ctypes.c_ubyte
> ctypes doesn't define c_uchar. This actually is doc'ed, it's just
> annoying.
> 
> Per your kind correction above re void, I see we could also say:
> 
> FAQ: How do I say returns void in ctypes?
> A: restype = None
> ctypes doesn't define c_void. This actually is doc'ed obscurely, it's
> just irregular.


I don't think that this is irregular, see comment about void not being a type.

Thomas




More information about the Python-list mailing list