Lothar Schilling writes: > > What do you get if in that Python you do > > > > import string > > lowercase
I think this should be 'string.lowercase'. > import string > > lowercase > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > NameError: name 'lowercase' is not defined This is what I would expect. I'm not sure why Mark got something different (he may have previously done 'from string import *'). We apologize for the inaccuracy. > string > <module 'string' from '/usr/lib64/python2.6/string.pyc'> It occurred to me that that you're probably in a German locale, in which case umlauts and sharp S might be added to the string of lowercase letters, but that doesn't seem to be the case: $ LC_ALL=de_DE python Python 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import string >>> string.lowercase 'abcdefghijklmnopqrstuvwxyz' >>> len(string.lowercase) 26 >>> string <module 'string' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/string.pyc'> I added 'len(string.lowercase)' to the experiment as a quick consistency check. I also tried the same environment setting on Linux with the same result, except that the module was loaded from /usr/lib/python2.7/string.pyc and Python's version was 2.7.16rc1. So the locale doesn't seem to be at issue. Regards, Steve -- Associate Professor Division of Policy and Planning Science http://turnbull.sk.tsukuba.ac.jp/ Faculty of Systems and Information Email: turnb...@sk.tsukuba.ac.jp University of Tsukuba Tel: 029-853-5175 Tennodai 1-1-1, Tsukuba 305-8573 JAPAN ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org