[Python-3000] suggestion: structured assignment
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri May 30 03:07:47 CEST 2008
Daniel Wong wrote:
> Ironic that you should mention it. He already mentioned it.
The time machine thing is pretty much a standard
joke in the Python community, which goes to show
how common it is for people to be pleasantly
surprised by what Python already does.
I think everyone's being a bit hard on Mr. Wong
here. When you're new to Python, you don't always
realise at first how deep and subtle a thing
you're dealing with. I was guilty of failing to
follow the try-it-first rule myself in the early
days. I soon learned better.
In fact, it works the other way too -- the
transcript I posted was the result of me thinking
"Doesn't that already work? Hang on, I'd better
try it first to make sure it really does..."
:-)
--
Greg
More information about the Python-3000
mailing list