New submission from Lance <lang.asnama@...>:
When I use the Google Calendar APIs and Tools, I test this function.
# \gdata\calendar\service.py, line 490
def _SetOrderBy(self, val):
if val is not 'lastmodified' and val is not 'starttime':
raise Error, "Order By must be either 'lastmodified' or 'starttime'"
self['orderby'] = val
I got error no matter what I passed to it.
Jython 2.5.0 (Release_2_5_0:6476, Jun 16 2009, 13:33:26)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_14
Type "help", "copyright", "credits" or "license" for more information.
>>> def t(v):
... if v is not 'a' and v is not 'b': return 'e'
... return 't'
...
>>> t('a')
'e'
>>> t('b')
'e'
>>> t('c')
'e'
>>>
----------
components: Core
messages: 5171
nosy: asnama
severity: critical
status: open
title: issue of the key word "is not"
type: behaviour
versions: 2.5.0
_______________________________________
Jython tracker <report@...>
<http://bugs.jython.org/issue1471>
_______________________________________
|