Commit Graph
17 Commits
Author SHA1 Message Date
Gustavo Carneiro f8943e6719 Make it work on Python 3, except gccxml, which has not been tested 2013-07-27 17:18:06 +01:00
Dan Eicher 444ad69dbc python 3 support 2011-01-18 19:18:34 -07:00
Mike Owen 0f28fa25ee Add a missing Py_DECREF in the sq_item slot wrapper. 2009-11-18 22:31:57 +00:00
Gustavo J. A. M. Carneiro 56b672df47 Fix dangling pointer 2009-08-15 16:24:35 +01:00
J. Michael Owen 18e2fa57d2 Allow tp_len slot to support overloaded methods 2009-08-15 16:22:30 +01:00
Gustavo J. A. M. Carneiro cdd3fcde53 Fix reference leaks. 2009-07-08 11:06:03 +01:00
J. Michael Owen a1ac21ceb3 Refactor sequence methods handling, for simplification. Let sq_len call the generated wrapper for __len__, etc.. 2009-07-08 10:57:00 +01:00
Gustavo J. A. M. Carneiro c72051d32a small bug fix 2009-07-07 16:00:54 +01:00
Gustavo J. A. M. Carneiro b715cd066d merge 2009-06-28 18:23:54 +01:00
Gustavo J. A. M. Carneiro 37367ff797 J. Michael Owen contribution: inplace numeric operators, sequence protocol support (__len__, __getitem__, __setitem__). Source: http://mail.python.org/pipermail/cplusplus-sig/2009-June/014595.html 2009-06-28 18:08:37 +01:00
Gustavo J. A. M. Carneiro 9f3a4be4ab Fix -Wextra warnings 2008-12-31 18:02:51 +00:00
Gustavo J. A. M. Carneiro 9c1dcf79df Don't generate nb_index slot: it is not used yet and breaks compatibility with Python < 2.5 2008-10-07 12:13:05 +01:00
Gustavo J. A. M. Carneiro 3ea77fd1f0 Indent the generated PyNumberMethods struct 2008-10-07 11:31:31 +01:00
Gustavo J. A. M. Carneiro 259bb357f1 Wrap C++ arithmetic operators 2008-10-06 15:36:44 +01:00
Gustavo J. A. M. Carneiro b0336e7f06 Getting ready to support numeric operators... 2008-10-05 18:51:17 +01:00
Gustavo J. A. M. Carneiro 20d58453b1 Default value for tp_dictoffset should be 0, not NULL. 2008-08-19 12:44:43 +01:00
Gustavo J. A. M. Carneiro ff031bfcda Factor out the generation of the type structure away from cppclass into a separate class PyTypeObject, for better code reuse. 2008-08-08 18:54:21 +01:00