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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to