Re: [IronPython] pybench support for IronPython

2006-09-22 Thread Anthony Baxter
On 9/23/06, anil <[EMAIL PROTECTED]> wrote: > i have dotnet > but i need help running this, if you can tell me how to do this See the message I just posted a couple of hours ago - if those patches don't make it work for you, please post the output of pybench --debug and I'll look into fixing it. _

Re: [IronPython] pybench support for IronPython

2006-09-22 Thread anil
i have dotnet but i need help running this, if you can tell me how to do this thanks Anil ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] Error using webpy in ironpython

2006-09-22 Thread anil
>>> import web Traceback (most recent call last): File , line 0, in ##22 File , line 0, in __import__##7 SyntaxError: from __future__ imports must occur at the beginning of the file (C: \Documents and Settings\Desktop\IronPython-1.0\Lib\web.py, line 9) >>> import web Traceback (most recent call

Re: [IronPython] Ironpython community edition built with Vis Studio

2006-09-22 Thread anil
just installed visual studio C# express edition and then built release wow was so easy Michael Foord wrote: > anil maran wrote: > > hi guys > > i m looking for ironpython community edition by seo sanghyeon built > > with VS, > > Is the one built with mono, comparable speed to the one wiht VS, i > >

Re: [IronPython] I got this error when I was trying to run ironpython in mono in fc5 pls help out

2006-09-22 Thread Anthony Baxter
Just grab the latest Mono from the Mono website, and install it to a different location (I use /app/mono/{version}/ ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] I got this error when I was trying to run ironpython in mono in fc5 pls help out

2006-09-22 Thread anil
Just downloaded from seo sanghyons site 1.0 Iron python 1.1.14 Mono that comes packaged with Fedora core 5. i tried to update to newer version using yumex and it gives errors saying it cant replace the old version, let me figure out how to install newer version Thanks Getting excited about mono an

[IronPython] pybench support for IronPython

2006-09-22 Thread Anthony Baxter
If you apply patches www.python.org/sf/1563842 and www.python.org/sf/1563844, you can run the pybench benchmark under IronPython. It requires a patched version of platform.py (the first of the two patches) and a patched version of Pybench. The latter is available in the Python source tree in Tools/

Re: [IronPython] I got this error when I was trying to run ironpython in mono in fc5 pls help out

2006-09-22 Thread J. Merrill
I probably can't help, but I know it matters to those who can (a) what version of Mono; (b) what version of IronPython? At 05:14 PM 9/22/2006, anil maran wrote > mono ipy.exe > >=== == >Got a SIGSEGV while executing native code. This usu

Re: [IronPython] I got this error when I was trying to run ironpython in mono in fc5 pls help out

2006-09-22 Thread Sanghyeon Seo
2006/9/23, anil maran <[EMAIL PROTECTED]>: > I got this error when I was trying to run ironpython in mono in fc5 pls help > out Do not use Mono 1.1.13.x, please, please. You can't use Mono as packaged in FC5 to run IronPython 1.0. It has no chance of working. Install Mono 1.1.17 or later. -- S

Re: [IronPython] Direct3D IronPython Sample

2006-09-22 Thread Nathan R. Ernst
The odd thing is that the third line did not allow me to do from Microsoft.DirectX import Direct3DX Not being terribly familiar with the DirectX 3D libs (I've only tinkered with the managed DirectSound wrappers), I would suggest the explanation is that the third assembly uses the same namespace.

Re: [IronPython] Direct3D IronPython Sample

2006-09-22 Thread drew moore
Dave Fugate wrote: > I believe you'll need the full SDK. If you try running the samples with only > the DirectX runtime you'll see something similar to the following: > >ipy.exe demo1.py >Traceback (most recent call last): > File E:\Ip\IronPython\Samples\Direct3D\demo1.py, line 17, in

Re: [IronPython] Direct3D IronPython Sample

2006-09-22 Thread Dave Fugate
I believe you'll need the full SDK. If you try running the samples with only the DirectX runtime you'll see something similar to the following: ipy.exe demo1.py Traceback (most recent call last): File E:\Ip\IronPython\Samples\Direct3D\demo1.py, line 17, in Initialize File , line 0

Re: [IronPython] true division?

2006-09-22 Thread John Machin
On 23/09/2006 1:41 AM, Martin Maly wrote: [big snip] > > So the actual difference is that IronPython doesn't ship out of the box with > the __future__.py module, otherwise, the behavior of both implementations is > identical. > > Hope this sheds some light on the "from __future__" behavior. A

[IronPython] I got this error when I was trying to run ironpython in mono in fc5 pls help out

2006-09-22 Thread anil maran
 mono ipy.exe=== ==Got a SIGSEGV while executing native code. This usually  indicatesa fatal error in the mono runtime or one of the native librariesused by your application.=== =

Re: [IronPython] Ironpython community edition built with Vis Studio

2006-09-22 Thread Michael Foord
anil maran wrote: > hi guys > i m looking for ironpython community edition by seo sanghyeon built > with VS, > Is the one built with mono, comparable speed to the one wiht VS, i > read somewhere in oreilly forums that vs is about 50times faster than > mono, > please clarify You should be able to

[IronPython] Ironpython community edition built with Vis Studio

2006-09-22 Thread anil maran
hi guysi m looking for ironpython community edition by seo sanghyeon built with VS, Is the one built with mono, comparable speed to the one wiht VS, i read somewhere in oreilly forums that vs is about 50times faster than mono,please clarifythanks a lotAnil___

Re: [IronPython] How to call a specific base class constructor?

2006-09-22 Thread Dino Viehland
The constructor is actually __new__, __init__ is merely an initializer which runs after constructor – which has no real analog in the .NET world.  Therefore you’ll want to override __new__ and pass in the values to the base __new__ that you want to use to construct the object with.  

Re: [IronPython] Arrays in IronPython

2006-09-22 Thread Dino Viehland
You can initialize the values on this like: Array[Array[int]]( ( (1,2), (2,3) ) ) (any sequence will do here, e.g. a list work too). If you want to create a true multi-dimensional array you can do: x = Array.CreateInstance(int, Array[int]( (1,2,3))) And then you can fill the values by hand: x

[IronPython] How to use FePy setup script

2006-09-22 Thread Sanghyeon Seo
Sorry, this is for UN*X users only, for now. Let's assume that you have IronPython-1.0 directory with IronPython release, and fepy directory with checkout of https://svn.sourceforge.net/svnroot/fepy/trunk/ $ cd IronPython-1.0 $ ../fepy/script/setup This will install (link) all my modules to Lib

[IronPython] SourceForge project is up

2006-09-22 Thread Sanghyeon Seo
http://fepy.sourceforge.net/ 'Nuf said. Check out with your favorite SVN client now! -- Seo Sanghyeon ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Access to IronPython version control

2006-09-22 Thread David Fraser
Hi Martin Not unless I'm blind :-) Maybe only for developers of the project? In any case Seo helped me: server should be https://tfs01.codeplex.com username should be your username + _cp password as normal domain should be SND But not sure of the workspace name although this could just be a permi

Re: [IronPython] Calling external API from IronPython

2006-09-22 Thread Ryan Dawson
The question is relevant, but this isn't supported directly from IronPython in 1.0. The workaround is to write a small wrapper library in VB or C# and call that from IronPython. The limitation is rooted in the fact that 1.0 doesn't support .NET attributes, like the DllImportAttribute. Possibl

Re: [IronPython] Access to IronPython version control

2006-09-22 Thread Martin Maly
If you go to the IronPython CodePlex "Source" page, in the upper right corner you'll see the settings for server, user name, port ... http://www.codeplex.com/SourceControl/ListDownloadableCommits.aspx?ProjectName=IronPython Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAI

Re: [IronPython] [Python-Dev] IronPython and AST branch

2006-09-22 Thread Guido van Rossum
On 9/17/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > One of the biggest issues I have with the current AST is that I don't believe > it really gets the "slice" and "extended slice" terminology correct (it uses > 'extended slice' to refer to multi-dimensional indexing, but the normal > meaning of t

[IronPython] Telnet API

2006-09-22 Thread Yan Manevich
Hello,   I want to connect through Telnet from Windows machine to UNIX machine and run some scripts on the last one. My question is if that is possible to work with Telnet from IronPython? Is there any API in IronPython like telnetlib in Python2.4.3?   Thank you in advance for you answe

[IronPython] How to call a specific base class constructor?

2006-09-22 Thread Ruxo Zheng
I'm customizing .NET ArrayList class like this:from System.Collections import ArrayListclass MyArrayList(ArrayList):    def __init__(self):       ArrayList.__init__(self, 256)test = MyArrayList()test.Capacity  // return 0It seems like default constructor is always called.   Did I incorrectly call

[IronPython] Calling external API from IronPython

2006-09-22 Thread David Anton
Is there a way to declare external API functions (non-assembly based) called from Python code? e.g., in VB, you'd do something like declare the following stub: Private Declare Function FriendlyName Lib "kernel32" Alias "ActualAPIFunctionName"(ByVal SomeString As String) As Integer e.g., in C#, y

[IronPython] Arrays in IronPython

2006-09-22 Thread David Anton
After a lot of googling on this, I'm still confused about .NET arrays (not Python lists) in IronPython. One dimensional arrays are clear: foo = Array[int] ((1,2)) But how to set up jagged arrays and multidimensional arrays? I know that IronPython is happy with the following (i.e., no error), but

Re: [IronPython] Direct3D IronPython Sample

2006-09-22 Thread psi
this requires the directx sdk, which is 500mb, but if you only want to run it, cant you get away with just the microsoft.directx assembly and the directx runtime? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/

Re: [IronPython] true division?

2006-09-22 Thread Martin Maly
Actually, the special-casing of the construct "from __future__ import whatever" is part of Python language definition and is detected by IronPython and CPython alike by parser/compiler in order to change code generation of division operator (for the division case), sometimes the __future__ impor

Re: [IronPython] compiling exe

2006-09-22 Thread Martin Maly
The exception that Anton is seeing means that the .NET runtime cannot locate assemblies (IronPython.dll and IronMath.dll) which the compiled executables depend on. They need to be in the same directory as the compiled executable for it to work.   The executables created via the pyc sample

Re: [IronPython] re.findall bug

2006-09-22 Thread Dino Viehland
Thanks for the bug report Seo. It looks like we're just not doing the same transform we do for the non-compiled case for the compiled case. I've opened CodePlex bug #3560 to track the issue (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=3560). -Original Mess

[IronPython] Access to IronPython version control

2006-09-22 Thread David Fraser
Hi I was trying today to access the IronPython source code repository - there doesn't seem to be much information online on CodePlex as to how to do this without using the Visual tool. Being more at home on the commandline and waiting for the 200MB+ download (doesn't seem to be possible to get the

Re: [IronPython] Line numbers missing from tracebacks with fepy 1.0, Mono 1.1.17

2006-09-22 Thread Dino Viehland
>From the IronPython side you can look at Ops.UpdateTraceBack. This is called >during fault blocks (catch & rethrow blocks in dynamic methods) to store line >number information when we have code that PDBs (or whatever Mono uses here) >don't provide the necessary debugging information. If this

Re: [IronPython] Line numbers missing from tracebacks with fepy 1.0, Mono 1.1.17

2006-09-22 Thread Anthony Baxter
On 9/22/06, Sanghyeon Seo <[EMAIL PROTECTED]> wrote: > 2006/9/22, Anthony Baxter <[EMAIL PROTECTED]>: > > Tracebacks appear to be missing line numbers on this install of > > Ironpython (it's the IPCE 1.0 version, running against Mono 1.1.17). > > Before I dig into this too far, is this a known issu

[IronPython] re.findall bug

2006-09-22 Thread Sanghyeon Seo
This only happens if you compile the pattern. To Mono users who don't get the same result as below: it's normal. Mono bug #79472. http://bugzilla.ximian.com/show_bug.cgi?id=79472 IronPython 1.0.60816 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> import re >>>

Re: [IronPython] compiling exe

2006-09-22 Thread Alexander Shafranov
Anton!Look at Pyc sample:http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython&title=SamplesAlexander. On 9/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: How to make exe a file?ipy -X:SaveAssemblies wfdemo.pywfdemo.exe not work.Exception: Just-In-Time Debugging"An exception System.IO.

Re: [IronPython] Line numbers missing from tracebacks with fepy 1.0, Mono 1.1.17

2006-09-22 Thread Sanghyeon Seo
2006/9/22, Anthony Baxter <[EMAIL PROTECTED]>: > Tracebacks appear to be missing line numbers on this install of > Ironpython (it's the IPCE 1.0 version, running against Mono 1.1.17). > Before I dig into this too far, is this a known issue? Yes, it is a known *Mono* issue. On Windows (32 bit) it w

[IronPython] Line numbers missing from tracebacks with fepy 1.0, Mono 1.1.17

2006-09-22 Thread Anthony Baxter
Tracebacks appear to be missing line numbers on this install of Ironpython (it's the IPCE 1.0 version, running against Mono 1.1.17). Before I dig into this too far, is this a known issue? Traceback (most recent call last): File chimp, line unknown, in Initialize File chimp, line unknown, in m