Wenzel Jakob
00c7d6ccc7
Merge branch 'stl_bind'
2016-05-16 12:33:20 +02:00
Wenzel Jakob
25c03cecfa
stl_bind redesign & cleanup pass
2016-05-16 12:12:58 +02:00
Wenzel Jakob
affb9f40c5
quench conversion warnings on windows
2016-05-16 00:04:20 +02:00
Wenzel Jakob
deeab558ba
quench strict aliasing warnings
2016-05-16 00:04:20 +02:00
Wenzel Jakob
a380ed9259
consider __setstate__ as a constructor
2016-05-16 00:04:17 +02:00
Sergey Lyskov
26aca3d8ad
Adding vector ’extend’ member function
2016-05-15 20:46:07 +02:00
Sergey Lyskov
9ee4f92b06
Refactoring vector_binder so it now a function
2016-05-15 20:46:07 +02:00
Sergey Lyskov
2de5af998d
Adding workarounds for MSVC 2015
2016-05-15 20:46:07 +02:00
Sergey Lyskov
7b50cbd870
Fixing VC build, apparently MSVC implementation of std::is_default_constructible had no bool() operator
2016-05-15 20:46:07 +02:00
Sergey Lyskov
a95bde1ea5
Adding documentation for value_error. Fixing various formatting issues. Removing redundant binding for C++ style methods. Adding bindings for iterator and slicing protocol. Extending examples.
2016-05-15 20:46:07 +02:00
Sergey Lyskov
25ac21903a
properly adding value_error exception
2016-05-15 20:46:07 +02:00
Sergey Lyskov
a315c7a25a
Adding Python-style modifiers for vector. Wrapping has_insertion_operator_implementation in _MSC_VER ifdef’s. Adding ‘!=0’ instead of bool cast’s.
2016-05-15 20:46:07 +02:00
Sergey Lyskov
eae7744c0e
adding stl_binders
2016-05-15 20:46:07 +02:00
Wenzel Jakob
178c8a899d
nicer type_caster::load() calling conventions
2016-05-15 20:23:27 +02:00
Wenzel Jakob
5984baafd0
redesigned cpp_function constructor; significant space savings
2016-05-15 20:23:27 +02:00
Johan Mabille
a63d93ba44
constructor fix
2016-05-11 15:03:16 +02:00
Johan Mabille
a580ed8c47
Compilation issue fixed
2016-05-11 14:45:01 +02:00
Wenzel Jakob
6c03beb867
enable *args and **kwargs notation ( closes #190 )
2016-05-08 14:34:09 +02:00
Wenzel Jakob
e611823e4c
quench warning on osx
2016-05-05 21:54:30 +02:00
Wenzel Jakob
9e0a0568fe
transparent conversion of dense and sparse Eigen types
2016-05-05 21:44:29 +02:00
Wenzel Jakob
f1032df891
only do numpy contiguous C/Fortran array conversion when explicitly requested
2016-05-05 10:00:00 +02:00
Wenzel Jakob
876eeab4ca
redesigned format_descriptor<> and npy_format_descriptor<>
...
This somewhat heavyweight solution will avoid size_t/long long/long/int
mismatches on various platforms once and for all. The previous template
overloads could e.g. not handle size_t on Darwin.
One gotcha: the 'format_descriptor<T>::value()' syntax changed to just
'format_descriptor<T>::value'
2016-05-04 22:36:57 +02:00
Wenzel Jakob
ad69634907
minor cleanups
2016-05-03 13:36:32 +02:00
Wenzel Jakob
aadc2f3d8c
cast(): use cast_op_type mechanism
2016-05-03 13:27:57 +02:00
Wenzel Jakob
6d2529613a
fix incorrect in macro if statement
2016-05-01 20:47:49 +02:00
Wenzel Jakob
bd57eb484d
don't try to cast 'None' into a C++ lvalue reference
2016-05-01 14:42:20 +02:00
Wenzel Jakob
6fb48490ef
fix crash when None is passed to enum::operator==
2016-05-01 12:45:38 +02:00
Wenzel Jakob
2bc946bd7a
copy/move constructor detection workaround (MSVC 2015 bug)
2016-05-01 10:28:00 +02:00
Wenzel Jakob
5612a0c1c2
generalized str::operator std::string() to accept 'bytes'(3.x)/'string'(2.7)
2016-05-01 00:32:18 +02:00
Wenzel Jakob
fc92d82bba
added [[noreturn]] attribute to pybind11_fail
2016-04-30 23:55:44 +02:00
Wenzel Jakob
8edfa0c10f
further simplifications to shared_ptr caster
2016-04-30 23:01:06 +02:00
Wenzel Jakob
ffd85b46d8
return value policy fix for functions returning std::shared_ptr<> ( fixes #187 )
2016-04-30 22:41:05 +02:00
Wenzel Jakob
c4d7ccd8b0
started working on v1.8
2016-04-30 22:00:44 +02:00
Wenzel Jakob
e70b2abb6d
preparing for v1.7 release
2016-04-30 22:00:24 +02:00
Wenzel Jakob
1959d18c48
fixed return value type in py::make_iterator
2016-04-30 21:42:17 +02:00
Wenzel Jakob
772c6d54d6
enable passing C++ instances to void*-valued arguments
2016-04-30 21:28:45 +02:00
Wenzel Jakob
e8b9dd263c
fixed docstring generation for void pointers
2016-04-30 19:35:24 +02:00
Wenzel Jakob
fd7cf51a56
enabled casting of const void*
2016-04-30 19:25:37 +02:00
Wenzel Jakob
06f56ee1e9
opaque type redesign
2016-04-28 17:49:46 +02:00
Wenzel Jakob
6ca6e82f7c
fix various iterator issues ( fixes #181 )
2016-04-27 14:33:52 +02:00
Wenzel Jakob
a01977ec96
pytypes noexcept annotations
2016-04-27 02:39:36 +02:00
Wenzel Jakob
e84f557edf
documentation improvements
2016-04-26 23:48:55 +02:00
Wenzel Jakob
19dfc50d10
is_move_constructible simplification
2016-04-25 23:49:03 +02:00
Wenzel Jakob
f7b5874ca3
new move value policy
2016-04-25 23:04:27 +02:00
Wenzel Jakob
fbafdea672
a few more GIL-related compatibility fixes
2016-04-25 17:48:56 +02:00
Wenzel Jakob
17b10d7cbf
functional.h: acquire GIL before calling Python function
2016-04-25 09:17:41 +02:00
Wenzel Jakob
2f6662e174
Python 2.7.x fixes for new gil_scoped_release
2016-04-25 09:16:41 +02:00
Wenzel Jakob
084ca0e553
compilation fixes
2016-04-25 04:00:47 +02:00
Wenzel Jakob
39e97e6a49
significant redesign of GIL state handling
2016-04-25 03:27:32 +02:00
Wenzel Jakob
18fb3e323a
added a pybind11::none class
2016-04-25 03:27:32 +02:00
Wenzel Jakob
9b880ba743
keep_alive: don't fail when there is no patient
2016-04-25 03:26:36 +02:00
Wenzel Jakob
7d0162a2df
minor cleanups
2016-04-25 03:26:35 +02:00
Wenzel Jakob
7ca2755880
new type wrapper for iterable objects
2016-04-22 09:33:19 +02:00
Wenzel Jakob
54b6fdd43d
starting work on the v1.6 release
2016-04-21 12:29:17 +02:00
Wenzel Jakob
dbe43ffcce
completed implicit type casters for reference_wrapper
2016-04-21 12:21:14 +02:00
Wenzel Jakob
f54ded74f1
added caster for std::reference_wrapper ( fixes #171 )
2016-04-20 17:00:57 +02:00
Wenzel Jakob
e65e58716e
slight generalization of cast_op_type
2016-04-18 21:22:22 +02:00
Wenzel Jakob
8cb6cb33ef
minor cleanups in common.h; updated author info and copyright year
2016-04-18 10:53:38 +02:00
Wenzel Jakob
bf0c7dcc22
convenience overload for make_iterator()
2016-04-18 10:52:12 +02:00
Wenzel Jakob
1dc940d4b7
quenched -pendantic warnings ( closes #167 )
2016-04-18 10:41:44 +02:00
Wenzel Jakob
b2b44a9af8
fix for virtual dispatch on newly created threads
2016-04-15 17:59:53 +02:00
Wenzel Jakob
8bd31c71e4
New automatic return value policy for cat() and make_tuple(), fixed an ambiguity issue
2016-04-14 15:00:30 +02:00
Wenzel Jakob
b282595bba
convenience wrapper for constructing iterators ( fixes #142 )
2016-04-14 00:23:37 +02:00
Wenzel Jakob
5a6aa49105
Added len() function
2016-04-13 22:48:05 +02:00
Wenzel Jakob
d7efa4ff7b
return best representation of polymorphic types ( fixes #105 )
2016-04-13 13:51:33 +02:00
Wenzel Jakob
1c329aab5a
pickling support ( fixes #144 )
2016-04-13 02:58:56 +02:00
Wenzel Jakob
505466ff0e
added variadic make_tuple() function
2016-04-13 02:49:03 +02:00
Wenzel Jakob
f5c154ade9
address issue with virtual function dispatch ( fixes #159 )
2016-04-11 18:13:08 +02:00
Wenzel Jakob
95dc0695b7
starting work on version 1.5
2016-04-07 08:59:15 +02:00
Wenzel Jakob
9f0dfce84b
returning unique pointers is now allowed
2016-04-06 17:38:18 +02:00
Wenzel Jakob
a3ee1a4591
improved pair type caster ( fixes #155 )
2016-04-06 11:51:00 +02:00
Wenzel Jakob
912feec119
improve debug error message when default parameter construction fails
2016-04-01 12:17:10 +02:00
Wenzel Jakob
b90e68de7e
another corner case ( fixes #151 )
2016-03-27 00:19:32 +01:00
Wenzel Jakob
08927e9809
tabs->spaces
2016-03-26 23:38:46 +01:00
Wenzel Jakob
9883ec01d7
allow nullptr string values ( closes #138 )
2016-03-26 23:37:51 +01:00
Wenzel Jakob
7393343f69
removed unnecessary code
2016-03-26 23:04:40 +01:00
Wenzel Jakob
d3349af48b
modularized logic in preceding change, fixed issue with char ( fixes #150 )
2016-03-26 23:04:10 +01:00
Wenzel Jakob
0772967ecf
allow nullptr when passing void* values
2016-03-26 20:41:28 +01:00
Wenzel Jakob
de1bca864e
added feature to pass void* pointers by popular demand
2016-03-26 17:51:09 +01:00
Wenzel Jakob
12cf543804
address compilation issue in MSVC
2016-03-26 17:29:33 +01:00
Wenzel Jakob
048373c1b4
explicitly route type casting operations to desired casting operator ( fixes #147 )
2016-03-26 17:21:19 +01:00
Wenzel Jakob
0b4895885b
improve default parameters for properties
2016-03-25 16:13:10 +01:00
Wenzel Jakob
84ec78feeb
minor redesign/generalization of def_property mechanism
2016-03-21 17:54:24 +01:00
Wenzel Jakob
eda978e003
support for opaque types
2016-03-15 15:07:55 +01:00
Ben Pritchard
1b52246f5d
Better testing for callable python functions
2016-03-10 16:31:38 -05:00
Wenzel Jakob
17cdb06c1b
fix severe regression involving character arrays ( fixes #137 )
2016-03-10 13:24:10 +01:00
Wenzel Jakob
eb5277b38e
Merge pull request #119 from SylvainCorlay/docstring
...
Signature formatting for sphinx
2016-03-09 16:37:44 +01:00
Sylvain Corlay
4c7bf9bb94
Add return type
2016-03-08 18:44:04 -05:00
Sylvain Corlay
0e04fdf3f6
Add generic signature for overloads
2016-03-08 17:22:22 -05:00
Sylvain Corlay
13b22bf4f6
Signature formatting for sphinx
2016-03-08 16:06:05 -05:00
Wenzel Jakob
81dfd2c51f
Working type casters for wide strings and wide characters
2016-03-08 20:48:07 +01:00
Wenzel Jakob
504f7553e3
starting to work on next version
2016-03-08 18:12:24 +01:00
Wenzel Jakob
309a85ba59
support std::shared_ptr<const X> and types that indirectly derive from std::enable_shared_from_this
2016-03-08 17:59:10 +01:00
Wenzel Jakob
77586fd6a2
add version suffix to internal pybind11 data structures to avoid conflicts with future versions
2016-03-06 13:50:26 +01:00
Wenzel Jakob
bce8a4b95c
force explicit cast ( fixes #130 )
2016-03-06 13:30:23 +01:00
Ben Pritchard
f4902ece17
Use emplace for casting to map
2016-03-05 17:36:46 -05:00
Wenzel Jakob
52f4c3aef3
handle nullptr arguments with custom holder types ( fixes #124 )
2016-03-03 14:05:06 +01:00
hulucc
a88334f9c2
add wchar_t caster
2016-03-02 15:07:08 +08:00
hulucc
c8f68b3d92
add wstring caster
2016-03-02 13:59:39 +08:00
Wenzel Jakob
218b6ce246
Revert "trim docstrings ( closes #112 )"
...
This reverts commit b3ef54a544
.
2016-02-28 23:52:37 +01:00