← Back to team overview

instant team mailing list archive

Rewritten code

 

I just checked in the rewritten code.

The main entry point is create_extension.py which contains
the create_extension function. Other subsystems have their
own files. "Inline" additions are in highlevel.py.

The function create_extension now has explicit argument
names instead if **kwargs, and asserts the types of all arguments
to ensure a more robust code. It returns the compiled extension
module.

Arguments to create_extension are mostly the same, except:
- module -> modulename (cache is used if and only if this is omitted)
- use_cache -> removed
- cache_dir added, allows specifying a different cache directory (see tests).
- generate_Interface -> generate_interface
- generate_setup added
- generate_makefile added
See the docstring of extension_module in case I forgot something here.

All global variables are gone (e.g. VERBOSITY and USE_CACHE).
Use functions instant_* from output.py to print messages
of various verbosity if you modify Instant. Call instant.set_level("debug")
to show debug printing (now using the logging module).

Look at test16.py for use of the main functions create_extension,
find_extension and import_extension.

There are some minor TODO and FIXME comments left,
and the tests using numarray and Numeric don't work.

--
Martin


Follow ups