1"""
2Python <-> Objective-C bridge (PyObjC)
3
4This module defines the core interfaces of the Python<->Objective-C bridge.
5"""
6
7# Aliases for some common Objective-C constants
8nil = None
9YES = True
10NO = False
11
12# Import the namespace from the _objc extension
13def _update(g=globals()):
14
15    # Dummy import of copy_reg, needed
16    # for py2app.
17    import copy_reg
18
19    import _objc
20    for k,v in _objc.__dict__.iteritems():
21        g.setdefault(k,v)
22_update()
23del _update
24
25from _convenience import *
26from _bridgesupport import *
27
28from _dyld import *
29from _protocols import *
30from _descriptors import *
31from _category import *
32from _bridges import *
33from _compat import *
34from _pythonify import *
35from _functions import *
36from _locking import *
37from _context import *
38
39import _pycoder
40
41# Make sure our global autorelease pool is
42# recycled when the interpreter shuts down.
43# This avoids issue1402 in the python
44# bugtracker
45import atexit
46atexit.register(recycleAutoreleasePool)
47