syntactic sugar for filesystem access in Python

Jason Cunliffe jasonic at nomadicsltd.com
Thu Sep 28 01:41:58 EDT 2000


Erwin S. Andreasen <erwin at andreasen.com> wrote in message
news:slrn8t4r5b.qc.erwin at erwin.andreasen.org...

> How about extending it to include the Internet? ;)
>
> # First initialize the Internet ;)
> internet = Internet()
>
> # This would look up www.python.org then create a socket to the HTTP port
on
> # it
>
> sock = internet.org.python.www['http']
>
> (although the bare sockets are probably not much fun, it might be slightly
> interesting if each "Address" object had method for higher-level access to
> protocols, e.g. something a la urllib.urlget(self.address).read()).

Filesystem is cool and this is fabulous suggestion.
- What would it take to get it working?
- And where does this fit in with XML-RPC, SOAP and .NET ?

- Jason





More information about the Python-list mailing list