Re: [Ironpython-users] Implicit conversion of objects to float

2012-02-27 Thread Vernon Cole
On Mon, Feb 27, 2012 at 9:20 AM, Jeff Hardy wrote: > ... > I added conversions from System.Decimal to decimal.Decimal in > 2.7.2, but I didn't think about implicit conversions of other types. > I'm thinking now that anything that's either a System.Decimal or > implicitly convertible to System.D

[Ironpython-users] IronPython 2.7.2 Beta 1 now available

2012-02-27 Thread Jeff Hardy
On behalf of the IronPython team, I'm happy to announce the first (and probably only) beta release of IronPython 2.7.2. Like all IronPython 2.7-series releases, *.NET 4 is required* to install it. Installing this release will replace any existing IronPython 2.7-series installation. Unlike previou

Re: [Ironpython-users] Implicit conversion of objects to float

2012-02-27 Thread Jeff Hardy
> On Fri, Feb 24, 2012 at 7:50 PM, Cesar Mello wrote: > I agree it may be error-prone. But there are valid scenarios where it is not. > Although implementing the arithmetic overloads allow me to mix DataValues and > floats in the same expressions, I am not able to initialize a Python's > Decima

Re: [Ironpython-users] Calling a method whose name is a Python keyword

2012-02-27 Thread Douglas S. Blank
> Hi, > > I answer my own question to get the solution into the archives: > >> I have a .NET object which exposes a method "import(some, parameters)" >> method. However, I cannot call this method as "import" is a reserved >> keyword in IronPython. How to call this method? > > The "__getattribute__"

[Ironpython-users] IronPython, Daily Digest 2/26/2012

2012-02-27 Thread no_reply
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] IronPython.Wpf.dll is not loaded as intended -- ISSUES 1. [New issue] IronPython.Wpf.dll is not loaded as intended http://ironpyt

Re: [Ironpython-users] Calling a method whose name is a Python keyword

2012-02-27 Thread Markus Schaber
Hi, I answer my own question to get the solution into the archives: > I have a .NET object which exposes a method "import(some, parameters)" > method. However, I cannot call this method as "import" is a reserved keyword > in IronPython. How to call this method? The "__getattribute__" method se

[Ironpython-users] Calling a method whose name is a Python keyword

2012-02-27 Thread Markus Schaber
Hi, I have a .NET object which exposes a method "import(some, parameters)" method. However, I cannot call this method as "import" is a reserved keyword in IronPython. How to call this method? Best regards Markus Schaber -- ___ We software Automation. 3S-Smart Software

Re: [Ironpython-users] Implicit conversion of objects to float

2012-02-27 Thread Markus Schaber
Hi, Cesar, In C#, there's one difference in the following line:   double sum = val1 + val2; Here, the compiler knows that the result of the expression should be double, and so it can search for implicit cast operators to double. In python, you just write sum = val1 + val2 So the co

Re: [Ironpython-users] Implicit conversion of objects to float

2012-02-27 Thread Markus Schaber
Hi, One other thing I forgot: If you want to create a Decimal out of your DataValue, you could add an implicit operator Decimal to your DataValue as a workaround instead. Best regards Markus Schaber -- ___ We software Automation. 3S-Smart Software Solutions GmbH Marku