python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can I include the caller in debug logging from Python constructors?
I have a class C which is instantiated all over the place in a large program. C.__init__() contains debug logging, giving the parameters passed in to the new instance.
It's often useful for these log ...
Marnanel Thurman
Votes: 0
Answers: 1
Java: runtime reflection or type introspection?
Is the following code considered to be runtime reflection or is it type introspection?
Class c = java.util.ArrayList.class;
String className = c.getName();
I want to use this in the compilation phase...
Aria
Votes: 0
Answers: 2
Why class constructor doesn't have attribute __code__?
I have simple python3 class:
class A:
def foo(self):
pass
print(A.foo.__code__.co_argcount)
print(A.__init__.__code__.co_argcount)
OUTPUT will be:
1
AttributeError: 'wrapper_descriptor' obje...
CH...AT
Votes: 0
Answers: 1
c++ extract the template arugments of a function pointer
Is there a way to extract/introspect on templated function pointer to get its template argument types and size?
More generally speaking, what kind of Callables/Invocables in C++ are able to be introsp...
Nkk
Votes: 0
Answers: 1