Browse Source
Per https://docs.python.org/3/reference/expressions.html#membership-test-operations For user-defined classes which define the contains() method, x in y returns True if y.contains(x) returns a true value, and False otherwise. Fixes issue #7884.pull/8563/head
Jon Bjarni Bjarnason
3 years ago
committed by
Damien George
2 changed files with 25 additions and 0 deletions
Loading…
Reference in new issue