Alan was saying that there is no other obvious way for Python to do
it.
What I am still not clear on it is why Alan's claim is true. (Not
doubting it is, but would like to get why it is.)
Doubt away, my knowledge of Python internals is largely intuitive,
I've never got round to reading the C
I've combined a few email's worth of quoting as no previous post had
all the elements I wanted to refer to.
interface. The function should return the same result each time
you call it with the same input. The only way to achieve that
is to have the default calculated once.
I feel the
Brian van den Broek wrote:
At first, I ended up with every single node being a copy of the first
one processed. A bit of weeping later, I realized that this is from the
feature [?] of Python that default arguments are evaluated just once.
(Note the comment added above.)
venting
FOR THE LOVE OF