"once" assigment in Python

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Fri Sep 14 02:44:21 EDT 2007


In message <1189750616.597409.85380 at w3g2000hsg.googlegroups.com>, Lorenzo Di
Gregorio wrote:

> During coding I find it handy to assign a variable *unless it has been
> already assigned*: I've found that this is often referred to as "once"
> assigment.

Why not just assign to it once at the beginning and be done with it?



More information about the Python-list mailing list