[Python-Dev] [Python-checkins] r85822 - python/branches/py3k/Modules/ossaudiodev.c (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sun Oct 24 21:14:34 CEST 2010
- Previous message: [Python-Dev] __setcall__
- Next message: [Python-Dev] Change to logging Formatters: support for alternative format styles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Add casts (one needed, one for consistency).
FWIW, I feel that these casts are misguided. Having function pointer casts means that type errors in the signature get suppressed. E.g. people using such casts for tp_hash will be unable to detect the change in the tp_hash return type that we have implemented for 3.2.
It would be better, IMO, if these casts get avoided everywhere, even if that means that the functions get a line longer.
Regards, Martin
- Previous message: [Python-Dev] __setcall__
- Next message: [Python-Dev] Change to logging Formatters: support for alternative format styles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]