use the fact that empty sequences are false for sequences(lists,strings,tuples)
Bug #1133094 reported by
shu, xinxin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Wishlist
|
shu, xinxin |
Bug Description
for sequences, use the fact that empty sequences are false
Yes: if not seq:
if seq:
No: if len(seq)
if not len(seq)
description: | updated |
description: | updated |
Changed in glance: | |
assignee: | nobody → shu, xinxin (xinxin-shu) |
Changed in glance: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | havana-1 → 2013.2 |
To post a comment you must log in.
There may be some places where this change is ok, but this is functionally different code.