[Python-Dev] [Very Long 23kb] List of Patches to Go in 2.0.1

Guido van Rossum guido@digicool.com
Wed, 28 Mar 2001 13:21:18 -0500


> > This one Aahz singled out previously as a canonical example of a
> > patch he would *not* include, because adding new attributes seemed
> > potentially disruptive to him (but why? maybe someone was depending on
> > the precise value of len(dir(xrange(42)))?).
> 
> I'm not sure about this, but it seems to me that the attribute change
> will generate a different .pyc.  If I'm wrong about that, this patch
> as-is is fine with me; otherwise, I'd lobby to use the containment fix
> but not the attributes (assuming we're willing to use part of a patch).

Adding attributes to xrange() can't possibly change the .pyc files.

> >From my POV, it's *real* important that .pyc files be portable between
> bugfix releases, and so far I haven't seen any argument against that
> goal.

Agreed with the goal, of course.

--Guido van Rossum (home page: http://www.python.org/~guido/)