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

Creating Python Classes With Arbitrarily Substituted Attribute Name

I apologize for not giving this question a better title; the reason that I am posting it is that I … Read more Creating Python Classes With Arbitrarily Substituted Attribute Name

Viewing The Code Of A Python Function

Let's say I'm working in the Python shell and I'm given a function f. How can I access … Read more Viewing The Code Of A Python 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`

Why Use Getattr() Instead Of __dict__ When Accessing Python Object Attributes?

In source examples and SO answers that have some degree of Python object introspection, a common pa… Read more Why Use Getattr() Instead Of __dict__ When Accessing Python Object Attributes?

Looping Over A Python / Ironpython Object Methods

What is the proper way to loop over a Python object's methods and call them? Given the object: … Read more Looping Over A Python / Ironpython Object Methods

SQLAlchemy Introspect Column Type With Inheritance

Considering this code (and using SQLAlchemy 0.7.7): class Document(Base): __tablename__ = '… Read more SQLAlchemy Introspect Column Type With Inheritance