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


Groups > comp.lang.python > #83248

Re: problem with for and if

Date 2015-01-05 22:57 +0800
From Shiyao Ma <i@introo.me>
Subject Re: problem with for and if
References <a71e126d-4b27-42a3-8103-3381b62794d2@googlegroups.com> <20150105143802.GB45241@FuzzyHorror>
Newsgroups comp.lang.python
Message-ID <mailman.17399.1420469867.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Jan 05 at 22:38 +0800, Shiyao Ma wrote:

> More preferably, you should repetitively use "str.find"
>
> Or just use `max(0,len(zmienna.split(szukana))-1)`

Forgot there was a `str.count`, ;).

-- 
Shiyao Ma
http://introo.me

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

problem with for and if Dariusz Mysior <mysior.darek@gmail.com> - 2015-01-05 06:27 -0800
  Re: problem with for and if Shiyao Ma <i@introo.me> - 2015-01-05 22:38 +0800
  Re: problem with for and if YBM <ybmess@nooos.fr.invalid> - 2015-01-05 15:39 +0100
  Re: problem with for and if Chris Warrick <kwpolska@gmail.com> - 2015-01-05 15:41 +0100
  Re: problem with for and if Dariusz Mysior <mysior.darek@gmail.com> - 2015-01-05 06:47 -0800
  Re: problem with for and if MRAB <python@mrabarnett.plus.com> - 2015-01-05 14:48 +0000
  Re: problem with for and if Shiyao Ma <i@introo.me> - 2015-01-05 22:57 +0800
  Re: problem with for and if Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-06 12:12 +1100

csiph-web