Ronald Oussoren  committed c2daa6b

- Added empty __slots__ definition to test-class in, 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

  • Participants
  • Parent commits d49d864

Comments (0)

Files changed (4)

File pyobjc/Doc/coding-style.html

 <li>Add appropriate ReST style fields to the top of the document as comments:<pre>
 # Author: David Goodger
 # Contact:
-# 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.

File pyobjc/Lib/objc/test/

 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()

File pyobjc/Modules/objc/pyobjc.h

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

File pyobjc/ProjectBuilder Extras/Project Templates/Cocoa-Python Document-based Application/

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