Common Python Idioms

Stephen Eilert spedrosa at gmail.com
Fri Dec 8 15:06:54 EST 2006


Ben Finney escreveu:

> "Stephen Eilert" <spedrosa at gmail.com> writes:
>
> > Is there a list somewhere listing those not-so-obvious-idioms?
>
> They're only not-so-obvious to those who learn one version of Python
> and then ignore release notes on future versions. The "k in some_dict"
> was a wonderful thing to read in the release notes, and I was glad
> enough that I never forgot it :-)
>
> Hmm, that sounds rather snarky. I guess I'm only saying that one's
> duty to oneself as a programmer is to keep up with the improved idioms
> as they appear in new releases of one's language of choice.

That's fine.

I do need to read those release notes retroactively, though.


Stephen




More information about the Python-list mailing list