Last active
February 11, 2021 22:16
-
-
Save koreno/a19d6a8dbcd401c52f2db55d2fc97fbf to your computer and use it in GitHub Desktop.
linecache example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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