Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93764 > unrolled thread

str.index() and str.find() versus only list.index()

Started byRoel Schroeven <roel@roelschroeven.net>
First post2015-07-13 18:56 +0200
Last post2015-07-13 18:56 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  str.index() and str.find() versus only list.index() Roel Schroeven <roel@roelschroeven.net> - 2015-07-13 18:56 +0200

#93764 — str.index() and str.find() versus only list.index()

FromRoel Schroeven <roel@roelschroeven.net>
Date2015-07-13 18:56 +0200
Subjectstr.index() and str.find() versus only list.index()
Message-ID<mailman.470.1436806619.3674.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web