[pypy-issue] [issue1662] 'is' should be '==' in datetime.py

Kevin Duffy tracker at bugs.pypy.org
Tue Dec 17 19:30:23 CET 2013


New submission from Kevin Duffy <kmdext at apple.com>:

There are a few places in datetime.py where the 'is' operator is used but it should really be 
'=='. This can cause comparisons to fail even when two tzinfo's are equivalent.

Simple patch attached.

----------
files: pypy-datetime.patch
messages: 6424
nosy: kmdext, pypy-issue
priority: bug
release: 2.2
status: unread
title: 'is' should be '==' in datetime.py

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1662>
________________________________________


More information about the pypy-issue mailing list