<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br><div> HI Jeff, <br>Its an instance method of a class..Dont think/Even tried passing self to it .Still R&D ing on it..!! <br>Saurabh<br><br> <font color="#ff0000" face="arial black"> </font></div> <div><font color="#ff0000" face="arial black"> <font color="#2d2d2d"> <font size="3">" <font size="2"><font face="comic sans ms" size="5"><em><strong>The ultimate test of a relationship is to disagree but to hold hands</strong>............</em></font>...</font></font>" </font></font></div> <div><font
color="#2d2d2d"> </font></div> <div><font color="#2d2d2d"></font> </div><br><br>--- On <b>Thu, 14/10/10, Jeff Hardy <i><jdhardy@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jeff Hardy <jdhardy@gmail.com><br>Subject: Re: [IronPython] Getting an error while Passing Dictionary to a function<br>To: "Discussion of IronPython" <users@lists.ironpython.com><br>Date: Thursday, 14 October, 2010, 8:19 PM<br><br><div class="plainMail">Hi Saurabh,<br>Is Func() an instance method of a class, or is it a static function?<br>- Jeff<br><br>On Thu, Oct 14, 2010 at 7:48 AM, saurabh rawat <<a ymailto="mailto:rawatsaurabh@yahoo.co.in" href="/mc/compose?to=rawatsaurabh@yahoo.co.in">rawatsaurabh@yahoo.co.in</a>> wrote:<br>><br>> I Am trying to pass a dictionary element
to a function but even though the function takes 3 arguments , it is showing error as ERROR: Func() takes exactly 4 arguments (3 given).<br>> Why is it happening.is there a problem in Dictionary Porting from .NET. to IronPython<br>><br>> public struct callCounters<br>> {<br>> public double callReceivedTimer;<br>> public double callDialledTimer;<br>> public double callAllTimer;<br>> public double callLifeTimer;<br>> }<br>><br>> callValue = Dictionary[DateTime, callCounters]()<br>><br>> prototype for Func()<br>><br>> void func(string casename, DateTime time,
Dictionary <<DateTime>,<user defined Structure>)<br>><br>> Function call<br>><br>> func(casename, time, callValue )<br>><br>> ERROR: Func() takes exactly 4 arguments (3 given).<br>><br>><br>> Plz assist.<br>> Rgds,<br>> Saurabh<br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.ironpython.com" href="/mc/compose?to=Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>> <a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.ironpython.com" href="/mc/compose?to=Users@lists.ironpython.com">Users@lists.ironpython.com</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com"
target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br></div></blockquote></td></tr></table><br>