deprecation gotchas Re: rotor alternative?

Aaron Watters aaron at
Wed Nov 19 19:26:01 CET 2003

hwlgw at (Will Stuyvesant) wrote in message news:<cb035744.0311181342.318796ba at>...
> Deprecation is a very serious matter.  I love the Python language but
> I have questions about the deprecation decisions. 

Yea, random changes can do a lot of damage.  Examples
   repr(string) went hex and broke a lot of stuff for interacting
     with systems that matched the old octal representation 
     (pdf format for example).  It's very hard to ferret out all
     the places where someone assumed that chr(0)=="\000".
   cgi.environ disappeared and broke every cgi script in the CD
     ROM in my python book right after it hit the shelves. :(!
   regex was used pervasively.  Why not just provide a translator stub
     rather than deprecate it (noting in the documentation that it's
     slower)?  More examples on request...
arrgh.  Please don't break code for cosmetic reasons!
    -- Aaron Watters
I can't do that, Dave.

More information about the Python-list mailing list