@@ -114,7 +114,7 @@ impl PyClassRef {
114114
115115 fn getattribute ( self , name_ref : PyStringRef , vm : & VirtualMachine ) -> PyResult {
116116 let name = & name_ref. value ;
117- trace ! ( "type.__getattribute__({:?}, {:?})" , self , name) ;
117+ vm_trace ! ( "type.__getattribute__({:?}, {:?})" , self , name) ;
118118 let mcl = self . class ( ) ;
119119
120120 if let Some ( attr) = class_get_attr ( & mcl, & name) {
@@ -241,7 +241,7 @@ pub fn issubclass(subclass: &PyClassRef, cls: &PyClassRef) -> bool {
241241}
242242
243243pub fn type_new ( vm : & VirtualMachine , args : PyFuncArgs ) -> PyResult {
244- debug ! ( "type.__new__ {:?}" , args) ;
244+ vm_trace ! ( "type.__new__ {:?}" , args) ;
245245 if args. args . len ( ) == 2 {
246246 Ok ( args. args [ 1 ] . class ( ) . into_object ( ) )
247247 } else if args. args . len ( ) == 4 {
@@ -265,7 +265,7 @@ pub fn type_new_class(
265265}
266266
267267pub fn type_call ( class : PyClassRef , args : Args , kwargs : KwArgs , vm : & VirtualMachine ) -> PyResult {
268- debug ! ( "type_call: {:?}" , class) ;
268+ vm_trace ! ( "type_call: {:?}" , class) ;
269269 let new = class_get_attr ( & class, "__new__" ) . expect ( "All types should have a __new__." ) ;
270270 let new_wrapped = vm. call_get_descriptor ( new, class. into_object ( ) ) ?;
271271 let obj = vm. invoke ( new_wrapped, ( & args, & kwargs) ) ?;
@@ -353,7 +353,7 @@ fn take_next_base(mut bases: Vec<Vec<PyClassRef>>) -> Option<(PyClassRef, Vec<Ve
353353}
354354
355355fn linearise_mro ( mut bases : Vec < Vec < PyClassRef > > ) -> Option < Vec < PyClassRef > > {
356- debug ! ( "Linearising MRO: {:?}" , bases) ;
356+ vm_trace ! ( "Linearising MRO: {:?}" , bases) ;
357357 let mut result = vec ! [ ] ;
358358 loop {
359359 if ( & bases) . iter ( ) . all ( Vec :: is_empty) {
0 commit comments