[Python-Dev] Parrot -- should life imitate satire?

Tim Peters tim.one@home.com
Wed, 1 Aug 2001 00:47:35 -0400


[Moshe Zadka]
> PUSH "1"
> PUSH "2"
> BINARY_ADD
>
> In Python that gives "12". In Perl that gives 3.
> Unless you suggest a PERL_BINARY_ADD and a PYTHON_BINARY_ADD, I
> don't see how you can around these things.

Perl needs distinct flavors of BINARY_ADD for its infix "+" and "."
operators.  Once you accept that, there's no real problem here (it simply
means that Python's and Perl's "+" operators would need to map to different
opcodes).