Python Forum
things i want that probably mean code to write - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: things i want that probably mean code to write (/thread-6355.html)



things i want that probably mean code to write - Skaperen - Nov-18-2017

i want a print()-like function that modifies most non-printable characters (exceptions would include common output formatting characters like newline).  it should convert things into their common forms like chr(3) becomes '^C' or at least '\003'.  i would also want a CLI filter to get this kind of output on other commands.  instances of this should each have a means the modify the mapping (including extract and restore).  maybe i want chr(9) to output a raw tab in some cases or a '\t' or a '^i' string in other cases.  i can see it being a class generator that would be the core of many other tools.


RE: things i want that probably mean code to write - heiner55 - Nov-26-2017

Does it make progress ?


RE: things i want that probably mean code to write - Skaperen - Nov-27-2017

i haven't decided if i want to write that, yet.