Commit graph

8 commits

Author SHA1 Message Date
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
Renamed from src/once_cell.rs (Browse further)