I'm trying to figure out the entire list of possible encodings for a Python source file - that is, encodings that can go in a PEP 263 encoding specification, like # -*- encoding: foo -*-
.
Is this list the same as the list given in the documentation for the codecs
library, under "Standard Encodings"? If not, where can I find the actual list?
(I know that list is the same as the set of unique values in CPython's /Lib/encodings/aliases.py, or equivalently, the set of filenames in /Lib/encodings/, but again I'm not sure.)