[IronPython] true division?
garys at ihug.com.au
Fri Sep 22 02:15:13 CEST 2006
Aha! Many thanks John.
It would appear that there is indeed something of an unwritten law in
operation regarding IronPython, going something like:
"thou shalt always ensure that the CPython Lib be included on thine
----- Original Message -----
From: "John Machin" <sjmachin at lexicon.net>
To: "Discussion of IronPython" <users at lists.ironpython.com>
Sent: Friday, September 22, 2006 10:05 AM
Subject: Re: [IronPython] true division?
> On 22/09/2006 8:10 AM, Michael Foord wrote:
>> Gary Stephenson wrote:
>>> Thanks John (and Seo),
>>> When I attempt the same thing I get:
>> Of course. The correct syntax is:
>>>>> from __future__ import division
> Of course nothing.
> Gary's original problem has nothing to do with syntax; he used the
> correct syntax (from name1 import name2) but supplied an incorrect value
> (true_division, IIRC) for name2.
> In my whimsical advertisement for introspection, IronPython accepted the
> correct syntax (import name1). The difference between my whimsy outcome
> and Gary's is most likely because I've got the CPython Lib on my
> sys.path for IronPython, and he hasn't:
> | DOS_prompt>\ironpython\ipy
> | IronPython 1.0.60816 on .NET 2.0.50727.42
> | Copyright (c) Microsoft Corporation. All rights reserved.
> | >>> import __future__
> | >>> __future__.__file__
> | 'C:\\Python24\\Lib\\__future__.py'
> | >>>
> users mailing list
> users at lists.ironpython.com
More information about the Ironpython-users