]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Added WeakLink...Generator classes (should have done that ages ago). These check...
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 1 Jul 2001 22:09:29 +0000 (22:09 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 1 Jul 2001 22:09:29 +0000 (22:09 +0000)
commiteefac35594980b517f92261ac8baa26d8d320e96
tree24dfcd3b04c602e08d3151aeab00d8cf199d57f8
parent340d98f564ac3ce8ee46b1f2c4f382718c10effe
Added WeakLink...Generator classes (should have done that ages ago). These check the c-function pointer for being NULL before calling it and raise UnimplementedError if it is.

This allows system libs to be weak-linked, thereby allowing us to generate functions that are only available on some OS versions without getting a NULL dereference if the function isn't available.
Tools/bgen/bgen/bgenGenerator.py
Tools/bgen/bgen/macsupport.py