<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">HI Jeff, <br>I have replaced the code for function call with the function code itself at that place , as it was a small function it will not matter much whether i call it or not..I know thats bad to skip the error by following this usual practice(replacing function call by function codes line at that place)..anyways thanks for the conversation Jeff, I will get back to you with full details when i encounter it again..<br>Rgds, <br>Saurabh<br><br>--- On <b>Fri, 15/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: Friday, 15 October, 2010, 9:30
 PM<br><br><div class="plainMail">Can you show the exact code used to call func? Is it being called<br>inside the class (i.e. from another member of the same class) or from<br>outside the class?<br><br>- Jeff<br><br>On Thu, Oct 14, 2010 at 10:35 PM, saurabh rawat<br>&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;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HI Jeff,<br>&gt; Its an instance method of a class..Dont think/Even tried passing self to it .Still R&amp;D ing on it..!!<br>&gt; Saurabh<br>&gt;<br>&gt;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " The ultimate test of a relationship is to disagree but to hold hands..............."<br>&gt;<br>&gt;<br>&gt;<br>&gt; --- On Thu, 14/10/10, Jeff Hardy &lt;<a ymailto="mailto:jdhardy@gmail.com"
 href="/mc/compose?to=jdhardy@gmail.com">jdhardy@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; From: Jeff Hardy &lt;<a ymailto="mailto:jdhardy@gmail.com" href="/mc/compose?to=jdhardy@gmail.com">jdhardy@gmail.com</a>&gt;<br>&gt; Subject: Re: [IronPython] Getting an error while Passing Dictionary to a function<br>&gt; To: "Discussion of IronPython" &lt;<a ymailto="mailto:users@lists.ironpython.com" href="/mc/compose?to=users@lists.ironpython.com">users@lists.ironpython.com</a>&gt;<br>&gt; Date: Thursday, 14 October, 2010, 8:19 PM<br>&gt;<br>&gt; Hi Saurabh,<br>&gt; Is Func() an instance method of a class, or is it a static function?<br>&gt; - Jeff<br>&gt;<br>&gt; 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; &gt;<br>&gt; &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; &gt; Why is it happening.is there a problem in Dictionary Porting from .NET. to IronPython<br>&gt; &gt;<br>&gt; &gt; &nbsp;public struct callCounters<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callReceivedTimer;<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callDialledTimer;<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callAllTimer;<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callLifeTimer;<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt; &gt;<br>&gt; &gt; callValue = Dictionary[DateTime, callCounters]()<br>&gt; &gt;<br>&gt; &gt; prototype for Func()<br>&gt; &gt;<br>&gt; &gt; void func(string
 casename, DateTime time, Dictionary &lt;&lt;DateTime&gt;,&lt;user defined Structure&gt;)<br>&gt; &gt;<br>&gt; &gt; Function call<br>&gt; &gt;<br>&gt; &gt; func(casename, time, callValue )<br>&gt; &gt;<br>&gt; &gt; ERROR: Func() takes exactly 4 arguments (3 given).<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Plz assist.<br>&gt; &gt; Rgds,<br>&gt; &gt; Saurabh<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Users mailing list<br>&gt; &gt; <a ymailto="mailto:Users@lists.ironpython.com" href="/mc/compose?to=Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>&gt; &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; &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>&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>