Source

pyobjc / pyobjc-core / Modules / objc / OC_PythonArray.m

Author Commit Message Labels Comments Date
Ronald Oussoren
Improved testing for archiving python objects
Ronald Oussoren
Fix a crash in NSArchiving support for Python objects Without this patch the testsuite would cause a hard crash in Python versions that have the thread-safe trashcan implemention (3.3 and all upcoming stable releases). The crash happens because a PyObjC callback method didn't get the GIL, and this accidently worked in previous versions (but was probably an accident waiting to happen and could have caused problems in multithreaded scripts)
Ronald Oussoren
A number of ML related changed 1) Be explicit about the return type of methods, don't rely on the implict 'id' result This avoids warnings with recent versions of clang. 2) Start using 'instancetype' return type for class methods that create new instances Allows for better warnings with recent clang versions. Also add backward compatibility define that ensures that the code still compiles with older compilers. …
Ronald Oussoren
Fix compiler warnings for clang This patch fixes a number of small issues in the PyObjC source code and ensures that we compile basicly warnings-free with clang (Xcode 4.2, -Wall). Als add "-(BOOL)supportsWeakPointers { return YES; }" to the OC_Python* classes, this makes sure we play nice with ARC (our release implementation calls the super one after grabbing the python GIL and should therefore be safe in ARC mode).
Ronald Oussoren
First batch of clang cleanups This fixes a number of issues located by the clang compiler and analyzer, there will be more fixes in a future checkin. Also adds a new private function the objc extension, to be used by a new metadata loader.
Ronald Oussoren
Remove extra level introduced by conversion from subversion