浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

byteplay - Python bytecode assembler-disassembler - Google Project Hosting

Byteplay lets you convert Python code objects into equivalent objects which are easy to play with, and lets you convert those objects back into living Python code objects. It's useful for applying crazy transformations on Python functions, and is also useful in learning Python byte code intricacies. Check the documentation to see it in action!

Byteplay was written by Noam Yorav-Raphael. Support for Python 2.6 and 2.7 was added by Greg X. Iain Lowe is maintaining and packaging byteplay.

Byteplay is pretty reliable - Python's complete test suite continues to pass after you use byteplay to disassemble all the code in the standard library and assemble it again!

Download it from the downloads page!

posted on 2013-03-21 08:48  lexus  阅读(45)  评论(0)    收藏  举报