Static method and class method comments
Kevin Smith
Kevin.Smith at themorgue.org
Thu Jul 26 11:27:18 EDT 2001
In article <MdW77.10395$UB6.966994 at e3500-atl1.usenetserver.com>, Kevin.Smith at themorgue.org (Kevin Smith) wrote:
>In article <Xns90EA6710921D8duncanrcpcouk at 127.0.0.1>, duncan at rcp.co.uk wrote:
>>If you change the existing grammar:
>> funcdef: "def" funcname "(" [parameter_list] ")" ":" suite
>>to:
>> funcdef: "def" [funcmodifier] funcname "(" [parameter_list] ")" ":"
>>suite
>> funcmodifier: identifier
One more thing, the [funcmodifier] above might be changed to a
[funcmodifier_list] to allow 'protected classmethod' and the like.
Kevin Smith
More information about the Python-list
mailing list