Boo

chained comparisons

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 0.5.6
  • Fix Version/s: None
  • Component/s: Compiler, Parser
  • Labels:
    None
  • Number of attachments :
    0

Description

Python allows chaining comparisons like so:

weight = 400
print 0 < weight < 1000

a = b = c = object()
print a is b is c

http://docs.python.org/ref/comparisons.html

Issue Links

Activity

There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Doug H
Vote (1)
Watch (1)

Dates

  • Created:
    Updated: