[IronPython] Exception Model for modules implemented in C#

Dino Viehland dinov at microsoft.com
Tue Jan 11 18:47:36 CET 2011

There's this: http://www.mail-archive.com/users@lists.ironpython.com/msg10503.html

That originally came from the .rst files used to generate docs (External.LCA_RESTRICTED\Languages\IronPython\27\Doc\IronPythonDocs) but I can't find it in there now...  I'm not quite sure how that happened.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Slide
Sent: Tuesday, January 11, 2011 8:05 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Exception Model for modules implemented in C#

Thanks, I think that will help out a lot!


On Tue, Jan 11, 2011 at 8:54 AM, Jeff Hardy <jdhardy at gmail.com<mailto:jdhardy at gmail.com>> wrote:
On Tue, Jan 11, 2011 at 7:14 AM, Slide <slide.o.mix at gmail.com<mailto:slide.o.mix at gmail.com>> wrote:
> Is there a document that describes how to implement a Python exception in a
> C# module? In looking through the code, the exception stuff is seemingly in
> about 20 different places and bringing it all together is not easy, at least
> to the casual observer :-)
I don't think there is. It's not too bad once you figure it out, but
figuring it out is tricky, to say the least.

You could look at
which has it all in one place for a fairly deep exception hierarchy.
(`InitModuleExceptions` is called from `PerformModuleReload` in
_sqlite.cs.) I just figured that out from reading the existing
modules, but I'm thinking I should write a "module implementer's
guide" with those sorts of lore in it. I thought there was one
started, but now I can't find it.

- Jeff
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20110111/b325467f/attachment.html>

More information about the Ironpython-users mailing list