On 3/14/19 8:14 AM, Stephen J. Turnbull wrote: > 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.
Yes, this was definitely an error on my part. I had initially done from string import lowercase but I wanted to see where 'string' came from so I did `import string` so I could get that and thel when I did 'lowercase' instead of 'string.lowercase', it worked. I apologize for the confusion. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ 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