[Python-Dev] Adding PEP consistent aliases for names that don't currently conform
steve at holdenweb.com
Wed Mar 4 03:55:32 CET 2009
Brett Cannon wrote:
> On Tue, Mar 3, 2009 at 17:30, Eric Smith <eric at trueblade.com
> <mailto:eric at trueblade.com>> wrote:
> We need a really long lead time before we can remove these. I
> recommend starting with a *silent* deprecation in 3.1 combined
> with a
> PR offensive for the new names.
> I think the old names basically have to live forever in some way,
> due to loading old pickles. Remember the problems we had when we
> tried to restructure the library in 2.6?
> Forever is a long time. =) If we keep the PendingDeprecationWarning for
> a long time and really get the word out of the renames then people can
> migrate their pickles over time. The real problem with the 2.6 reorg was
> that people didn't want to have zero lead time to update their pickles
> and they way the transition was being handled. In this case the old
> names and simply subclass the new names and have no issues with old code.
There's also no reason why someone couldn't write a pickle updater for
when such problems do rear their ugly heads.
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-Dev