Newbie Question

Janos Blazi jblazi at
Sun Oct 7 10:42:00 CEST 2001

Let us assume, you want to use the function strip from the string modeul.
There are three possibilities:

>>>import string
in this case you have to use qualified names:

>>>from string import split
then you can omit the "string."-prefix:
but you have only imported the function strip

>>>from string import *
then you can use +every+ function from string without the "string."-prefix


-----=  Posted via Newsfeeds.Com, Uncensored Usenet News  =----- - The #1 Newsgroup Service in the World!
 Check out our new Unlimited Server. No Download or Time Limits!
-----==  Over 80,000 Newsgroups - 19 Different Servers!  ==-----

More information about the Python-list mailing list