Commits

Ronald Oussoren committed bc5ec32 Merge

merge

Comments (0)

Files changed (2)

pyobjc-core/Modules/objc/ObjCPointer.m

 		const char *type = PyBytes_AS_STRING (self->type);
 
 		if (*type == _C_VOID) {
-			PyErr_SetString (PyObjCExc_Error, 
+			PyErr_SetString (PyObjCExc_Error,
 				"Cannot dereference a pointer to void");
 			return NULL;
 		} else {
 static PyMethodDef PyObjCPointer_methods[] =
 {
 	{
-		"unpack",   
-		(PyCFunction)PyObjCPointer_unpack,       
-		METH_NOARGS,   
-		PyObjCPointer_unpack_doc 
+		"unpack",
+		(PyCFunction)PyObjCPointer_unpack,
+		METH_NOARGS,
+		PyObjCPointer_unpack_doc
 	},
 	{ 0, 0, 0, 0 }
 };
 	"PyObjCPointer",			/* tp_name */
 	sizeof (PyObjCPointer),			/* tp_basicsize */
 	sizeof (char),				/* tp_itemsize */
-  
+
 	/* methods */
 	PyObjCPointer_dealloc,			/* tp_dealloc */
 	0,					/* tp_print */
-	0,					/* tp_getattr */
+	PyObject_GenericGetAttr,                /* tp_getattr */
 	0,					/* tp_setattr */
 	0,					/* tp_compare */
 	0,					/* tp_repr */
 	if (typeend == NULL) {
 		return NULL;
 	}
-  
+
 	self = PyObject_NEW_VAR (PyObjCPointer, &PyObjCPointer_Type, size);
 	if (self == NULL) {
 		return NULL;
 	} else {
 		self->ptr = p;
 	}
-  
+
 	return self;
 }

pyobjc-core/NEWS.txt

 - "easy_install pyobjc" always tried to install the FSEvents binding,
   even when running on OSX 10.4 (where that API is not available).
 
+- ``objc.ObjCPointer`` didn't implement *__getattribute__*.
 
 Version 2.5.1
 -------------
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.