We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 617cdc9 commit b4d09e0Copy full SHA for b4d09e0
1 file changed
crates/vm/src/builtins/code.rs
@@ -650,6 +650,12 @@ impl PyCode {
650
vm.ctx.new_bytes(bytes.to_vec())
651
}
652
653
+ #[pygetset]
654
+ pub fn _co_code_adaptive(&self, vm: &VirtualMachine) -> crate::builtins::PyBytesRef {
655
+ // RustPython doesn't have adaptive/specialized bytecode, so return regular co_code
656
+ self.co_code(vm)
657
+ }
658
+
659
#[pygetset]
660
pub fn co_freevars(&self, vm: &VirtualMachine) -> PyTupleRef {
661
let names = self
0 commit comments