Retrieving Python Keywords

candide candide at free.invalid
Sun Apr 10 11:12:24 CEST 2011


Le 10/04/2011 04:09, John Connor a écrit :
> Actually this is all it takes:
> import keywords
> print keywords.kwlist


 >>> import keywords
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
ImportError: No module named keywords
 >>>


so I considered first  it was a joke ! ;) In fact the import doesn't 
need plural, and... Python is very very introspective ;)


Thanks and thanks to Steven too.



More information about the Python-list mailing list