Ben Finney <ben+pyt...@benfinney.id.au>:

> It seems the existing ‘open’ implementation doesn't allow you to
> override the type of object returned.

The question is, can you assign to the builtin namespace. I'm guessing
you can't.

Within a module, you can simply do:

   open = MyFile

Also, in other modules, you can:

   from myfile import open


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to