Return value usage

Z

Zac Burns

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top