diff --git a/doc/v2/class.html b/doc/v2/class.html index fc64eabd..393510eb 100644 --- a/doc/v2/class.html +++ b/doc/v2/class.html @@ -175,7 +175,7 @@ class_(char const* name)
Requires: name is a ntbs which conforms to Python's identifier + "http://www.python.org/doc/2.2/ref/identifiers.html">identifier naming rules.
Effects: Constructs a class_ object which @@ -198,7 +198,7 @@ class_& def(char const* name, Fn f, CallPolicy policy)
Requires: f is a non-null pointer-to-function or pointer-to-member-function. name is a ntbs which conforms to Python's identifier + "http://www.python.org/doc/2.2/ref/identifiers.html">identifier naming rules. In the first form, the return type of f is not a reference and is not a pointer other than char const* or PyObject*. In the diff --git a/doc/v2/class_hpp.py b/doc/v2/class_hpp.py deleted file mode 100644 index 9af2cb5c..00000000 --- a/doc/v2/class_hpp.py +++ /dev/null @@ -1,20 +0,0 @@ -introduction = ''' -''' - -class boost(namespace): pass - -class python(boost): - - class class_(class_template): - T = type() - T.requires = 'a class type' - - Bases = concepts.mpl_sequence('class type') - HolderGenerator = concepts.HolderGenerator() - template_args = (T, Bases, HolderGenerator) - - class def_1(function_template): - name = "def" - args = (('char const*', 'name'), ('F', 'f')) - -class_template diff --git a/doc/v2/errors.html b/doc/v2/errors.html index e52f29f7..603bd28b 100644 --- a/doc/v2/errors.html +++ b/doc/v2/errors.html @@ -65,7 +65,7 @@

error_already_set is an exception type which can be thrown to indicate that a Python error has occurred. If thrown, the precondition is that PyErr_Occurred() + "http://www.python.org/doc/2.2/api/exceptionHandling.html#l2h-71">PyErr_Occurred() returns a value convertible to true.

Class error_already_set synopsis

@@ -131,7 +131,7 @@ template <class T> T* expect_non_null(T* x);
Rationale: Simplifies error-handling when calling many functions in the Python/C API, which + "http://www.python.org/doc/2.2/api/api.html">Python/C API, which return 0 on error.
diff --git a/doc/v2/lvalue_from_python.html b/doc/v2/lvalue_from_python.html index 03af54f8..a0591128 100644 --- a/doc/v2/lvalue_from_python.html +++ b/doc/v2/lvalue_from_python.html @@ -99,7 +99,7 @@ python_type A compile-time constant PyTypeObject* + href="http://www.python.org/doc/2.2/ext/dnt-type-methods.html">PyTypeObject* The Python type of instances convertible by this converter. Python subtypes are also convertible. @@ -213,7 +213,7 @@ Member& execute(Class& c);

Example

This example presumes that someone has implemented the standard noddy +href="http://www.python.org/doc/2.2/ext/dnt-basics.html">noddy example module from the Python documentation, and we want to build a module which manipulates Noddys. Since noddy_NoddyObject is so simple that it carries no diff --git a/doc/v2/module.html b/doc/v2/module.html index 0e3516ed..847ff017 100644 --- a/doc/v2/module.html +++ b/doc/v2/module.html @@ -67,11 +67,11 @@

BOOST_PYTHON_MODULE_INIT(name) is used to declare Python + "http://www.python.org/doc/2.2/ext/methodTable.html#SECTION003400000000000000000"> module initialization functions. The name argument must exactly match the name of the module to be initialized, and must conform to Python's identifier naming + "http://www.python.org/doc/2.2/ref/identifiers.html">identifier naming rules. Where you would normally write

 void initname()
@@ -150,7 +150,7 @@ module& setattr(const char* name, ref const& r);
     
Requires: name is a ntbs which conforms to Python's identifier + "http://www.python.org/doc/2.2/ref/identifiers.html">identifier naming rules. In the first two forms, obj is non-null. In the third form, r.get() is non-null. @@ -176,7 +176,7 @@ module& add(class_<T,Bases,HolderGenerator> const& c);
Effects: The first form adds the Python type object named by x to the Python module under construction, with the name given by the type's tp_name + "http://www.python.org/doc/2.2/ext/dnt-type-methods.html">tp_name field. The second form adds the extension class object being constructed by c to the module, with the same name that was passed to c's constructor. @@ -199,7 +199,7 @@ module& def(char const* name, Fn f, ResultHandler handler);
Requires: f is a non-null pointer-to-function or pointer-to-member-function. name is a ntbs which conforms to Python's identifier + "http://www.python.org/doc/2.2/ref/identifiers.html">identifier naming rules. In the first form, the return type of f is not a reference and is not a pointer other than char const* or PyObject*. In the