Writing backwards compatible code

Paul Rubin http
Fri Apr 14 14:35:31 EDT 2006


Steven D'Aprano <steve at REMOVETHIScyber.com.au> writes:
> What techniques do others use?

I'd just write the generator with a yield statement.  The generator
expression does the same thing more concisely, I think.



More information about the Python-list mailing list