syntactic sugar for filesystem access in Python
Fredrik Lundh
effbot at telia.com
Thu Sep 28 13:53:06 EDT 2000
Kragen wrote:
> >> # First initialize the Internet ;)
> >> internet = Internet()
>
> Better be careful you don't 'del internet' --- a lot of people will be
> upset ;)
not necessarily -- as long as anyone keeps a reference,
it'll still be there...
:::
> Your URL objects would implement __call__ :)
of course:
>>> from xmlrpclib import *
>>> s = Server("http://betty.userland.com")
>>> s.examples.getStateName(41)
'South Dakota'
(see http://www.pythonware.com/products/xmlrpc )
</F>
More information about the Python-list
mailing list