Why does value.str not return the built value if available?

"Andrew C. Morrow" <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CA+Acj4dKx9VeSc4B9zHxuxSrHMHjMZnF-A=0egp23z7wA--gmw@mail.gmail.com>
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?

Thanks,
Andrew

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.