Commit d4e06ac
committed
Preparation for delivering nicely-formatted error messages in
Boost.Python. The major change is that, instead of being
boost::function2<PyObject*,PyObject*,PyObject*>, py_function is now a
runtime-polymorphic wrapper for compile-time polymorphic
behavior (just like function) of our own which carries more
information/behaviors. In particular, you can retrieve an array of
c-strings describing the types in the function signature.
Additionally, the minimum and maximum arity are stored in the
py_function object instead of in the 'function' object which wraps it.
* data_members.hpp -
Adjustments for the new py_function. Workarounds for CodeWarrior
Pro 8.3 bugs in function template argument deduction with
pointers-to-members.
* has_back_reference.hpp, test/back_reference.cpp,
test/select_holder.cpp -
Updated to follow the metafunction protocol
* init.hpp, detail/defaults_gen.hpp -
Make Keywords a more-specific type in function signatures to
prevent string literals that show up as char[N] from binding to
the wrong argument (at least Intel 7.1 for Windows does this).
* make_function.hpp -
Adjustments for the new py_function. Arities are now computed
by caller<>.
* opaque_pointer_converter.hpp, type_id.hpp -
Use BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS facilities;
generate specializations that all compilers can handle.
* raw_function.hpp -
Adjustments for the new py_function.
* caller.hpp -
Added arity and signature type name reporting.
* detail/config.hpp
Enable __declspec(dllexport) for Cygwin, thereby fixing the
recent horrible Cygwin linking problems.
* detail/msvc_typeinfo.hpp -
Always pass boost::type<T>* explicitly, thereby working around
incompatible notions of how to specialize function templates with
default arguments on various compilers.
* object/function.hpp
, object/function_handle.hpp
, object/function_object.hpp
, object/function_object.cpp
Adjustments for the new py_function. Arities are carried by
py_function.
* object/iterator.hpp, object/iterator.cpp
Adjustments for the new py_function; we have to compute a
signature of types to construct it with.
* object/py_function.hpp
Removed dependency on boost::function; see the comment at the
top of this entry for more details.
* object/select_holder.hpp
Clean up to more closely follow MPL idioms.
* test/Jamfile -
Adjust the embedding test for the new Cygwin use of declspec.
Update bases and pointee tests with missing properties.
* test/input_iterator.cpp -
Updates for the new iterator adaptors.
* test/opaque.py -
Add Python encoding comment to suppress PendinDeprecationWarning
with recent Python builds.
* test/str.cpp
Pass a Python long instead of a float to string.expandtabs,
suppressing a PendinDeprecationWarning with recent Python builds.
* libs/utility/counting_iterator_example.cpp
Borland workaround
* libs/utility/indirect_iterator_example.cpp
const-correctness fix.
*
[SVN r19247]1 parent 817dcd3 commit d4e06ac
File tree
25 files changed
+516
-197
lines changed- include/boost/python
- detail
- object
- src/object
- test
25 files changed
+516
-197
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
37 | 57 | | |
38 | 58 | | |
39 | 59 | | |
| |||
74 | 94 | | |
75 | 95 | | |
76 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
77 | 103 | | |
78 | 104 | | |
79 | 105 | | |
| |||
108 | 134 | | |
109 | 135 | | |
110 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
111 | 148 | | |
112 | 149 | | |
113 | 150 | | |
| |||
123 | 160 | | |
124 | 161 | | |
125 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
126 | 166 | | |
127 | 167 | | |
128 | 168 | | |
129 | 169 | | |
130 | 170 | | |
131 | 171 | | |
132 | 172 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
138 | 178 | | |
139 | 179 | | |
| 180 | + | |
| 181 | + | |
140 | 182 | | |
141 | 183 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
147 | 189 | | |
148 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
149 | 203 | | |
150 | | - | |
| 204 | + | |
151 | 205 | | |
152 | 206 | | |
| 207 | + | |
153 | 208 | | |
154 | | - | |
| 209 | + | |
155 | 210 | | |
156 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
157 | 214 | | |
158 | | - | |
| 215 | + | |
| 216 | + | |
159 | 217 | | |
160 | | - | |
| 218 | + | |
161 | 219 | | |
162 | 220 | | |
163 | | - | |
| 221 | + | |
164 | 222 | | |
165 | 223 | | |
| 224 | + | |
166 | 225 | | |
167 | | - | |
| 226 | + | |
168 | 227 | | |
169 | 228 | | |
| 229 | + | |
170 | 230 | | |
171 | 231 | | |
172 | 232 | | |
173 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
174 | 236 | | |
175 | 237 | | |
| 238 | + | |
176 | 239 | | |
177 | | - | |
| 240 | + | |
178 | 241 | | |
179 | 242 | | |
180 | | - | |
| 243 | + | |
181 | 244 | | |
182 | | - | |
183 | | - | |
184 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
185 | 249 | | |
186 | | - | |
| 250 | + | |
| 251 | + | |
187 | 252 | | |
188 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
189 | 263 | | |
190 | | - | |
| 264 | + | |
191 | 265 | | |
192 | 266 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
197 | 274 | | |
198 | 275 | | |
| 276 | + | |
199 | 277 | | |
200 | | - | |
| 278 | + | |
201 | 279 | | |
202 | 280 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
207 | 288 | | |
208 | 289 | | |
| 290 | + | |
209 | 291 | | |
210 | 292 | | |
211 | 293 | | |
212 | 294 | | |
213 | 295 | | |
214 | 296 | | |
215 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
216 | 305 | | |
217 | 306 | | |
218 | 307 | | |
219 | | - | |
| 308 | + | |
220 | 309 | | |
221 | 310 | | |
222 | 311 | | |
223 | 312 | | |
224 | 313 | | |
225 | | - | |
| 314 | + | |
226 | 315 | | |
227 | 316 | | |
228 | 317 | | |
229 | 318 | | |
230 | 319 | | |
231 | | - | |
| 320 | + | |
| 321 | + | |
232 | 322 | | |
233 | 323 | | |
234 | | - | |
| 324 | + | |
235 | 325 | | |
236 | | - | |
| 326 | + | |
237 | 327 | | |
238 | | - | |
| 328 | + | |
| 329 | + | |
239 | 330 | | |
240 | | - | |
241 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
242 | 340 | | |
243 | 341 | | |
244 | 342 | | |
245 | | - | |
| 343 | + | |
246 | 344 | | |
247 | 345 | | |
248 | 346 | | |
249 | 347 | | |
250 | 348 | | |
251 | | - | |
| 349 | + | |
252 | 350 | | |
253 | 351 | | |
254 | 352 | | |
255 | 353 | | |
256 | 354 | | |
257 | | - | |
| 355 | + | |
258 | 356 | | |
259 | 357 | | |
260 | 358 | | |
261 | 359 | | |
262 | 360 | | |
263 | 361 | | |
264 | | - | |
| 362 | + | |
265 | 363 | | |
266 | 364 | | |
267 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
122 | | - | |
123 | 128 | | |
| 129 | + | |
124 | 130 | | |
125 | 131 | | |
126 | 132 | | |
| |||
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
166 | 180 | | |
167 | 181 | | |
168 | 182 | | |
| |||
0 commit comments