Skip to content

Instantly share code, notes, and snippets.

@koreno

koreno/linecache_demo.1.py

Last active Feb 11, 2021
Embed
What would you like to do?
linecache example
import linecache
lineno = 423
fname = "/home/ofer/Sources/easypy/easypy/collections.py"
linecache.getline(fname, lineno)
# ' return random.randint(minimum, maximum)\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment