Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 49 by darkuranium: Patches for stdout/stderr/stdin callbacks
http://code.google.com/p/tinypy/issues/detail?id=49
Hello,
there has always been a need (at least for me) to redirect the output of
print() to somewhere else than stdout, especially lately, as I was
programming PSP-related things with TinyPy.
Here, I submit 3 patches and 1 new file for this - they are based off the
latest SVN revision (R148).
I did not know how the functions and types should be named, and therefore
may be currently named rather confusingly - feel free to change this if you
do decide to put this into trunk.
The patches were tested on Windows with the default TinyPy runner (just to
verify that it still works as usual) and with with PSP (on which I did use
callbacks).
At the moment, the compiler complains about tp_stderr and tp_stdin being
defined and not used - I've just added them for future use, feel free to
comment them out.
Attachments:
setup.py.patch 1.5 KB
tp.c.patch 33 bytes
tp.h.patch 1.1 KB
callbacks.c 730 bytes
--
You received this message because you are subscribed to the Google Groups "tinypy" group.
To post to this group, send email to
tin...@googlegroups.com.
To unsubscribe from this group, send email to
tinypy+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/tinypy?hl=en.