Re: [Pyobjc-dev] Possible memory leak passing Cocoa NSData or NSDictionary instances from python pl
Brought to you by:
ronaldoussoren
|
From: s s <li...@in...> - 2008-06-02 02:17:35
|
On Jun 1, 2008, at 9:57 PM, Barry Wark wrote:
> and the corresponding "getNumpyData" and "getDictFromPython" methods
> in the plugin are:
>
> import numpy as np
>
> def getNumpyData(self):
> return np.zeros(10000)
>
> def getDictionary(self):
> return NSDictionary.dictionaryWithObjectsAndKeys_('abc',
> 'string',
> pkl.dumps(np.zeros(1000)),
> 'pkl_string',
> None)
What do the Obj-C test versions of these two same methods look like?
S
|