add __contains__ to collections
Bug #313233 reported by
Markus Korn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Triaged
|
Low
|
Unassigned |
Bug Description
In same cases I need to know if a resource-object is in a collection, it would be nice if launchpadlib could implement a __contains__ for collections. I think it would make sense to base this check on the self_link attribute of the entries.
As an example this should return True instead of False:
In [12]: thekorn = launchpad.
In [13]: bughelper_dev = launchpad.
In [14]: thekorn in bughelper_
Out[14]: False
Markus
Changed in launchpadlib: | |
importance: | Undecided → High |
status: | New → Triaged |
importance: | High → Medium |
Changed in launchpadlib: | |
importance: | Medium → Undecided |
importance: | Undecided → Low |
To post a comment you must log in.
Or, fixing it by implementing a solution for bug 264098 would be even better