[Python-bugs-list] [ python-Bugs-693955 ] Can't multiply str and bool

SourceForge.net noreply@sourceforge.net
Mon, 03 Mar 2003 10:29:28 -0800


Bugs item #693955, was opened at 2003-02-26 17:19
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=693955&group_id=5470

Category: Python Interpreter Core
>Group: Not a Bug
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: A.M. Kuchling (akuchling)
Assigned to: A.M. Kuchling (akuchling)
Summary: Can't multiply str and bool

Initial Comment:
Bug in 2.3a2+: 'abc' * True raises a TypeError:
unsupported operand type(s) for *: 'str' and 'bool' .

site.py does:  initial_slashes = path.startswith('/');
  path = '/'*initial_slashes + path .
This now fails.

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2003-03-03 13:29

Message:
Logged In: YES 
user_id=11375

I can't replicate it, so presumably my tree got messed up at some point.


----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2003-02-28 21:23

Message:
Logged In: YES 
user_id=11375

Hm... puzzling.  I'll try to replicate it tomorrow, and will
close the bug if I can't.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-02-28 20:36

Message:
Logged In: YES 
user_id=80475

C:\pydev>python
I cannot reproduce the bug:

Python 2.3a2+ (#39, Feb 28 2003, 02:20:12) [MSC 
v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more 
information.
>>> 'abc' * True
'abc'


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=693955&group_id=5470