[Skip] >Would someone with Jython experience check to see if it interprets >sys.modules["__main__"] in the same manner as Python? To me it seems like Jython defines sys.modules["__main__"] in the same way as CPython. >I'm wondering if this works for Jython as well as Python: > > def _test(): > import doctest, sys > return doctest.testmod(sys.modules["__main__"]) > > if __name__ == "__main__": > _test() It works for Jython. regards, finn
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4