C Anthony Risinger wrote:
On Nov 6, 2016 7:32 PM, "Nathaniel Smith" <[email protected]
<mailto:[email protected]>> wrote:
>
> log.debug!(f"Message: {message_object!r}")
Would the log.debug implementation need to fetch the context to evaluate
the delayed expression
Not if it expands to
log.debug(lambda: f"Message: {message_object!r}")
Also what is the meaning (if desirable) of something like:
def debug!(...): pass
Nothing like that would be needed. The implementation of
debug() would just be an ordinary function receiving callable
objects as parameters.
--
Greg
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/