[IronPython] site.py discrepancy

Simon Dahlbacka simon.dahlbacka at gmail.com
Wed Jul 5 14:44:12 CEST 2006


if I put a site.py file with the following contents

# begin site.py
print "Hello World"
# end site.py

next to IronPythonConsole.exe

and start ironpython I get the following output:
Hello World
IronPython 1.0.60619 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>>

so site is automatically imported

but when I do a dir()

then I see

['__builtins__', '__doc__', '__name__', 'site']

while in CPytion the 'site' is not in dir()

/Simon

BTW. it seems I cannot copy from the IronPythonConsole window (at least not
like from a normal "cmd" window, i.e. right-click -> Mark -> select,
rightclick), I don't get a rightclick menu?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060705/03995b19/attachment.html>


More information about the Ironpython-users mailing list