Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected system error #300

Closed
ronaldoussoren opened this issue Apr 2, 2020 · 1 comment
Closed

unexpected system error #300

ronaldoussoren opened this issue Apr 2, 2020 · 1 comment

Comments

@ronaldoussoren
Copy link
Owner

The code below raises SystemError due to a C function returning NULL without setting an exception.

import Cocoa
import functools

class C:
    def callback(*args, **kwds):
        return None

c = C()

observer = Cocoa.CFRunLoopObserverCreateWithHandler(None, Cocoa.kCFRunLoopEntry | Cocoa.kCFRunLoopExit, True, 0, c.callback)
ronaldoussoren added a commit that referenced this issue Apr 4, 2020
PyObjC raised a SystemError when converting a callable into
an ObjC block when the callable is a bound method without
positional arguments.
@ronaldoussoren
Copy link
Owner Author

Fixed in changeset 451bb37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant