diff options
| author | PJ Eby <distutils-sig@python.org> | 2006-02-12 19:20:29 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2006-02-12 19:20:29 +0000 |
| commit | afdfd43bc6743b5d4114b638c7b376db5e60b3c9 (patch) | |
| tree | 99c2c3513ec49c023b12b78f5f7ec5140d3987cb /pkg_resources.txt | |
| parent | 8b28bf851c354c849fa0ea861d9a4661f14202a1 (diff) | |
| download | external_python_setuptools-afdfd43bc6743b5d4114b638c7b376db5e60b3c9.tar.gz external_python_setuptools-afdfd43bc6743b5d4114b638c7b376db5e60b3c9.tar.bz2 external_python_setuptools-afdfd43bc6743b5d4114b638c7b376db5e60b3c9.zip | |
Misc. doc additions: callback exception handling, and an assortment of
tips and techniques for using easy_install.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042336
Diffstat (limited to 'pkg_resources.txt')
| -rwxr-xr-x | pkg_resources.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg_resources.txt b/pkg_resources.txt index 6fd1af82..ada2de3f 100755 --- a/pkg_resources.txt +++ b/pkg_resources.txt @@ -349,6 +349,13 @@ function are for. yourself to deal with the existing items; just register the callback and be prepared for the fact that it will be called immediately by this method. + Note that callbacks *must not* allow exceptions to propagate, or they will + interfere with the operation of other callbacks and possibly result in an + inconsistent working set state. Callbacks should use a try/except block + to ignore, log, or otherwise process any errors, especially since the code + that caused the callback to be invoked is unlikely to be able to handle + the errors any better than the callback itself. + ``pkg_resources.add_activation_listener()`` is an alternate spelling of ``pkg_resources.working_set.subscribe()``. |
