Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Untitled_81.py
>>> V=objc_util.ObjCInstance(v)
>> V.pyObject.method_cache['0/'][0].encoding
b'^{_object=i^{_typeobject}}8@0:4'
>>> V.pyObject()
Traceback (most recent call last):
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 867, in __call__
argtypes = kwargs['argtypes']
KeyError: 'argtypes'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 802, in __call__
return method(*ordered_args, **kw)
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 871, in __call__
restype, argtypes, argtype_encodings = parse_types(type_encoding)
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 316, in parse_types
restype = get_type_for_code(encoded_types[0])
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 305, in get_type_for_code
return POINTER(get_type_for_code(enc_str[1:]))
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 298, in get_type_for_code
return parse_struct(enc_str)
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 277, in parse_struct
comps = _enclosed.parseString(encoding).asList()[0]
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 1041, in parseString
raise exc
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 1031, in parseString
loc, tokens = self._parse( instring, 0 )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 905, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 2543, in parseImpl
return self.expr._parse( instring, loc, doActions, callPreParse=False )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 905, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 2412, in parseImpl
raise maxException
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 2398, in parseImpl
ret = e._parse( instring, loc, doActions )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 905, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 2543, in parseImpl
return self.expr._parse( instring, loc, doActions, callPreParse=False )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 905, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 2543, in parseImpl
return self.expr._parse( instring, loc, doActions, callPreParse=False )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 905, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 2288, in parseImpl
loc, exprtokens = e._parse( instring, loc, doActions )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 909, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 2543, in parseImpl
return self.expr._parse( instring, loc, doActions, callPreParse=False )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 909, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/var/mobile/Containers/Bundle/Application/D1EC9E67-2D3F-4F05-8D13-F91CF77A6E7E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pyparsing.py", line 1507, in parseImpl
raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected "}" (at char 10), (line:1, col:11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.