[IronPython] str * bool

Sanghyeon Seo sanxiyn at gmail.com
Thu Dec 29 23:51:32 PST 2005


A bug report. I think this is a bit nasty, but str * bool should be allowed:

$ ./ip
IronPython 0.9.6 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import posixpath
>>> posixpath.normpath('/a')
Traceback (most recent call last):
in <0x00928> IronPython.Objects.Ops:Multiply (System.Object x, System.Object y)
in <0x003ae> posixpath:normpath$f120 (System.Object path)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_object_object (object)
in <0x00020> IronPython.Objects.Function1:Call (System.Object arg0)
in <0x00052> IronPython.Objects.Ops:Call (System.Object func,
System.Object arg0)
in <0x0004f> input_7:Run (IronPython.Objects.Frame frame)
in <0x002ba> IronPython.Hosting.PythonEngine:DoOneInteractive
(IronPython.Objects.Frame topFrame)
in <0x00047> IronPython.Hosting.PythonEngine:RunInteractive ()
TypeError: unsupported operand type(s) for *: 'str' and 'bool'
>>>

Seo Sanghyeon


More information about the users mailing list