introspection
Does VBScript Support Introspection for Objects?
I am pulling results back from WMI using WQL via VBScript. In examples, a For Each loop is used to iterate over the results, but in each example, it is assumed that the property names are known.Case[详细]
2023-04-11 15:05 分类:问答unresponsive drag and drop in pygobject
im trying to get drag and drop working well in pygobject, but it is slow and unresponsive, 90% of the time i have to wave the item i am dragging around before i can drop it successfully, can anyone se[详细]
2023-04-11 02:21 分类:问答Is there a way to determine which optional arguments were given in a VBA function call?
Say I have a VBA 开发者_开发知识库function with an optional argument. Is there a way to tell, from within that function, whether the calling code has supplied the optional argument or not?[详细]
2023-04-10 01:32 分类:问答Iterate the classes defined in a module imported dynamically
I have a module from a child package that is imported dynamically; how can I iterate over the classes that it contains?[详细]
2023-04-09 15:46 分类:问答Getting the class name from within the initialize method when class inherited from Hash
I have开发者_StackOverflow a class that inherits from Hash. When this class itself gets inherited from, I want to know the class name of the inheriting class from within the initialize method. When I[详细]
2023-04-08 05:47 分类:问答How to create an instance of any type (id) in Objective-c
I\'ve an NSArray instance containing some objects of some type (NSDictionary).. I need to copy this Array into an NSArray of some runtime-known type.[详细]
2023-04-07 10:47 分类:问答setting scalar value on collection using introspection
I am doing something like the answer on: Set object property using reflection Dynam开发者_JAVA技巧ically setting the value of a object property.I have a function wrapping this sort of functionality a[详细]
2023-04-07 08:51 分类:问答How can I tell what class in the polymorphic hierarchy contains the method I'm about to call?
If I have: class A(): def f(self): print(\"running function, f from class A\") class B(A)开发者_Python百科:[详细]
2023-04-06 20:51 分类:问答Can obj.__dict__ be inspected if the class has a __dict__ variable?
I am interested in whether there is a way to introspect a Python instance infallibly to see its __dict__ despite any obstacles that the programmer might have thrown in the way, because that would help[详细]
2023-04-06 10:44 分类:问答Using .NET Introspection / FxCop Rules functionality in Unit Tests
is it possible to use the .NET Introspection functionality in unit tests? In our software I#d like to prohibit usage of some operations (comparison of enum values since there as a special method for t[详细]
2023-04-06 05:38 分类:问答