Ticket #1 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Want Jython compatibility

Reported by: steve Assigned to: steve
Priority: normal Milestone:
Component: airspeed Version:
Severity: normal Keywords:
Cc:

Description

airspeed.ValueList? uses 'yield'; replace with list comprehension.

Change History

24/01/05 12:21:43 changed by steve

###############################################################################
# Compatibility for old Pythons & Jython
###############################################################################
try: dict
except NameError:
    from UserDict import UserDict
    class dict(UserDict):
        def __init__(self): self.data = {}
try: operator.__gt__
except AttributeError:
     operator.__gt__ = lambda a, b: a > b
     operator.__lt__ = lambda a, b: a < b
     operator.__ge__ = lambda a, b: a >= b
     operator.__le__ = lambda a, b: a <= b
     operator.__eq__ = lambda a, b: a == b
     operator.__ne__ = lambda a, b: a != b

27/01/05 17:21:26 changed by steve

  • status changed from new to closed.
  • resolution set to fixed.

Fixed by changeset [39]