On Mon, Jun 9, 2014 at 10:34 AM, Roy Smith <r...@panix.com> wrote:
> We noticed recently that: > > >>> None in 'foo' > > raises (at least in Python 2.7) > > TypeError: 'in <string>' requires string as left operand, not NoneType > > This is surprising. > > It's the same in 3.4, and I agree that it's surprising, at least to me . I don't know the story or implementation behind it, so I'll leave that to others.
-- https://mail.python.org/mailman/listinfo/python-list