Locale-dependency of string-methods?

(fve) #1

Hi,

Strugling my way through the Python documentation I came to the topic of string methods.
Methods like islower() or capitalize() give me a ‘name not defined’-error.

The doc says these methods are locale-dependent.

I cannot find anything about it.

Please help.

0 Likes

(matd) #2

AFAIK the “name is not defined” error happens when you try to do anything but an assignment to a variable that was not assigned a value before.

x="asd"
try:
    z=x+y
    print z
except NameError ,e:
    print e
    pass

y="fgh"
z=x+y
print z
raw_input()
0 Likes

(fve) #3

Thanks for your help foom.

Frans.

ps: What does AFAIK stand for?

0 Likes

(fve) #4

Thanks

Good luck

0 Likes