Blogging Python Output: A Challenge
· annoyance, Blogger, python
Originally published at https://holdenweb.blogspot.com/2009/05/blogging-python-output-challenge.html
I spent half an hour yesterday in a battle with Bogger, trying to get it to render the output of this Python 3 program:class MyCls:
pass
obj = MyCls()
print(obj)
<__main__.mycls>
It starts out looking OK, but once I preview it, or publish it, Blogger just throws away everything after the first space up to the closing angle. Who can tell me what I am doing wrong? Or is Blogger being unfair.
* don't even think about blogging the actual entity codes: they'll be mangled too.
[The program will run, producing slightly different output, under Python 2. I suspect Blogger will mangle that output too]
annoyance Blogger python
