On May 31, 5:54 am, Peter Otten <[EMAIL PROTECTED]> wrote:
> Gabriel Genellina wrote:
> > En Wed, 30 May 2007 04:24:30 -0300, Peter Otten <[EMAIL PROTECTED]>
> > escribió:
>
> >>> I created an object that inherits from file and was a bit surprised to
> >>> find thatprintseems 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.
>
> > A one-line patch, I guess, PyFile_CheckExact instead of PyFile_Check. Or a
> > few lines, checking if the write method is still the builtin one. As this
> > is the third time I see this question I'll try to submit the patch.
>
> Good idea ;) Don't know if it is still applicable, but here's a patch by
> Jeff Epler:
>
> http://groups.google.com/group/comp.lang.python/msg/91d46ff2e05e1476
>
> Peter

Thanks for the quick replies!  I forgot to mention that I was using
Python v2.4.3 but it sounds like it is still a problem anyway.  Thanks
Peter and Gabriel.

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

Reply via email to