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
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to