[Tutor] modular programming

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Thu, 7 Feb 2002 21:48:55 -0800 (PST)

On Thu, 7 Feb 2002, Cameron Stoner wrote:

> What is the difference between a C++ module or other language and
> Python's modules?

The Python "extension modules" that people often mention are Python
modules that have been written in a language other than Python.  If the
extension module has been written well, we shouldn't be able to recognize
an extension module from a regular module written in Python.

For a concrete example of an extension module, take a look at Tkinter ---
that module is actually written in C, but has been wrapped so well that it
feels Pythonic.

However, I'm not sure if this is what you mean by "C++ module".  Please
feel free to ask more questions about this, and we'll try to give a more
appropriate answer.

Talk to you later!