konstin
c52dae2691
Merge pull request #363 from kngwyu/travis-misc
...
Run rustfmt and clippy only at the minimum nightly
2019-02-18 20:11:24 +01:00
konstin
d02f7c3aa5
Big proc macro refactoring
...
* Removed a lot of clutter, unified some code
* Started using syn::parse::Parse for pyfunction attributes
* No more newlines between imports
* Renamed `#[prop(get, set)]` to `#[pyo3(get, set)]`
* `#[pyfunction]` now supports the same arguments as `#[pyfn()]`
* Some macros now emit proper spanned errors instead of panics.
2019-02-18 20:07:56 +01:00
kngwyu
c1421e2e08
Run rustfmt and clippy only at minimum nightly
2019-02-19 00:01:23 +09:00
kngwyu
8d9b4dd153
Introduce PyDictItem
2019-02-18 16:06:37 +09:00
Yuji Kanagawa
f248aaddbe
Merge pull request #358 from chr1sj0nes/pylist_reverse
...
Add `PyList.reverse()`.
2019-02-18 11:36:07 +09:00
Chris Jones
5a28a1c4f0
Add PyList.reverse()
.
2019-02-17 22:22:46 +00:00
Yuji Kanagawa
b01592e201
Merge pull request #359 from chr1sj0nes/pylist_from_iterator
...
Add support for creating `PyList` from any `IntoIterator` for known s…
2019-02-17 09:50:06 +09:00
Yuji Kanagawa
9ceb453822
Merge pull request #357 from chr1sj0nes/master
...
Add `PyList.sort()`.
2019-02-17 09:20:01 +09:00
Chris Jones
e1ffd6c352
Add support for creating PyList
from any IntoIterator
for known size.
2019-02-16 23:28:03 +00:00
Chris Jones
275e6cb7c8
Add PyList.sort()
.
2019-02-15 23:20:02 +00:00
konstin
61194abf1c
Merge pull request #355 from PyO3/pytuple_3
...
Into PyTuple tests, third attempt
2019-02-13 22:31:10 +01:00
konstin
2105fa896b
Add PyTuple tests
...
Initially proposed by athre0z in #307 , with the changes from latest master
2019-02-13 22:30:46 +01:00
konstin
a7b5267798
Merge pull request #344 from PyO3/init_value
...
Change the initializer style
2019-02-13 22:29:50 +01:00
konstin
6cb098ee12
Replace py.init_[ref|mut] with Py[Ref|Mut]::new
2019-02-13 21:52:21 +01:00
konstin
f9de1d03b0
Merge pull request #349 from PyO3/check_min_nightly_on_travis
...
Check minimum rustc version on travis
2019-02-13 21:47:23 +01:00
konstin
090b392653
Merge pull request #351 from PyO3/init_value_cherry_pick
...
Make the init methods use a value instead of a function
2019-02-13 21:17:04 +01:00
konstin
7a4cb50c96
Travis cleanup
2019-02-13 21:12:46 +01:00
konstin
1a489d2829
Make the init methods use a value instead of a function
2019-02-13 13:59:47 +01:00
konstin
94cb3e7625
Merge pull request #350 from PyO3/type_object_trait_cleanup
...
Cleanup PyTypeObject and PyTypeCreate
2019-02-13 12:34:46 +01:00
konstin
ce659941e8
Cleanup PyTypeObject and PyTypeCreate
2019-02-13 12:32:59 +01:00
konstin
37088024f1
Merge pull request #343 from PyO3/into_py_tuple_no_more
...
Replace IntoPyTuple with IntoPy<Py<PyTuple>>
2019-02-12 23:36:49 +01:00
konstin
c13f0708a4
Replace IntoPyTuple with IntoPy<Py<PyTuple>>
2019-02-12 22:58:23 +01:00
konstin
1d17463532
Merge pull request #335 from kngwyu/rethink-pyclass
...
Remove ToPyPointer and so on from pyclass
2019-02-12 22:56:23 +01:00
kngwyu
4c60af6934
More detailed explaination about PyRef
2019-02-12 19:13:55 +09:00
konstin
a1f13c124a
Merge pull request #348 from PyO3/3_8_fixup
...
Actually run 3.8 on travis
2019-02-10 20:24:40 +01:00
konstin
c38b1bc7a0
Actually run 3.8 on travis
2019-02-10 19:56:49 +01:00
konstin
58ba920a97
Merge pull request #345 from PyO3/coc
...
Add Code of Conduct and Contributing
2019-02-10 19:42:44 +01:00
konstin
62d9b40274
Add Contributing.md
2019-02-10 19:42:24 +01:00
Yuji Kanagawa
baaccfc775
Merge pull request #347 from kngwyu/clippy-fallback
...
[CI] Install clippy from git when it's missing
2019-02-10 12:00:03 +09:00
kngwyu
2de3146c62
[CI] Install clippy from git when it's missing
2019-02-10 10:52:39 +09:00
kngwyu
73c7f8a5c2
Write about Py<T> in the guide
2019-02-09 22:37:21 +09:00
kngwyu
8259cc5d89
Added a note about PyRef
and PyRefMut
in guide
2019-02-08 23:51:37 +09:00
kngwyu
4a552a88cf
Py::new_ref -> PyRef::new
2019-02-08 23:51:14 +09:00
kngwyu
f95f4e8c14
Fix python2 test
2019-02-08 14:09:49 +09:00
kngwyu
c80134fbcd
Refactor PyRef/PyRefMut based on reviews
2019-02-08 13:58:44 +09:00
konstin
596c0c75b6
Add Code of Conduct
2019-02-07 20:50:09 +01:00
konstin
7e914ac535
Merge pull request #337 from Alexander-N/fix-examples
...
Fix some examples
2019-02-07 15:21:26 +01:00
kngwyu
1d3dd2c343
Write documents of PyRef/PyRefMut
2019-02-07 15:17:27 +09:00
kngwyu
01fc1405b0
Modify AsPyRef::as_ref to return PyRef
2019-02-07 14:27:13 +09:00
Yuji Kanagawa
2a6679f6a9
Merge pull request #339 from ijl/py38-travis
...
Run python3.8 in Linux CI
2019-02-07 12:57:12 +09:00
ijl
9f722ea9cc
Run python3.8 in Linux CI
2019-02-05 13:49:03 +00:00
kngwyu
22687c3712
Modify PyIterProtocol to take PyRefMut
2019-02-05 17:27:34 +09:00
kngwyu
76e30b5248
Remove ToPyPointer and so on from pyclass
2019-02-04 00:34:06 +09:00
Alexander Niederbühl
638354cc34
Fix some examples in class.md
2019-02-03 14:29:17 +01:00
Alexander Niederbühl
1a47aab36b
Fix example in conversion.md
2019-02-03 14:13:47 +01:00
konstin
9e53418aad
Less feature(specialization)
2019-02-01 18:09:51 +01:00
konstin
f946888804
Ignore pip-wheel-metadata
2019-02-01 17:49:49 +01:00
konstin
853fc7c7d1
Merge pull request #332 from PyO3/inventory
...
Allow 0..n pymethod blocks without specialization
2019-02-01 17:40:23 +01:00
konstin
328d61ca3b
Fix test for python2
2019-02-01 17:15:33 +01:00
konstin
c868cc3e4b
Fix test
2019-02-01 16:31:18 +01:00