On Sun, Oct 2, 2011 at 5:02 AM, anatoly techtonik <techto...@gmail.com> wrote: > Hello, > > I've stumbled upon Dave Beazley's article [1] about trying ancient GIL > removal patch at > http://dabeaz.blogspot.com/2011/08/inside-look-at-gil-removal-patch-of.html > and looking at the output of Python dis module thought that it would > be cool if there were tools to inspect, explain and play with Python > bytecode. Little visual assembler, that shows bytecode and disassembly > side by side and annotates the listing with useful hints (like > interpreter code optimization decisions). That will greatly help many > new people understand how Python works and explain complicated stuff > like GIL and stackless by copy/pasting pictures from there. PyPy has a > tool named 'jitviewer' [2] that may be that I am looking for, but the > demo is offline.
I put demo back online. https://bitbucket.org/pypy/pypy/src/59460302c713/lib_pypy/disassembler.py this might be of interest. It's like dis module except it creates objects instead of printing them > > But even without this tool I know that speakers at conferences create > various useful scripts to gather interesting stats and visualize > Python internals. I can name at least 'dev in a box' [3] project to > get people started quickly with development, but I am sure there many > others exist. Can you remember any tools that can be useful in Python > core development? Maybe you use one every day? I'd like to compile a > list of such tools and put in to Wiki to allow people have some fun > with Python development without the knowledge of C. > > > 1. http://dabeaz.blogspot.com/2011/08/inside-look-at-gil-removal-patch-of.html > 2. http://morepypy.blogspot.com/2011/08/visualization-of-jitted-code.html > 3. http://hg.python.org/devinabox/ > -- > anatoly t. > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/fijall%40gmail.com > _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com