File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,7 @@ impl PyBaseObject {
284284 #[ pyslot]
285285 fn slot_init ( zelf : PyObjectRef , args : FuncArgs , vm : & VirtualMachine ) -> PyResult < ( ) > {
286286 let typ = zelf. class ( ) ;
287+ eprintln ! ( "called init of {}" , zelf. class( ) . name( ) ) ;
287288 if typ. slots . init . load ( ) . map_or ( 0 , |f| f as usize )
288289 == vm
289290 . ctx
@@ -326,6 +327,7 @@ impl PyBaseObject {
326327 if zelf. class ( ) . is ( vm. ctx . types . object_type ) {
327328 return Ok ( ( ) ) ;
328329 }
330+ eprintln ! ( "{:?}" , zelf. class( ) . name( ) ) ;
329331 let init = zelf
330332 . class ( )
331333 . mro_find_map ( |cls| cls. slots . init . load ( ) )
Original file line number Diff line number Diff line change @@ -494,6 +494,7 @@ impl PyType {
494494 update_slot ! ( descr_set, descr_set_wrapper) ;
495495 }
496496 _ if name == identifier ! ( ctx, __init__) => {
497+ eprintln ! ( "init of {:?}" , self . name( ) ) ;
497498 toggle_slot ! ( init, init_wrapper) ;
498499 }
499500 _ if name == identifier ! ( ctx, __new__) => {
You can’t perform that action at this time.
0 commit comments