<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><div> I Am trying to pass a dictionary element to a function but even though the function takes 3 arguments , it is showing error as <span style="font-weight: bold;">ERROR: Func() takes exactly 4 arguments (3 given).</span><br>Why is it happening.is there a problem in Dictionary Porting from .NET. to IronPython<br><br>&nbsp;public struct callCounters<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callReceivedTimer;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callDialledTimer;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callAllTimer;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public double callLifeTimer;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>callValue =
 Dictionary[DateTime, callCounters]()<br><br><span style="font-weight: bold; text-decoration: underline;">prototype for Func()</span><br><br><b><a class="bold" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Nokia.Trident.SSC:1.0.0.0/Nokia.Trident.SSC.CallTimer/Call_Timers%28String,System.DateTime,System.Collections.Generic.Dictionary%3CSystem.DateTime,Nokia.Trident.SSC.SSCChart.callCounters%3E%29">void func</a></b>(string casename, <a title="System.DateTime" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.DateTime">DateTime</a><span style="text-decoration: underline;"> time</span>, Dictionary &lt;<a title="System.DateTime" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.DateTime">&lt;DateTime&gt;</a>,&lt;user defined Structure&gt;)<br><br><span style="font-weight: bold; text-decoration: underline;">Function call
 </span><br><br><b><a class="bold" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Nokia.Trident.SSC:1.0.0.0/Nokia.Trident.SSC.CallTimer/Call_Timers%28String,System.DateTime,System.Collections.Generic.Dictionary%3CSystem.DateTime,Nokia.Trident.SSC.SSCChart.callCounters%3E%29">func</a></b>(casename, time, callValue )<br><br><span style="font-weight: bold;">ERROR: Func() takes exactly 4 arguments (3 given).</span><br><br><br>Plz assist.<br>Rgds, <br>Saurabh<br></div></td></tr></table><br>