On Thu, Feb 19, 2009 at 6:03 AM, Lie Ryan <[email protected]> wrote:
> If you replace sys.stdin with your own file object, you don't need to > define all of the file object interface, just the one that generates an > error if not defined (i.e. the ones that you use). Yes, probably just defining read() and readline() are enough, you might be able to leave __getattr__() out of your wrapper class. Kent _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
