<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
is possible that syntax rule is shown as error because of the VS 2008 support and not the language version? We arent using IronPython 1.x in any computer unless it's a mistake, Im not there now but I dont remember any asp.net sample folder which came with version 1.x<div><br></div><div><div><div><br></div><div><hr id="stopSpelling">From: dinov@microsoft.com<br>To: users@lists.ironpython.com<br>Date: Sat, 20 Nov 2010 19:32:31 +0000<br>Subject: Re: [IronPython] IronPython source code<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">


<style>
.ExternalClass .ecxshape
{;}
</style><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate
{margin-bottom:.0001pt;font-size:8.0pt;font-family:'Tahoma','sans-serif';}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink
{;}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{;}
.ExternalClass span.ecxecxemailstyle17
{;}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle171
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass span.ecxEmailStyle28
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.ecxBalloonTextChar
{font-family:'Tahoma','sans-serif';}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

</style>


<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">Wow, you must still be using IronPython 1.1 or IronPython 1.0.&nbsp; The conditional expression was added in Python 2.5 so it’s in IronPython 2.0 (which maps to
 Python 2.5).&nbsp; I’m guessing the VS 2008 support you’re using is IronPythonStudio which I believe is still at 1.0/1.1 as well.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">&nbsp;</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">We did release the code for the ASP.Net integration (see Jimmy’s announcement here http://blog.jimmy.schementi.com/2010/07/aspnet-dynamic-language-support-is-open.html)
 but I don’t remember if we included / re-built it for the 2.7B1 release.&nbsp; The reason I bring this up is I think the best possible upgrade path if you want both ASP.NET + VS support would be to move to IronPython 2.7 and VS 2010.&nbsp; If that’s not too big of a
 jump for you I think you’d find it’s a much better experience than 1.1 and the VS 2008 integration which is a little lacking in some aspects.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">&nbsp;</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">But if the conditional expression was the one extra thing you wanted you could also consider back porting it to IronPython 1.1 – it shouldn’t be very difficult.&nbsp;
 The parser side of things won’t be much different between 1.1 and 2.7 but the code gen side will require some IL generation which will also give it more of a traditional compiler feel.&nbsp; 1.1 is also a little simpler in some aspects so it might be easier to
 get a feel of things there and then when you look at 2.x you can see how the DLR has been added in on top of that.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">&nbsp;</span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">From:</span></b><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com]
<b>On Behalf Of </b>Pablo Dalmazzo<br>
<b>Sent:</b> Saturday, November 20, 2010 8:23 AM<br>
<b>To:</b> IronPython Mailing list<br>
<b>Subject:</b> Re: [IronPython] IronPython source code</span></p>
</div>
</div>
<p class="ecxMsoNormal">&nbsp;</p>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">Thanks Dino for the info, Jimmy for the tip and Jeff for the Twitter answer.</span></p>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">I'm interested in certain things but I need to read more to make any question understandable :) Also I would like to understand/understand better the reasons behind the important
 differences&nbsp;certain cool languages have among them, but that doesnt have to do with Python alone&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">BTW, we arent working with the last version of IronPython, because we are working with the one we feel more secure for compatibility/integration issues with Visual Studio
 2008 and asp.net, and I havent read all the sourcecode changes report yet, but it would seem IronPython in Visual Studio 2008 Professional doesnt take as valid sentences of this kind: (in fact</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">they are marked as invalid by Visual Studio)&nbsp;"variable = value1 if condition is None else value2".&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">Unless it's a change in the syntax from one Python version to another version? We arent aware of all the Python changes from a version to another. When we use some IronPython
 modules we get errors in lines like that so we translate them to the verbose version of the sentence for them to work. We move the modules from the IronPython installation to the App_script folder</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">May be we are using IronPython modules from a version with another version of&nbsp;IronPython where that kind of syntax rule was invalid?</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
<div class="ecxMsoNormal" align="center" style="text-align:center"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">
<hr size="2" width="100%" align="center" id="ecxstopSpelling">
</span></div>
<p class="ecxMsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">From: dinov@microsoft.com<br>
To: users@lists.ironpython.com<br>
Date: Fri, 19 Nov 2010 17:12:44 +0000<br>
Subject: Re: [IronPython] IronPython source code</span></p>
<div>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">Yeah, there’s no good comprehensive docs.&nbsp; There’s some stuff in the CHM but it’s more oriented towards people wanting to extend IronPython than work on it.</span><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">&nbsp;</span><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">If there’s something particular you’re interested in someone can probably chime in on the list.&nbsp; IronPython it’s self is pretty abstracted away from generating
 code now (we generally just generate expression trees everywhere).&nbsp; So if you’re interested purely in the compiler side of things you can look at the Tokenizer-&gt;Parser-&gt;AST transformations but then we’re basically done w/ code gen at that point.</span><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">&nbsp;</span><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">From:</span></b><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com]
<b>On Behalf Of </b>Jimmy Schementi<br>
<b>Sent:</b> Friday, November 19, 2010 8:08 AM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] IronPython source code</span></p>
</div>
</div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">You'll have an easier time understanding Sympl, a sample programming language built on the DLR, which is at
<a href="http://dlr.codeplex.com" target="_blank">http://dlr.codeplex.com</a>. The documentation for Sympl and the DLR itself is at&nbsp;<a href="http://dlr.codeplex.com/wikipage?title=Docs and specs&amp;referringTitle=Documentation" target="_blank">http://dlr.codeplex.com/wikipage?title=Docs%20and%20specs&amp;referringTitle=Documentation</a>.
 From there you can "upgrade" to IronPython, but then hopefully you'll feel comfortable with just the source code. There are some old docs at&nbsp;<a href="http://ironpython.codeplex.com/wikipage?title=More Information" target="_blank">http://ironpython.codeplex.com/wikipage?title=More%20Information</a>,
 but really the source is your best bet.</span></p>
<div>
<p class="ecxMsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"><br clear="all">
~Jimmy</span></p>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">On Fri, Nov 19, 2010 at 10:52 AM, Jeff Hardy &lt;<a href="mailto:jdhardy@gmail.com">jdhardy@gmail.com</a>&gt; wrote:</span></p>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">Hi Pablo,<br>
As far as I know there isn't any detailed documentation, but Dino<br>
would know for sure.<br>
<br>
- Jeff</span></p>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"><br>
On Mon, Nov 15, 2010 at 2:59 PM, Pablo Dalmazzo<br>
&lt;<a href="mailto:pablodalma93@hotmail.com">pablodalma93@hotmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I was taken a look at the IronPython sourcecode. Is there any aditional<br>
&gt; resource/documentation/chart to help understand it? I've only coded in an<br>
&gt; "educational" compiler, you know, those made to teach you programming and<br>
&gt; even if it had the typical compiler stages it was very far from a real .NET<br>
&gt; compiler<br>
&gt; Greetings<br>
&gt;</span></p>
</div>
</div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto: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>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto: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></span></p>
</div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">&nbsp;</span></p>
</div>
</div>
</div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"><br>
_______________________________________________ Users mailing list <a href="mailto:Users@lists.ironpython.com">
Users@lists.ironpython.com</a> <a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a></span></p>
</div>
</div>
</div>


<br>_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</div></div></div>                                               </body>
</html>