itertools comments [Was: Re: RELEASED: Python 2.3a2]

Erik Max Francis max at
Fri Feb 21 03:27:20 CET 2003

Raymond Hettinger wrote:

> The x prefixes all predate generators and iterators.  They are
> associated
> with deprecated things like xreadlines.  X is used to mark errors.
> X-men are mutants.  Ex-girlfriends are not positive either.

Or, more concretely :-), the x prefix tends to indicate, "This has the
same functionality as the non-prefixed version, but potentially saves
memory by encapsulating the work in a proxy object."

 Erik Max Francis / max at /
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Success and failure are equally disastrous.
\__/ Tennessee Williams
    Polly Wanna Cracka? /
 The Internet resource for interracial relationships.

More information about the Python-list mailing list