Ezio Melotti <[email protected]> added the comment: The fact that "is" works in this way here is just an implementation detail. If you want to compare strings use ==, "is" is used to verify if two variables refer to the same object or not.
>>> x = 100 >>> x is 100 True >>> x = 1000 >>> x is 1000 False ---------- nosy: +ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue11773> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
