A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-June/004665.html below:

[Python-Dev] Re: stringobject question

[Python-Dev] Re: stringobject question [Python-Dev] Re: stringobject questionTrent Mick trentm@activestate.com
Wed, 14 Jun 2000 10:36:32 -0700
On Wed, Jun 14, 2000 at 10:43:45AM +0200, M . -A . Lemburg wrote:
> 
> I guess it's a bug... a subtle one though, because in a
> certain sense both 1 and 0 are acceptable. But since
> '' is considered to be false, I think that returning 0
> makes more sense.
> 
> I'll fix this to return 0 for emtpy strings and Unicode objects.

These are copied from Java, are they not? What do the Java equivalents
return?

Trent



-- 
Trent Mick
trentm@activestate.com



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4