From 77b6388723ac1965a882b7a5ec7db033eb5693da Mon Sep 17 00:00:00 2001
From: Dave Abrahams
Here is the list of predefined call policies. A complete reference detailing -these can be found +these can be found here.
![]() |
![]() |
diff --git a/doc/tutorial/doc/class_virtual_functions.html b/doc/tutorial/doc/class_virtual_functions.html
index 6ce22d62..6116678a 100644
--- a/doc/tutorial/doc/class_virtual_functions.html
+++ b/doc/tutorial/doc/class_virtual_functions.html
@@ -92,15 +92,16 @@ polymorphically from C++.
- Beware the common pitfall of
-forgetting that the constructors of most of Python's mutable types
-make copies, just as in Python.- - dict d(x.attr("__dict__")); # makes a copy of x's dict - d['whatever'] = 3; # modifies a copy of x.__dict__ (not the original) - |
-
+
Beware the common pitfall of forgetting that the constructors
+of most of Python's mutable types make copies, just as in Python.
+Python:
+
+ >>> d = dict(x.__dict__) #copies x.__dict__
+ >>> d['whatever'] #modifies the copy
+
++C++:
+
+ dict d(x.attr("__dict__")); #copies x.__dict__
+ d['whatever'] = 3; #modifies the copy
+
Due to the dynamic nature of Boost.Python objects, any class_<T> may also be one of these types! The following code snippet wraps the class diff --git a/doc/v2/acknowledgments.html b/doc/v2/acknowledgments.html index c0c47d29..5f149a64 100644 --- a/doc/v2/acknowledgments.html +++ b/doc/v2/acknowledgments.html @@ -39,31 +39,29 @@ Grosse-Kunstleve implemented the pickle support, and has enthusiastically supported the library since its birth, contributing to design decisions and providing invaluable - real-world insight into user requirements. Ralf has written some - extensions for converting C++ containers that I hope will be incorporated - into the library soon. He also implemented the cross-module support in - the first version of Boost.Python. More importantly, Ralf makes sure - nobody forgets the near-perfect synergy of C++ and Python for solving the - problems of large-scale software construction.
+ real-world insight into user requirements. Ralf has written some extensions for converting C++ containers that I + hope will be incorporated into the library soon. He also implemented the + cross-module support in the first version of Boost.Python. More + importantly, Ralf makes sure nobody forgets the near-perfect synergy of + C++ and Python for solving the problems of large-scale software + construction. -Aleksey - Gurtovoy wrote an incredible C++ Template Metaprogramming - Library which allows Boost.Python to perform much of its - compile-time magic. In addition, Aleksey very generously - contributed his time and deep knowledge of the quirks of various - buggy compilers to help us get around problems at crucial moments. +
Aleksey Gurtovoy + wrote an incredible C++ Template + Metaprogramming Library which allows Boost.Python to perform much of + its compile-time magic. In addition, Aleksey very generously contributed + his time and deep knowledge of the quirks of various buggy compilers to + help us get around problems at crucial moments.
-Paul - Mensonides, building on the work Vesa Karvonen, - wrote a similarly amazing Preprocessor Metaprogramming - Library, and generously contributed the time and expertise to - get it working in the Boost.Python library, rewriting much of - Boost.Python to use the new preproccessor metaprogramming - constructs and helping us to work around buggy and slow C++ - preprocessors. +
Paul Mensonides, + building on the work Vesa + Karvonen, wrote a similarly amazing Preprocessor Metaprogramming + Library, and generously contributed the time and expertise to get it + working in the Boost.Python library, rewriting much of Boost.Python to + use the new preproccessor metaprogramming constructs and helping us to + work around buggy and slow C++ preprocessors.
Achim Domma contributed some of the Object Wrappers and