Re: [Pyobjc-dev] New test in Foundation
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-10-23 20:50:07
|
On Wednesday, Oct 23, 2002, at 16:57 Europe/Amsterdam, Bill Bumgarner wrote: > I added a test_paths.py suite to Foundation to test the > NSPathUtilities APIs. > > The NSSearchPathForDirectoriesInDomains() function is causing a bus > error, at the moment: [...] > hat the auto-generated wrappers are not invoking > PyArg_ParseTupleAndKeywords() correctly in that the list of variables > to parse the args into are passed by value, not by reference. For > example... > > if (PyArg_ParseTupleAndKeywords(args, kwds, > "iii:NSSearchPathForDirectoriesInDomains", keywords, objc_directory, > objc_domainMask, objc_expandTilde) < 0) return NULL; > > ... the three objc_* should all be prefixed by an &, correct? Corrrect. If fixed that script and reran 'scripts/cocoa_generator.py'. Afterwards I fixed a second problem: The functions were not marked as functions that accept keyword arguments, causing yet another bus error. Ronald |