A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-November/018721.html below:

[Python-Dev] Interesting paper on exception handling in C

[Python-Dev] Interesting paper on exception handling in CMartin v. Loewis martin@v.loewis.de
Tue, 27 Nov 2001 00:11:42 +0100
> If something like this was implemented in the Python source, it might make
> it possible to write cleaner more leak-resistant extension modules.

Isn't P3K written in C++, anyway :-)

I don't think using setjmp and longjmp that heavily is a smart
idea. There is a significant cost to it, and the benchmarks he had are
somewhat cheating, since it performs many malloc calls for a single
setjmp call. For Python, we'd need a setjmp in every function, and
perhaps multiple setjmps (one per try-catch-block).

Of course, if we assume that there are only two true compilers (MSVC
and gcc), then we could use the built-in facilities of these compilers
for exception handling in C :-)

Regards,
Martin




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4