[Python-Dev] NOARGS_NULL

"Martin v. Löwis" martin at v.loewis.de
Sun Feb 25 19:01:30 CET 2007


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 METH_NOARGS) 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 NOARGS_NULL 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


More information about the Python-Dev mailing list