Top "Introspection" questions

A capability of some object-oriented programming languages to determine the type of an object at runtime.

C++11 reflection library

I'm currently going to write big project in c++11. I'm searching for some time good c++11/c++ reflection library and …

c++ reflection c++11 introspection
Any way to determine which object called a method?

I'm hoping that Ruby's message-passing infrastructure means there might be some clever trick for this. How do I determine the …

ruby messaging introspection dynamic-languages
What is the VB equivalent of Java's instanceof and isInstance()?

In the spirit of the c# question.. What is the equivalent statements to compare class types in VB.NET?

java vb.net reflection introspection instanceof
How do I get the public methods of a class without inherited methods?

Given any object I can call #public_methods and see all the methods it will respond to. However, I find …

ruby introspection public-method
Introspecting arguments from the constructor function __init__ in Python

What is a way to extract arguments from __init__ without creating new instance. The code example: class Super: def __init__(…

python oop arguments introspection
Get kwargs Inside Function

If I have a python function like so: def some_func(arg1, arg2, arg3=1, arg4=2): Is there a way to …

python introspection keyword-argument
How do I inspect the methods of a Ruby object?

I am wondering if there is a Ruby method call that shows only the methods defined by the Ruby object …

ruby introspection
Why is important to include ".moc" file at end of a Qt Source code file?

Why is it important to add an include for .moc file in a Qt cpp source code? This is a …

c++ qt introspection moc
SQLAlchemy introspect column type with inheritance

Considering this code (and using SQLAlchemy 0.7.7): class Document(Base): __tablename__ = 'document' __table_args__ = { 'schema': 'app' } id = Column(types.Integer, primary_…

python inheritance sqlalchemy introspection
Python: How to retrieve class information from a 'frame' object?

Is it possible to retrieve any class information from a frame object? I know how to get the file (frame.…

python introspection