Python modules, how do they work?

1. Introduction

As we start writing larger Python programs, the amount of names of our variables, functions, classes, etc. grows so, that it becomes necessary to organise them into some categories or subsets, commonly called namespaces. The following language structures offer such facilities:

  • classes,
  • modules,
  • packages.

In this article we will not talk about classes, as they deserve a separate discussion.


| |
2011/10/16 21:15
1