[Moderator's note: "Abstract: This package contains a library of routines for editing the bytecodes executed by the Python virtual machine, and a set of routines that use the library to do unlikely things to Python functions and methods, such as locally binding references and inlining functions."] It's been a while, but there's a new version of bytecodehacks on the starship: http://starship.python.net/crew/mwh/ Quite a lot has changed, especially under the hood. There's a design-by-contract module, a function that will make another tail recursive, a set of simple rationalizations/optimizations (originally posted comp.lang.python by Corran Webster) and probably lots of stuff I've forgotten about. The documentation has been updated, but there are probably places where it's out of date, or just plain wrong. If you find such a place please do tell me! The documentation contains what I think is quite a nice description of one way of avoiding cycles in complex data structures (look at the doumentation of fleshy). Have fun, and thanks for reading! Michael <P><A HREF="http://starship.python.net/crew/mwh/">bytecodehacks 0.50</A> - use manipulations of virtual machine bytecodes to do unlikely things in Python! (04-Jun-99) -- ----------- comp.lang.python.announce (moderated) ---------- Article Submission Address: python-announce@python.org Python Language Home Page: http://www.python.org/ Python Quick Help Index: http://www.python.org/Help.html ------------------------------------------------------------
participants (1)
-
Michael Hudson