[IronPython] operator problem
Martin.Maly at microsoft.com
Wed Nov 30 02:46:00 CET 2005
Unfortunately, this is a bug in IronPython. The bit-wise or '|' is not implemented for all types.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Boris Capitanu
Sent: Tuesday, November 29, 2005 5:24 PM
To: users at lists.ironpython.com
Subject: [IronPython] operator problem
Any reason why the "|" operator in not supported in IronPython? I can see that "or" is supported, but I'd like to be able to say something like:
stateChanged |= menuChanged
This sort of assignment works under CPython, but not IronPython.
IronPython 0.9.5 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> True | False
Traceback (most recent call last):
TypeError: unsupported operand type(s) for |: 'bool'
>>> True or False
users mailing list
users at lists.ironpython.com
More information about the Ironpython-users