[Pyobjc-dev] conversion of tuples to structs
Brought to you by:
ronaldoussoren
From: Tobias S. <to...@pe...> - 2003-09-12 00:35:03
|
Looking at the code in objc_support.m, it's pretty obvious that structs (and arrays) can currently only be built from tuples. Is there any reason why anything that acts as a sequence won't do? I appreciate that the symmetry of the pythonifying/depythonifying is neat, but it would be extremely useful (for example) to be able to pass Numeric arrays representing points to objc functions without the overhead (both in terms of execution speed and in terms of typing) of converting them to tuples. If there's no reason (technical or otherwise) why this shouldn't be the case, I'm happy to make the change and submit a patch. Toby. -- url: http://permuted.net/ id: D9E15866 key: http://permuted.net/tjs.gpgkey.asc fingerprint: EDD8 E1EC 440A D2B6 89BF AFA4 FBFC 19B6 D9E1 5866 |