[Scons-users] Why does value.str not return the built value if available?

Andrew C. Morrow andrew.c.morrow at gmail.com
Sun Dec 29 12:18:51 EST 2019

Hi -

I was trying to use the Value Node type for something recently, and I was
surprised to find that the __str__ of a Value is only ever its initial
value, never the built value.

Is there an explicit reason for this choice? Would it make more sense if
__str__ returned the built value, if it existed? Should invoking __str__
invoke build, if it hasn't been?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20191229/3d4c6bd0/attachment.html>

More information about the Scons-users mailing list