This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Jon.Oberheide, neologix, r.david.murray, sbt, vstinner
Date 2012-04-12.06:41:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwavDhPNNzR3VmqdAN6DoiE73YXZhquOr6OnvEf+RRWdOw@mail.gmail.com>
In-reply-to <1334205843.96.0.506487045653.issue14532@psf.upfronthosting.co.za>
Content
+def time_independent_equals(a, b):
+    if len(a) != len(b):
+        return False

This is not time independent. Is it an issue?

+    if type(a[0]) is int:

It's better to write isinstance(a, bytes). You should raise a
TypeError if a is not a bytes or str.
History
Date User Action Args
2012-04-12 06:41:13vstinnersetrecipients: + vstinner, r.david.murray, neologix, sbt, Jon.Oberheide
2012-04-12 06:41:11vstinnerlinkissue14532 messages
2012-04-12 06:41:11vstinnercreate