On Thu, Apr 02, 2020 at 07:18:47PM +0400, Abdur-Rahmaan Janhangeer wrote:

> Out of curiosity how did you learn about sys.displayhook?

20+ years of using Python, experimenting at the interpreter, reading the 
documentation, blog posts, etc. I have no idea *specifically* where I 
learned it.

I didn't remember the name of the hook, but I knew it existed, so I ran 
dir(sys) to get a list of objects in the sys module, then tested it to 
make sure it did what I thought it did.


-- 
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/DMKA3C5YYIUQR64PM5OC4LAYU3DSPVYD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to