<html>
<body>
Does it say how to get the standard Python libraries if you haven't
installed CPython?<br><br>
At 08:45 PM 7/15/2006, Martin Maly wrote<br><br>
<blockquote type=cite class=cite cite="">
<font face="Verdana" size=2 color="#000080">In fact, we have already
updated the tutorial with the instructions how to use IP with standard
Python libraries.<br>
While this change didn’t make it into our Beta 9 release, the latest
package available on codeplex
(<a href="http://www.codeplex.com/">http://www.codeplex.com</a>) does
include the updated tutorial.<br>
&nbsp;<br>
Martin<br>
&nbsp;<br>
<hr>
<div align="center"></font></div>
<font face="Tahoma" size=2><b>From:</b>
users-bounces@lists.ironpython.com
[<a href="mailto:users-bounces@lists.ironpython.com" eudora="autourl">
mailto:users-bounces@lists.ironpython.com</a>] <b>On Behalf Of </b>J.
Merrill<br>
<b>Sent:</b> Saturday, July 15, 2006 1:01 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] Getting a call stack from an
exception?<br>
</font><font face="Times New Roman, Times">&nbsp;<br>
Perhaps there should be a discussion of whether the IronPython
distribution should (could) include the standard CPython 2.4 libraries
that are needed to give the &quot;full&quot; Python experience.<br><br>
Perhaps your tutorial should tell people how to install CPython (it is,
after all, trivial), if there's a reason that the standard libraries
shouldn't go out with IP.<br><br>
At 01:48 PM 7/13/2006, Lee Culver wrote<br><br>
<br>
</font><font face="Arial, Helvetica" size=2 color="#000080">Ah yeah, my
roommate asked me the same question.<br>
&nbsp;<br>
There’s absolutely no reason that I shouldn’t be using the Python
traceback library (and you should use it too).&nbsp; I’m working on a
tutorial for IronPython which I would like to run “out of the box” (that
is, not have the end user install CPython as a dependency of the
tutorial).&nbsp; This is the only reason I was looking for a “pure”
IronPython solution.<br>
&nbsp;<br>
-Lee<br>
&nbsp;<br>
<hr>
<div align="center"></font></div>
<font face="Tahoma" size=2><b>From:</b> J. Merrill<br>
<b>Sent:</b> Thursday, July 13, 2006 10:22 AM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] Getting a call stack from an
exception?<br>
</font>&nbsp;<br>
Could someone explain to this interested observer what is missing when
the standard Python traceback functionality is used?&nbsp; Writing
IronPython-specific code that isn't specifically involved in interacting
with .Net seems against the &quot;you can run the same Python code
anywhere&quot; notion that I expect to see.<br><br>
Or did you mean &quot;using the IronPython Engine&quot; (aka &quot;in
pure C# code&quot;) when you said &quot;in pure IP&quot;?&nbsp; The
sample code, after all, was Python and not calls to the IronPython
Engine....<br>
&nbsp;<br>
<hr>
<div align="center"></div>
<font face="Times New Roman, Times"><b>From:</b></font> Lee Culver<br>
<b>Sent:</b> Wednesday, July 12, 2006 1:39 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] Getting a call stack from an
exception?<br>
&nbsp;<br>
I’m probably going to just reimplement the functionality in pure
IP.&nbsp; If I get anywhere with it I’ll post it up here.<br>
&nbsp;<br>
<hr>
<div align="center"></div>
<font face="Times New Roman, Times"><b>From:</b></font> Alex
Henderson<br>
<b>Sent:</b> Wednesday, July 12, 2006 1:37 PM<br>
<b>To:</b> 'Discussion of IronPython'<br>
<b>Subject:</b> Re: [IronPython] Getting a call stack from an
exception?<br>
&nbsp;<br>
I would be interested to know how you get on with this problem Lee - I’ve
got the same issue myself.<br>
&nbsp;<br>
Chez,<br>
&nbsp;<br>
&nbsp; - Alex<br>
&nbsp;<br>
<hr>
<div align="center"></div>
<font face="Times New Roman, Times"><b>From:</b></font> Lee Culver<br>
<b>Sent:</b> Thursday, 13 July 2006 6:57 a.m.<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] Getting a call stack from an
exception?<br>
&nbsp;<br>
Yikes.&nbsp; I was hoping for a way to do it in pure IronPython.&nbsp;
Thanks though.<br>
&nbsp;<br>
<hr>
<div align="center"></div>
<font face="Times New Roman, Times"><b>From:</b></font> Dino
Viehland<br>
<b>Sent:</b> Wednesday, July 12, 2006 11:54 AM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] Getting a call stack from an
exception?<br>
&nbsp;<br>
Tracebacks are the correct way to do this, I recommend you install the
standard Python library against IronPython to make this really useful –
then you can do import traceback and use its handy functions (otherwise
you’ll be walking the traceback list in sys.exc_info() which won’t be
much fun).<br>
&nbsp;<br>
<b>From:</b> Lee Culver<br>
<b>Sent:</b> Wednesday, July 12, 2006 11:49 AM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> [IronPython] Getting a call stack from an exception?<br>
&nbsp;<br>
I would like to print out a call stack from an exception object, much
like what the IronPython console does when an exception goes
uncaught.&nbsp; I have tried doing something like this:<br>
&nbsp;<br>
try:<br>
&nbsp;&nbsp;&nbsp; … #something that causes an exception<br>
except Exception, e:<br>
&nbsp;&nbsp;&nbsp; print e<br>
&nbsp;<br>
But, like python, this only prints out the message given to it.&nbsp; I
have also tried this:<br>
&nbsp;&nbsp;&nbsp; print e.clsException<br>
&nbsp;&nbsp;&nbsp; print e.clsException.StackTrace<br>
&nbsp;<br>
But these print out the stack trace which includes the IronPython library
c# code as well.&nbsp; Is there a way to get the stack trace which only
contains the python call stack (like the one the console uses)?<br>
&nbsp;<br>
Thanks<br>
-Lee<br><br>
<br>
J. Merrill / Analytical Software Corp <br>
_______________________________________________<br>
users mailing list<br>
users@lists.ironpython.com<br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" eudora="autourl">
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
</blockquote></body>
<br>
<br>
J. Merrill / Analytical Software Corp</html>