I would like to know when my function is called whether or not the
return value is used. Is this doable in python? If it is, can it ever
be pythonic?

The use case is that I have functions who's side effects and return
values are cached. I would like to optimize them such that I don't
have to recall (from a network) the return values if they are not
used. Obviously it would be possible to add a parameter to the
function but I would like this optimization to be implemented
passively because 1. The api is already widely used and 2. I would
like to keep the complexity of the api to a bare minimum.

--
Zachary Burns
(407)590-4814
Aim - Zac256FL
Production Engineer (Digital Overlord)
Zindagi Games
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to