Skip to content

Commit

Permalink
Don't create wrappers when retrieving parent pointers.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Nov 2, 2011
1 parent 2c0cc2d commit afb8488
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Changelog
=========

2.13.3 (unreleased)
-------------------
4.0 (unreleased)
----------------

- Don't create wrappers when retrieving parent pointers.

2.13.2 (2010-06-16)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
CHANGES = open('CHANGES.txt').read()

setup(name='ExtensionClass',
version = '2.13.3dev',
version = '4.0dev',
url='http://pypi.python.org/pypi/ExtensionClass',
license='ZPL 2.1',
description='Metaclass for subclassable extension types',
Expand Down
4 changes: 2 additions & 2 deletions src/ExtensionClass/_ExtensionClass.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ Base_getattro(PyObject *obj, PyObject *name)
/* CHANGED!
If the tp_descr_get of res is of_get,
then call it. */

if (PyObject_TypeCheck(res->ob_type,
if ((strcmp(PyString_AsString(name), "__parent__") != 0) &&
PyObject_TypeCheck(res->ob_type,
&ExtensionClassType)
&& res->ob_type->tp_descr_get != NULL) {
PyObject *tres;
Expand Down

0 comments on commit afb8488

Please sign in to comment.