Question about modules documentation

Chris Angelico rosuav at gmail.com
Fri Sep 15 12:09:13 EDT 2017


On Sat, Sep 16, 2017 at 2:03 AM, Tobiah <toby at tobiah.org> wrote:
> It seems that if the statement read:
>
>         the imported module's name (singular) is placed in the
>         importing module's global symbol table.
>
> That it would be more accurate.

That implies that you only import one module. Consider:

import sys
import os
import math
import random

The imported module names ("sys", "os", "math", and "random") are all
then available as global names. That's why it's in the plural.

ChrisA



More information about the Python-list mailing list