summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_contains.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #445762: Support --disable-unicodeMartin v. Löwis2001-08-171-45/+48
| | | | | | | | - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
* Make 'x in y' and 'x not in y' (PySequence_Contains) play nice w/ iterators.Tim Peters2001-05-051-2/+2
| | | | | | | | | | | | | NEEDS DOC CHANGES A few more AttributeErrors turned into TypeErrors, but in test_contains this time. The full story for instance objects is pretty much unexplainable, because instance_contains() tries its own flavor of iteration-based containment testing first, and PySequence_Contains doesn't get a chance at it unless instance_contains() blows up. A consequence is that some_complex_number in some_instance dies with a TypeError unless some_instance.__class__ defines __iter__ but does not define __getitem__.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-65/+65
|
* Deviant1 didn't work as advertisedJeremy Hylton2000-04-271-4/+4
|
* add some more contains tests on the builtin typesJeremy Hylton2000-04-271-0/+47
|
* Marc-Andre Lemburg:Guido van Rossum2000-04-101-1/+58
| | | | * More test cases for test_contains.py.
* Add tests for char in string -- including required exceptions forGuido van Rossum2000-03-071-0/+23
| | | | non-char in string.
* Test cases for __contains__ code, by Moshe Zadka.Guido van Rossum2000-03-061-0/+41