Alexander Niederbühl
310e597693
Fix some typos in user guide
2019-03-13 17:14:17 +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
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
Alexander Niederbühl
ae93e71a30
Fix some typos and grammar in class.md
2019-03-07 22:21:16 +01:00
konstin
41ffe1ecdd
Add notes about the c api and stacktraces to the guide
2019-03-04 23:18:54 +01:00
Alexander Niederbühl
1ea59296ae
Fix PyRef example
2019-03-03 20:18:55 +01:00
Alexander Niederbühl
2327882dc5
Fix examples
2019-03-01 20:32:55 +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
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
konstin
1a489d2829
Make the init methods use a value instead of a function
2019-02-13 13:59:47 +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
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
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
56f2257e90
rust 2018 fixes
2019-02-01 16:23:34 +01:00
konstin
ae8a37cd0a
Allow 0..n pymethod blocks without specialization
2019-02-01 16:23:34 +01:00
konstin
936f0153e8
Migrate to rust 2018
2019-02-01 14:23:29 +01:00
konstin
423b5d1099
Merge pull request #327 from StarryInternet/fix-cross-compilation
...
Implement Basic Cross Compile Support
2019-02-01 13:50:39 +01:00
Matt Pelland
d3bb75e4c0
move cross compiling doc to the guide
2019-01-30 18:08:04 -05:00
konstin
bb4848f2c2
Merge pull request #329 from Alexander-N/get-started
...
Update Get Started section in user guide
2019-01-30 16:18:24 +01:00
Luke Hsiao
6fd41a16ae
docs(rust-cpython): fix minor typos
2019-01-28 15:44:17 -08:00
Alexander Niederbühl
b132a0bfc5
Update Get Started section in user guide
...
Use content of README.md for an updated version of
guide/src/get_started.md
2019-01-27 17:28:08 +01:00
Alexander Niederbühl
9e2347b810
Don't require feature when PYTHON_SYS_EXECUTABLE is set
...
If neither the feature python2 or python3 is used, the version of
PYTHON_SYS_EXECUTABLE is used.
Issue #276
2019-01-07 22:46:01 +01:00
Joel Höner
22a89d07aa
Document function signature reporting
2018-12-07 15:35:02 +01:00
Joel Höner
17535534ea
Fix some minor documentation errors
...
Pyo3 → PyP3
py::function → pyfunction
paramter → parameter
2018-12-07 15:22:12 +01:00
konstin
790a103753
Merge pull request #291 from PyO3/exception_macros
...
Refactor the exception macros
2018-12-01 13:04:06 +01:00
Tiago Antao
a5de9dcf00
Update building-and-distribution.md
2018-11-30 09:40:28 -05:00
Tiago Rodrigues Antao
08e61694b3
upgrade version reference
2018-11-30 08:50:15 -05:00
konstin
9102f2e364
Refactor the exception macros
...
* Renamed `py_exception` to `create_exception`
* The split up of the macros makes it possible to create exception structs with bodies to mimic python exceptions' members
* Used `Once` to fix a (theoretical) race condition with the is_null check
2018-11-27 23:07:15 +01:00
konstin
9035d54035
Add Documentation on build and linker args
2018-11-19 23:14:21 +01:00
konstin
9c8c5a6063
Rename #[pymodinit] to #[pymodule]
2018-11-15 19:43:29 +01:00
konstin
863ffb161f
Add wrap_module macro
2018-11-15 19:43:29 +01:00
konstin
57afb51604
Remove PyToken completely; Fixes #94
2018-11-12 14:42:21 +01:00
konstin
fb2349b6ec
Remove PyToken usages from tests
2018-11-12 14:41:29 +01:00
konstin
234e2c6998
Release 0.5.0-alpha.3 to fix #256
2018-11-02 16:34:40 +01:00
kngwyu
0859392d1c
Fix url from guide to doc
2018-10-04 16:36:30 +09:00
kngwyu
3620aae503
Build rust doc on travis
2018-10-04 16:19:36 +09:00
konstin
5100676497
Splitted PyTypeCreate of PyTypeObject to remove specialization
2018-10-03 22:12:22 +02:00
konstin
302c099a76
Big refactoring to shrink the prelude
2018-09-21 23:34:28 +02:00
konstin
9405ffa3b9
Add section about linking in the guide
2018-09-09 18:49:03 +02:00
konstin
f3c98ca7ba
Move setuptools-rust documentation to setuptools-rust
2018-09-06 18:03:15 +02:00
konstin
f58549f1d8
Get rid of a bunch of PyTokens
2018-09-02 23:33:45 +02:00
konstin
7c0379b13a
Remove many specialization uses
...
From over a hundret "default fn" uses down to 17
2018-08-25 20:48:17 +02:00