Message1059
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 |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:26 | admin | link | issue1334468 messages |
2008-02-20 17:17:26 | admin | create | |
|