I found the place in the code to try to understand what is happening, but am a
little out of my depth
In libffi_support.m
case _C_ID:
if (argtype[1] == '?') {
/* Argument is a block */
if (argument == Py_None) {
Same result:
Updated code:
import objc
CRApplication = objc.lookUpClass("CRApplication")
objc.registerMetaDataForSelector(
b'CRApplication',
b'get_block_',
{
'arguments': {
2: {
'callable': {
'argumen
So much for typing code in Mail.app…. “Retail” should be “retval”.
Ronald
—
Twitter: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/
> On 6 Jan 2020, at 15:27, Ronald Oussoren via Pythonmac-SIG
> wrote:
>
>
>
>> On 6 Jan 2020, at 00:51, Rand Dvorak wrote:
>>
>>
>> I am trying to
> On 6 Jan 2020, at 00:51, Rand Dvorak wrote:
>
>
> I am trying to implement a simple server in PyObjC for the Criollo HTTP
> server. The server has a method to set route handlers by passing a block to
> setup the route and then when it receives and HTTP request for the route it
> calls th