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

SourceForge.net noreply@sourceforge.net
Wed, 26 Feb 2003 14:19:59 -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: None
Status: Open
Resolution: None
Priority: 5
Submitted By: A.M. Kuchling (akuchling)
Assigned to: Nobody/Anonymous (nobody)
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.

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

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