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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -