Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
48 views

Python colorized debug printer

In Python you can use print(locals()) to print a dictionary of all the local variables, but this has 3 shortcomings: Double underscore variables will be included ...
Caridorc's user avatar
  • 27.6k
11 votes
1 answer
4k views

Try-except decorator for classmethods

This question is related to the Cactus Text Game Engine. For easy error handling in Cactus, we've put together this small decorator. Essentially, the decorator wraps any class method in a ...
Ethan Bierlein's user avatar
7 votes
1 answer
1k views

Automatic flowchart generator

I wanted to see graphically what my programme was doing so I wrote this automatic flowchart generator: ...
Caridorc's user avatar
  • 27.6k