{"push_id":1382835924,"size":9,"distinct_size":5,"ref":"refs/heads/feature/shared-dtypes","head":"cc8ff16547fc841d9bac4e8a3624386d70c566e3","before":"e44f35b5bcec30d53de7707f8ac46ce1c5a47e65","commits":[{"sha":"03f627ebb1884e3f532d96707454cc3051eb98bd","author":{"name":"Dean Moldovan","email":"9ee32c76b7fc66bf8daeae31701669d4a0b91a81@gmail.com"},"message":"Make reference(_internal) the default return value policy for properties (#473)\n\n* Make reference(_internal) the default return value policy for properties\r\n\r\nBefore this, all `def_property*` functions used `automatic` as their\r\ndefault return value policy. This commit makes it so that:\r\n\r\n * Non-static properties use `reference_interal` by default, thus\r\n   matching `def_readonly` and `def_readwrite`.\r\n\r\n * Static properties use `reference` by default, thus matching\r\n   `def_readonly_static` and `def_readwrite_static`.\r\n\r\nIn case `cpp_function` is passed to any `def_property*`, its policy will\r\nbe used instead of any defaults. User-defined arguments in `extras`\r\nstill have top priority and will override both the default policies and\r\nthe ones from `cpp_function`.\r\n\r\nResolves #436.\r\n\r\n* Almost always use return_value_policy::move for rvalues\r\n\r\nFor functions which return rvalues or rvalue references, the only viable\r\nreturn value policies are `copy` and `move`. `reference(_internal)` and\r\n`take_ownership` would take the address of a temporary which is always\r\nan error.\r\n\r\nThis commit prevents possible user errors by overriding the bad rvalue\r\npolicies with `move`. Besides `move`, only `copy` is allowed, and only\r\nif it's explicitly selected by the user.\r\n\r\nThis is also a necessary safety feature to support the new default\r\nreturn value policies for properties: `reference(_internal)`.","distinct":false,"url":"https://api.github.com/repos/aldanor/pybind11/commits/03f627ebb1884e3f532d96707454cc3051eb98bd"},{"sha":"e8b50360fe2523e8d490d40dc9a06b36b7e8516a","author":{"name":"Ivan Smirnov","email":"24ea6417a345f296a7ae1dc7e043b064d91e55ba@gmail.com"},"message":"Add dtype binding macro that allows setting names\n\nPYBIND11_NUMPY_DTYPE_EX(Type, F1, \"N1\", F2, \"N2\", ...)","distinct":false,"url":"https://api.github.com/repos/aldanor/pybind11/commits/e8b50360fe2523e8d490d40dc9a06b36b7e8516a"},{"sha":"abd3429ce9ae884974c11d2dc79a190f0ca8f742","author":{"name":"Ivan Smirnov","email":"24ea6417a345f296a7ae1dc7e043b064d91e55ba@gmail.com"},"message":"Add a test for numpy dtypes with custom names","distinct":false,"url":"https://api.github.com/repos/aldanor/pybind11/commits/abd3429ce9ae884974c11d2dc79a190f0ca8f742"},{"sha":"a743ead455511043ce1ddc1386dcdbc53183484f","author":{"name":"Wenzel Jakob","email":"c833440a613955fbaf83de8d8207dd9dd1124ed0@epfl.ch"},"message":"Merge pull request #474 from aldanor/feature/numpy-dtype-ex\n\nOverriding field names when binding structured dtypes","distinct":false,"url":"https://api.github.com/repos/aldanor/pybind11/commits/a743ead455511043ce1ddc1386dcdbc53183484f"},{"sha":"2184f6d4d64b4631c943b4c92d35bcd849da51ad","author":{"name":"Ivan Smirnov","email":"24ea6417a345f296a7ae1dc7e043b064d91e55ba@gmail.com"},"message":"NumPy dtypes are now shared across extensions","distinct":true,"url":"https://api.github.com/repos/aldanor/pybind11/commits/2184f6d4d64b4631c943b4c92d35bcd849da51ad"},{"sha":"c546655dc29086895538be92377a82f64a834c1f","author":{"name":"Ivan Smirnov","email":"24ea6417a345f296a7ae1dc7e043b064d91e55ba@gmail.com"},"message":"Use pytest fixtures in numpy dtypes test module","distinct":true,"url":"https://api.github.com/repos/aldanor/pybind11/commits/c546655dc29086895538be92377a82f64a834c1f"},{"sha":"2dbf0297050533e697d065f4b92283e0ecd37581","author":{"name":"Ivan Smirnov","email":"24ea6417a345f296a7ae1dc7e043b064d91e55ba@gmail.com"},"message":"Add public shared_data API\n\nNumPy internals are stored under \"_numpy_internals\" key.","distinct":true,"url":"https://api.github.com/repos/aldanor/pybind11/commits/2dbf0297050533e697d065f4b92283e0ecd37581"},{"sha":"f95fda0eb20dc55b92c45249b1e004c34ab06f3f","author":{"name":"Ivan Smirnov","email":"24ea6417a345f296a7ae1dc7e043b064d91e55ba@gmail.com"},"message":"Add docs re: shared data API","distinct":true,"url":"https://api.github.com/repos/aldanor/pybind11/commits/f95fda0eb20dc55b92c45249b1e004c34ab06f3f"},{"sha":"cc8ff16547fc841d9bac4e8a3624386d70c566e3","author":{"name":"Ivan Smirnov","email":"24ea6417a345f296a7ae1dc7e043b064d91e55ba@gmail.com"},"message":"Move register_dtype() outside of the template\n\n(avoid code bloat if possible)","distinct":true,"url":"https://api.github.com/repos/aldanor/pybind11/commits/cc8ff16547fc841d9bac4e8a3624386d70c566e3"}]}
{"actor":{"display_login":"aldanor"}}