Jim Galarowicz
-
2018-11-18
- Status: open --> closed-out-of-date
This was PV 933626
I need to change the normal behavior and output for a python
syntax error and I believe I need to create a subclass.
We are using the module "code" with the classes InteractiveConsole
which is a subclass of InteractiveInterpreter:
myparse.runsource(r_line, "stderr")
and I believe I need to create a subclass that redefines
"write".
Can one do this easily without rebuilding python? Do I need
to create a seperate module with the class definition and
import that module?