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

[EMAIL PROTECTED]:/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'>
>>>


[EMAIL PROTECTED]:~$ 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.
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to