[Newby] question about modules
FBatista at uniFON.com.ar
Fri Dec 10 20:10:08 CET 2004
#- gives me the following error: NameError: name 'capwords' is
#- not defined
#- As far as I can tell from the online docs, "capwords" should
#- be defined in
#- the built-in "regex" module. Why is it telling me that
#- capwords is not
So you have to call it "regex.capwords".
It's a namespace issue, the function is defined inside the module, so you
have to explicitly write it.
Considering the question, I think you would make a good use of the tutorial:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list