Icxolu
5749a08b63
ci: updates for Rust 1.79 ( #4244 )
...
* ci: updates for Rust 1.79
* ci: fix beta clippy
* ci: fix `dead_code` warning on nightly
2024-06-13 18:24:13 +00:00
David Hewitt
336b1c982b
add import_exception_bound!
macro ( #4027 )
...
* add `import_exception_bound!` macro
* newsfragment and tidy up
2024-03-31 19:55:31 +00:00
David Hewitt
caf80eca66
handle clippy new_without_default
warnings ( #3971 )
...
* handle clippy `new_without_default` warnings
* add newsfragment
2024-03-19 21:41:27 +00:00
Icxolu
ee89b2e8e2
deprecate wrap_pyfunction
with py
argument ( #3954 )
...
* deprecate `wrap_pyfunction` with `py` argument
The Python token in `wrap_pyfunction` is not handled automatically by
`WrapPyFunctionArg`, for backwards compatibility. This uses deref
specialization to deprecate this variant.
* merge `Extractor`s
* add deprecation ui test, revert closure variant due to test failure
* fix nightly
2024-03-12 22:57:03 +00:00
David Hewitt
9145fcfe19
docs: major rewrite for Bound API ( #3906 )
...
* wip bound docs
* Update guide/src/python_from_rust/calling-existing-code.md
Co-authored-by: Lily Foote <code@lilyf.org>
* continue to move and tidy up
* Apply suggestions from code review
Co-authored-by: Lily Foote <code@lilyf.org>
* update URL
* complete python-from-rust.md
* progress on types.md; probably more to go
* update doctest paths
* review: Icxolu
* finish updating `types.md` to Bound API
* update remainder of the guide to Bound API
* Update guide/src/performance.md
Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>
* Update guide/src/types.md
Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>
* Update src/lib.rs
* review: Icxolu
* Update guide/src/python-from-rust.md
Co-authored-by: Adam Reichold <adamreichold@users.noreply.github.com>
* Update guide/src/async-await.md
Co-authored-by: Adam Reichold <adamreichold@users.noreply.github.com>
* review: adamreichold
---------
Co-authored-by: Lily Foote <code@lilyf.org>
Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>
Co-authored-by: Adam Reichold <adamreichold@users.noreply.github.com>
2024-03-10 15:51:51 +00:00
David Hewitt
4efc4b82a3
ci: fix redundant import warnings on nightly ( #3873 )
2024-02-19 22:07:05 +00:00
Icxolu
0c12d9137f
port Python::import
to Bound
API ( #3832 )
...
* port `Python::import` to `Bound` API
* tidy up imports in tests/test_datetime_import.rs
---------
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
2024-02-14 00:24:37 +00:00
Icxolu
c359f5ca1d
deprecate PyDict::new
constructor ( #3823 )
...
* deprecate `PyDict::new`
* update benchmarks
* convert `test_frompyobject`
2024-02-11 23:55:56 +00:00
David Hewitt
367eeaeeab
add bound
method variants for PyTypeInfo
2024-02-08 22:27:05 +00:00
David Hewitt
2f00eb1423
for now just change return type of intern!
2024-01-30 13:28:07 +00:00
David Hewitt
aa139ad422
add intern_bound!
macro
2024-01-30 10:58:19 +00:00
David Hewitt
1657109ae0
documentation updates for PyList::new_bound
2024-01-27 21:12:55 +00:00
Adam Reichold
c1f4db0a9b
Increase use of common get_or_try_init_type_ref helper when caching type objects.
2023-12-21 11:33:25 +01:00
Nathan Kent
3249feb85c
Enable GILProtected
access via PyVisit
...
Closes #3615
This simply adds a new method which uses the existence of a `PyVisit`
object as proof that the GIL is held instead of a `Python` object. This
allows `GILProtected` to be used in instances where contained Python
objects need to participate in garbage collection. Usage in this
situation should be valid since no Python calls are made and this does
not provide any additional mechanism for accessing a `Python` object.
2023-12-05 11:10:00 -08:00
Joseph Perez
1fd4090bd4
refactor: remove useless unsafe
in get_mut
2023-10-29 13:50:36 +01:00
Joseph Perez
bb1cc93797
feat: add take
and into_inner
methods to GILOnceCell
2023-10-29 08:33:04 +01:00
David Hewitt
8a60540e25
amend code for PyDict::get_item
change
2023-09-09 12:23:06 +01:00
Maximilian Hils
980f05a88e
Add IpAddr
<-> ipaddress.IPv(4/6)Address
conversion
2023-06-08 13:17:45 +02:00
Adam Reichold
9534749d8b
Add GILProtected synchronization primitive replacement and use it for LazyTypeObjectInner.
2023-02-23 09:38:02 +01:00