Python Forum

Full Version: things i want that probably mean code to write
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Does it make progress ?
i haven't decided if i want to write that, yet.