On Tue, Jun 18, 2019 at 3:37 PM James Lu <jam...@gmail.com> wrote: > # 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. >
Introducing a keyword that would make it impossible to import an existing stdlib module seems like a nonstarter.
_______________________________________________ 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/KOEKTC7M7WCEPOOQ63NIXE5CXIG3DYGZ/ Code of Conduct: http://python.org/psf/codeofconduct/