[IronPython] an unexpected keyword argument
Martin Maly
Martin.Maly at microsoft.com
Sat Sep 2 00:33:32 PDT 2006
Yes, this is a bug in IronPython. I've filed it on CodePlex as bug 2810
Thanks for the report!
Martin
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of HEMMI, Shigeru
Sent: Friday, September 01, 2006 6:28 PM
To: Discussion of IronPython
Subject: Re: [IronPython] an unexpected keyword argument
Nobody replies, I think this is a bug.
On my MAC OS X, I got the same output:
$ cat testingIP.py
class TEST(file):
def __init__(self,fname,VERBOSITY=0):
file.__init__(self,fname,"r",1)
self.VERBOSITY = VERBOSITY
if __name__=='__main__':
f=TEST(r'sometext.txt',VERBOSITY=1)
print "f.VERBOSITY=",f.VERBOSITY
$ mono ipy.exe -V
IronPython 1.0.2436 on .NET 2.0.50727.42
$ mono ipy.exe testingIP.py
Traceback (most recent call last):
File testingIP, line unknown, in Initialize
TypeError: __new__() got an unexpected keyword argument 'VERBOSITY'
$ python testingIP.py
f.VERBOSITY= 1
I wrote:
> Hello, for a code,
>
> class TEST(file):
> def __init__(self,fname,VERBOSITY=0):
> file.__init__(self,fname,"r",1)
> self.VERBOSITY = VERBOSITY
> if __name__=='__main__':
> f=TEST(r'sometext.txt',VERBOSITY=1)
> print "f.VERBOSITY=",f.VERBOSITY
>
> I got different result:
>
> C:\home\>ipy testIPY.py
> Traceback (most recent call last):
> File C:\cygwin\home\c1544\crcsolver\magna_examples\testIPY.py, line 6, in Init
> ialize
> TypeError: __new__() got an unexpected keyword argument 'VERBOSITY'
>
> C:home\>python testIPY.py
> f.VERBOSITY= 1
>
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the users
mailing list