Re: [pypy-dev] Here's a fun one...
Hi Dino, On Thu, Sep 1, 2011 at 7:07 PM, Dino Viehland di...@microsoft.com wrote: Ahh yeah, I think I had some weird 1.5 build on my laptop where I tried it. Guess it's time to upgrade. Same in 1.6, but I fixed it in default today. Armin ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev
[pypy-dev] Here's a fun one...
This came up on an internal discussion, I thought it was fun, especially given that we all behave differently: Paste this into the REPL: class PS1(object): def __init__(self): self.count = 0 def __str__(self): self.count += 1 return %d % self.count import sys sys.ps1 = PS1() CPython - calls __str__ Jython - calls __repr__ IronPython - ignores ps1 PyPy - unsupported operand type for unary buffer: 'PS1' (note I don't necessarily have the latest versions for everyone) ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev