Re: [C++-sig] Displaying PyErr_Print() error
by Ralf W. Grosse-Kunstleve other posts by this author
Nov 27 2003 9:23AM messages near this date
Re: [C++-sig] Displaying PyErr_Print() error
|
[C++-sig] Re: Exposing C++ objects to Python at runtime
--- Benjamin Collar <collar@[...].com> wrote:
> 'write(self, stuff)' . Anything written is kept in an instance string.
> Instantiate that class in the interpreter and replace sys.stderr with it. In
> your catch, query that object for its string.
A minor remark: you can use StringIO or cStringIO for this purpose. I.e. you
don't have to write a class with a write method yourself.
Ralf
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Paul Grenyer
Daryle Walker
Niall Douglas
Benjamin Collar
Ralf W. Grosse-Kunstleve
|