Staging
v0.5.1
https://github.com/python/cpython
Revision 4eb0c003f8cd892800aa425fbde02ca9ecc76f34 authored by Ka-Ping Yee on 02 March 2001, 05:50:34 UTC, committed by Ka-Ping Yee on 02 March 2001, 05:50:34 UTC
    as long as the filename also doesn't end in a suffix that indicates
    a binary file (according to the flags in imp.get_suffixes()).

Shrink try...except clauses and replace some of them with explicit checks.
1 parent 9054344
Raw File
Tip revision: 4eb0c003f8cd892800aa425fbde02ca9ecc76f34 authored by Ka-Ping Yee on 02 March 2001, 05:50:34 UTC
Make getsourcefile() succeed even if the filename doesn't end in '.py' --
Tip revision: 4eb0c00
libmods.tex
\chapter{Built-in Modules}

The modules described in this chapter are built into the interpreter
and considered part of Python's standard environment: they are always
available.\footnote{at least in theory --- it is possible to specify
at build time that one or more of these modules should be excluded,
but it would be antisocial to do so.}
back to top