[Python-Dev] urllib.browse() issues

M.-A. Lemburg mal@lemburg.com
Thu, 06 Jul 2000 19:37:31 +0200


"Fred L. Drake, Jr." wrote:
> 
> M.-A. Lemburg writes:
>  > Might be a good candidate for the std lib if you ask me --
>  > after a rename to say "browser.py".
> 
>   Agh!  That was my original name for it!  Guido wanted me to change
> it since that didn't describe it well (there's not a single browser
> implementation in there ;).

Um, there's not a single OS implementation in os.py either ;-)

I think it describes things well enough if you write

browser.open('http://www.python.org/')

Perhaps the interface should be a bit more RPC like, though...
something like:

b = browser.connect()
b.open(http://www.python.org/')
b.close()

>   browsercntl seems... ugly.  I'd welcome suggestions for short,
> lower-case names, though.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/