pybind11/docs
Dean Moldovan e18bc02fc9 Add default and converting constructors for all concrete Python types
* Deprecate the `py::object::str()` member function since `py::str(obj)`
  is now equivalent and preferred

* Make `py::repr()` a free function

* Make sure obj.cast<T>() works as expected when T is a Python type

`obj.cast<T>()` should be the same as `T(obj)`, i.e. it should convert
the given object to a different Python type. However, `obj.cast<T>()`
usually calls `type_caster::load()` which only checks the type without
doing any actual conversion. That causes a very unexpected `cast_error`.
This commit makes it so that `obj.cast<T>()` and `T(obj)` are the same
when T is a Python type.

* Simplify pytypes converting constructor implementation

It's not necessary to maintain a full set of converting constructors
and assignment operators + const& and &&. A single converting const&
constructor will work and there is no impact on binary size. On the
other hand, the conversion functions can be significantly simplified.
2016-11-17 08:55:42 +01:00
..
_static documentation improvements 2016-04-26 23:48:55 +02:00
advanced Provide more control over automatic generation of docstrings (#486) 2016-11-15 12:38:05 +01:00
basics.rst Reorganize documentation 2016-10-20 15:21:34 +02:00
benchmark.py Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
benchmark.rst ..mention in benchmark docs as well 2016-08-19 09:38:14 +02:00
changelog.rst Add default and converting constructors for all concrete Python types 2016-11-17 08:55:42 +01:00
classes.rst Document dynamic attributes 2016-10-14 01:16:40 +02:00
compiling.rst minor doc & style fixes 2016-09-06 13:02:29 +09:00
conf.py Fix sphinx doc missing code blocks and warnings 2016-08-16 01:30:58 +02:00
faq.rst added message about recursion limits 2016-11-16 17:37:10 +01:00
index.rst Reorganize documentation 2016-10-20 15:21:34 +02:00
intro.rst ..one more typo 2016-09-21 19:30:23 +02:00
limitations.rst Multiple inheritance support 2016-09-19 13:45:31 +02:00
Makefile took a stab at some documentation 2015-10-13 03:16:44 +02:00
pybind11_vs_boost_python1.png documentation improvements 2016-04-28 15:32:07 +02:00
pybind11_vs_boost_python1.svg Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
pybind11_vs_boost_python2.png documentation improvements 2016-04-28 15:32:07 +02:00
pybind11_vs_boost_python2.svg Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
pybind11-logo.png Very minor documentation fixes, updated logo 2016-01-17 22:31:15 +01:00
reference.rst Reorganize documentation 2016-10-20 15:21:34 +02:00
release.rst updated changelog with v1.8.1, updated release instructions 2016-07-12 18:03:17 +02:00