[Python-Dev] Re: stringobject question

Trent 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