[Python-Dev] Why is there still a PRINT_EXPR opcode in Python 3? (original) (raw)
skip at pobox.com skip at pobox.com
Mon Jan 5 00:36:38 CET 2009
- Previous message: [Python-Dev] Why is there still a PRINT_EXPR opcode in Python 3?
- Next message: [Python-Dev] Why is there still a PRINT_EXPR opcode in Python 3?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>> Since print is now a builtin function why is there still a PRINT_EXPR
>> opcode?
Benjamin> I believe it's used in the interactive interpreter to display
Benjamin> the repr of an expression.
Wouldn't it make more sense for the interactive interpreter to call
print(repr(expr))
?
Skip
- Previous message: [Python-Dev] Why is there still a PRINT_EXPR opcode in Python 3?
- Next message: [Python-Dev] Why is there still a PRINT_EXPR opcode in Python 3?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]