On Tuesday, October 20, 2015 at 3:31:43 PM UTC-7, Anthony wrote:
>
> On Tuesday, October 20, 2015 at 4:45:10 PM UTC-4, Dave S wrote:
>>
>>
>>
>> On Tuesday, October 20, 2015 at 1:24:50 PM UTC-7, Anthony wrote:
>>>
>>> Not sure I follow.
>>
>>
>> If the 2 functions are in the same [controller] .py, then it is often 
>> just a matter of source control to ensure that they both exist at the same 
>> time.  Introspection has its value, but also its costs.
>>
>
> I assumed the requirement was to determine at runtime whether a particular 
> requested function exists.
>


Determining at runtime that a particular function exists seems expensive if 
you have control over the source file that defines the target and the 
function that needs to know.

I imagine there is Python code that generates functions on the fly, and 
introspection would be needed to handle that properly, but I think that's a 
special case.

Of course, I don't know for sure the OP's use case, so I may not be 
addressing those needs at all, but I like simple and cheap.

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to