[IronPython] tarfile module patch

2006-09-25 Thread Sanghyeon Seo
Submitted to CPython tracker: http://www.python.org/sf/1564981 -- Seo Sanghyeon ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Arrays in IronPython

2006-09-25 Thread David Anton
Thanks Dino. That's cleared up Python jagged arrays for me. Any idea what the Array[int][int] means? Iron Python is ok with it, but I can't figure out what it is (or how to initialize it). Dino Viehland wrote: You can initialize the values on this like: Array[Array[int]]( ( (1,2),

Re: [IronPython] Direct3D IronPython Sample

2006-09-25 Thread psi
i've also found; clr.AddReferenceByPartialName(Microsoft.DirectX.Direct3D) clr.AddReferenceByPartialName(Microsoft.DirectX.Direct3DX) by seaching msdn for info on the missing objects/types and noting the assembly bit by bit more of the framework.py script runs, without any new downloads,

[IronPython] Static methods

2006-09-25 Thread David Anton
Which of the following is considered more acceptable in the Python/IronPython community? Prefacing the method with: @staticmethod or following the method with: MyMethod = staticmethod(MyMethod) -- View this message in context: http://www.nabble.com/Static-methods-tf2327398.html#a6474908

[IronPython] Simulating namespaces

2006-09-25 Thread David Anton
Is this an acceptable way to simulate the type of namespace you'd define in C#, VB, etc? class SimulatedNamespace: class SomeClass(object): It seems to work ok in my tests, but is there some pitfall to doing this? -- View this message in context:

[IronPython] os.system equivalent

2006-09-25 Thread Erich Lin
Hi, I am looking for the equivalent of os.system(nt.system) for IronPython. Thanks ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] os.system equivalent

2006-09-25 Thread Erich Lin
Hi, I am trying to run a shell command, specifically msbuild, and pstools. nt.system and os.system run on python, but neither of those run on ironpython. How would you do this using IronPython. Thanks ___ users mailing list users@lists.ironpython.com

Re: [IronPython] Arrays in IronPython

2006-09-25 Thread Martin Maly
Array[int][int] is equivalent to Array[int]. Using this syntax, the type that takes effect is actually the type in the right-most brackets. For example: Array[int][str] is equivalent to Array[str] This is probably an unintentional (and admittedly confusing) behavior that we will look at fixing

Re: [IronPython] Arrays in IronPython

2006-09-25 Thread Alexey Borzenkov
On 9/23/06, David Anton [EMAIL PROTECTED] wrote: Any idea what the Array[int][int] means? Iron Python is ok with it, but I can't figure out what it is (or how to initialize it). Looks like second [int] just overrides previous [int]: from System import * a =

Re: [IronPython] Direct3D IronPython Sample

2006-09-25 Thread Nathan R. Ernst
The MSDN docs should tell you what namespace and assembly a particular class is in (there's a requirements section in the class overview that lists this. e.g. String is at http://msdn.microsoft.com/library/default.asp?url="">). You should check the GAC for the required assemblies. They won't

[IronPython] Strange slowness when loading IronPython.dll

2006-09-25 Thread Paul Felix
Hi, I'm running IronPython 1.0 on Windows XP: IronPython 1.0.60816 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. Something happened on my Windows XP box last week, and now when I start ipy.exe, the console window appears, but it takes ~15 seconds for the

Re: [IronPython] Simulating namespaces

2006-09-25 Thread Michael Foord
David Anton wrote: Is this an acceptable way to simulate the type of namespace you'd define in C#, VB, etc? class SimulatedNamespace: class SomeClass(object): It seems to work ok in my tests, but is there some pitfall to doing this? For pure Python code I'd use a

Re: [IronPython] Static methods

2006-09-25 Thread Michael Foord
David Anton wrote: Which of the following is considered more acceptable in the Python/IronPython community? Prefacing the method with: @staticmethod or following the method with: MyMethod = staticmethod(MyMethod) Since Python 2.4, the decorator is nicer. :-) Michael Foord

Re: [IronPython] os.system equivalent

2006-09-25 Thread Dino Viehland
The best replacement is probably nt.spawnl - it looks like this has been reported in the issue tracker over the weekend, and someone else has commented that it should be high-priority. So with 3 reports all at once I've gone ahead and moved this to high priority. Thanks for the bug report!

Re: [IronPython] os.system equivalent

2006-09-25 Thread Reed L. O'Brien
Dino Viehland wrote: The best replacement is probably nt.spawnl - it looks like this has been reported in the issue tracker over the weekend, and someone else has commented that it should be high-priority. So with 3 reports all at once I've gone ahead and moved this to high priority.

Re: [IronPython] os.system equivalent

2006-09-25 Thread HEMMI, Shigeru
Hello, 2006/9/25, Erich Lin [EMAIL PROTECTED]: I am looking for the equivalent of os.system(nt.system) for IronPython. How about making use of System.Diagnostics.Process.Start? E.g., import System System.Diagnostics.Process.Start('ipy.exe') System.Diagnostics.Process object at