What that is showing is that is and is not are doing nothing more than comparing the pointers of the objects in question (which are the location in memory for the objects if you are unfamiliar with what a pointer is; PyPy returns a unique number instead).
That translates is and is not to:
This is one of those instances where the tests took up more code than the implementation. 😄
As usual, the source code from this blog post can be found in my desugar project.
Subscribe to Tall, Snarky Canadian
Get the latest posts delivered right to your inbox
You've successfully subscribed to Tall, Snarky Canadian!