File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,7 @@ impl PyBaseObject {
284
284
#[ pyslot]
285
285
fn slot_init ( zelf : PyObjectRef , args : FuncArgs , vm : & VirtualMachine ) -> PyResult < ( ) > {
286
286
let typ = zelf. class ( ) ;
287
+ eprintln ! ( "called init of {}" , zelf. class( ) . name( ) ) ;
287
288
if typ. slots . init . load ( ) . map_or ( 0 , |f| f as usize )
288
289
== vm
289
290
. ctx
@@ -326,6 +327,7 @@ impl PyBaseObject {
326
327
if zelf. class ( ) . is ( vm. ctx . types . object_type ) {
327
328
return Ok ( ( ) ) ;
328
329
}
330
+ eprintln ! ( "{:?}" , zelf. class( ) . name( ) ) ;
329
331
let init = zelf
330
332
. class ( )
331
333
. mro_find_map ( |cls| cls. slots . init . load ( ) )
Original file line number Diff line number Diff line change @@ -494,6 +494,7 @@ impl PyType {
494
494
update_slot ! ( descr_set, descr_set_wrapper) ;
495
495
}
496
496
_ if name == identifier ! ( ctx, __init__) => {
497
+ eprintln ! ( "init of {:?}" , self . name( ) ) ;
497
498
toggle_slot ! ( init, init_wrapper) ;
498
499
}
499
500
_ if name == identifier ! ( ctx, __new__) => {
You can’t perform that action at this time.
0 commit comments