konstin
25f14d37a5
Merge pull request #390 from Alexander-N/fix-flaky-tests
...
Fix flaky tests
2019-03-10 21:39:19 +01:00
konstin
ba5bc0f1e6
Merge pull request #387 from Alexander-N/test-examples
...
Test examples in user guide with travis
2019-03-10 21:37:01 +01:00
konstin
21f2804c3b
Merge pull request #389 from PyO3/c_api_and_stacktrace
...
Add notes about the c api and stacktraces to the guide
2019-03-10 21:32:21 +01:00
Alexander Niederbühl
3a6e0a2724
Remove use of INCREF
and cnt
2019-03-10 02:49:51 +01:00
Alexander Niederbühl
e2e4733b82
Test examples in user guide with travis
...
Test could only be activated for Python 3.5 and some tests had to be
ignored, see #381 and #387 .
2019-03-09 23:54:28 +01:00
konstin
d63fac8d1c
Merge pull request #391 from Alexander-N/typos
...
Fix some typos and grammar in class.md
2019-03-08 00:31:23 +01:00
Alexander Niederbühl
ae93e71a30
Fix some typos and grammar in class.md
2019-03-07 22:21:16 +01:00
Alexander Niederbühl
f68ae0cfae
Fix flaky tests
...
The tests were flaky because they took references to the empty tuple
which is a singleton. Use a unique object for each test to make them
independent.
2019-03-06 00:12:30 +01:00
kngwyu
2db0612b6e
Add a note about PyAny in CHANGELOG
2019-03-05 13:15:34 +09:00
konstin
41ffe1ecdd
Add notes about the c api and stacktraces to the guide
2019-03-04 23:18:54 +01:00
kngwyu
f3fe0dfdd5
Move From<PyRef> impl to any.rs
2019-03-04 21:49:43 +09:00
kngwyu
c6a6634d8a
Move PyAny to any.rs
2019-03-04 14:23:40 +09:00
kngwyu
874d8a0835
Rename PyObjectRef with PyAny
2019-03-04 13:50:43 +09:00
Yuji Kanagawa
0866dd8989
Merge pull request #383 from Alexander-N/fix-examples
...
Fix PyRef example
2019-03-04 12:47:10 +09:00
Alexander Niederbühl
1ea59296ae
Fix PyRef example
2019-03-03 20:18:55 +01:00
Alisa Dammer
0ec6603b7a
Remove unrequired encoding header
...
This is not required anymore for Python 3.
2019-03-03 18:14:12 +01:00
Yuji Kanagawa
90bf482fa1
Merge pull request #380 from Alexander-N/fix-examples
...
Fix examples
2019-03-03 16:50:41 +09:00
Alexander Niederbühl
2327882dc5
Fix examples
2019-03-01 20:32:55 +01:00
konstin
dcce57f4f9
Merge pull request #369 from kngwyu/hide-nativetype
...
Make PyNativeType unsafe
2019-02-26 23:53:12 +01:00
kngwyu
498689423e
Make PyNativeType unsafe
2019-02-25 23:15:13 +09:00
konstin
5b4d77db88
Merge pull request #368 from kngwyu/aspypointer
...
Rename ToPyPointer with AsPyPointer
2019-02-24 15:52:29 +01:00
kngwyu
86d239e445
Rename ToPyPointer with AsPyPointer
2019-02-24 16:20:04 +09:00
konstin
3067b7ba98
Merge pull request #367 from PyO3/restructuring
...
Some api improvements
2019-02-23 18:59:24 +01:00
konstin
d3743fec64
Python 2
2019-02-23 18:42:40 +01:00
konstin
6cd07c369c
Simpler new and clippy fixes
2019-02-23 18:38:00 +01:00
konstin
ad590bd158
Some api improvements
2019-02-23 18:01:22 +01:00
konstin
0cd72ac213
Bump to 0.6.0-alpha.4
2019-02-20 11:30:09 +01:00
konstin
61e449b10e
Update Changelog
2019-02-19 22:30:22 +01:00
konstin
32a15bc4a9
Merge pull request #364 from PyO3/parser_refactoring
...
Big proc macro refactoring
2019-02-19 22:22:23 +01:00
konstin
625093ce5b
Merge pull request #361 from kngwyu/pydictitem
...
Introduce PyDictItem
2019-02-18 20:13:32 +01:00
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