Debian Codegraph @

NEWS

raw
1 === pybindgen 0.16 ===
2
3 - Add API to allow importing classes and enumerations from external modules
4 - Add new destructor_visibility CppClass option
5 - Add setting to disable usage of the internal GCC abi to check rtti stuff (for Mac OS X GCC)
6 - pybindgen.settings.deprecated_virtuals default value changed to False
7 - Bug fixes.
8
9 === pybindgen 0.15 ===
10
11 - Bug fixes
12
13 === pybindgen 0.14 ===
14
15 - Multiple inheritance support
16
17 - Virtual methods can now be overridden with Method instead of _Method
18
19 - Add annotation support for instance attributes
20
21 - Benchmarks (vs Boost.Python, SWIG, and SIP)
22
23 - New types supported: int16_t& and std::string* parameter types
24
25 - Non-virtual protected methods are now also wrapped
26
27 - Wrap enum pointer params
28
29 Note: this release marks the beginning of a transition to a minor change
30 in the API of the generated bindings.
31
32 Prior to PyBindGen version 0.14, the code generated to handle C++
33 virtual methods required Python user code to define a _foo method in
34 order to implement the virtual method foo. Since 0.14, PyBindGen
35 changed so that virtual method foo is implemented in Python by
36 defining a method foo, i.e. no underscore prefix is needed anymore.
37 Setting pybindgen.settings.deprecated_virtuals to True will force the
38 old virtual method behaviour. But this is really deprecated; newer
39 code should set pybindgen.settings.deprecated_virtuals to False.
40
41 In PyBindGen 0.14, if the option
42 pybindgen.settings.deprecated_virtuals is not set, PyBindGen emits a
43 warning and assumes the value of True in order to preserve backward
44 compatibility. In PyBindGen 0.15, the default value of this option
45 will change to False, and in 0.16 the support for deprecated virtuals
46 will be removed.
47
48 This change was made to make the user code interface more intuitive,
49 and to align it with other Python bindings tools such as SIP,
50 Boost.Python, and SWIG.
51
52
53 === pybindgen 0.13 ===
54
55 - Lots of small bug fixes
56
57 - Custodian/ward-style memory management works better now
58
59 - Add 'reference_existing_object' and 'return_interal_reference'
60 options for pointer/reference return values
61
62 - New Sphinx based documentation
63
64
65 === pybindgen 0.12 ===
66
67 - Now we can catch C++ exceptions and translate them into Python
68
69 - New API to add container iteration powers to wrapped C++ classes
70
71 - Unary minus operator support (J. Michael Owen)
72
73 - CppMethod: is_pure_virtual=True should imply is_virtual=True
74
75 - More polish for numeric operators with non-class right operand
76
77 - Virtual methods regressions fixed
78
79 - gccxmlparser: don't try to wrap private/protected operators
80
81 - MSVC compilation fix
82
83 - unsigned long type handlers (J. Michael Owen)
84
85 - tp_len/__len__ works now with overloaded methods (J. Michael Owen)
86
87 - Add foreign_cpp_namespace option to Function wrappers
88
89 - Misc. cleanup and bug fixes
90
91
92 === pybindgen 0.11 ===
93 - Generate code that supports GCC's -fvisibility=hidden
94
95 - Add rudimentary support for std::map containers
96
97 - Some inplace numeric operators now supported (J. Michael Owen)
98
99 - Partial sequence protocol support: __len__, __getitem__,
100 and __setitem__ (J. Michael Owen)
101
102 - Partially support pointer-to-container parameters
103
104 - Call traceback.extract_stack() less often (faster on win32)
105
106 - No need for GIL locking in attribute setters (thanks Stuart Stock)
107
108 - Allow wrapping enum given list of (name, value) pairs
109
110 - New foreign_cpp_namespace option, for wrapping classes outside
111 our module's C++ namespace
112
113 - Add a docstring parameter to CppMethod constructor (Robin Gilks)
114 Also add a docstring parameter for CppClass
115
116 - Better support for typedefs
117
118 - Implement support for enum reference parameters
119
120 - Add support for size_t "by-value" type
121
122 === pybindgen 0.10 ===
123
124 - New null_ok, default_value options for pointer-to-class parameters;
125
126 - Thread safety fixes;
127
128 - Map C++ operator() into Python's tp_call (__call__);
129
130 - Initial support for std containers (except mapping containers);
131
132 - Generate __copy__ methods for classes with copy contructor;
133
134 - Add 'wrapper registry' optional feature (off by default): allows
135 C++ instances returned by pointer to be consistently wrapped
136 always by the same Python wrapper, so that the 'is' operator can
137 be used for identity testing;
138
139 - New C type expression parser, is_const not longer needed for
140 parameter types, just put const in the type string as
141 appropriate;
142
143 - Sort the declarations returned by (py)gccxml. If generating
144 python script files from gccxml scanning, now the output file
145 becomes more stable and less prone to move declarations up and
146 down with different people scanning and the output file is under
147 version control;
148
149 - Map binary comparison operators (< <= == >= >) from C++ to Python;
150
151 - Map some binary numeric operators (+ - * /) from C++ to Python;
152
153 - Allow installation of pybindgen even if no C/C++ compiler is detected;
154
155 - Fix compatibility with older Python versions (tested with 2.3, 2.4, and 2.5)
156
157
158 === pybindgen 0.9 ===
159 - Fix GCC 4.2 compilation warnings;
160 - Works with some GCCXML 0.9/cvs snapshots (tested with 2008-04-20),
161 in addition to stable 0.7;
162 - Support for overloaded virtual methods;
163 - Add 'ignore' annotation support, allowing to ignore functions
164 and methods;
165 - Generally work hard to make sure the generated code at least
166 always compiles, even if we have to disable generation of
167 certain wrappers;
168 - Add support for protected methods and constructors;
169 - Preliminary support for templated classes/methods/functions;
170 - Add more type conversions, such as uint64_t and uint16_t;
171 - Support implicit conversions also for pass-by-reference parameters;
172 - Add supported for nested (i.e. defined inside a class) enums and classes;
173 - Add support for adding manually written custom method or function wrappers;
174 - Split the gccxmlparser.ModuleParser.parse() method into several
175 smaller methods, to allow greater customization and flexibility;
176 - Add support for customising C++ class instance creation code;
177 - Much improved support for wrapping pure C code;
178 - Support std::ostream << myobject mapped as str(myobject) (Mathieu Lacage)
179 - Support default values in parameters;
180 - More intuitive API (thanks Mathieu Lacage for feedback)
181 - Support generation of a Python pybindgen script from scanned API;
182 - Support splitting of generated python script and/or C/C++ module into several files;
183 - Lots of small bug fixes, and other features I probably forgot;
184 - New tutorial (thanks Mathieu Lacage), and API docs.
185
186
187 === pybindgen 0.8 ===
188 - Support C++ instance attributes through getter/setter methods
189 - Support functions as methods of C++ classes
190 - Support the PyObject* type
191 - Support unsigned int, C strings (char*) (from Mark Lee)
192 - Add basic support for enum types
193 - New experimental automatic module generator based on C/C++
194 header file scanner and annotations in comments, using pygccxml
195 - Some bug fixes
196
197
198 === pybindgen 0.7 ===
199 - Automatic C++ pointer-to-class return type narrowing
200 - Optionally allow subclassing in Python of certain C++ classes
201 - Add support for overriding C++ virtual methods in Python
202 - Add support for C++ namespaces
203 - Add support for C++ implicit conversions
204 - Add support for a "custodian and ward" memory management model
205 - Assorted bug fixes
206
207
208 === pybindgen 0.6 ===
209 - Supports function/method/constructor overloading
210 - Supports automatic type narrowing on C++ class pointer return values
211
212
213 === pybindgen 0.5 ===
214 - Support C++ class instance/static attribute setters (only
215 getters supported before).
216
217
218 === pybindgen 0.4 ===
219 - Support reference counted C++ classes
220 - Generated code compiles with Python >= 2.3
221 (though Python >= 2.4 required for pybindgen itself)
222 - Memory leak fixes
223 - Add support for type transformations (for smart pointers)
224 - New option to prefix global declarations with a name
225 - Fix compilation warnings
226 - Add support for read-only access to C++ class attributes
227 (both instance and static attributes supported)
228 - Win32 build fixes
229 - Other bug fixes
230
231
232 === pybindgen 0.3 ===
233 - Supports methods and functions with parameters of a class
234 type (for classes being wrapped). Pass by pointer, value, or ref
235 supported, with in/out/inout directions, and transfer of ownership, as
236 well as value/pointer class return type. Reference counted classes
237 not yet supported.
238
239
240 === pybindgen 0.2 ===
241 - Supports wrapping classes, but not yet functions/methods
242 with class parameters;
243
244
245 === pybindgen 0.1 ===
246 - Supports basic types, modules, and functions;
247