# Python XPCOM Package

Mozilla CVS Version - Last updated May 2002

This is the readme for the Python interface to XPCOM.

XPCOM is an acronym for "Cross Platform COM". It has come out of the Mozilla project, which maintains the main XPCOM project pages. The Python XPCOM package is a set of Python bindings to XPCOM, allowing a Python programmer to both use and implement XPCOM interfaces. If you don't know what Python is, then none of this probably interests you at all!

This readme has links to the following information:

- Building, Configuring and Testing the Python XPCOM Package
- A tutorial for the Python XPCOM package
- Some advanced topics and other miscellaneous information
- Information on the architecture
- A list of the known issues and bugs, the release history and the PyXPCOM acknowledgements

Note: This package requires Python 1.6 or later; we recommend using the latest official Python version. This package works very well with the latest ActivePython, and does not require any external modules or packages beyond what is provided in the core Python release for each platform.

## About the Python XPCOM Package

The Python XPCOM Package was developed by ActiveState Tool Corporation, and came out of their Komodo project. The Python XPCOM package is released under the Mozilla Public License (MPL)

Please see the credits file for a list of contributors.

## Known Bugs/Issues

- No attempt is made to recurse sub-directories of the main "components" directory. This is because we may decide on some smart scheme for recursion (similar to Python packages), and don't want people to rely on simple recursive searches.
- No unregistration support at all. The main Python Component Loader supports unregistration, but the actual Python objects themselves do not support unregistration. It is unclear if the Component Loader unregistration process needs to manually remove each component it is responsible for.
- All Python-implemented components unconditionally support weak-references. There is no way to disable this feature for any or all components. It is unclear if there is a need to prevent this, but it is documented here just in case!

## Release History

### Version 0.90 - January 2001

- First public release.

### Version 0.91 - January 2001

- Fix a seg fault on Linux when PYTHONPATH is not set.
- Changes to allow building with stand-alone XPCOM.

### Version 0.92 - May 2001

Implement interface flattening. You should (almost) never need to use QueryInterface()! We are still 100% backwards compatible, so usage of QI still works - just is generally not necessary.

### Version 0.93 - May 2002

Implement nsIVariant and all new string types. Complete move to autoconf build system.