MisterPete wrote:

> I created an object that inherits from file and was a bit surprised to
> find that print seems to bypass the write method for objects
> inheriting from file.  An optimization I suppose.  Does this surprise
> anyone else at all or am I missing something?

No, your analysis is correct, though I'd consider optimization an euphemism
for bug here. Noone was annoyed enough to write a patch, it seems.

Peter



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to