Issue 24285: regression for importing extensions in packages (original) (raw)

PyObjC has an extension that's imported as "objc._objc". This works fine on version upto the 3.5 beta (checkout from earlier today).

With that I get the following exception:

Python 3.5.0b1+ (default:7255af1a1c50+, May 25 2015, 11:46:18) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin Type "help", "copyright", "credits" or "license" for more information.

import objc Traceback (most recent call last): File "", line 1, in File "/Users/ronald/Projects/pyobjc-hg/pyobjc/pyobjc-core/Lib/objc/init.py", line 18, in _update() File "/Users/ronald/Projects/pyobjc-hg/pyobjc/pyobjc-core/Lib/objc/init.py", line 15, in _update import objc._objc as objc ImportError: dynamic module does not define module export function (PyInit._objc)