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


Groups > comp.lang.python > #6370

Re: bug in str.startswith() and str.endswith()

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'bug': 0.02; 'subject:bug': 0.04; 'report.': 0.05; 'bug.': 0.07; 'slice': 0.07; "'this": 0.09; 'integers': 0.09; 'none)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:()': 0.09; 'wrote:': 0.14; 'bug?': 0.16; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'furman': 0.16; 'roy': 0.16; 'subject:() ': 0.16; 'traceback': 0.16; '(most': 0.16; 'subject:skip:s 10': 0.19; 'header:In-Reply-To:1': 0.21; 'indices': 0.23; 'last):': 0.23; 'received:84': 0.25; 'stefan': 0.29; 'none,': 0.30; 'typeerror:': 0.30; 'header:X-Complaints- To:1': 0.32; 'to:addr:python-list': 0.33; 'file': 0.34; 'header :User-Agent:1': 0.35; '"",': 0.35; 'none': 0.37; 'received:org': 0.38; 'subject:: ': 0.38; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'meaning': 0.40
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Stefan Behnel <stefan_ml@behnel.de>
Subject Re: bug in str.startswith() and str.endswith()
Date Fri, 27 May 2011 06:47:46 +0200
References <mailman.2136.1306451668.9059.python-list@python.org> <roy-E793ED.21131126052011@news.panix.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host dslb-084-056-041-079.pools.arcor-ip.net
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10
In-Reply-To <roy-E793ED.21131126052011@news.panix.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2144.1306471679.9059.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 82.94.164.166
X-Trace 1306471679 news.xs4all.nl 49176 [::ffff:82.94.164.166]:59863
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:6370

Show key headers only | View raw


Roy Smith, 27.05.2011 03:13:
>   Ethan Furman wrote:
>
>> -->  'this is a test'.startswith('this')
>> True
>> -->  'this is a test'.startswith('this', None, None)
>> Traceback (most recent call last):
>>     File "<stdin>", line 1, in<module>
>> TypeError: slice indices must be integers or None or have an __index__
>> method
> [...]
>> Any reason this is not a bug?
>
> +1 for it being a bug.

Meaning that the right thing to do at this point is to file a bug report.

Stefan

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


Thread

bug in str.startswith() and str.endswith() Ethan Furman <ethan@stoneleaf.us> - 2011-05-26 16:27 -0700
  Re: bug in str.startswith() and str.endswith() Mel <mwilson@the-wire.com> - 2011-05-26 21:07 -0400
  Re: bug in str.startswith() and str.endswith() Roy Smith <roy@panix.com> - 2011-05-26 21:13 -0400
    Re: bug in str.startswith() and str.endswith() Stefan Behnel <stefan_ml@behnel.de> - 2011-05-27 06:47 +0200
      Re: bug in str.startswith() and str.endswith() Roy Smith <roy@panix.com> - 2011-05-27 09:48 -0400

csiph-web