3 ms·
What are examples of those semantics? I'm guessing rebindable functions (and a single function/variable namespace), eval(), and object members available as a d
by throw10920 1y ago
What are examples of those semantics? I'm guessing rebindable functions (and a single function/variable namespace), eval(), and object members available as a dict.
- hmry 1y agoSome examples that come to mind: You can inspect the call stack, and get a list of local variables of your callers. You can assign to object.__class__ to dynamically change an existing object's class at runtime. You can overwrite every operator, including obj.field access, dynamically at runtime (including changing an existing class)
- homarp 1y agoa long time ago, there was Parrot and a bet with Guido https://justatheory.com/2004/08/oscon-notes/ https://justatheory.com/2004/08/oscon-notes/