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 pathlib, re, time | |
line_pattern = re.compile(r'(.*?):\s+(.*)') | |
''' | |
Example usage, note that MODULE is this file and is in the directory you run gdb from | |
Note that gdb needs root privs | |
# gdb /bin/subl3 -p $(pidof subl3) |
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
#This is a demo for VLOG entry https://youtu.be/LfRFxkombTw "Python - track object identities [short]" | |
greek_alphabet = ['Άλφα', 'Βήτα', 'Γάμμα', 'Δέλτα', 'Έψιλον', 'Ζήτα', 'Ήτα', 'Θήτα', 'Ιώτα', 'Κάππα', 'Λάμβδα', 'Μυ', 'Νυ', 'Ξι', 'Όμικρον', 'Πι', 'Ρώ', 'Σίγμα', 'Ταυ', 'Ύψιλον', 'Φι', 'Χι', 'Ψι', 'Ωμέγα'] | |
class identity_reference: | |
def __init__(self, target): | |
self.target = target | |
self.id = id(target) | |
try: |
NewerOlder