<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HI Jeff, <br>Its an instance method of a class..Dont think/Even tried passing self to it .Still R&amp;D ing on it..!! <br>Saurabh<br><br>&nbsp;&nbsp;<font color="#ff0000" face="arial black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></div>  <div><font color="#ff0000" face="arial black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>"&nbsp;</font></font></div>  <div><font
 color="#2d2d2d">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></div>  <div><font color="#2d2d2d"></font>&nbsp;</div><br><br>--- On <b>Thu, 14/10/10, Jeff Hardy <i>&lt;jdhardy@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jeff Hardy &lt;jdhardy@gmail.com&gt;<br>Subject: Re: [IronPython] Getting an error while Passing Dictionary to a function<br>To: "Discussion of IronPython" &lt;users@lists.ironpython.com&gt;<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 &lt;<a ymailto="mailto:rawatsaurabh@yahoo.co.in" href="/mc/compose?to=rawatsaurabh@yahoo.co.in">rawatsaurabh@yahoo.co.in</a>&gt; wrote:<br>&gt;<br>&gt; 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>&gt; Why is it happening.is there a problem in Dictionary Porting from .NET. to IronPython<br>&gt;<br>&gt; &nbsp;public struct callCounters<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callReceivedTimer;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callDialledTimer;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callAllTimer;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callLifeTimer;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;<br>&gt; callValue = Dictionary[DateTime, callCounters]()<br>&gt;<br>&gt; prototype for Func()<br>&gt;<br>&gt; void func(string casename, DateTime time,
 Dictionary &lt;&lt;DateTime&gt;,&lt;user defined Structure&gt;)<br>&gt;<br>&gt; Function call<br>&gt;<br>&gt; func(casename, time, callValue )<br>&gt;<br>&gt; ERROR: Func() takes exactly 4 arguments (3 given).<br>&gt;<br>&gt;<br>&gt; Plz assist.<br>&gt; Rgds,<br>&gt; Saurabh<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@lists.ironpython.com" href="/mc/compose?to=Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>&gt; <a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>&gt;<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>