I’m running the ncolony tests with pypy so I can add PyPy support. I expected it to be a no-op — but turned out I have ingrained expectations that are no longer true: moreover, PyPy is right, and I’m wrong.
- “hello” is “hello” –> not necessarily true. PyPy does not intern strings like CPython does.
- file(name, ‘w’).write(“string”) is bad and you should not do that. PyPy is garbage collected, not ref counted, so the file might not be closed for a while.
That was it! It was actually a pleasant experience 🙂