@@ -116,7 +116,7 @@ fn list_repr(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
116116 Ok ( vm. new_str ( s) )
117117}
118118
119- pub fn append ( vm : & mut VirtualMachine , args : PyFuncArgs ) -> PyResult {
119+ pub fn list_append ( vm : & mut VirtualMachine , args : PyFuncArgs ) -> PyResult {
120120 trace ! ( "list.append called with: {:?}" , args) ;
121121 arg_check ! (
122122 vm,
@@ -151,7 +151,7 @@ fn list_len(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
151151 Ok ( vm. context ( ) . new_int ( elements. len ( ) as i32 ) )
152152}
153153
154- fn reverse ( vm : & mut VirtualMachine , args : PyFuncArgs ) -> PyResult {
154+ fn list_reverse ( vm : & mut VirtualMachine , args : PyFuncArgs ) -> PyResult {
155155 trace ! ( "list.reverse called with: {:?}" , args) ;
156156 arg_check ! ( vm, args, required = [ ( list, Some ( vm. ctx. list_type( ) ) ) ] ) ;
157157 let mut list_obj = list. borrow_mut ( ) ;
@@ -192,7 +192,7 @@ pub fn init(context: &PyContext) {
192192 list_type. set_attr ( "__len__" , context. new_rustfunc ( list_len) ) ;
193193 list_type. set_attr ( "__new__" , context. new_rustfunc ( list_new) ) ;
194194 list_type. set_attr ( "__repr__" , context. new_rustfunc ( list_repr) ) ;
195- list_type. set_attr ( "append" , context. new_rustfunc ( append ) ) ;
195+ list_type. set_attr ( "append" , context. new_rustfunc ( list_append ) ) ;
196196 list_type. set_attr ( "clear" , context. new_rustfunc ( clear) ) ;
197- list_type. set_attr ( "reverse" , context. new_rustfunc ( reverse ) ) ;
197+ list_type. set_attr ( "reverse" , context. new_rustfunc ( list_reverse ) ) ;
198198}
0 commit comments