Commit Graph

6209 Commits

Author SHA1 Message Date
Icxolu 304c8e655a convert `marshal` to `Bound` API 2024-02-04 16:25:00 +01:00
David Hewitt 0d4df9c19d adjust `FromPyObject` implementations to always use `'py` lifetime 2024-02-04 14:22:03 +00:00
David Hewitt 2a741a21e6 migrate many `FromPyObject` implementations to `Bound` API 2024-02-04 14:22:03 +00:00
David Hewitt cd9c21f89f
Merge pull request #3793 from snuderl/PyNone-new-api
Implement new API for PyNone #3684
2024-02-04 14:20:32 +00:00
Blaž Šnuderl d1e967e9ea Uncomment a test 2024-02-04 07:31:29 +01:00
Blaž Šnuderl eca943ea35 Add new get_bound and mark old get as deprecated 2024-02-04 07:30:28 +01:00
Blaž Šnuderl 7efd412a63 Merge branch 'main' into PyNone-new-api 2024-02-04 07:29:32 +01:00
David Hewitt 975f182e68
Merge pull request #3794 from davidhewitt/revert-python-none
Revert "Merge pull request #3578 from davidhewitt/typed-helpers"
2024-02-03 21:17:28 +00:00
David Hewitt 76d1b34cd5 Revert "Merge pull request #3578 from davidhewitt/typed-helpers"
This reverts commit 7b07d6d21b, reversing
changes made to 99858236bd.
2024-02-03 20:56:23 +00:00
Blaz Snuderl b1863c73df clippy 2024-02-03 21:25:47 +01:00
Blaz Snuderl 507ea28b27 test 2024-02-03 21:14:31 +01:00
Blaž Šnuderl 9641b11752 hmm 2024-02-03 20:57:46 +01:00
Blaž Šnuderl a2a6062adc fmt 2024-02-03 20:48:25 +01:00
Blaž Šnuderl 7e94da576d Fix doctests 2024-02-03 20:44:48 +01:00
Blaž Šnuderl 5e9d97d1c6 Implement new API for PyNone #3684 2024-02-03 19:09:12 +01:00
David Hewitt d8c5e7943c
Merge pull request #3790 from Icxolu/bool
add `Bound` constructor for `PyBool`
2024-02-03 13:10:30 +00:00
Icxolu af21a9dc74 add `Bound` constructor for `PyBool` 2024-02-03 12:06:50 +01:00
David Hewitt 8f8d4d33fa
Merge pull request #3776 from davidhewitt/bound-extract
migrate `FromPyObject` for `Bound` and `Py` to new APIs
2024-02-02 23:10:47 +00:00
David Hewitt 57735540e8
Merge pull request #3736 from Tpt/tpt/systemtime
Adds conversion between SystemTime and datetime
2024-02-01 14:05:51 +00:00
David Hewitt a60c1821af implement `PyFunctionArgument` for `&Bound<T>` 2024-02-01 13:22:53 +00:00
David Hewitt d35a6a1fd6
Merge pull request #3785 from davidhewitt/bound-as-any
add `Bound::as_any` and `Bound::into_any` (and same for `Py`)
2024-02-01 10:52:25 +00:00
David Hewitt 49a57dfd18 clean up implementations in `src/instance.rs` 2024-02-01 10:14:58 +00:00
David Hewitt 516c085131
Merge pull request #3777 from davidhewitt/bytes-new-bound
add `PyBytes::new_bound`
2024-02-01 09:17:26 +00:00
David Hewitt 4437e8f616 add `Py::as_any` and `Py::into_any` 2024-02-01 09:07:36 +00:00
David Hewitt cbc97f8ea9 add `Bound::as_any` and `Bound::into_any` 2024-02-01 09:01:33 +00:00
David Hewitt 4c94be51a7 add `PyBytes::new_bound` 2024-02-01 08:52:28 +00:00
David Hewitt aa1a9864f7
Merge pull request #3786 from Icxolu/bytearray
add `Bound` constructors for `PyByteArray` and `PyMemoryView`
2024-01-31 08:11:54 +00:00
Icxolu b14dbcf29f add `Bound` constructors for `PyMemoryView` 2024-01-30 22:52:31 +01:00
Icxolu e704a760b7 add `Bound` constructors for `PyByteArray` 2024-01-30 22:52:31 +01:00
David Hewitt 6040d93032
Merge pull request #3781 from davidhewitt/intern-bound
change return type of `intern!` macro to `&Bound<PyString>`
2024-01-30 13:57:29 +00:00
David Hewitt c93073075b
Merge pull request #3783 from davidhewitt/remove-pool-bench
remove bench of `GILPool::new`
2024-01-30 13:30:31 +00:00
David Hewitt 2f00eb1423 for now just change return type of `intern!` 2024-01-30 13:28:07 +00:00
David Hewitt 0bb9de1aba remove bench of `GILPool::new` 2024-01-30 11:45:06 +00:00
David Hewitt aa139ad422 add `intern_bound!` macro 2024-01-30 10:58:19 +00:00
David Hewitt fed8bcadaf add remaining bound string constructors 2024-01-30 09:13:24 +00:00
David Hewitt 718be9fac5
Merge pull request #3770 from Icxolu/capsule
implement `PyCapsuleMethods`
2024-01-29 21:23:43 +00:00
David Hewitt fbe6f158ec
Merge pull request #3780 from PyO3/dependabot/github_actions/dorny/paths-filter-3
Bump dorny/paths-filter from 2 to 3
2024-01-29 21:06:38 +00:00
dependabot[bot] ab90403953
Bump dorny/paths-filter from 2 to 3
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 2 to 3.
- [Release notes](https://github.com/dorny/paths-filter/releases)
- [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dorny/paths-filter/compare/v2...v3)

---
updated-dependencies:
- dependency-name: dorny/paths-filter
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-29 20:31:27 +00:00
Icxolu e323fcbb9e implement `PyCapsuleMethods` 2024-01-29 18:22:40 +01:00
David Hewitt a3eb328378 migrate `FromPyObject` for `Bound` and `Py` to `extract_bound` 2024-01-29 13:46:46 +00:00
David Hewitt 0d421b1ca2
Merge pull request #3774 from davidhewitt/string-new-bound
add `PyString::new_bound`
2024-01-29 13:29:16 +00:00
David Hewitt c47565666d add `PyString::new_bound` 2024-01-29 13:14:00 +00:00
David Hewitt 7549a21154
Merge pull request #3773 from davidhewitt/float-new-bound
add `PyFloat::new_bound`
2024-01-29 11:52:45 +00:00
David Hewitt 7f2d1d2aa5
Merge pull request #3772 from davidhewitt/dict-new-bound
add `PyDict::new_bound` without deprecation
2024-01-29 11:16:04 +00:00
David Hewitt 345e122bbf add `PyFloat::new_bound` 2024-01-29 11:06:34 +00:00
David Hewitt d4d08b24b0 add `PyDict::new_bound` without deprecation 2024-01-29 10:17:54 +00:00
David Hewitt c54d8976db
Merge pull request #3706 from davidhewitt/frompyobject2
Add `extract_bound` method to FromPyObject
2024-01-28 07:48:03 +00:00
David Hewitt ffaa03e3f1 Migrate some conversions to `extract_bound` 2024-01-28 07:22:51 +00:00
David Hewitt 595ca4b3c1 Add `extract_bound` method to `FromPyObject` 2024-01-28 07:22:51 +00:00
David Hewitt eb8d11f42f
Merge pull request #3769 from davidhewitt/remove-test-pep-587
remove `test_pep_587`
2024-01-27 22:33:35 +00:00