Replace value of node using getElementsByTagName

Stefan Behnel stefan_ml at behnel.de
Sun Aug 10 12:39:44 EDT 2008


Ouray Viney wrote:
> In your example you show:
> 
> ib.text = calculate_new_value(ib.text)
> 
> I don't know what calculate_new_value() represents.

It's meant as pseudo-code. Just take the function name literally and replace
it by something that gives you the value you want to assign (as you already
did in your code).


> Good news, while writing this question I tested out the code and it
> worked :).

Happy to see you've found it. Writing down a question is fairly often enough
to actually solve it.


> Please excuse my trivial questions, I am new to python and appreciate
> your help.

You're welcome.

Stefan



More information about the Python-list mailing list