Commit graph

3691 commits

Author SHA1 Message Date
David Hewitt 5119bad580 changelog: updates for 0.14.4 2021-08-29 08:07:44 +01:00
David Hewitt 95a11d0725
Merge pull request #1842 from PyO3/frompyobject_hygiene
more macro hygiene cleanup: test the FromPyObject derive macro
2021-08-29 07:15:16 +01:00
David Hewitt 604b28451b
Merge pull request #1841 from PyO3/exception_hygiene
more macro hygiene cleanup: test the exception macros
2021-08-29 07:14:36 +01:00
David Hewitt 3219c89f10
Merge pull request #1746 from davidhewitt/doc-attributes-1.54
pyo3-macros-backend: support macros inside doc attributes
2021-08-29 07:12:58 +01:00
David Hewitt f76535fd07 pyo3-macros-backend: support macros inside doc attributes 2021-08-28 22:47:20 +01:00
Georg Brandl 585487c3c1 more macro hygiene cleanup: test the FromPyObject derive macro 2021-08-28 16:42:29 +02:00
Georg Brandl b795cb2c14 class: hygiene cleanup 2021-08-28 15:47:28 +02:00
Georg Brandl db00a34a56 more macro hygiene cleanup: test the exception macros 2021-08-28 15:45:49 +02:00
David Hewitt 3fa97f9086
Merge pull request #1840 from hongquan/feature/more-specific-oserror
Convert io::Error to more specific Python OSError
2021-08-28 14:28:30 +01:00
David Hewitt a6d6367241
Merge pull request #1837 from davidhewitt/more-proc-macro-hygiene
pyo3-macros-backend: more tests for macro hygiene
2021-08-28 14:14:47 +01:00
Nguyễn Hồng Quân b721a45ff9 Convert io::Error to more specific Python OSError 2021-08-28 17:25:35 +07:00
David Hewitt 313610993a pyo3-macros-backend: more tests for macro hygiene 2021-08-28 10:28:27 +01:00
David Hewitt 667865e2d7
Merge pull request #1838 from davidhewitt/pin-parking-lot-msrv
ci: pin parking_lot to 0.11.1 on MSRV
2021-08-28 08:59:59 +01:00
David Hewitt 99f95a2eaf ci: pin parking_lot to 0.11.1 on MSRV 2021-08-28 08:17:28 +01:00
David Hewitt cf0e8a6435
Merge pull request #1830 from deantvv/ffi-cleanup-0825
ffi cleanup: pystrtod to pythonrun
2021-08-28 07:23:47 +01:00
David Hewitt 9c03227a20
Merge pull request #1833 from davidhewitt/changelog-function-brackets
changelog: remove function parentheses
2021-08-27 22:57:41 +01:00
David Hewitt 86dacd47c7
ffi: add some PyPy cfgs 2021-08-27 22:57:02 +01:00
Dean Li a8cc9c37d5
fixup! ffi: cleanup pythonrun 2021-08-27 23:54:27 +08:00
Dean Li 73220565c1
update changelog 2021-08-27 23:36:59 +08:00
Dean Li 72b8ffc588
ffi: cleanup pythonrun
Move multiple limited api to cpython. Many API in `pythonrun` are
removed in python 3.10.

There is also some function and macro share the same name (documented
below) in cpython, which I choose to skip macro definition.
- PyRun_String
- PyRun_AnyFile
- PyRun_AnyFileEx
- PyRun_AnyFileFlags
2021-08-27 23:36:58 +08:00
Dean Li d62f568ffb
ffi: cleanup pystrtod 2021-08-27 22:50:01 +08:00
messense 868c591c18
Merge pull request #1834 from davidhewitt/pystring-data-big-endian
pystring: disable `PyString::data` on big-endian targets
2021-08-27 09:41:57 +08:00
David Hewitt 755dd221e7 pystring: disable PyString::data on big-endian targets 2021-08-26 19:29:58 +01:00
David Hewitt 4a50a26c87 changelog: remove function parentheses 2021-08-26 18:59:07 +01:00
David Hewitt a2375f336f
Merge pull request #1832 from mejrs/decorator
guide: add decorator example
2021-08-26 18:55:59 +01:00
mejrs 76179967f3 use &mut self receiver and py args. 2021-08-26 15:28:52 +02:00
David Hewitt f20079bf78
Merge pull request #1829 from davidhewitt/slice-index
list,tuple,sequence: add slice indexing
2021-08-26 08:30:30 +01:00
David Hewitt 9e81603762
Merge pull request #1831 from davidhewitt/guide-optional-deps
guide: add "Optional Dependencies" section
2021-08-26 08:13:50 +01:00
David Hewitt 3a90ff77f4 list,tuple,sequence: add slice indexing 2021-08-26 07:57:12 +01:00
David Hewitt f2ff6cad37 guide: add "Optional Dependencies" section
Co-authored-by: mejrs <59372212+mejrs@users.noreply.github.com>
2021-08-26 07:22:54 +01:00
mejrs eaf5e6de9c add decorator example 2021-08-26 04:18:49 +02:00
David Hewitt 2df0cb6d13
Merge pull request #1823 from deantvv/ffi-cleanup
ffi cleanup: pylifecycle to pystate
2021-08-24 21:15:29 +01:00
David Hewitt de87971bf6
Merge pull request #1827 from davidhewitt/changelog-tidy
changelog: fix PR links
2021-08-24 20:29:58 +01:00
Dean Li ebeee22d71
ffi: cleanup pystate 2021-08-25 00:41:45 +08:00
Dean Li 0a50b42352
ffi: cleanup pymem 2021-08-24 23:50:26 +08:00
Dean Li 1eeeb1fa32
ffi: cleanup pylifecycle 2021-08-24 23:50:17 +08:00
Georg Brandl 3bed78230d
Merge pull request #1828 from PyO3/get_slice_rename 2021-08-24 10:38:32 +02:00
David Hewitt 688823fbbf
Merge pull request #1826 from davidhewitt/pysequence-tidy
sequence: tidy up implementation
2021-08-24 09:14:56 +01:00
Georg Brandl 50cd4c60ca
Merge pull request #1825 from PyO3/index_trait 2021-08-24 09:34:42 +02:00
Georg Brandl 097216702f tuple: add back old slice() for deprecation cycle 2021-08-24 09:08:08 +02:00
David Hewitt 764b1e5b95 changelog: fix PR links 2021-08-24 07:44:50 +01:00
Georg Brandl c522a9c087 list/tuple: rename slice -> get_slice 2021-08-24 08:40:05 +02:00
Georg Brandl a0f7488e1a list/tuple/sequence: use Index in tests 2021-08-24 08:37:17 +02:00
David Hewitt 7ff7c76268 sequence: tidy up implementation 2021-08-24 07:36:20 +01:00
Georg Brandl 54e7da515a migration: add guide entry for sequence indexing 2021-08-24 08:32:19 +02:00
Georg Brandl 611126d994 list/tuple/sequence: implement Index
See #1667.
2021-08-24 08:24:47 +02:00
David Hewitt cfd6a5bc35
Merge pull request #1803 from PyO3/pysequence_usize
PySequence: use usize everywhere, fix in-place methods
2021-08-24 07:09:58 +01:00
Georg Brandl ead86bd666 PySequence: add missing tests 2021-08-23 16:38:59 +02:00
Georg Brandl 8083c1c310 Update changelog for #1802 and #1803. 2021-08-23 15:47:09 +02:00
Georg Brandl 925fef1ece PySequence: fix the in_place methods to
a) not leak a reference
b) correctly return the result, since for immutable types `self` is not actually mutated in place
2021-08-23 15:47:09 +02:00