Quantcast
Channel: User Amir Afianian - Stack Overflow
Viewing all articles
Browse latest Browse all 41

Comment by Amir Afianian on How to delay evaluation of python expression passed inside __init__

$
0
0
The reason I want to postpone is that the evaluation of has_perm inside auth classes depends on some runtime value (for instance some request header value). By Postpone I mean that I want the or logic to be evaluated when I call __call__ with some param on the runtime and not as soon as the interpreter runs the module.

Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>