Re: [IronPython] How to place static class in script name space

2011-06-13 Thread Dino Viehland
We specifically allow from staticclass import * because we treat a static class as if it were like a module. So you could simply run that line of code in the scope on behalf of the user. Otherwise you'll need to re-create getting the dynamic members and then setting them in the scope. Then

Re: [IronPython] Seattle IronPython Meetup

2011-06-10 Thread Dino Viehland
I'd be up for it - personally I'd prefer downtown but I could drive to the east side if that's preferable. -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Friday, June 10, 2011 10:43 AM To:

Re: [IronPython] Dispatcher Problem

2011-06-06 Thread Dino Viehland
AndyF wrote: Hi Chaps I have attempted to purloin some of the code shipped with IP in Action and, following issues, I have even gone to the lengths of reading the book! I am getting the error 'expect Delegate, got Function' when I use the following code. FYI I am passing in a reference to

Re: [IronPython] Moving forward on 2.7.1

2011-05-31 Thread Dino Viehland
I have a few bugs I wanted to get fixed so I'll actually start working on those :) -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Tuesday, May 31, 2011 2:27 PM To: Discussion of IronPython

Re: [IronPython] Issue reading an InternalDictionary, Overloads fails with 2147483647 arguments bug.

2011-05-23 Thread Dino Viehland
I think your .Overloads needs to be: .Overloads[Action[Avatar]] Or maybe: .Overloads[InternalDictionary[UInt32, Avatar], Avatar] -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Intertricity Sent: Monday, May 23,

Re: [IronPython] Issue reading an InternalDictionary, Overloads fails with 2147483647 arguments bug.

2011-05-23 Thread Dino Viehland
(temp.ForEach.Overloads[Action[Avatar]](lambda x: x.FirstName)) type 'NoneType' # On May 23, 12:56 pm, Dino Viehland di...@microsoft.com wrote: I think your .Overloads needs to be: .Overloads[Action[Avatar]] Or maybe: .Overloads[InternalDictionary[UInt32, Avatar], Avatar

Re: [IronPython] socket, _socket, and socket.py

2011-05-17 Thread Dino Viehland
There is actually more of a story to this though - Cpython's socket.py relies upon reference counting for handling dup. See this comment from socket.py: # Wrapper around platform socket objects. This implements # a platform-independent dup() functionality. The # implementation currently relies

Re: [IronPython] socket, _socket, and socket.py

2011-05-17 Thread Dino Viehland
might get us closer? On 5/17/2011 6:06 PM, Dino Viehland wrote: There is actually more of a story to this though - Cpython's socket.py relies upon reference counting for handling dup. See this comment from socket.py: # Wrapper around platform socket objects. This implements

Re: [IronPython] clr.ImportExtensions are not available outside module ?

2011-05-12 Thread Dino Viehland
Daniel wrote: Just as Dave Wald, I have also trying out the ImportExtensions methods which I personally find very useful, thank you for implementing. Everything is working fine on using 2.7 (and .net 4), but extension methods loaded by one module seem not available on another... This is by

Re: [IronPython] clr.ImportExtensions are not available outside module ?

2011-05-12 Thread Dino Viehland
Message From: Dino Viehland di...@microsoft.com To: Discussion of IronPython users@lists.ironpython.com Sent: Thu, May 12, 2011 1:01:33 PM Subject: Re: [IronPython] clr.ImportExtensions are not available outside module ? Daniel wrote: Just as Dave Wald, I have also trying out

Re: [IronPython] pytest results in unsupported PythonDictionary system error

2011-05-12 Thread Dino Viehland
Piotr wrote: Hi This is for IronPython 2.7 Pytest 2.0.3 installed in site-packages Running a test with pytest results in the following system error: SystemError: Unsupported param dictionary type: IronPython.Runtime.PythonDictionary Any ideas what the problem is?

[IronPython] Python Tools for Visual Studio now accepting contributions

2011-05-11 Thread Dino Viehland
We've been in a difficult place with having two sets of tools for Visual Studio that both work with IronPython. Those are the existing IronPython Tools that shipped w/ 2.7 and the newer Python Tools for Visual Studio which are derived from the original IronPython code base. To make things

Re: [IronPython] Python Tools for Visual Studio now accepting contributions

2011-05-11 Thread Dino Viehland
Keith wrote: Please forgive my ignorance on this matter (I don't currently use any of the integrated VS functionality - have been working with embedding the runtime in an existing application), but what is the difference between IronPython Tools and Python Tools for Visual Studio? I was under

Re: [IronPython] Python Tools for Visual Studio now accepting contributions

2011-05-11 Thread Dino Viehland
Jeff wrote: The IronPython Tools (or old tools) are the original VS integration tools, developed when IronPython was still funded by MS. PTVS is a new set of Python (not IronPython-specific; they support CPython and IronPython, and some Jython and PyPy) tools Dino's working on for MS's

Re: [IronPython] Cannot compile IronPythonTools

2011-05-11 Thread Dino Viehland
Chandrashekara Sent: Wednesday, May 11, 2011 5:13 PM To: Discussion of IronPython Subject: Re: [IronPython] Cannot compile IronPythonTools On Tue, May 10, 2011 at 9:00 PM, Dino Viehland di...@microsoft.commailto:di...@microsoft.com wrote: You’ll need to install the VS SDK (http://www.microsoft.com/downloads

Re: [IronPython] Intellisense with imported dlls

2011-05-11 Thread Dino Viehland
Where are the assemblies? Currently we'll only find assemblies in the gac. Sent from my Windows Phone From: Raghavendra Chandrashekara Sent: Wednesday, May 11, 2011 4:49 PM To: Discussion of IronPython Subject: [IronPython] Intellisense with imported dlls Hi

Re: [IronPython] Intellisense with imported dlls

2011-05-11 Thread Dino Viehland
are in a sub-directory of my project. Would it be too difficult to add the list of assemblies in the Search Path directories of the project? I can try to change the IronPythonTools code to do this if you could give a hint as to where I should start. Thanks, Raj On 2011-05-11, at 20:51, Dino Viehland di

Re: [IronPython] Cannot compile IronPythonTools

2011-05-10 Thread Dino Viehland
You'll need to install the VS SDK (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5displaylang=en) in addition to Visual Studio. The reason for that is because we use the SDK's project types to get things like a good debugging experience in the

Re: [IronPython] Problems running simple executable compiled with the pyc.py tool

2011-05-06 Thread Dino Viehland
When running are Program.dll and Program.exe in the same location? The reason I ask is that Program.exe will change the CWD to where it is currently located and then it'll attempt to load Program.dll from that directory. That's the only thing that immediately comes to mind as having potential

Re: [IronPython] Problems running simple executable compiled with the pyc.py tool

2011-05-06 Thread Dino Viehland
it), but this seems not to work in the way I'd imagined. Anyway, it's all working properly now. Thanks, and apologies for the stupidity! On Fri, May 6, 2011 at 6:12 PM, Dino Viehland di...@microsoft.commailto:di...@microsoft.com wrote: When running are Program.dll and Program.exe in the same

Re: [IronPython] Problems running simple executable compiled with the pyc.py tool

2011-05-06 Thread Dino Viehland
correctly, although it simply crashes on load. Any ideas? Is it possible to compile if using wpf? I'm lost here - enjoying IronPython, but its distribution sure is hell. On Fri, May 6, 2011 at 7:04 PM, Dino Viehland di...@microsoft.commailto:di...@microsoft.com wrote: Feel free to open a bug

Re: [IronPython] Extending Gtk.TextView

2011-05-06 Thread Dino Viehland
Doug wrote: From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Doug Blank Sent: Friday, May 06, 2011 2:13 PM To: Discussion of IronPython Subject: [IronPython] Extending Gtk.TextView Does anyone have an idea what this would mean, or how to

Re: [IronPython] ctypes .net interaction (casting a pointer to a .net object)

2011-04-30 Thread Dino Viehland
Sebastien wrote: In my effort to be able to use the GetRunningObjectTable in ironpython, I succeeded in recovering a pointer to a IBindCtx object by using the ctypes library. Is it possible to then cast this pointer (or transform it) to a IBindCtx Ironpython type on which I could call other

Re: [IronPython] how to generate multiple concurrent scriptign engines?

2011-04-15 Thread Dino Viehland
It might come from CopyReg but the bug is definitely in GetEqualSite - we just need a lock(_equalSites) { ... } around the TryGetValue and creation of the equal site. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Friday,

Re: [IronPython] WPF module in IronPython scripting?

2011-04-15 Thread Dino Viehland
Lukáš wrote: Hi there everyone, I just bumped into a problem where when I run the IPy.exe console and execute a script that contains: import wpf all works well. However, when I want to import the wpf namespace into the same script, but run outside the IPy.exe (i.e. as an embedded

Re: [IronPython] how to generate multiple concurrent scriptign engines?

2011-04-15 Thread Dino Viehland
Filed as http://ironpython.codeplex.com/workitem/30551 From: Jeff Hardy [mailto:jdha...@gmail.com] Sent: Friday, April 15, 2011 9:41 AM To: Discussion of IronPython Cc: Dino Viehland; surangika ranathunga Subject: Re: [IronPython] how to generate multiple concurrent scriptign engines? Can one

Re: [IronPython] IronPython for Silverlight 5?

2011-04-14 Thread Dino Viehland
Jeff wrote: On Wed, Apr 13, 2011 at 11:14 PM, Chad Brockman cha...@slb.com wrote: I see Silverlight 5 now has something besides simple reflection (ICustomTypeProvider) - http://msdn.microsoft.com/en-us/library/gg986857(v=VS.96).aspx#data Will we see an update to Iron*/DLR to support

Re: [IronPython] How to make a gtk event?

2011-04-14 Thread Dino Viehland
[mailto:numero...@gmail.com] Sent: Thursday, April 14, 2011 1:57 AM To: Discussion of IronPython Cc: Dino Viehland Subject: Re: [IronPython] How to make a gtk event? Yes, that works. But pedantically speaking, is it possible to manufacture an event that would agree on type with the gtk produced ones

Re: [IronPython] How to make a gtk event?

2011-04-13 Thread Dino Viehland
Martin wrote: Hey guys, I'm writing a program using using gtk# and I have a custom widget that I want to make an event for. Here is what an event looks like: print self.mainwindow.Shown IronPython.Runtime.Types.ReflectedEvent+BoundEvent object at 0x002B

Re: [IronPython] How to make a gtk event?

2011-04-13 Thread Dino Viehland
talking about creating a new event for this widget. As in: mywidget.SomethingHappened += some_handler 2011/4/13 Dino Viehland di...@microsoft.com: Martin wrote: Hey guys, I'm writing a program using using gtk# and I have a custom widget that I want to make an event for. Here is what

Re: [IronPython] VS 2010 Integrated Shell question

2011-04-13 Thread Dino Viehland
Lukáš wrote: Now, I'm wondering, how did you get the WPF designer to work in the Integrated Shell version of VS? I don't seem to be able to get it working (basically after choosing the WPF IPy template to start with, nothing shows up). :( I just did file-new project, selected the WPF

Re: [IronPython] Python Tools Beta Pluing - No Toolbox Items

2011-04-11 Thread Dino Viehland
Beta 2 is now out w/ the fix for this - http://pytools.codeplex.com/releases/view/63597 It also fixes Silverlight debugging which was broken in Beta 1. It should now be back at parity w/ IronPython Tools for pure IronPython development not to mention all the other improvements over

Re: [IronPython] New clr.ImportExtensions (LINQ) Syntax

2011-04-11 Thread Dino Viehland
Dave wrote: Okay. Never mind. There's already an open bug for this I just found. http://ironpython.codeplex.com/workitem/30379 I've assigned this bug to myself. I'll take a look and fix it, my guess is there's something wrong with extension method support on generic classes (e.g. class FooT

Re: [IronPython] Python Tools Beta Pluing - No Toolbox Items

2011-04-08 Thread Dino Viehland
I ran into that too and it's fixed for the next release (along w/ IronPython Silverlight debugging which was also broken). The fix is checked in so if you can build from source you can download the current sources and do that. Otherwise the next release should be happening in the next few

Re: [IronPython] Migration warnings to python 3

2011-04-01 Thread Dino Viehland
We do support the -3 option which turns those warnings on but I don't think we have as many warnings as CPython did. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Markus Schaber Sent: Friday, April 01, 2011 7:25 AM To: Discussion of IronPython

Re: [IronPython] Debugging hosted python scripts

2011-03-31 Thread Dino Viehland
Jeff wrote: On Wed, Mar 30, 2011 at 8:52 PM, Keith Rome r...@wintellect.com wrote: I have been going down the path of using ScriptEngine.SetTrace() and inspecting frames in the callback. This works fine if I am not doing anything interactive. For example, dumping some information to

Re: [IronPython] [Code Review] Custom PAL fixes

2011-03-31 Thread Dino Viehland
LGTM. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jimmy Schementi Sent: Thursday, March 31, 2011 6:06 PM To: Discussion of IronPython Subject: [IronPython] [Code Review] Custom PAL fixes Just checked in some small fixes to make the Importer

Re: [IronPython] IronPython Tools for VS2010 Questions

2011-03-30 Thread Dino Viehland
Bill wrote: 1. Intellisense/autocomplete will be really useful for our users. Can anyone tell me what should and shouldn't provide this capability. So far it seems that some System types provide it and Python Module Methods work as well but I'm not sure what else should work as it is a

Re: [IronPython] IronLanguages

2011-03-29 Thread Dino Viehland
Just to chime in on how to do the conversion: the answer is that you probably can't, at least not for something like TestClass. You could look at what sort of type you're converting from in JS (number, string, function, etc...) and see if TestClass has any implicit conversions to it from

Re: [IronPython] IPy 2.7 successfully built for .NET 3.5, but problem w. indirect v4 dependencies

2011-03-29 Thread Dino Viehland
It sounds like you need to re-build your own DLLs (or whatever SPTools is) to run against .NET 3.5 instead of .NET 4.0. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jaromír Matýšek Sent: Monday, March 28, 2011 8:09 AM To:

Re: [IronPython] IronLanguages

2011-03-29 Thread Dino Viehland
Matthias wrote: Yes, this was my main idea. It's very similar how SWIG directors handle cross-language polymorphism. At runtime I'd create a class which derives from TestClass and which overrides all virtual methods and properties. The C# overrides would call the JSObject to see if

Re: [IronPython] IronPython2.7 import locking error

2011-03-25 Thread Dino Viehland
, March 25, 2011 11:08 AM To: Discussion of IronPython Cc: Dino Viehland Subject: Re: [IronPython] IronPython2.7 import locking error On Thu, Mar 24, 2011 at 6:41 PM, Dino Viehland di...@microsoft.com wrote: Oh I see I missed the line containing msvcrt.  This just looks like it hasn't been

Re: [IronPython] The return value (out)

2011-03-25 Thread Dino Viehland
Is the method overloaded? There could be enough confusion w/overloads where we aren't picking the right overload. Alternately you can do: import clr ref = clr.Reference[TPick]() And then call it with the reference value whose's .Value property will be updated on a successful call such as:

Re: [IronPython] IronPython2.7 import locking error

2011-03-24 Thread Dino Viehland
Locking isn't part of the standard lib, did you install something into site packages called locking? -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of amy yau Sent: Thursday, March 24, 2011 3:18 PM To:

Re: [IronPython] IronPython2.7 import locking error

2011-03-24 Thread Dino Viehland
Oh I see I missed the line containing msvcrt. This just looks like it hasn't been implemented (we still have only a very partially implemented version of msvcrt). It should be trivial to do add this , it should just be a P/Invoke out to msvcrt100, if someone wants to provide a patch.

Re: [IronPython] IronPython tools - minor suggestion

2011-03-23 Thread Dino Viehland
Lukáš wrote: first off, the IronPython Tools for VS 2010 are really great! Could you open bugs for these? I'd suggest opening them on pytools.codeplex.com just because that seems like the more likely future of Python tooling in VS. But you could open them on ironpython.codeplex.com in case

Re: [IronPython] PTVS question

2011-03-16 Thread Dino Viehland
Chuck wrote: And a follow up question about Python Tools for Visual Studio I would have expected that the Interactive Window has the same context as an IronPython script that is currently being debugged so that one can inspect variables, exec methods, while debugging. This is how

Re: [IronPython] PTVS question

2011-03-16 Thread Dino Viehland
Charles wrote: For both. Just now I added an: import os Print os.getcwd() (don't know why that didn't dawn on me before) and it prints the solution/project directory. Even so, somehow it ignores the app.config unless I drop it into the IPy dir. This works, but its not ideal if one has apps

Re: [IronPython] IronPython 2.7 Now Available

2011-03-13 Thread Dino Viehland
The PTVS release is really an extended version of the tools in IronPython 2.7. It adds support for CPython including debugging, profiling, etc... while still supporting IronPython as well. We'll likely either replace the tools distributed w/ IronPython with this version (maybe minus things

Re: [IronPython] IronPython 2.7 Now Available

2011-03-13 Thread Dino Viehland
Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Dino Viehland Sent: Sunday, March 13, 2011 2:22 PM To: Discussion of IronPython; python-list Subject: Re: [IronPython] IronPython 2.7 Now Available The PTVS release is really

[IronPython] Python Tools for Visual Studio

2011-03-10 Thread Dino Viehland
(I'll post this on my blog as soon as I can login into it, but it's been so long I'm having issues. Anyway it seems appropriate for this alias as well): Some people may have been wondering what I've been working on since IronPython was released into the wild and late last night we announced it

Re: [IronPython] Python Tools for Visual Studio

2011-03-10 Thread Dino Viehland
for Python code writing, but I found that the auto-complete feature in pydev (the Eclipse plug-in) was a lot more efficient than the autocomplete for Ironpython. Federico On 10/03/2011 15:30, Dino Viehland wrote: (I'll post this on my blog as soon as I can login into it, but it's been so long

Re: [IronPython] Python Tools for Visual Studio

2011-03-10 Thread Dino Viehland
with. If you'd like you can open bugs on pytools.codeplex.com for #1-#3 (or if you don't I'll go ahead and open them later today). -Original Message- From: Steve Dower [mailto:s.j.do...@gmail.com] Sent: Thursday, March 10, 2011 4:03 PM To: Discussion of IronPython Cc: Dino Viehland Subject: Re

Re: [IronPython] IronPython @ PyCon 2011

2011-03-07 Thread Dino Viehland
I'm there Wednesday through Monday morning. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Brian Curtin Sent: Monday, March 07, 2011 8:47 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython @ PyCon 2011 On Mon, Mar 7, 2011 at

Re: [IronPython] Road to IronPython 2.7 (update)

2011-02-21 Thread Dino Viehland
Can you run w/ -X:ExceptionDetail? My guess is there's something different about Mono's big integer implementation when you do bigInt.ToString(X). We used to convert the string to hex ourselves but that was slower than .NETs ToString implementation so I switched to using ToString instead (and

Re: [IronPython] Arright dangit! Where is the OFFICIAL IronPython source code?

2011-02-20 Thread Dino Viehland
It's actually IronLanguages as it's where both IronPython and IronRuby are being developed out of - https://github.com/IronLanguages/main From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Vernon Cole Sent: Sunday, February 20, 2011 2:17 PM To:

Re: [IronPython] List of easy to fix issues

2011-02-19 Thread Dino Viehland
I've updated the bugs list on the contributing to IronPython page - some of the bugs were fixed and I've added some more. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Richard Nienaber Sent: Thursday, February 17, 2011 11:12 PM To: Discussion

Re: [IronPython] Red Flag(?) change in import

2011-02-15 Thread Dino Viehland
This is fixed now. Apparently there was an invalid optimization that I added - so I removed it. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Vernon Cole Sent: Thursday, February 10, 2011 3:50 PM To: Discussion of IronPython Subject: Re:

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-10 Thread Dino Viehland
Andrew wrote: On Wed, Feb 9, 2011 at 2:42 PM, Dino Viehland di...@microsoft.com wrote: In the case of IronPython the script is just pulling the files from Languages/IronPython/StdLib/StdLib.pyproj so you could just go straight to that MSbuild file to get the list of files to use

Re: [IronPython] Red Flag(?) change in import

2011-02-10 Thread Dino Viehland
If no one else steps up to look at it I can take a look this weekend. But let me tell everyone fixing import bugs is awesome fun! I thought adodbapi was still part of the test suite but I don't know how it transitioned when MS gave the project to the community. It may have not been pushed

Re: [IronPython] Stopping, Closing, and Unloading of running IronPython code?

2011-02-09 Thread Dino Viehland
Doug wrote: If you have embedded IronPython engines (and perhaps a few other DLR languages) running in a thread, what is the recommended method of stopping the running programs, and calling the objects' delete methods? For example, say you have a serial port open in an IronPython program

Re: [IronPython] Cast to a method pointer using CTYPES

2011-02-09 Thread Dino Viehland
You want to pass a Python function, method, or other callable into C as a function pointer? This stack overflow question covers that: http://stackoverflow.com/questions/874245/python-ctypes-and-function-pointers From: users-boun...@lists.ironpython.com

Re: [IronPython] Cast to a method pointer using CTYPES

2011-02-09 Thread Dino Viehland
So you want to generate the assembly in memory and then execute it? I think you want something like: import array myCode = array.array('b', \x31\xc0\x31\xdb\x31\xc9\x31\xd2\x51\x68\x6c\x6c\x20\x20\x68\x33) buffer = myCode.buffer_info()[0] from ctypes import * my_callback = CFUNCTYPE(c_int)

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-09 Thread Dino Viehland
In the case of IronPython the script is just pulling the files from Languages/IronPython/StdLib/StdLib.pyproj so you could just go straight to that MSbuild file to get the list of files to use. StdLib.pyproj is generated from Languages/IronPython/StdLib/MakeModuleList.py which you could run on

Re: [IronPython] Misleading test runner output /all VS /test:name_of_test

2011-02-04 Thread Dino Viehland
Daniel wrote: Please, help me wrap my head around this issue. Wanted to run unittests to see what areas need to be addressed. This is the tail of ... Languages\IronPython\IronPython\cpy test_univnewlines_cpy PASSED6.7633868 Languages\IronPython\IronPython\cpy

Re: [IronPython] Bug Weekend prior to 2.7

2011-02-03 Thread Dino Viehland
Me too From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Richard Nienaber Sent: Thursday, February 03, 2011 12:11 PM To: Discussion of IronPython Subject: Re: [IronPython] Bug Weekend prior to 2.7 Anyone else willing and able to participate? I

Re: [IronPython] indentation in VS2010

2011-02-02 Thread Dino Viehland
What are your settings in Tools-Options-Text Editor-IronPython-Tabs? Are you editing non-.py files and copying and pasting between the two within VS? If so are the tab settings for those file types or All Languages different? From: users-boun...@lists.ironpython.com

Re: [IronPython] Disabling optimized methods

2011-02-01 Thread Dino Viehland
You can use -X:Debug now to specifiy this at the command line. If you want to do it while you're hosting you can set the DebugMode option to true on the ScriptRuntimeSetup object used to create the ScriptRuntime. You'll need to make sure the ScriptSource's you create have filenames though.

Re: [IronPython] Disabling optimized methods

2011-02-01 Thread Dino Viehland
...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Dino Viehland Sent: Tuesday, February 01, 2011 12:50 PM To: Discussion of IronPython Subject: Re: [IronPython] Disabling optimized methods You can use -X:Debug now to specifiy this at the command line. If you want to do it while you're

Re: [IronPython] Issue Triage

2011-01-30 Thread Dino Viehland
There's probably an Integer.py somewhere in sympy and this is probably an import bug. If someone was particularly ambitious they could re-write import by porting CPython's import to IronPython - viola, no more import bugs! :) Otherwise it's all about figuring out how we're differing in import

Re: [IronPython] Visual Studio Interactive Shell Search Path:

2011-01-28 Thread Dino Viehland
Federico wrote: When testing a script using the IronPython interactive window in Visual Studio, the path variable in system.sys is a bunch of meaningless directories: import sys sys.path ['.', 'C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO

Re: [IronPython] Visual Studio Interactive Shell Search Path:

2011-01-28 Thread Dino Viehland
Federico wrote: Opening visual studio with no project open, and running the Ironpython interactive window, gives me this: import sys sys.path ['.', 'C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO 10.0\\COMMON7\\IDE\\EXTENSIONS\\MICROSOFT\\IRONSTUDIO\\0.4\\Lib', 'C:\\PROGRAM FILES

Re: [IronPython] Issue Triage

2011-01-27 Thread Dino Viehland
On Thu, Jan 27, 2011 at 6:38 AM, Richard Nienaber rjniena...@gmail.com wrote: Issues that reference 'SNAP' and 'merlin-*' e.g. SNAP: test_memory.py has begun failing IronPython: test_weakref.py fails on merlin-18 If the test passes, is it okay to close issues like this? I know SNAP

Re: [IronPython] Which modules collection to use?

2011-01-23 Thread Dino Viehland
Daniel wrote: Re: IRONPYTHONPATH It looks like the magic is already in place in dev.bat to set [IRON]PYTHONPATH to the right path. However, the setting is conditional on If DEFINED THISISSNAP I am not a stupid fella, but i had to resort to bugging you and asking about the modules set

Re: [IronPython] Working towards IronPython 2.7 RTM

2011-01-23 Thread Dino Viehland
Jeff wrote: For a nice easy fix to start with, take a look at http://ironpython.codeplex.com/workitem/29928. You can either attach a patch to the issue, or (preferably) create a fork on GitHub and send us a pull request. Here's some other bugs which look like they might be good to start on.

Re: [IronPython] Which modules collection to use?

2011-01-21 Thread Dino Viehland
Daniel wrote: Pulled src from github. The devel set up instructions (http://ironpython.codeplex.com/wikipage?title=Respository%20Instructions) and all the script magic already in place is just great as things compile and run. Very cool. However, need help figuring some things out,

Re: [IronPython] Which modules collection to use?

2011-01-21 Thread Dino Viehland
Daniel wrote: Thx on the IRONPYTHONPATH hint. Regarding what blows up: copy'n'paste Lib folder from cPython 2.7.1 into /Debug/.., followed by bdc 6 Warning(s) 0 Error(s) Time Elapsed 00:00:37.34 C:\workipy

Re: [IronPython] Issue Triage

2011-01-16 Thread Dino Viehland
My general attitude has been that CPython is always more correct, even when it's not. :) We usually have our own tests for things like this (which we run against CPython too) and when CPython fixes it we'll fix it too. From: users-boun...@lists.ironpython.com

Re: [IronPython] Referenced Assemblies with DLR languages

2011-01-13 Thread Dino Viehland
Doug wrote: On Tue, Jan 11, 2011 at 8:13 AM, Doug Blank doug.bl...@gmail.com wrote: Two questions about referenced assemblies (which are really perhaps DLR questions): 1) I'd like to be able to use different names than are used in a DLL. For example, say I have a Library.dll, and it

Re: [IronPython] Exception Model for modules implemented in C#

2011-01-11 Thread Dino Viehland
There's this: http://www.mail-archive.com/users@lists.ironpython.com/msg10503.html That originally came from the .rst files used to generate docs (External.LCA_RESTRICTED\Languages\IronPython\27\Doc\IronPythonDocs) but I can't find it in there now... I'm not quite sure how that happened.

Re: [IronPython] Adding Unit Tests

2011-01-11 Thread Dino Viehland
Jeff wrote: On Tue, Jan 11, 2011 at 10:22 AM, Tomas Matousek tomas.matou...@microsoft.com wrote: IronRuby doesn't use the test runner. IronRuby's harness is written in Ruby (Languages\Ruby\Tests\Scripts\irtests.rb). It's run by a previous IronRuby version checked in to Util\IronRuby. So

Re: [IronPython] What is a good way to determine OS platform with IronPython?

2011-01-10 Thread Dino Viehland
Doug wrote: On Mon, Jan 10, 2011 at 3:37 PM, Douglas Blank dbl...@brynmawr.edu wrote: Now that IronPython runs on other operating systems, what is the recommended way to determine the os when running IP? `os.name` is probably what you want. There was some discussion on python-dev

Re: [IronPython] Adding Unit Tests

2011-01-10 Thread Dino Viehland
To add a new test you can modify the %DLR_Root%\Test\IronPython.tests file and add something like: Test Nametest_csv_cpy/Name Filename%DLR_ROOT%\Languages\IronPython\Internal\ipy.bat/Filename Arguments Test\test_csv.py/Arguments

Re: [IronPython] Issue Triage

2011-01-07 Thread Dino Viehland
Jeff wrote: I think the following needs some further scrutiny before closing: module globals are reported incorrectly to sys.settrace (http://ironpython.codeplex.com/workitem/26243) Finish FunctionEnvironment cleanup (http://ironpython.codeplex.com/workitem/23992) Unable to set value

Re: [IronPython] Issue Triage

2011-01-07 Thread Dino Viehland
Jeff wrote: On Fri, Jan 7, 2011 at 11:12 AM, Dino Viehland di...@microsoft.com wrote: I've added a comment to this one.  Personally my vote is (and has been for some Time) to move all method binder bugs to IronPython 3k.  Method binding is subtle enough and changing it could break

Re: [IronPython] autocompletion (intellisense) for clr.AddReference

2011-01-07 Thread Dino Viehland
Piotr wrote: I have a feeling that getting autocompletion/intellisense for CLR libraries referenced that way is not a trivial task, though it's probably not impossible. What we ended up doing is writing a Python 'pretend' module for our CLR assembly and importing that, but doing trickery

Re: [IronPython] autocompletion (intellisense) for clr.AddReference

2011-01-07 Thread Dino Viehland
Piotr wrote: Dino: thank for the explanation for the clr.Reference. import System.Text as text text.TAB   produces autocompletion list whereas import System.Text System.Text.TAB does not Does Text. give you completions?  We could just be misanalysing the import

Re: [IronPython] autocompletion (intellisense) for clr.AddReference

2011-01-07 Thread Dino Viehland
Piotr wrote: import System.TAB - works import System System.TAB works too. There's no ASCIIEncoding) but there's AppDomain for example and the list starts with AccessViolationException and ends with {} Web System.TABText.TABASCIIEncoding does work but again import System.Text

Re: [IronPython] how to build ironpython on ubuntu from sources?

2011-01-07 Thread Dino Viehland
Jeff wrote: Ok, I've switched to 'false' and now I get: 21 Warning(s) 13 Error(s) - Some errors still sound like warnings to me. Looks like that's set to true in all of the csproj files, so you'll have to change it in all of them. - most of the errors throws a ' Type of

Re: [IronPython] Converting IronPython file object to .NET Stream object

2011-01-04 Thread Dino Viehland
Can wrote: Is there an easy way to convert an IronPython file-like object to a .NET Stream? The reverse can be done in IronPython using like this: net_stream = File.OpenRead('file.txt') python_file = file(net_stream) I wonder if there is an easy way of doing the reverse? Or do you have to

Re: [IronPython] Passing arguments to C#

2011-01-04 Thread Dino Viehland
Mark wrote: I had tried the IListdouble, and it works fine if I send in a list that is full of doubles, Using something like mylist = map(float,range(10)) That was an awkwardness I wanted to avoid. I wanted to be able to pass in mylist = range(10) just as easily. My C# routine will

Re: [IronPython] How to break in the debugger in IP when script lauched from a hosting C# process

2010-12-16 Thread Dino Viehland
Chuck wrote: I have a SharePoint app (Commerce Server to be exact) that is launching an IronPython script. What is the best way to be able to step into or break into the debugger within the IronPython script? You should enable debug mode for the script runtime to make the code debuggable.

Re: [IronPython] SciPy

2010-12-16 Thread Dino Viehland
Enthought has been working on getting numpy/scipy ported over to work w/ IronPython. I believe numpy is working but I'm not sure of how far along SciPy is. There's a separate mailing list for this at: https://mail.enthought.com/mailman/listinfo/scipy4dotnet It's very low traffic - it's

Re: [IronPython] Thread Locking

2010-12-13 Thread Dino Viehland
Lock is just syntactic sugar for doing Monitor.Enter/Monitor.Exit calls on the object and setting up the try/finally. Here's the IronPython equivalent: from System.Threading import Monitor class Locker(object): def __init__(self, obj): self.obj = obj def __enter__(self):

Re: [IronPython] XNA 4.0

2010-12-10 Thread Dino Viehland
Mauricio wrote: Hi all. I'm trying to run the XNA example posted here: http://www.ironpython.info/index.php/XNA_Example_-_Luminance But i'm trying that with XNA and .NET 4.0 on IronPython 2.6. After changing some imports that seems to be different in XNA 4.0 version, the program gives

Re: [IronPython] IronPython memory usage

2010-12-09 Thread Dino Viehland
What task manager reports I believe depends on what version of Windows you're on. You might want to right click on the columns and add some of the Memory columns. By default Win7 seems to have private working set selected (which would be what each additional copy requires). But there's also

Re: [IronPython] Issue Triage

2010-12-09 Thread Dino Viehland
Thanks for doing this! I've gone ahead and closed the first three. I'm going to leave the compile() one open so it can get the right exception. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Richard Nienaber Sent: Thursday, December 09, 2010

Re: [IronPython] Jit leak in defaultdict for Ipy 2.6.2

2010-12-02 Thread Dino Viehland
are aware of, that might cause this behavior where over usage generates infinite Jitting? From: users-boun...@lists.ironpython.commailto:users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.commailto:users-boun...@lists.ironpython.com] On Behalf Of Dino Viehland Sent: Monday

Re: [IronPython] __delattr__ in .NET class

2010-12-02 Thread Dino Viehland
Slide wrote: I am currently implementing a module in C#. I need to be able to override the __delattr__ method for one of my objects. I've put in a __delattr__ method that takes a string, but it never gets called. I also tried DeleteMember because I saw that around too. Is there a way to do

Re: [IronPython] IronPython source code

2010-11-20 Thread Dino Viehland
Wow, you must still be using IronPython 1.1 or IronPython 1.0. The conditional expression was added in Python 2.5 so it's in IronPython 2.0 (which maps to Python 2.5). I'm guessing the VS 2008 support you're using is IronPythonStudio which I believe is still at 1.0/1.1 as well. We did

  1   2   3   4   5   6   7   8   9   10   >