class in IronPython?
Duncan Booth
duncan.booth at invalid.invalid
Wed Aug 11 06:56:47 EDT 2004
mike1 at tumladen.net (Mike Greaves) wrote in
news:316f1dc0.0408110240.4c83fb42 at posting.google.com:
> In Jim H.'s new IronPython 0.6:
>
> mono bin/IronPythonConsole.exe
>>>> class myClass:
> ... pass
> ...
> System.NullReferenceException: Object reference not set to an instance
> of an object
>
> ...
>
> Am I missing something basic?
I think you will find that classes don't (yet) work in interactive mode.
Try putting the class in a .py file and using that.
More information about the Python-list
mailing list