# regular code
unittest:
 # test code goes here

This code would be run when the runtime -unittest flag is passed. It would 
function as test usages and example client code. The code within the block 
would remain in .pyc, unless the -O switch is passed. 


Write """""" or ## above a unittest to include it in generated documentation.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/WCB4WBK3UPLGX2MZ2QO7DIWW5IOPQQ5F/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to