Commit graph

4635 commits

Author SHA1 Message Date
David Hewitt fd57a5e3d0
Merge pull request #2161 from cmpute/main
Fix the signature of _PyLong_NumBits
2022-02-13 22:06:53 +00:00
Jacob Zhong de502f0b08 Update CHANGELOG.md 2022-02-12 13:28:05 -05:00
Jacob Zhong 9a775c4380 Update src/conversions/num_bigint.rs
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2022-02-12 13:27:40 -05:00
Jacob Zhong d99a001b7d Fix the signature of _PyLong_NumBits 2022-02-12 13:27:40 -05:00
David Hewitt 03e650c02f
Merge pull request #2160 from davidhewitt/option-as-ptr-leak
fix: memory leak in Option<T>::as_ptr
2022-02-12 08:14:05 +00:00
David Hewitt c5ef24bbea fix: memory leak in Option<T>::as_ptr 2022-02-11 22:18:11 +00:00
David Hewitt 08d983ba0d
Merge pull request #2158 from davidhewitt/inline-handle-panic
refactor: inline handle_panic into macro output
2022-02-10 21:28:19 +00:00
David Hewitt c93ee00130 refactor: inline handle_panic into macro output 2022-02-10 20:20:03 +00:00
David Hewitt be31ca96f7
Merge pull request #2157 from davidhewitt/simpler-default-items
refactor: simpler pyclass internals
2022-02-09 09:04:08 +00:00
David Hewitt 0c576964f8 changelog: add 2157 2022-02-09 08:07:14 +00:00
David Hewitt f5b2a88a70 refactor: include __new__ as slot 2022-02-09 08:07:14 +00:00
David Hewitt 75e44585de refactor: pass tp_alloc and tp_free via slots 2022-02-09 08:07:14 +00:00
David Hewitt 4d471077b4 refactor: inline pyclass_default_items trait 2022-02-08 19:39:37 +00:00
David Hewitt 6f39deaa37 finish off implementation 2022-02-08 18:17:44 +00:00
mejrs 7520b49ac1 Implement opt-in immutable pyclasses 2022-02-08 18:08:18 +00:00
mejrs 3c1a0c6b7e Rename python.rs to marker.rs 2022-02-08 14:59:36 +01:00
David Hewitt ada301773e
Merge pull request #2034 from b05902132/derive-enum
#[pyclass] for fieldless enums
2022-02-07 23:20:06 +00:00
b05902132 78f5afc82e Finish implementation for pyclass enums 2022-02-07 22:17:11 +00:00
David Hewitt 4442ff7c09
Merge pull request #2154 from PyO3/davidhewitt-patch-1
fix: guide example for pyclass expansion
2022-02-07 09:05:44 +00:00
David Hewitt 4fd01c3cd6
fix: guide example for pyclass expansion 2022-02-07 07:46:12 +00:00
David Hewitt 9def53317f
Merge pull request #2153 from davidhewitt/simplify-intrinsic-items
refactor: inline pyclass_intrinsic_items
2022-02-07 00:05:30 +00:00
David Hewitt 3beb122a83
Merge pull request #2150 from davidhewitt/python-3.11-buffer
python-3.11: support buffer API on abi3
2022-02-06 23:28:04 +00:00
David Hewitt e39881c208 refactor: inline pyclass_intrinsic_items 2022-02-06 23:26:57 +00:00
David Hewitt f75579a489 python-3.11: support buffer API on abi3 2022-02-06 22:46:45 +00:00
konstin fc2b0f8b04
Update maturin's description (#2138)
* Update maturin's description

* Update README.md

Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2022-02-06 09:59:54 +00:00
James Hilton-Balfe b2f9e28331
Add Mapping::contains (#2133)
* Add Mapping::contains

* Fix typo

* Add a changelog entry

* Use PyAny::contatins instead

* Update mapping.rs
2022-02-06 00:35:43 +00:00
David Hewitt 1ea34639f3
Merge pull request #2096 from davidhewitt/pyproto-feature
Add a `pyproto` feature
2022-02-05 17:56:38 +00:00
David Hewitt ecfd2c2434 pyclass: simplify generated code for PyClassImpl 2022-02-05 16:58:01 +00:00
David Hewitt 558549e1c2 pyproto: split into new feature 2022-02-05 16:51:31 +00:00
David Hewitt 6db7dd76d3
Merge pull request #2065 from davidhewitt/protos-seq-mapping-fallbacks-2
pymethods: seq methods from mapping methods
2022-02-05 16:45:01 +00:00
David Hewitt 53c170078d pymethods: seq methods from mapping methods 2022-02-05 15:59:22 +00:00
David Hewitt 4305a9a45a
Merge pull request #2145 from davidhewitt/merge-pytests
pytests: merge benchmark and test crates
2022-02-05 12:27:56 +00:00
David Hewitt 5dd46e9fa9
Merge pull request #2146 from davidhewitt/pypy-ffi-cleanup
pypy: support fast long conversion
2022-02-05 11:24:44 +00:00
David Hewitt 8b47f4f120 pytests: merge benchmark and test crates 2022-02-05 10:16:46 +00:00
David Hewitt 71e5a12fa2 pypy: support fast long conversion 2022-02-05 10:14:14 +00:00
David Hewitt 02b7f99d28
Merge pull request #2144 from davidhewitt/cleanup-ffi-call
chore: cleanup old todo
2022-02-05 10:00:18 +00:00
David Hewitt 3a70406448 chore: cleanup old todo 2022-02-05 09:00:00 +00:00
David Hewitt abd7eafafb
Merge pull request #2134 from davidhewitt/optimize-extract-argument
opt: improve generated code for argument extraction
2022-02-05 00:33:45 +00:00
David Hewitt 1beb2bbb2d opt: optimize argument extraction 2022-02-04 20:53:49 +00:00
David Hewitt 6814740d20
Merge pull request #2142 from davidhewitt/fix-coverage
ci: fix windows job
2022-02-04 12:09:36 +00:00
David Hewitt 6f16f738f9 ci: fix windows job 2022-02-04 08:53:12 +00:00
David Hewitt 199cc989d4
Merge pull request #2126 from DSPOM2/main
move ffi module to separate crate
2022-01-31 23:27:36 +00:00
DSPOM 004fa2a68d
fix: remove excess argument for _PyCFunctionFast 2022-01-31 13:27:32 +01:00
DSPOM 6a9a9ba38a
move ffi module to separate crate 2022-01-31 13:27:16 +01:00
mejrs 463543ad58 Annotate Rust blocks with "rust" 2022-01-29 01:03:57 +01:00
Bruno Kolenbrander bb0ae4942f
Merge pull request #2130 from kevinheavey/patch-1
add pyheck to examples
2022-01-28 20:19:15 +01:00
Kevin Heavey 42ab0f47ad
add pyheck to examples 2022-01-28 10:33:18 +00:00
David Hewitt 840a2ad2bd
Merge pull request #2124 from mejrs/esi
Fix soundness issues w/r `ExactSizeIterator`
2022-01-27 20:17:17 +00:00
David Hewitt 18c0946137
Merge pull request #2127 from PyO3/davidhewitt-patch-1
ci: unpin nightly for coverage
2022-01-26 22:44:32 +00:00
David Hewitt 0ce9db93f4
ci: unpin nightly for coverage 2022-01-26 08:22:10 +00:00