Message1059

Author cupdike
Recipients
Date 2005-10-21.20:13:33
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
jython should return false when testing if a dictionary
is a sequence type, but it returns true.  Cpython
2.1-2.4 return false.

jython 2.1 and 2.2a2:

Jython 2.1 on java1.5.0_02 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> from operator import isSequenceType
>>> isSequenceType({})
1

cpython 2.1-2.4:
Python 2.1.1 (#20, Jul 20 2001, 01:19:29) [MSC 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license" for more
information.
>>> from operator import isSequenceType
>>> isSequenceType({})
0

This may be related to bug 738880 (which was fixed):
http://sourceforge.net/tracker/?group_id=12867&atid=112867&func=detail&aid=738880
History
Date User Action Args
2008-02-20 17:17:26adminlinkissue1334468 messages
2008-02-20 17:17:26admincreate