Skip to content Skip to sidebar Skip to footer
Showing posts with the label Introspection

Python Inspect.stack Is Slow

I was just profiling my Python program to see why it seemed to be rather slow. I discovered that th… Read more Python Inspect.stack Is Slow

How To Find The Name Of A Property From A Python Class

I'm trying to get a property to print the name that it's assigned to in the owner class in … Read more How To Find The Name Of A Property From A Python Class

Printing Names Of Variables Passed To A Function

In some circumstances, I want to print debug-style output like this: # module test.py def f() a =… Read more Printing Names Of Variables Passed To A Function

Checking Up On A `concurrent.futures.threadpoolexecutor`

I've got a live concurrent.futures.ThreadPoolExecutor. I want to check its status. I want to kn… Read more Checking Up On A `concurrent.futures.threadpoolexecutor`