caught a close call bug with object comprehensions and not specifying the value

This commit is contained in:
Jeremy Ashkenas
2010-01-10 17:44:19 -05:00
parent bb5bf7f94f
commit 24408c785a
5 changed files with 22 additions and 19 deletions

View File

@@ -5,7 +5,7 @@ print(results.join(',') is '2,18')
obj: {one: 1, two: 2, three: 3}
names: key + '!' for key, value ino obj
names: key + '!' for key ino obj
odds: key + '!' for key, value ino obj when value % 2 isnt 0
print(names.join(' ') is "one! two! three!")