Commit Graph

5741 Commits

Author SHA1 Message Date
David Hewitt 0de17149f2
Merge pull request #3418 from smheidrich/mention-inability-to-derive-from-python-classes-in-docs
Mention inability to subclass Python classes in docs
2023-08-29 05:07:21 +00:00
Shahriar Heidrich 2855b9d508 Mention no subclassing of Python classes in docs 2023-08-28 12:34:13 +02:00
David Hewitt abc942a453
Merge pull request #3408 from rytheo/builtin-singletons
Add types for `None`, `Ellipsis`, and `NotImplemented`
2023-08-26 13:29:00 +00:00
Ryan Lowe b3cf61cea6 add types for built-in singletons 2023-08-26 08:57:34 -04:00
David Hewitt 23fd73eb57
Merge pull request #3413 from davidhewitt/llvm-cov
fix escaping of llvm-cov output
2023-08-25 11:57:48 +00:00
David Hewitt a5d0a16b21 ci: updates for Rust 1.72 2023-08-25 12:30:34 +01:00
David Hewitt c83951754e fix escaping of llvm-cov output 2023-08-25 12:13:20 +01:00
David Hewitt 637e39deb7
Merge pull request #3356 from davidhewitt/py-idents
remove all #py quoting
2023-08-20 10:52:13 +00:00
Adam Reichold 12183ad3ed
Merge pull request #3379 from iliya-malecki/main
BigInt speedup
2023-08-19 12:09:28 +00:00
David Hewitt 9336e5b605
Merge pull request #3403 from davidhewitt/ffi-objimpl
update definitions for objimpl.h
2023-08-19 12:02:32 +00:00
Adam Reichold e6293a9608
Merge pull request #3405 from davidhewitt/debug-3.11
fix compile warning on pre-3.12 debug builds
2023-08-19 05:25:57 +00:00
David Hewitt 9604957c72 further refactor num-bigint conversion 2023-08-18 22:27:47 +01:00
David Hewitt 69475b0a83 update definitions for objimpl.h 2023-08-18 22:17:53 +01:00
David Hewitt 7fce07935c fix compile warning on pre-3.12 debug builds 2023-08-18 22:15:29 +01:00
Adam Reichold 94f15679ab
Merge pull request #3402 from Tpt/io-err-unwrap
Unwrap the underlying PyErr when converting an io::Error back to a PyErr
2023-08-18 16:56:53 +00:00
David Hewitt 15388fd53b
Merge pull request #3401 from messense/fix-issue-3400
Fix memory leak in `PyTypeBuilder::build`
2023-08-18 14:28:36 +00:00
Alex Gaynor df5aa77800
fixes #3325 -- mark `AsPyPointer` as `unsafe trait` 2023-08-18 10:16:34 -04:00
Tpt 6d8e8b302f Unwrap the underlying PyErr when converting an io::Error back to a PyErr
Exposes it directly instead of loosing all information outside the message
2023-08-18 15:56:25 +02:00
messense 2dc1e9a2b7
Fix memory leak in `PyTypeBuilder::build` 2023-08-18 21:13:13 +08:00
David Hewitt f7503afbc8 remove all #py quoting 2023-08-18 14:04:38 +01:00
David Hewitt c03c787a91
Merge pull request #3393 from alex/drop-other-trait
Remove usage of `AsPyPointer` in `IntoPy<PyObject>` trait implementation
2023-08-18 12:58:07 +00:00
David Hewitt 7f32ed96db
Merge pull request #3396 from Tpt/IntoInnerError
Uses io::Error code when converting io::IntoInnerError to PyErr
2023-08-18 08:27:35 +00:00
David Hewitt 96de13e28e
Merge pull request #3397 from Tpt/io-err-from
Pick a relevant ErrorKind when building an io::Error from a OSError subclass
2023-08-18 08:24:57 +00:00
Tpt 1062f244ea Pick a relevant ErrorKind when building an io::Error from a OSError subclass 2023-08-17 18:33:51 +02:00
Tpt 7c366cb930 Uses io::Error code when converting io::IntoInnerError to PyErr 2023-08-17 18:25:36 +02:00
Alex Gaynor 9f1b56b659
Remove usage of `AsPyPointer` in `IntoPy<PyObject>` trait implementation 2023-08-17 07:05:52 -04:00
Iliya Malecki d1f0561036 added speedy BigInt extraction 2023-08-17 08:15:50 +01:00
Iliya Malecki 438d0a2b37 add benchmark for BigInt interaction 2023-08-17 08:15:50 +01:00
Adam Reichold 9363491d54
Merge pull request #3384 from DataTriny/pyclass_rename_variants
Add  `rename_all` attribute to `#[pyclass]`
2023-08-16 19:06:37 +00:00
David Hewitt 0375d57989
Merge pull request #3391 from alex/drop-trait
Remove usage of `AsPyPointer` in traits for convergint to PyObject
2023-08-16 16:39:46 +00:00
David Hewitt 75da8911d7
Merge pull request #3392 from davidhewitt/license-fixups
tidy up some file locations after dual licensing
2023-08-16 16:39:13 +00:00
DataTriny 6c70db1e0b Test renaming rules 2023-08-16 18:24:19 +02:00
Alex Gaynor c259e77ca2
Remove usage of `AsPyPointer` in traits for convergint to PyObject
Refs #3358
2023-08-16 07:03:57 -04:00
David Hewitt eba2c59778 tidy up some file locations after dual licensing 2023-08-16 08:22:51 +01:00
David Hewitt 82b1e55e2b
Merge pull request #3389 from alex/less-as-py-pointer
Migrate `PyIterator::from_object` and `PyByteArray::from` from `AsPyPointer` to `&PyAny`
2023-08-15 23:12:28 +00:00
David Hewitt ff823ac3df
Merge pull request #3390 from puradox/fix/ffi-license
Replace pyo3-ffi LICENSE with ACKNOWLEDGEMENTS
2023-08-15 23:07:55 +00:00
David Hewitt e6626de9fa
Merge pull request #3108 from DataTriny/dual_license
Dual-license PyO3 under Apache 2.0 or MIT
2023-08-15 23:06:06 +00:00
Sam Balana 0607905771
Replace pyo3-ffi LICENSE with ACKNOWLEDGEMENTS
Replace the Python license from pyo3-ffi/LICENSE with an
ACKNOWLEDGEMENTS file. Relicense under the parent Apache 2.0 license.

pyo3-ffi contains a Rust reproduction of the CPython header files, only
copying what is absolutely necessary for binary compatibility. As such,
it is unnecessary to include the Python license.

Fixes #3124
2023-08-15 15:29:53 -07:00
Alex Gaynor 1a904a7429
Migrate `PyIterator::from_object` and `PyByteArray::from` from `AsPyPointer` to `&PyAny` 2023-08-15 18:03:56 -04:00
DataTriny 5782aca636 Update the pull request template 2023-08-15 23:56:07 +02:00
DataTriny b222dbbbcc Add a release note entry 2023-08-15 23:39:45 +02:00
DataTriny 0ef626177c Add copyright holders to the MIT license file 2023-08-15 23:39:45 +02:00
DataTriny 3c3e9401a3 Dual-license 2023-08-15 23:39:45 +02:00
David Hewitt 1a64eb01d7
Merge pull request #3387 from davidhewitt/remove-non-mit-contributions
Remove non-MIT contributions
2023-08-15 20:23:18 +00:00
DataTriny 1a73ce6e60 Address review comments 2023-08-15 20:56:13 +02:00
DataTriny f02fe9478d
Make rename_all accept a renaming rule, allow applying it to classes as well 2023-08-15 10:15:48 +02:00
David Hewitt 988590ee92 Revert "Change type of kwargs in the example to Option<PyDict>"
This reverts commit 80502bd307.
2023-08-15 08:57:31 +01:00
David Hewitt 5ad55d2dc7 Revert "Fix typos and other minor touchups to guide"
This reverts commit 24eee46128.
2023-08-15 08:55:41 +01:00
David Hewitt 70bbd00d57 Revert "Fix minor typos in example code"
This reverts commit 11e2163bb4.
2023-08-15 08:45:19 +01:00
David Hewitt 0ca6a32b23 Revert "Add (probably) forgotten type parameters to the `pyobject_native_type_convert` macro."
This reverts commit cbe668a0f4.
2023-08-15 08:44:02 +01:00