[Python-checkins] CVS: python/dist/src/Mac/scripts gensuitemodule.py,1.18,1.19
Jack Jansen
Jack.Jansen@oratrix.nl
Thu, 24 Jan 2002 21:46:27 +0100
On Thursday, January 24, 2002, at 03:34 PM, Fred L. Drake, Jr. wrote:
>
> Jack Jansen writes:
>> ! # XXXX Do we have a set of python keywords somewhere?
> [changed to:]
>> ! # Set of Python keywords (as of Python 2.2)
>
> The keyword module has an undocumented data object kwlist which is a
> list of keywords. Perhaps this should be documented and made part of
> the public API? I'd want to change the list to a tuple, but that
> seems harmless since it isn't already part of the API.
Sounds like a good idea. There must be quite a few lists of
Python keywords floating around, in syntax directed editors,
probably in other code generators SWIG, etc.
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution --
Emma Goldman -