Bottom Page

Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 suggested improvements.
str.count(sub[,start[,end]]) should allow a tuple of strings for sub, such that it counts any of the non-overlapping strings in the tuple. 'abcdef'.count(('ab','de')) -> 2 str.endswith() and str.startswith() already accept tuples. why not lists, or sets, or frozensets. this could also be done for str.find(), str.index(), str.rfind(), and str.rindex().
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  want suggested module for e-mail parsing Skaperen 0 219 Jul-26-2019, 08:52 PM
Last Post: Skaperen
  suggested change for all() and any() Skaperen 2 743 Aug-07-2018, 12:22 AM
Last Post: Skaperen

Forum Jump:

Users browsing this thread: 1 Guest(s)