[Python-Dev] NOARGS_NULL (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sun Feb 25 19:01:30 CET 2007
- Previous message: [Python-Dev] [Distutils] unicode bug in distutils
- Next message: [Python-Dev] dinner at Standard in Dallas
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
K D schrieb:
I thought it would be nice to have the code marked somehow so that it was obvious what the additional (and obviously unused) parameter was. The two references (NULL and METHNOARGS) are both in upper-case and as C is a case-sensitive language I think it's probably usual to do case-sensitive greps etc when trying to understand code. Therefore, I thought NOARGSNULL as a name had enough information in it for someone to "find their way" when looking at the code and wondering what that unused parameter was declared for.
Kev,
The style-guide in C is that macro names are spelled in all-caps, so if you see an all-caps identifier, you expect it to be a macro name.
Regards, Martin
- Previous message: [Python-Dev] [Distutils] unicode bug in distutils
- Next message: [Python-Dev] dinner at Standard in Dallas
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]