Re: [IronPython] Reading Text files with open

2007-06-12 Thread Fuzzyman
John Messerly wrote: Actually, it's a result of System.Text.ASCIIEncoding, which replaces bytes greater than 0x7f with a question mark. I filed this as CodePlex work item #10983 (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=10983). Thanks. With CPython, the only

Re: [IronPython] Unable to integrate IronPython 1.1 with VS2005 standard edition

2007-06-12 Thread Tim Rowe
On 12/06/07, Dave Fugate [EMAIL PROTECTED] wrote: Does it still fail if you run msbuild IronPython.sln from a VS2005 or .NET SDK command prompt? Yes, it gives me the same VS error from the .NET SDK command prompt. The console gives me: Target SettingUpDevenv: C:\Program Files\Microsoft

[IronPython] -X:MTA fails in IP 2.0

2007-06-12 Thread Thane Plummer
-- C:\Python\IronPython-2.0A1ipy -X:MTA File -X:MTA does not exist. C:\Python\IronPython-2.0A1 -- This is unique to IPY 2.0, and is not seen in IPY 1.1 Also, -X:TabCompletion doesn't work in IPY 2.0

[IronPython] Newline oddities

2007-06-12 Thread Thane Plummer
IPY.exe 1.1 and 2.0 both emit the newline sequence as: \r\r\n (hex 0x000D 0x000D 0x000A) Instead of the more standard sequence of: \r\n(hex 0x000D 0x000A) This behavior is not seen in -X:TabCompletion mode in IPY 1.1. I know that there are a lot of irregularities in representing

Re: [IronPython] -X:MTA fails in IP 2.0

2007-06-12 Thread Dave Fugate
Thanks! Filed as CodePlex Work Item #11014 (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=11014). As for -X:TabCompletion, did you mean that it does not work for simple variable expansion (see http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=10928) or

Re: [IronPython] Newline oddities

2007-06-12 Thread Dave Fugate
I think the correct behavior would be to use os.linesep which is \r\n as you state: IronPython console: IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.1366 Copyright (c) Microsoft Corporation. All rights reserved. import os os.linesep '\r\n' Filed as CodePlex Work Item #11016

[IronPython] WPF objects not available?

2007-06-12 Thread mike arty
This question may be off-topic. I'm using IronPython to work w/Net. I recently installed the .Net 3.0 framework and the C# SDK, but the only object I have available in System.Windows is Forms. I'm not seeing any of the new WPF modules, .Media, etc... Any ideas? WPF is included w/the .Net 3.0

Re: [IronPython] WPF objects not available?

2007-06-12 Thread Simon Dahlbacka
If this is visual studio you're talking about, you'll probably need either Visual Studio 2005 extensions for .NET Framework 3.0 (WCF WPF), November 2006 CTP( http://www.microsoft.com/downloads/details.aspx?familyid=F54F5537-CC86-4BF5-AE44-F5A1E805680Ddisplaylang=en ) or beta 1 of Visual Studio

Re: [IronPython] Unable to integrate IronPython 1.1 with VS2005 standard edition

2007-06-12 Thread Dave Fugate
Sounds like this might be related to http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1055922SiteID=1 ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Rowe Sent: Tuesday, June 12, 2007 2:17 AM To: users@lists.ironpython.com Subject: Re:

Re: [IronPython] WPF objects not available?

2007-06-12 Thread Martin Maly
You need to add references to the WPF assemblies from IronPython. There's a section on how to use WPF from IronPython in the tutorial which is part of the distribution. The code you need is roughly (emphasizing roughly, because from module import * is best avoided for possible name clashes)

[IronPython] Command line

2007-06-12 Thread Iain
If I associate ipy.exe with *.py files then run the IronPython files directory I am not seeing any command line argument that I try to pass in to the script. I have a file called cmdline_test.py with the following two lines, import System print System.Environment.CommandLine If I run

Re: [IronPython] Command line

2007-06-12 Thread Iain
Looks like I've worked it out for myself. It looks like that is the behavior you will get if you use the 'Always open with this applications' option when you use 'Open With..' I fixed it by undoing that change and changing what was run for all Python.File types. Iain. Iain wrote: If I

Re: [IronPython] Command line

2007-06-12 Thread Martin Maly
That seems correct. If I read your message correctly, when you run the .py file directly and rely on the file association, the python file name will get passed to the ipy.exe as full path. It is consistent with what I am seeing with simple test using notepad: If, from command line I start

Re: [IronPython] Command line

2007-06-12 Thread Iain
What I didn't make clear was that the extra option (in this case the word test) was missing when using the file association. Iain. Martin Maly wrote: That seems correct. If I read your message correctly, when you run the .py file directly and rely on the file association, the python file

Re: [IronPython] Command line

2007-06-12 Thread John Messerly
The reason arguments aren't getting passed is because file associations by default only pass the file name, not any additional arguments. You can see the registry entry for the file association by running the following IPy code: # Reads the registry key containing the command to run for .py