Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93764
| From | Roel Schroeven <roel@roelschroeven.net> |
|---|---|
| Subject | str.index() and str.find() versus only list.index() |
| Date | 2015-07-13 18:56 +0200 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.470.1436806619.3674.python-list@python.org> (permalink) |
Hi, Quick question: why does str have both index() and find(), while list only has index()? Is there a reason for that, or is it just an historical accident? Best regards, Roel -- The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom. -- Isaac Asimov Roel Schroeven
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
str.index() and str.find() versus only list.index() Roel Schroeven <roel@roelschroeven.net> - 2015-07-13 18:56 +0200
csiph-web