Hi guys, To support http://code.djangoproject.com/ticket/13476 ,
it'd be great if someone converted current prints to use self.stdout and self.stderr. Alternative suggestions are welcome... On Fri, Jul 16, 2010 at 6:38 AM, Russell Keith-Magee <russ...@keith-magee.com> wrote: > On Fri, Jul 16, 2010 at 5:39 AM, Gregor Müllegger <gre...@muellegger.de> > wrote: >> Related to the issue with stdout/stderr: >> >> I'm aware that Russ is not a big fan of Monkeypatching :) > > True :-) > >> but I think this >> would be a legal case - since there is no other way of intercepting the real >> stdout output (I'm not sure but this might be even documented in python docs, >> that its ok to overwrite sys.stdout and sys.stderr with your own objects). > > If you want to get really technical, there *is* another way it can be > done -- at least, if you're on a *NIX; you can redirect the file > descriptors that represent stdout/stderr. It's low-level plumbing, but > it works. -- Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov, MSN: bu...@live.com -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.