~mikeowen/pybindgen/pybindgen-extend-containers

« back to all changes in this revision

Viewing changes to pybindgen/pytypeobject.py

  • Committer: Mike Owen
  • Date: 2013-02-11 07:24:41 UTC
  • Revision ID: mikeowen@llnl.gov-20130211072441-qthaezc1cx1m8c0q
Making some progress expanding on default container support by converting
to using CppClass as the base.

Show diffs side-by-side

added added

removed removed

Lines of Context:
575
575
        Py_XDECREF(item);
576
576
        return result;
577
577
    } else {
578
 
        result = %(method_name)s(py_self, key, NULL);
 
578
        args = Py_BuildValue("(O)", key);
 
579
        result = %(method_name)s(py_self, args, NULL);
 
580
        Py_XDECREF(args);
579
581
    }
580
582
    return result;
581
583
}