<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><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: 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><<a ymailto="mailto:rawatsaurabh@yahoo.co.in" href="/mc/compose?to=rawatsaurabh@yahoo.co.in">rawatsaurabh@yahoo.co.in</a>> wrote:<br>><br>><br>> 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>><br>> " The ultimate test of a relationship is to disagree but to hold hands..............."<br>><br>><br>><br>> --- On Thu, 14/10/10, Jeff Hardy <<a ymailto="mailto:jdhardy@gmail.com"
href="/mc/compose?to=jdhardy@gmail.com">jdhardy@gmail.com</a>> wrote:<br>><br>> From: Jeff Hardy <<a ymailto="mailto:jdhardy@gmail.com" href="/mc/compose?to=jdhardy@gmail.com">jdhardy@gmail.com</a>><br>> Subject: Re: [IronPython] Getting an error while Passing Dictionary to a function<br>> To: "Discussion of IronPython" <<a ymailto="mailto:users@lists.ironpython.com" href="/mc/compose?to=users@lists.ironpython.com">users@lists.ironpython.com</a>><br>> Date: Thursday, 14 October, 2010, 8:19 PM<br>><br>> 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>><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>