File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1219,7 +1219,7 @@ mod array {
1219
1219
fn as_buffer ( zelf : & PyObjectView < Self > , _vm : & VirtualMachine ) -> PyResult < PyBuffer > {
1220
1220
let array = zelf. read ( ) ;
1221
1221
let buf = PyBuffer :: new (
1222
- zelf. to_owned ( ) . into_object ( ) ,
1222
+ zelf. to_owned ( ) . into ( ) ,
1223
1223
BufferDescriptor :: format (
1224
1224
array. len ( ) * array. itemsize ( ) ,
1225
1225
false ,
Original file line number Diff line number Diff line change 1
1
//! Builtin function definitions.
2
2
//!
3
3
//! Implements the list of [builtin Python functions](https://docs.python.org/3/library/builtins.html).
4
- use crate :: { PyObjectRef , VirtualMachine } ;
4
+ use crate :: { PyClassImpl , PyObjectRef , VirtualMachine } ;
5
5
6
6
/// Built-in functions, exceptions, and other objects.
7
7
///
@@ -917,7 +917,9 @@ pub use builtins::{ascii, print};
917
917
pub fn make_module ( vm : & VirtualMachine , module : PyObjectRef ) {
918
918
let ctx = & vm. ctx ;
919
919
920
- builtins:: extend_module ( vm, & module) ;
920
+ crate :: protocol:: VecBuffer :: make_class ( & vm. ctx ) ;
921
+
922
+ let _ = builtins:: extend_module ( vm, & module) ;
921
923
922
924
let debug_mode: bool = vm. state . settings . optimize == 0 ;
923
925
extend_module ! ( vm, module, {
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ pub struct TypeZoo {
81
81
pub none_type : PyTypeRef ,
82
82
pub not_implemented_type : PyTypeRef ,
83
83
pub generic_alias_type : PyTypeRef ,
84
- pub vec_buffer_type : PyTypeRef ,
85
84
}
86
85
87
86
impl TypeZoo {
@@ -168,7 +167,6 @@ impl TypeZoo {
168
167
none_type : singletons:: PyNone :: init_bare_type ( ) . clone ( ) ,
169
168
not_implemented_type : singletons:: PyNotImplemented :: init_bare_type ( ) . clone ( ) ,
170
169
generic_alias_type : genericalias:: PyGenericAlias :: init_bare_type ( ) . clone ( ) ,
171
- vec_buffer_type : crate :: protocol:: VecBuffer :: init_bare_type ( ) . clone ( ) ,
172
170
}
173
171
}
174
172
You can’t perform that action at this time.
0 commit comments