2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00

lowercase type names

[SVN r8284]
This commit is contained in:
Dave Abrahams
2000-11-22 00:54:46 +00:00
parent 511a6e84db
commit 0f04631513
51 changed files with 3390 additions and 3300 deletions

View File

@@ -25,13 +25,13 @@ void inithello()
try
{
// create an object representing this extension module
py::Module hello("hello");
python::module_builder hello("hello");
// Create the Python type object for our extension class
py::ClassWrapper<hello::world> world_class(hello, "world");
python::class_builder<hello::world> world_class(hello, "world");
// Add the __init__ function
world_class.def(py::Constructor<int>());
world_class.def(python::constructor<int>());
// Add a regular member function
world_class.def(&hello::world::get, "get");
@@ -40,7 +40,7 @@ void inithello()
}
catch(...)
{
py::handle_exception(); // Deal with the exception for Python
python::handle_exception(); // Deal with the exception for Python
}
}