[Python-3000] please keep open() as a builtin, and general concerns about Py3k complexity

Steve Howell showell30 at yahoo.com
Wed May 23 08:01:43 CEST 2007


--- Guillaume Proux <gproux+py3000 at gmail.com> wrote:

> On 5/23/07, Steve Howell <showell30 at yahoo.com>
> wrote:
> > 17.7% of the files I searched have calls to
> open().
> 
> My understand is that the mythical "python 2.x ->
> 3.0" tool will
> automatically migrate your code by using the AST to
> find all
> references to "open" and  when finding one, add the
> correct import and
> replace the open by the io.open call
> 

Agreed, but my concern isn't the conversion itself.  I
just want open() to stay as a builtin.  In simple
throwaway programs I appreciate the convenience, and
in larger programs I appreciate not having to
context-switch from the problem at hand to put an
"import" at the top.  

But since you mentioned conversion, our system is a
good example of a shop that will be running multiple
versions of Python side by side for many years.  We'll
cut over new components to Py3k, and then we'll
gradually upgrade legacy components.  And, of course,
some of those components will want to use the same
common modules.


      ____________________________________________________________________________________Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



More information about the Python-3000 mailing list