Global namespace (was Re: python libs v lisp coolness?

Bruce Stephens bruce.stephens at isode.com
Wed Oct 29 11:59:14 EST 2003


Kenny Tilton <ktilton at nyc.rr.com> writes:

> Ville Vainio wrote:
>> Paolo Amoroso <amoroso at mclink.it> writes:

[...]

>> in Python you can do:
>> import os
>> files = os.listdir("/root")
>>
>
> Python and Lisp, separated at birth?
>
>    (require 'os)
>    (defparameter *files* (os::listdir "/root"))

That should be

    (defparameter *files* (os:listdir "/root"))

shouldn't it?

(Single colons let you at exported symbols; double colons let you
access even unexported symbols.  If I understand things correctly,
anyway.)




More information about the Python-list mailing list