Willem's blog

The Netherlands
  • Home
  • Archives
  • Tags
  • About

Tags

android1 arm1 benchmark1 bitcoin3 c++3 commandline1 crack1 crypto5 ecdsa1 elcapitan1 galois-field1 git1 hexdmper1 hugo1 ida2 interrupts1 itsutils1 life1 math3 modular-arithmetic1 msdos3 museum10 netware4 osx2 osx10.111 pchardware1 pdf1 perl1 philosophy1 portability1 problems4 puzzle5 python10 qualcomm1 reversing12 soundblaster1 templates1 thinkmaths5 timemachine1 tor1 vim1 wince2 youtube1

Recent Posts

  • MPMP12 Marching band Problem

    2020-08-07

  • MPMP11 David and Anton age puzzle

    2020-07-27

  • MPMP9 Take away triangles

    2020-06-27

  • MPMP8 Paper folding challenge

    2020-06-11

  • A commandline tool for youtube.

    2020-06-09

Catalogue

  •   Older
  • Newer  
  • [ Catalogue ]

modules for investigating python internals

  2017-10-03   python  Comments Word Count: 29words Read Count: 1minutes

Several modules exist which can be used to investigate the internals of python

dis, ipdb, inspect

disassemble

import dis
dis.dis(fn)

trace

import ipdb
ipdb.set_trace()
fn()

source

import inspect
inspect.getsource(fn)
  • Permalink: https://nlitsme.github.io/2017/10/python-internals/
  • License:CC BY 4.0 CN

Willem Hengeveld

Interested in taking things apart.

©2000 - 2020