<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Looks like this issue has been fixed in
the coming beta4. Please wait for a few moments. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face=SimSun><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] <b><span
style='font-weight:bold'>On Behalf Of </span></b>liangml<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, March 08, 2006
5:47 PM<br>
<b><span style='font-weight:bold'>To:</span></b> users@lists.ironpython.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [IronPython] Default
parameters problem In IronPython 1.0</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi all:</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; It seems that IronPython has a
limit&nbsp;about default parameters. Please see this below, I don't know</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>why the last tow tests work well, but the first one doesn't
:(</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 color=blue face=SimSun><span style='font-size:
12.0pt;color:blue'>IronPython 1.0.2255 (Beta) on .NET 2.0.50727.42<br>
Copyright (c) Microsoft Corporation. All rights reserved.<br>
&gt;&gt;&gt; import System<br>
&gt;&gt;&gt; def foo(a,b,c,d=1,e=2): t=System.Text.Encoding.Default.GetBytes(c)<br>
&gt;&gt;&gt; foo(&quot;aaaa&quot;,&quot;bbbb&quot;,&quot;cccc&quot;)<br>
Traceback (most recent call last):<br>
&nbsp; File , line 0, in input##1<br>
&nbsp; File , line 0, in foo<br>
&nbsp; File , line 0, in foo<br>
Exception: Object reference not set to an instance of an object.<br>
&gt;&gt;&gt; def foo(a,b,c,d=1): t=System.Text.Encoding.Default.GetBytes(c)<br>
&gt;&gt;&gt; foo(&quot;aaaa&quot;,&quot;bbbb&quot;,&quot;cccc&quot;)<br>
&gt;&gt;&gt; def foo(c,d=1,e=2): t=System.Text.Encoding.Default.GetBytes(c)<br>
&gt;&gt;&gt; foo(&quot;cccc&quot;)<br>
&gt;&gt;&gt;</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>