Commits

Ronald Oussoren committed c2daa6b

- Added empty __slots__ definition to test-class in test_posing.py, this way
it has some remote change of ever working (without it the class will always
get a new instance variable: __dict__).
- Fixed Cocoa-Python Document-based Application template: bug introduced during
move of NibClassBuilder to PyObjCTools

Comments (0)

Files changed (4)

pyobjc/Doc/coding-style.html

 <li>Add appropriate ReST style fields to the top of the document as comments:<pre>
 # Author: David Goodger
 # Contact: goodger@users.sourceforge.net
-# Revision: $Revision: 1.5 $
-# Date: $Date: 2003/04/19 17:52:21 $
+# Revision: $Revision: 1.6 $
+# Date: $Date: 2003/05/02 18:59:26 $
 # Copyright: This module has been placed in the public domain.
 </pre>
 </li>

pyobjc/Lib/objc/test/test_posing.py

 class TestPosing(unittest.TestCase):
     def testPosing(self):
         class Level1Class(NSObject):
+            __slots__ = ()  # Don't add instance variables, not even __dict__
             def description(self):
                 return "<<subdescrip>> " + super.description()
 

pyobjc/Modules/objc/pyobjc.h

 #define PyDoc_STRVAR(name, str) PyDoc_VAR(name) = PyDoc_STR(str)
 #endif
 
-#define OBJC_VERSION "0.9pre1"
+#define OBJC_VERSION "0.9"
 
 #ifdef MACOSX
 

pyobjc/ProjectBuilder Extras/Project Templates/Cocoa-Python Document-based Application/MyDocument.py

 from PyObjCTools import NibClassBuilder
 
 NibClassBuilder.extractClasses("MyDocument")
-class MyDocument(PyObjCTools.AutoBaseClass):
+class MyDocument(NibClassBuilder.AutoBaseClass):
     def init(self):
         self = super(MyDocument, self).init()
         if self: