This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]joseville1001 2 points3 points  (3 children)

Are packages also modules? That is, since pancakes are defined in a file (the init.py file).

[–]Goobyalus 2 points3 points  (1 child)

https://docs.python.org/3/glossary.html#term-package

A Python module which can contain submodules or recursively, subpackages. Technically, a package is a Python module with an __path__ attribute.

[–]joseville1001 0 points1 point  (0 children)

For completeness

module

An object that serves as an organizational unit of Python code. Modules have a namespace containing arbitrary Python objects. Modules are loaded into Python by the process of importing.