Python: string.uppercase vs. string.ascii_uppercase -
this might stupid question don't understand what's difference between string.uppercase , string.ascii_uppercase in string module. printing docstring of both function prints same thing. output of print string.uppercase
, print string.ascii_uppercase
same.
thanks.
see: http://docs.python.org/library/string.html
string.ascii_uppercase:
- the uppercase letters 'abcdefghijklmnopqrstuvwxyz'. value not locale-dependent , not change.
string.uppercase:
- a string containing characters considered uppercase letters. on systems string 'abcdefghijklmnopqrstuvwxyz'. specific value locale-dependent, , updated when locale.setlocale() called.
Comments
Post a Comment