On Mon, 10 Jul 2000, Eric S. Raymond wrote: > Update of /cvsroot/python/python/dist/src/Lib > In directory slayer.i.sourceforge.net:/tmp/cvs-serv11503/dist/src/Lib > > Modified Files: > urllib.py > Log Message: > Moves some test code into the scope of if __name__ == '__main__', where it > won't get loaded when we're using the classes in this module. Why? It's only parsed once (under usual conditions) per installation, it's cost in memory is not so high, and it's cool to be able to test via ''' import urllib urllib.main() ''' -- Moshe Zadka <moshez@math.huji.ac.il> There is no GOD but Python, and HTTP is its prophet. http://advogato.org/person/moshez
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