File tree 4 files changed +371
-64
lines changed
4 files changed +371
-64
lines changed Original file line number Diff line number Diff line change @@ -302,10 +302,10 @@ where
302
302
unsafe { std:: mem:: transmute ( gil_ref) }
303
303
}
304
304
305
- // pub(crate) fn into_gil_ref(self) -> &'py T::AsRefTarget {
306
- // // Safety: self is a borrow over `'py`.
307
- // unsafe { self.py().from_borrowed_ptr(self.0.as_ptr()) }
308
- // }
305
+ pub ( crate ) fn into_gil_ref ( self ) -> & ' py T :: AsRefTarget {
306
+ // Safety: self is a borrow over `'py`.
307
+ unsafe { self . py ( ) . from_borrowed_ptr ( self . 0 . as_ptr ( ) ) }
308
+ }
309
309
}
310
310
311
311
impl < T > std:: fmt:: Debug for Borrowed < ' _ , ' _ , T > {
Original file line number Diff line number Diff line change @@ -34,3 +34,4 @@ pub use crate::types::list::PyListMethods;
34
34
pub use crate :: types:: mapping:: PyMappingMethods ;
35
35
pub use crate :: types:: sequence:: PySequenceMethods ;
36
36
pub use crate :: types:: string:: PyStringMethods ;
37
+ pub use crate :: types:: tuple:: PyTupleMethods ;
Original file line number Diff line number Diff line change @@ -304,5 +304,5 @@ pub(crate) mod set;
304
304
mod slice;
305
305
pub ( crate ) mod string;
306
306
mod traceback;
307
- mod tuple;
307
+ pub ( crate ) mod tuple;
308
308
mod typeobject;
You can’t perform that action at this time.
0 commit comments