And the chance of causing unexpected problems when attempting to enforce those requirements programmatically is high enough to make such enforcement a bad idea, IMHO. Like how calling sys.exit(1) when user code imports an “internal-use only module” that’s not meant to be imported directly may seem like a good idea, but it crashes pydoc -k scans.
              
              
              2 Likes