string.join question (was Re: urllib question)

Aahz Maruch aahz at netcom.com
Sun Jun 18 00:49:33 EDT 2000


In article <394C4FF9.46B011DC at fizzylab.com>,  <paul at fizzylab.com> wrote:
>
>u = urllib.urlopen(string.join(["http://cnn.com/","index.html"]))
>print u.read()
>u =
>urllib.urlopen(string.join(["http://some.host.com/","monstrousQueryString?withParameters"]))

Hmmmm....  string.join(["a","b"]) == "a b".  Perhaps you instead want
string.join(["a","b"], '')?  I have no idea why your first example
works.
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"The only problem with Microsoft is they just have no taste." --Steve Jobs
(From _Triumph of the Nerds_ PBS special)



More information about the Python-list mailing list