<div class="gmail_quote">On Sun, Aug 2, 2009 at 4:17 PM, Jacob Rus <span dir="ltr"><<a href="mailto:jacobolus@gmail.com">jacobolus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Robert Lehmann wrote:<br>
<div class="im">> Jacob Rus wrote:<br>
>> Here is a somewhat more substantively changed version. This one does<br>
>> away with the 'inited' flag and the 'init' function, which might be<br>
>> impossible given that their documented (though I would be extremely<br>
>> surprised if anyone calls them in third-party code)<br>
</div><div class="im">> [snip]<br>
><br>
> There seem to be quite a bunch of high-profile third-party modules<br>
> relying on this interface, eg. Zope, Plone, TurboGears, and CherryPy. See<br>
> <a href="http://www.google.com/codesearch?q=mimetypes.init+lang%3Apython" target="_blank">http://www.google.com/codesearch?q=mimetypes.init+lang%3Apython</a> for a<br>
> more thorough listing.<br>
><br>
> Given that most of them aren't ported to Python 3 yet, I guess, changing<br>
> the semantics in 3.x seems not-too-bad to me.<br>
</div></blockquote><div><br>No, it's bad. If I may quote Guido: <a href="http://www.artima.com/weblogs/viewpost.jsp?thread=227041">http://www.artima.com/weblogs/viewpost.jsp?thread=227041</a><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 6.8ex; padding-left: 1ex;" class="gmail_quote">
So, once more for emphasis: <strong>Don't change your APIs at the same time as porting to Py3k!</strong><br></blockquote> <br>Please follow this policy as much as possible in the standard library; the language transition is going to be hard enough.<br>
<br>Put a different way: please don't change the library unless you're <i>also</i> going to write a 2to3 fixer that somehow updates all calling code, too.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Ooh, okay. Well I guess we can’t get rid of those then!<br>
</div><div class="im"></div></blockquote><div><br>Indeed not.<br> </div></div><br>