Skip to content

Commit bef6014

Browse files
committed
dbg
1 parent 6591076 commit bef6014

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

vm/src/builtins/object.rs

+2
Original file line numberDiff line numberDiff 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())

vm/src/types/slot.rs

+1
Original file line numberDiff line numberDiff 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__) => {

0 commit comments

Comments
 (0)