Commit Graph

3732 Commits

Author SHA1 Message Date
Yuji Kanagawa 7c1cc29612
Apply suggestions from birkenfeld
Co-authored-by: Georg Brandl <georg@python.org>
2021-03-06 23:59:46 +09:00
David Hewitt e19c083a81 ci: fix nightly warnings 2021-03-06 09:42:50 +00:00
Yuji Kanagawa 6f8f958f34
Apply suggestions from code review
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2021-03-06 18:03:17 +09:00
kngwyu a591b55219 Architecture.md: Initial draft 2021-03-06 17:52:54 +09:00
kngwyu 4ec78e6b18 Warning when 'abi3' is used with PyPy 2021-03-06 12:52:32 +09:00
Yuji Kanagawa fa50c11ac4
Merge pull request #1468 from davidhewitt/docs-warnings
docs: deny warnings in ci
2021-03-05 15:13:37 +09:00
David Hewitt bb6d4df497 multiple-pymethods: documentation updates 2021-03-04 23:03:26 +00:00
David Hewitt 977735db20 pymethods: make inventory optional 2021-03-04 19:52:58 +00:00
David Hewitt 1dcda8809d docs: deny warnings in ci 2021-03-04 19:41:11 +00:00
David Hewitt 525358a33c
Merge pull request #1458 from davidhewitt/simplify-ci
ci: simplify workflow
2021-03-04 19:37:53 +00:00
David Hewitt 85c7ecb36e ci: simplify workflow 2021-03-04 11:53:27 +00:00
David Hewitt 74fee84654
Merge pull request #1467 from birkenfeld/module_call
PyModule: rename call* to call_function*
2021-03-04 10:56:16 +00:00
Georg Brandl e065f9b517 PyModule: rename call* to call_function*
For consistency with PyObject/PyAny, where call() means to call the
object itself.
2021-03-04 09:29:28 +01:00
Yuji Kanagawa 21b26fcf3a
Merge pull request #1440 from davidhewitt/fix-multiple-kw-only-arg
pyfunction: refactor argument extraction
2021-03-04 00:15:34 +09:00
Yuji Kanagawa 5bee2af141
Merge pull request #1464 from PyO3/update_maturin_setuptools_rust_comparison
Update setuptools-rust/maturin comparison
2021-03-04 00:13:15 +09:00
konstin 7dfb4c353d Update setuptools-rust/maturin comparison
I tried to make differences clearer and make it a bit less biased towards maturin
2021-03-03 11:40:21 +01:00
David Hewitt df2146c2d2
Merge pull request #1461 from Daggy1234/patch-1
example: add polaroid
2021-03-03 08:53:58 +00:00
Arnav Jindal c889bcbeee
example: add polaroid 2021-03-03 10:36:30 +05:30
David Hewitt 67b1a61ac5
Merge pull request #1455 from PyO3/generate-less-code
Generate less code
2021-03-01 22:32:29 +00:00
konstin 19bcce51dd Use a where clause 2021-03-01 20:31:00 +01:00
David Hewitt e86c16d3db [review] kngwyu 2021-03-01 19:12:39 +00:00
David Hewitt fe74160a7d pyo3_benchmarks: benchmarks as separate Python example 2021-03-01 19:12:39 +00:00
David Hewitt 29a525b327 pyfunction: refactor argument extraction 2021-03-01 17:49:46 +00:00
David Hewitt ffd5874c3a pyfunction: fix args conflicting with keyword only arg 2021-03-01 17:49:46 +00:00
David Hewitt f9ad119871
Merge pull request #1454 from davidhewitt/tuples-of-12
tuples: support conversions up to length 12
2021-03-01 17:28:59 +00:00
konstin d668ff2ad5 Use Self instead of #cls 2021-03-01 12:42:27 +01:00
konstin f97c3a9479 Convert callback_body_without_convert function to handle_panic function 2021-03-01 12:42:19 +01:00
David Hewitt 9acf242ccc tuples: support conversions up to length 12 2021-03-01 08:32:13 +00:00
David Hewitt 593be05b83
Merge pull request #1436 from nw0/ffi-8
ffi cleanup: abstract.h
2021-02-28 07:55:35 +00:00
Nicholas Sim d278aaff54 Remove PyIter_Check, PyIndex_Check under abi3 for Python < 3.8
While these are defined as macros in the Python C API, they rely on
access to the PyTypeObject structure, which is not part of the limited
API for those versions.
2021-02-28 13:25:22 +08:00
David Hewitt cab61806b5
Merge pull request #1453 from PyO3/davidhewitt-patch-2
guide: correct documentation on default features
2021-02-27 16:01:31 +00:00
David Hewitt 40777a65d7
Merge pull request #1450 from davidhewitt/pycfunction-static
pycfunction: take &'static str arguments to new
2021-02-27 15:01:46 +00:00
David Hewitt a7528ee690
guide: correct documentation on default features 2021-02-27 14:55:40 +00:00
David Hewitt 1aa1e91ce6 pycfunction: take &'static str arguments to new
Co-authored-by: messense <messense@icloud.com>
2021-02-27 09:33:15 +00:00
David Hewitt c4bd9335fc
Merge pull request #1446 from davidhewitt/no-pyproto-inventory
pyproto: don't use inventory for methods
2021-02-26 09:09:23 +00:00
David Hewitt b68bc48729
Merge pull request #1447 from PyO3/davidhewitt-patch-2
defs: remove dead __unicode__ def
2021-02-25 06:50:41 +00:00
David Hewitt aa2855b6a0 pyproto: don't use inventory for methods 2021-02-25 00:17:22 +00:00
David Hewitt c02b71fc09
Merge pull request #1445 from Winxton/fix-wordcount-example
Fix wordcount example docs
2021-02-25 00:16:26 +00:00
David Hewitt d9fc4d783c
defs: remove dead __unicode__ def 2021-02-25 00:11:14 +00:00
David Hewitt c933ac223e bench_pyclass: add protocol method 2021-02-24 23:56:00 +00:00
winxton 5498b7ee3c Fix wordcount example docs 2021-02-24 13:41:45 -05:00
David Hewitt 0afc48477f
Merge pull request #1443 from davidhewitt/opt-in-auto-initialize
auto-initialize: remove from default features
2021-02-23 21:18:18 +00:00
David Hewitt 60848f94e4 ffi: fix pypy build 2021-02-22 23:13:02 +00:00
Nicholas Sim ec894e3a33 don't require Py_3_8 for ffi::cpython
Some functions available in earlier versions were moved to this
directory, but are still valid.
2021-02-22 23:04:17 +00:00
Nicholas Sim 13bfbd38b4 CHANGELOG: update 2021-02-22 23:04:17 +00:00
Nicholas Sim 24f091b8ff remove cfg for PyTryFrom impl for PyIterator 2021-02-22 23:03:13 +00:00
Nicholas Sim f7edd35a9e ffi cleanup: abstract.h 2021-02-22 23:00:51 +00:00
David Hewitt 9e4e0dbbe0 auto-initialize: remove from default features 2021-02-22 22:34:34 +00:00
David Hewitt 32841c1338
Merge pull request #1437 from kngwyu/rafactor-buildtime-python
Refactor Python scripts in build.rs
2021-02-21 18:07:43 +00:00
Daniil Konovalenko 554cffd60d
add #[pyo3(from_py_with="...")] attribute (#1411)
* allow from_py_with inside #[derive(FromPyObject)]
* split up FnSpec::parse
2021-02-21 00:15:20 +09:00