"Flynn, Stephen (L & P - IT)" <steve.fl...@capita.co.uk> Wrote in message: > The documentation (https://docs.python.org/3/library/sys.html) for > Python 3.4.1 says that "This module provides access to some variables > used or maintained by the interpreter and to functions that interact > strongly with the interpreter. It is always available." > > I interpreted that last sentence as "It's built in", so I made the > assumption I didn't need to import it in order to use it. >
The module is available, so the import statement cannot fail. In fact it's already imported and in the cache. Last time I looked, there were 42 modules in the cache by the time your code gets control (see sys.modules). They're not all promised, but sys and time are. If sys is broken, the interpreter won't go. -- DaveA _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor