Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95289 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2015-08-13 02:11 +1000 |
| Last post | 2015-08-13 02:11 +1000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Hooking Mechanism when Entering and Leaving a Try Block Chris Angelico <rosuav@gmail.com> - 2015-08-13 02:11 +1000
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-08-13 02:11 +1000 |
| Subject | Re: Hooking Mechanism when Entering and Leaving a Try Block |
| Message-ID | <mailman.116.1439395889.3627.python-list@python.org> |
On Thu, Aug 13, 2015 at 2:05 AM, Sven R. Kunze <srkunze@mail.de> wrote: > Unfortunately, no. :( > > It should work out of the box with no "let me replace all my try-except > statements in my 10 million line code base". (Please don't top-post.) Sounds to me like you want some sort of AST transform, possibly in an import hook. Check out something like MacroPy for an idea of how powerful this sort of thing can be. ChrisA
Back to top | Article view | comp.lang.python
csiph-web