2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00
Commit Graph

145 Commits

Author SHA1 Message Date
Ullrich Köthe
9f30f7dfd7 implemented export of operators
[SVN r8203]
2000-11-14 19:34:43 +00:00
Dave Abrahams
80ebaf94f5 removed unused class ExtensionType forward declaration
[SVN r8202]
2000-11-14 03:30:47 +00:00
Dave Abrahams
dc26a04ac3 removed obsolete ExtensionClassFromPython for good.
[SVN r8201]
2000-11-14 03:28:27 +00:00
Dave Abrahams
961c8d66cb *** empty log message ***
[SVN r8197]
2000-11-12 22:40:14 +00:00
Dave Abrahams
52e9d5d531 Added new tests
[SVN r8196]
2000-11-12 22:39:52 +00:00
Dave Abrahams
c4c9347711 Changed to use new List return values from Dict.keys/items/values
[SVN r8195]
2000-11-12 22:39:13 +00:00
Dave Abrahams
0868609510 Used new conversion namespace macros.
Added another MSVC workaround


[SVN r8194]
2000-11-12 22:38:02 +00:00
Dave Abrahams
51724aaea6 Introduced new conversion namespace macros
[SVN r8193]
2000-11-12 22:36:57 +00:00
Dave Abrahams
405b946a1d changed to use new conversion namespace macros
Added enum_as_int_converters for easier enum wrapping


[SVN r8192]
2000-11-12 22:26:48 +00:00
Dave Abrahams
34ebecf6b4 Quick bug fix
[SVN r8191]
2000-11-12 22:20:51 +00:00
Dave Abrahams
e502c6c0b2 changed to use new conversion namespace macros
culled up obsolete code


[SVN r8190]
2000-11-12 22:07:53 +00:00
Dave Abrahams
73a81aa622 changed to use new conversion namespace macros
[SVN r8189]
2000-11-12 22:06:10 +00:00
Dave Abrahams
fb44d1d906 Added py::String operator*= and operator* for repetition
Change Dict::items(), keys(), and values() to return a List

Added template versions of set_item, etc., methods so that users can optionally
use C++ types that have to_python() functions as parameters.

Changed various Ptr by-value parameters to const Ptr&


[SVN r8188]
2000-11-12 21:10:14 +00:00
Dave Abrahams
5d7fe8dbe2 changed to use new conversion namespace macros
Added py::String operator*= and operator* for repetition

Change Dict::items(), keys(), and values() to return a List

Added template versions of set_item, etc., methods so that users can optionally
use C++ types that have to_python() functions as parameters.

Changed various Ptr by-value parameters to const Ptr&


[SVN r8187]
2000-11-12 21:08:25 +00:00
Dave Abrahams
9aa1129dd9 Changes to support explicit constructor of py::Ptr.
[SVN r8185]
2000-11-12 21:01:30 +00:00
Dave Abrahams
fc5155e30d Fixed version number check for __MWERKS__
changed to use new conversion namespace macros
Added tests for enums and non-method class attributes
Fixed Ullrich's formatting
Made it compile with MSVC


[SVN r8183]
2000-11-12 20:58:42 +00:00
Dave Abrahams
63a4d2a313 changed to use new conversion namespace macros
[SVN r8181]
2000-11-12 20:52:41 +00:00
Dave Abrahams
fed2ef5d64 Documented new conversion facilities; went into a little more detail.
[SVN r8180]
2000-11-12 20:50:48 +00:00
Dave Abrahams
2dc27af335 Fixed a bug in add(), which allows non-method class attributes
[SVN r8178]
2000-11-12 19:47:39 +00:00
Dave Abrahams
124a99882b Added call() function so that a regular python function (as opposed to method or
other function-as-attribute) can be called.

Added newlines for readability.


[SVN r8173]
2000-11-12 18:16:33 +00:00
Dave Abrahams
086527bcc2 Added call() function so that a regular python function (as opposed to method or
other function-as-attribute) can be called.

Added newlines for readability.


[SVN r8172]
2000-11-12 18:10:46 +00:00
Ullrich Köthe
692123408b generalized the new def_raw() feature
[SVN r8168]
2000-11-10 15:54:08 +00:00
Ullrich Köthe
aed148838f added to from_python() functions to gen_extclass.py
(these were formerly only present on extclass.h and thus overwritten)


[SVN r8164]
2000-11-10 13:37:53 +00:00
Dave Abrahams
6f45ad5718 remove typename that was confusing MSVC
[SVN r8163]
2000-11-10 12:29:40 +00:00
Ullrich Köthe
03dbf0387a added new feature: def_raw()
[SVN r8162]
2000-11-10 11:44:42 +00:00
Dave Abrahams
f6e12ce904 Add missing from_python functions for const T *const& and T* const&
[SVN r8159]
2000-11-08 20:10:14 +00:00
Dave Abrahams
4c4de52ffa Fix bug with unneccessary and wrongly-placed explicit instantiation thanks to
Ralf W. Grosse-Kunstleve <rwgk@cci.lbl.gov>


[SVN r8156]
2000-11-06 20:39:07 +00:00
Ullrich Köthe
84914ba405 added optimization in ExtensionClassBase::try_class_conversions()
[SVN r8155]
2000-11-06 17:30:23 +00:00
Ullrich Köthe
f29fc34c8b fixed a simple typo in the comments for to_python()
[SVN r8154]
2000-11-06 17:29:22 +00:00
Dave Abrahams
3f52de0315 Rolled back inapplicable changes, preserving what Ullrich fixed.
[SVN r8153]
2000-11-06 16:09:35 +00:00
Ullrich Köthe
367a827b8d *** empty log message ***
[SVN r8152]
2000-11-06 15:39:49 +00:00
Dave Abrahams
1088183bae Release 2000-11-06
[SVN r8151]
2000-11-06 05:24:07 +00:00
Dave Abrahams
5340194a9a added set_attribute member function to allow arbitrary Python objects to be added to an extension class.
[SVN r8150]
2000-11-06 05:18:55 +00:00
Dave Abrahams
6eb7524d03 re-ordered declare_base calls to verify that the phantom base class issue is resolved.
[SVN r8149]
2000-11-06 05:17:39 +00:00
Dave Abrahams
fb0dd45a84 now generates support for n argument member functions and n+1
argument member functions at the suggestion of "Ralf W. Grosse-Kunstleve"
<rwgk@cci.lbl.gov>


[SVN r8148]
2000-11-06 05:16:36 +00:00
Dave Abrahams
67fbdc9da3 Objects now throw an exception after asserting if initialized with the wrong Python type.
[SVN r8147]
2000-11-06 05:15:26 +00:00
Dave Abrahams
6236939512 Made Tuple constructor from std::size_t explicit. Added 4-arg template constructor.
[SVN r8146]
2000-11-06 05:14:11 +00:00
Dave Abrahams
48c5fd3bf2 Added regression tests to verify that the phantom base class issue is resolved.
[SVN r8145]
2000-11-06 05:13:01 +00:00
Dave Abrahams
b7de56eb85 *** empty log message ***
[SVN r8144]
2000-11-06 05:11:17 +00:00
Dave Abrahams
d82ecf0887 added "set_attribute" member function to allow arbitrary Python objects to be added to an extension class.
[SVN r8143]
2000-11-06 05:10:14 +00:00
Dave Abrahams
fa9a7d2f32 added "add" member function to ClassWrapper<> to allow arbitrary Python
objects to be added to an extension class.


[SVN r8142]
2000-11-06 05:08:41 +00:00
Dave Abrahams
8f862fe716 Initial checkin
[SVN r8141]
2000-11-06 03:30:32 +00:00
Dave Abrahams
b3402e49f9 added missing 'template' keyword on type-dependent template member usage
removed special-case MSVC code
added much commentary


[SVN r8138]
2000-11-04 22:40:20 +00:00
Dave Abrahams
e72843dc82 *** empty log message ***
[SVN r8137]
2000-11-04 22:39:19 +00:00
Dave Abrahams
22d66cb992 Integrated Ullrich Koethe's brilliant from_python_experiment
removed special-case MSVC code
added much commentary
removed unused py_copy_to_new_value_holder


[SVN r8136]
2000-11-04 22:34:31 +00:00
Dave Abrahams
2973d4fd8d minor cleanup
[SVN r8132]
2000-11-04 10:07:38 +00:00
Dave Abrahams
b4c9abb2fa Update to correspond to latest codebase
[SVN r8131]
2000-11-04 10:05:53 +00:00
Dave Abrahams
7a3a0229d5 Add from/to_python for signed char and unsigned char
[SVN r8130]
2000-11-04 09:28:46 +00:00
Dave Abrahams
8fdc849980 quick fix
[SVN r8128]
2000-11-04 06:21:51 +00:00
Dave Abrahams
23a3d274c9 *** empty log message ***
[SVN r8127]
2000-11-04 06:12:14 +00:00