diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-10-11 06:24:53 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-10-11 06:24:53 (GMT) |
commit | 6da624098fab54b3f22c522806c74f352a8f6e5c (patch) | |
tree | 0144316b0307e776f6cce08954be5e2325157889 | |
parent | a7f63009d6df9c6ae57e6835857d6c5fda024930 (diff) | |
parent | b16e12aaaa3d6b3f47dc1400e900c2d4aae0f337 (diff) | |
download | cpython-6da624098fab54b3f22c522806c74f352a8f6e5c.zip cpython-6da624098fab54b3f22c522806c74f352a8f6e5c.tar.gz cpython-6da624098fab54b3f22c522806c74f352a8f6e5c.tar.bz2 |
merge 3.5 (#25375)
-rw-r--r-- | Doc/faq/extending.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/faq/extending.rst b/Doc/faq/extending.rst index ae0d905..7bb4dc2 100644 --- a/Doc/faq/extending.rst +++ b/Doc/faq/extending.rst @@ -443,8 +443,8 @@ extension module using g++ (e.g., ``g++ -shared -o mymodule.so mymodule.o``). Can I create an object class with some methods implemented in C and others in Python (e.g. through inheritance)? ---------------------------------------------------------------------------------------------------------------- -In Python 2.2, you can inherit from built-in classes such as :class:`int`, -:class:`list`, :class:`dict`, etc. +Yes, you can inherit from built-in classes such as :class:`int`, :class:`list`, +:class:`dict`, etc. The Boost Python Library (BPL, http://www.boost.org/libs/python/doc/index.html) provides a way of doing this from C++ (i.e. you can inherit from an extension |