[IronPython] RE: users-ironpython.com Digest, Vol 13, Issue 31

Iain Mackay imm at iain-mackay.org
Wed Aug 24 19:37:39 CEST 2005


Thanks Geoff

Iain

-----Original Message-----
From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of
users-ironpython.com-request at lists.ironpython.com
Sent: 24 August 2005 16:48
To: users-ironpython.com at lists.ironpython.com
Subject: users-ironpython.com Digest, Vol 13, Issue 31


Send users-ironpython.com mailing list submissions to
	users-ironpython.com at lists.ironpython.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
or, via email, send a message with subject or body 'help' to
	users-ironpython.com-request at lists.ironpython.com

You can reach the person managing the list at
	users-ironpython.com-owner at lists.ironpython.com

When replying, please edit your Subject line so it is more specific than
"Re: Contents of users-ironpython.com digest..."


Today's Topics:

   1. RE: Math accuracy? (Keith J. Farmer)
   2. Re: TestAll.py & Mono 0.8.3 (Zoltan Varga)
   3. RE: TestAll.py & Mono 0.8.3 (Keith J. Farmer)
   4. RE: IronPython 0.9.1 released (Martin Maly)


----------------------------------------------------------------------

Message: 1
Date: Wed, 24 Aug 2005 04:01:58 -0700
From: "Keith J. Farmer" <kfarmer at thuban.org>
Subject: RE: [IronPython] Math accuracy?
To: "Discussion of IronPython"
	<users-ironpython.com at lists.ironpython.com>
Message-ID:
	<C02467D265F3F64E87DED53F9C3DE29C136ABB at nostromo.circle-cross.home>
Content-Type: text/plain; charset="us-ascii"

Or just:

                  if (Math.Truncate(c) == c && d == 0 && c >= 0)

                  {

                        return this.pow((int)c);

                  }

 

Where you uncomment some better code already provided, and adjust:

            internal Complex64 pow(int power)

            {

                  if (power == 0) return new Complex64(1, 0);

                  if (power < 0) throw new
ArgumentOutOfRangeException("power", power, "power must be >= 0");

                  Complex64 factor = this;

                  Complex64 result = new Complex64(1, 0); //!!! want a
mutable here for efficiency

                  while (power != 0)

                  {

                        if ((power & 1) != 0) result = result * factor;

                        factor = factor * factor;

                        power >>= 1;

                  }

                  return result;

            }

-----

Keith J. Farmer

kfarmer at thuban.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
/pipermail/users-ironpython.com/attachments/20050824/3763038e/attachment-000
1.html

------------------------------

Message: 2
Date: Wed, 24 Aug 2005 13:44:31 +0200
From: Zoltan Varga <vargaz at gmail.com>
Subject: Re: [IronPython] TestAll.py & Mono 0.8.3
To: Discussion of IronPython
	<users-ironpython.com at lists.ironpython.com>
Message-ID: <295e750a05082404446d7cba51 at mail.gmail.com>
Content-Type: text/plain; charset=WINDOWS-1252

                       Hi,

  Try 1.1.9 when its released.

               Zoltan

On 8/24/05, Keith J. Farmer <kfarmer at thuban.org> wrote:
>  
>  
> 
> Got bored, decided to run TestAll.py under IronPython (0.9 and 0.9.1), 
> under Mono (0.8.3), under Monad, under x64.
> 
> In contrast, TestAll.py passes when run under MS CLR.
> 
> Could the could-not-load errors be a matter of strong-name bindings 
> going on in IronPython?
> 
> -----
> 
> Keith J. Farmer
> 
> kfarmer at thuban.org
> 
>   
> 
> [kfarmer at dreamer] C:\Program Files (x86)\IronPython-0.9.1\Scripts
> 
> [20] # > mono 'C:\Program Files 
> `(x86`)\IronPython-0.9\bin\IronPythonConsole.exe' TestAll.py
> 
>   
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9\bin\IronPythonConsole.exe:1316):
> WARNING **: bblock split failed in ModuleDef::Generate
> 
>   
> 
> =======================================================
> 
> Testing ParrotBench suite long
> 
> =======================================================
> 
> ParrotBench !!! SKIP !!!
> 
> =======================================================
> 
> =======================================================
> 
> Testing Pystone suite long
> 
> =======================================================
> 
> Pystone !!! SKIP !!!
> 
> =======================================================
> 
> =======================================================
> 
> Testing IronPython suite long
> 
> Running Arithmetics ...    PASS 
> 
> Running Assert ...    PASS 
> 
> Running Attrs ...
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9\bin\IronPythonConsole.exe:1316):
> WARNING **: TypeRef ResolutionScope not yet handled (138)
> 
>   
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9\bin\IronPythonConsole.exe:1316):
> WARNING **: The class Enumerator could not be loaded, used in 
> C:\Program Files (x86)\IronPython-0.9\bin\IronPython.dll (token 
> 0x010000c0)
> 
>   
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9\bin\IronPythonConsole.exe:1316):
> WARNING **: The class System.StringSplitOptions could not be loaded, 
> used in C:\Program Files (x86)\IronPython-0.9\bin\IronPython.dll 
> (token 0x010000a3)
> 
>   
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9\bin\IronPythonConsole.exe:1316):
> WARNING **: Missing method Split in assembly C:\Program Files 
> (x86)\IronPython-0.9\bin\IronPython.dll, type String
> 
>   
> 
> Unhandled Exception: System.NullReferenceException: Object reference 
> not set toan instance of an object
> 
> in <0x00000> <unknown method>
> 
> in <0x000c2> IronPythonConsole.PythonCommandLine:RunFile
> (IronPython.Hosting.PythonEngine engine, System.String filename)
> 
> in <0x00131> IronPythonConsole.PythonCommandLine:Main
> (System.String[] rawArgs)
> 
>   
> 
> [kfarmer at dreamer] C:\Program Files (x86)\IronPython-0.9.1\Scripts
> 
> [21] # > mono 'C:\Program Files 
> `(x86`)\IronPython-0.9.1\bin\IronPythonConsole.exe'
> TestAll.py
> 
>   
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9.1\bin\IronPythonConsole.exe:1904):
> WARNING **: bblock split failed in ModuleDef::Generate
> 
>   
> 
> =======================================================
> 
> Testing ParrotBench suite long
> 
> =======================================================
> 
> ParrotBench !!! SKIP !!!
> 
> =======================================================
> 
> =======================================================
> 
> Testing Pystone suite long
> 
> =======================================================
> 
> Pystone !!! SKIP !!!
> 
> =======================================================
> 
> =======================================================
> 
> Testing IronPython suite long
> 
> Running Arithmetics ...    PASS 
> 
> Running Assert ...    PASS 
> 
> Running Attrs ...
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9.1\bin\IronPythonConsole.exe:1904):
> WARNING **: TypeRef ResolutionScope not yet handled (164)
> 
>   
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9.1\bin\IronPythonConsole.exe:1904):
> WARNING **: The class Enumerator could not be loaded, used in 
> C:\Program Files (x86)\IronPython-0.9.1\bin\IronPython.dll (token 
> 0x010000ac)
> 
>   
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9.1\bin\IronPythonConsole.exe:1904):
> WARNING **: The class System.StringSplitOptions could not be loaded, 
> used in C:\Program Files (x86)\IronPython-0.9.1\bin\IronPython.dll 
> (token
> 0x01000088) 
> 
>   
> 
> ** (C:\Program Files
> (x86)\IronPython-0.9.1\bin\IronPythonConsole.exe:1904):
> WARNING **: Missing method Split in assembly C:\Program Files 
> (x86)\IronPython-0.9.1\bin\IronPython.dll, type String
> 
>   
> 
> Unhandled Exception: System.NullReferenceException: Object reference 
> not set toan instance of an object
> 
> in <0x00000> <unknown method>
> 
> in <0x000c2> IronPythonConsole.PythonCommandLine:RunFile
> (IronPython.Hosting.PythonEngine engine, System.String filename)
> 
> in <0x00131> IronPythonConsole.PythonCommandLine:Main
> (System.String[] rawArgs)
> 
>   
> 
> [kfarmer at dreamer] C:\Program Files (x86)\IronPython-0.9.1\Scripts
> 
> [22] # > fepy TestAll.py
> 
> =======================================================
> 
> Testing ParrotBench suite long
> 
> =======================================================
> 
> ParrotBench !!! SKIP !!!
> 
> =======================================================
> 
> =======================================================
> 
> Testing Pystone suite long
> 
> =======================================================
> 
> Pystone !!! SKIP !!!
> 
> =======================================================
> 
> =======================================================
> 
> Testing IronPython suite long
> 
> Running Arithmetics ...    PASS 
> 
> Running Assert ...    PASS 
> 
> Running Attrs ...    PASS 
> 
> Running BigInt ...    PASS 
> 
> Running BindingTest ...    PASS 
> 
> Running Builtin ...    PASS 
> 
> Running calls ...    PASS 
> 
> Running Classes ...    PASS 
> 
> Running conversions ...    PASS 
> 
> Running Dictionary ...    PASS 
> 
> Running doc ...    PASS 
> 
> Running DocTest ...    PASS 
> 
> Running Dynamic ...    PASS 
> 
> Running errors ...    PASS 
> 
> Running Exceptions ...    PASS 
> 
> Running execfile ...    PASS 
> 
> Running Formatting ...    PASS 
> 
> Running Functions ...    PASS 
> 
> Running Generators ...    PASS 
> 
> Running Hosting ...    PASS 
> 
> Running Import ...    PASS 
> 
> Running ImportAs ...    PASS 
> 
> Running Index ...    PASS 
> 
> Running IndiceTest ...    PASS 
> 
> Running Inheritance ...    PASS 
> 
> Running Integers ...    PASS 
> 
> Running InTest ...    PASS 
> 
> Running Iterator ...    PASS 
> 
> Running Lists ...    PASS 
> 
> Running Loader ...    PASS 
> 
> Running Math ...    PASS 
> 
> Running Methods ...    PASS 
> 
> Running Operators ...    PASS 
> 
> Running ParserTest ...    PASS 
> 
> Running properties ...    PASS 
> 
> Running RangeTest ...    PASS 
> 
> Running Slice ...    PASS 
> 
> Running SuperDelegates ...    PASS 
> 
> Running Thread ...    PASS 
> 
> Running toimport ...    PASS 
> 
> Running Types ...    PASS 
> 
> Running Imp ...    PASS 
> 
> ----------------------------------------
> 
>  Test summary:   !!! SUCCESS !!! 
> 
> ----------------------------------------
> 
>  Tests ran: 42
> 
>  Success:   42 
> 
>  Failure:   0 
> 
> ----------------------------------------
> 
> =======================================================
> 
> IronPython !!! PASS !!!
> 
> =======================================================
> 
> =======================================================
> 
> Testing Python Regression suite long
> 
> =======================================================
> 
> Python Regression !!! SKIP !!!
> 
> =======================================================
> 
> *******************************************************
> 
> ParrotBench  SKIP
> 
> Pystone  SKIP
> 
> IronPython  PASS
> 
> Python Regression  SKIP
> 
> *******************************************************
> 
> ALL TESTS PASS
> 
> *******************************************************
> _______________________________________________
> users-ironpython.com mailing list
> users-ironpython.com at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> 
> 
>

------------------------------

Message: 3
Date: Wed, 24 Aug 2005 09:30:51 -0700
From: "Keith J. Farmer" <kfarmer at thuban.org>
Subject: RE: [IronPython] TestAll.py & Mono 0.8.3
To: "Discussion of IronPython"
	<users-ironpython.com at lists.ironpython.com>
Message-ID:
	<C02467D265F3F64E87DED53F9C3DE29C136ABC at nostromo.circle-cross.home>
Content-Type: text/plain;	charset="US-ASCII"

And when is that? ;)

-----
Keith J. Farmer // kfarmer at thuban.org
-----Original Message-----
From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of
Zoltan Varga

  Try 1.1.9 when its released.



------------------------------

Message: 4
Date: Wed, 24 Aug 2005 09:43:47 -0700
From: Martin Maly <martmaly at exchange.microsoft.com>
Subject: RE: [IronPython] IronPython 0.9.1 released
To: "Discussion of IronPython"
	<users-ironpython.com at lists.ironpython.com>
Message-ID:
	
<1DFB396200705E46B5338CA4B2E25BDE6CF85F at DF-BANDIT-MSG.exchange.corp.microsof
t.com>
	
Content-Type: text/plain; charset="us-ascii"

Hi Keith,

I believe that the colors were originally designed to run on the white
background (better for demos). To change them, I am convinced that code
change is needed at this point.

Running the generated exes ... the error you are getting, I believe, means
that the referenced dlls cannot be found. Solution for now is to have
ironpython dlls in the same directory. We need to add the correct references
into the generated exes to get this working. It will be part of our 'static
compilation' project in the future.

x.txt is a by-product of the test-suite. I'll fix the suite to delete the
temporary files. Snippets ... yes, release build doesn't generate snippets.

Thanks
Martin

-----Original Message-----
From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of
Keith J. Farmer
Sent: Tuesday, August 23, 2005 8:15 PM
To: Discussion of IronPython
Subject: RE: [IronPython] IronPython 0.9.1 released

I'm running on the x64 Framework.
Re ColorfulConsole:  the colors are dark, and difficult to view against
black.  Is there a way to set them?

Re Stand-alone .exe:  I see that .exe files are generated, but when I try to
execute them from explorer, it gives an error with the following information
sent to MS (for gui_winforms.py):
AppName: gui_winforms.exe      AppVer: 0.0.0.0     AppStamp:430be24e
ModName: kernel32.dll      ModVer: 5.2.3790.1830      ModStamp:42438b79
fDebug: 0       Offset: 000000000000dd30
Re TestAll.py:  It cannot find the IronPythonTest.dll when I run from the
command line.  If I run a second time, after compiling the solution, all
tests pass. If I try to run TestAll.exe, I get the same stand-alone .exe
error noted above. Also, I see an x.txt document containing "Hello"?
snippets.dll is back
-- do I need to build using Release to hide it again?
-----
Keith J. Farmer
kfarmer at thuban.org
-----Original Message-----
From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of
Martin Maly
Sent: Tuesday, 23 August 2005 16:13

* calling .Net methods with "ref" parameters is fixed
* del with parentheses is fixed: "del(x)"
* map called on array of strings now works
* static methods now display better __doc__ strings
* conversions from enums to integer types are implemented
* The EXEs we generate for simple winforms scripts now run standalone
* parrotrun.py is now included with the release to make running our full
test suite easier.
* Jim also changed the way we print exception traces and added the
"-X:ColorfulConsole" command line parameter

_______________________________________________
users-ironpython.com mailing list users-ironpython.com at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


------------------------------

_______________________________________________
users-ironpython.com mailing list users-ironpython.com at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


End of users-ironpython.com Digest, Vol 13, Issue 31
****************************************************





More information about the Ironpython-users mailing list