[IronPython] import __main__ (ImportError:)

Hector Miuler Malpica Gallegos miuler at gmail.com
Mon Jan 16 19:29:47 CET 2006


Hello friends, I have problems when trying to execute script I throw in
python:  

miuler at miuler:/usr/lib/python2.4$ python
Python 2.4.2 (#2, Nov 20 2005, 17:04:48)
[GCC 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> __name__
'__main__'
>>> import __main__
>>> type (__main__)
<type 'module'>
>>>


miuler at miuler:~$ IronPythonConsole.exe
IronPython 1.0.2190 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> __name__
'__main__'
>>> import __main__
Traceback (most recent call last):
ImportError: No module named __main__
>>> __name__
'__main__'
>>> type (__main__)
Traceback (most recent call last):
NameError: name '__main__' is not defined
>>>


PS IPython also has east error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060116/68453f97/attachment.html>


More information about the Ironpython-users mailing list