1.1 --- a/micropython/trans.py Tue Jun 02 20:17:59 2009 +0200
1.2 +++ b/micropython/trans.py Wed Jun 03 00:48:57 2009 +0200
1.3 @@ -826,19 +826,16 @@
1.4
1.5 if target is None:
1.6
1.7 - # Skip adjustment and tests if a class is being invoked.
1.8 -
1.9 - self.new_op(temp_target)
1.10 - self.new_op(CheckClass())
1.11 - self.new_op(JumpIfTrue(continue_block))
1.12 -
1.13 - # Adjust the frame is no usable context is provided.
1.14 + # Adjust the frame if a replaceable context is provided.
1.15
1.16 self.new_op(temp_context)
1.17 self.new_op(CheckContext())
1.18 self.new_op(JumpIfFalse(adjust_block))
1.19
1.20 # Skip adjustment and tests if the context is not a class.
1.21 + # Classes themselves employ a placeholder context so that
1.22 + # instantiators can be callable with a context which will be
1.23 + # overwritten in the frame.
1.24
1.25 self.new_op(temp_context)
1.26 self.new_op(CheckClass())