From merllab at microsoft.com Fri Jan 1 17:52:48 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 1 Jan 2010 08:52:48 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <6ed065f1-b67b-45de-a21c-195201494b10@tk5-exsmh-c102.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/62780. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Tests/modules/network_related/socket_test.py $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Properties/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Debugging/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Properties/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Core/Properties/ExtensionAssemblyInfo.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Core/Properties/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/Properties/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/AssemblyVersion.cs $/IronPython/IronPython_Main/Src/Tests/test_memory.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1407692 Date: 12/31/2009 2:08:00 PM - test_memory.py: IP is now gobbling up more memory seemingly randomly (Shelveset: MISC;REDMOND\dfugate | SNAP CheckinId: 10070) -------------------------------------------------------------------------------- Changeset Id: 1407651 Date: 12/31/2009 12:14:04 PM - socket_test.py: commented out a test previously thought to be a negative scenario which in fact passes on several Win7 and Win2008 boxes. (Shelveset: SOCKET_RELIABLE;REDMOND\dfugate | SNAP CheckinId: 10069) From merllab at microsoft.com Fri Jan 1 21:07:13 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 1 Jan 2010 12:07:13 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <2d098ace-9089-4a5b-9dbd-a1cf9d89b66d@tk5-exsmh-c101.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/62786. MODIFIED SOURCES $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Properties/AssemblyInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Debugging/AssemblyInfo.cs $/IronPython/IronPython_2_6/Src/AssemblyVersion.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Properties/ExtensionAssemblyInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Properties/AssemblyInfo.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/Properties/AssemblyInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Properties/AssemblyInfo.cs From calmasy at gmail.com Sat Jan 2 07:02:26 2010 From: calmasy at gmail.com (=?ISO-8859-1?Q?Count_L=E1szl=F3_de_Alm=E1sy?=) Date: Fri, 1 Jan 2010 23:02:26 -0700 Subject: [IronPython] problems with cgi scripts Message-ID: is there any reason that IronPython is incompatible with CGI? i'm not able to run even the simplest of CGI programs when certain CPython modules are imported. for example, the following doesn't work - i simply get an empty response in the browser (and no errors): ============= #!/usr/local/packages/IronPython-2.0.3/ipy.exe import base64 print "Content-Type: text/html" print print "hello" ============= however, if you remove the import of base64, it does work. importing certain modules such as 'sys' don't break it, but most do (substitute almost any CPython module for base64). it's not an issue with my sys.path, i can import these modules fine from the interpreter. i'd also think if it was an issue like that, i'd get an ImportError or something, not just empty output with no exception or error. any ideas? -- Cheers, L?szl? From fuzzyman at voidspace.org.uk Sat Jan 2 12:42:45 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Sat, 02 Jan 2010 11:42:45 +0000 Subject: [IronPython] problems with cgi scripts In-Reply-To: References: Message-ID: <4B3F3135.8080404@voidspace.org.uk> On 02/01/2010 06:02, Count L?szl? de Alm?sy wrote: > is there any reason that IronPython is incompatible with CGI? i'm not > able to run even the simplest of CGI programs when certain CPython > modules are imported. for example, the following doesn't work - i > simply get an empty response in the browser (and no errors): > > ============= > > #!/usr/local/packages/IronPython-2.0.3/ipy.exe > > import base64 > > print "Content-Type: text/html" > print > print "hello" > > ============= > > however, if you remove the import of base64, it does work. importing > certain modules such as 'sys' don't break it, but most do (substitute > almost any CPython module for base64). it's not an issue with my > sys.path, i can import these modules fine from the interpreter. i'd > also think if it was an issue like that, i'd get an ImportError or > something, not just empty output with no exception or error. > > any ideas? > > What does your server error log say? Michael -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog From calmasy at gmail.com Sat Jan 2 21:43:37 2010 From: calmasy at gmail.com (=?ISO-8859-1?Q?Count_L=E1szl=F3_de_Alm=E1sy?=) Date: Sat, 2 Jan 2010 13:43:37 -0700 Subject: [IronPython] problems with cgi scripts In-Reply-To: <4B3F3135.8080404@voidspace.org.uk> References: <4B3F3135.8080404@voidspace.org.uk> Message-ID: there is no error. the httpd log shows a 200 response, i just get no data back. i've tried two different http servers as well, thttpd and bozohttpd with the same results. if i switch the top line in the script to point to CPython (#!/usr/bin/python) instead, it works fine. i forgot to mention this is on Linux/Mono, in case that makes any difference. On Sat, Jan 2, 2010 at 4:42 AM, Michael Foord wrote: > > What does your server error log say? >> >> is there any reason that IronPython is incompatible with CGI? i'm not >> able to run even the simplest of CGI programs when certain CPython >> modules are imported. for example, the following doesn't work - i >> simply get an empty response in the browser (and no errors): >> >> ============= >> >> #!/usr/local/packages/IronPython-2.0.3/ipy.exe >> >> import base64 >> >> print "Content-Type: text/html" >> print >> print "hello" >> >> ============= >> >> however, if you remove the import of base64, it does work. importing >> certain modules such as 'sys' don't break it, but most do (substitute >> almost any CPython module for base64). it's not an issue with my >> sys.path, i can import these modules fine from the interpreter. i'd >> also think if it was an issue like that, i'd get an ImportError or >> something, not just empty output with no exception or error. >> >> any ideas? >> >> > > What does your server error log say? > > Michael > > -- > http://www.ironpythoninaction.com/ > http://www.voidspace.org.uk/blog > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- Cheers, L?szl? From tyler at monkeypox.org Sun Jan 3 00:06:26 2010 From: tyler at monkeypox.org (R. Tyler Ballance) Date: Sat, 2 Jan 2010 15:06:26 -0800 Subject: [IronPython] problems with cgi scripts In-Reply-To: References: <4B3F3135.8080404@voidspace.org.uk> Message-ID: <20100102230625.GA18556@kiwi.sharlinx.com> On Sat, 02 Jan 2010, Count L?szl? de Alm?sy wrote: > there is no error. the httpd log shows a 200 response, i just get no > data back. i've tried two different http servers as well, thttpd and > bozohttpd with the same results. if i switch the top line in the > script to point to CPython (#!/usr/bin/python) instead, it works fine. > i forgot to mention this is on Linux/Mono, in case that makes any > difference. Your sh-bang is curious to me, since I normally run `mono ipy.exe`, have you registered .exe as a non-native binary on your system? http://www.mono-project.com/Guide:Running_Mono_Applications#Registering_.exe_as_non-native_binaries_.28Linux_only.29 The fact that without base64 your script works at all is curious to me, but looking at the script the first thing that popped out was the sh-bang > > On Sat, Jan 2, 2010 at 4:42 AM, Michael Foord wrote: > > > > What does your server error log say? > >> > >> is there any reason that IronPython is incompatible with CGI? i'm not > >> able to run even the simplest of CGI programs when certain CPython > >> modules are imported. for example, the following doesn't work - i > >> simply get an empty response in the browser (and no errors): > >> > >> ============= > >> > >> #!/usr/local/packages/IronPython-2.0.3/ipy.exe > >> > >> import base64 > >> > >> print "Content-Type: text/html" > >> print > >> print "hello" > >> > >> ============= > >> > >> however, if you remove the import of base64, it does work. importing > >> certain modules such as 'sys' don't break it, but most do (substitute > >> almost any CPython module for base64). it's not an issue with my > >> sys.path, i can import these modules fine from the interpreter. i'd > >> also think if it was an issue like that, i'd get an ImportError or > >> something, not just empty output with no exception or error. > >> > >> any ideas? > >> > >> > > > > What does your server error log say? > > > > Michael > > > > -- > > http://www.ironpythoninaction.com/ > > http://www.voidspace.org.uk/blog > > > > > > _______________________________________________ > > Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > > -- > Cheers, L?szl? > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com Cheers, -R. Tyler Ballance -------------------------------------- Jabber: rtyler at jabber.org GitHub: http://github.com/rtyler Twitter: http://twitter.com/agentdero Blog: http://unethicalblogger.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From calmasy at gmail.com Sun Jan 3 03:23:20 2010 From: calmasy at gmail.com (=?ISO-8859-1?Q?Count_L=E1szl=F3_de_Alm=E1sy?=) Date: Sat, 2 Jan 2010 19:23:20 -0700 Subject: [IronPython] problems with cgi scripts In-Reply-To: <20100102230625.GA18556@kiwi.sharlinx.com> References: <4B3F3135.8080404@voidspace.org.uk> <20100102230625.GA18556@kiwi.sharlinx.com> Message-ID: On Sat, Jan 2, 2010 at 4:06 PM, R. Tyler Ballance wrote: > Your sh-bang is curious to me, since I normally run `mono ipy.exe` I've tried the following as well with the same results: #!/usr/bin/mono /usr/local/packages/IronPython-2.0.3/ipy.exe is there another way i should do it? > have you registered .exe as a non-native binary on your system? no i haven't. is this necessary to run cgi scripts from IronPython/Mono? -- Cheers, L?szl? From slide.o.mix at gmail.com Sun Jan 3 04:11:20 2010 From: slide.o.mix at gmail.com (Slide) Date: Sat, 2 Jan 2010 20:11:20 -0700 Subject: [IronPython] problems with cgi scripts In-Reply-To: References: <4B3F3135.8080404@voidspace.org.uk> <20100102230625.GA18556@kiwi.sharlinx.com> Message-ID: On Sat, Jan 2, 2010 at 7:23 PM, Count L?szl? de Alm?sy wrote: > On Sat, Jan 2, 2010 at 4:06 PM, R. Tyler Ballance > wrote: > > Your sh-bang is curious to me, since I normally run `mono ipy.exe` > > I've tried the following as well with the same results: > > #!/usr/bin/mono /usr/local/packages/IronPython-2.0.3/ipy.exe > > is there another way i should do it? > > > have you registered .exe as a non-native binary on your system? > > no i haven't. is this necessary to run cgi scripts from IronPython/Mono? > Can you run ipy.exe without doing "mono ipy.exe"? If so, you probably have binfmt support (which is nice), if not, then perhaps you should look into setting it up for mono executables. > > -- > Cheers, L?szl? > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- slide-o-blog http://slide-o-blog.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From k.kanryu at gmail.com Sun Jan 3 06:10:26 2010 From: k.kanryu at gmail.com (KATO Kanryu) Date: Sun, 3 Jan 2010 14:10:26 +0900 Subject: [IronPython] sqlAlachemy In-Reply-To: <200912311043.49264.johnf@jfcomputer.com> References: <200912310954.06341.johnf@jfcomputer.com> <4B3CE89C.5070005@voidspace.org.uk> <200912311043.49264.johnf@jfcomputer.com> Message-ID: Hi, I had tried to use SQLAlchemy, but I gave up in the last result. Because, ipy load the library, which needs several seconds(3-4secs). And after compiled to a dll with pyc.py, I load failed with an error of stack over flow. The trial was in ipy 2.0, currently 2.6 . We should addtional tests for that. KATO Kanryu From calmasy at gmail.com Sun Jan 3 06:14:41 2010 From: calmasy at gmail.com (=?ISO-8859-1?Q?Count_L=E1szl=F3_de_Alm=E1sy?=) Date: Sat, 2 Jan 2010 22:14:41 -0700 Subject: [IronPython] problems with cgi scripts In-Reply-To: References: <4B3F3135.8080404@voidspace.org.uk> <20100102230625.GA18556@kiwi.sharlinx.com> Message-ID: On Sat, Jan 2, 2010 at 8:11 PM, Slide wrote: > Can you run ipy.exe without doing "mono ipy.exe"? yes i can. but it doesn't seem to help my problem. $ /usr/local/packages/IronPython-2.0.3/ipy.exe IronPython 2.0.3 (2.0.0.0) on .NET 2.0.50727.1433 Type "help", "copyright", "credits" or "license" for more information. >>> -- Cheers, L?szl? From catherine.devlin at gmail.com Sun Jan 3 20:34:54 2010 From: catherine.devlin at gmail.com (Catherine Devlin) Date: Sun, 3 Jan 2010 14:34:54 -0500 Subject: [IronPython] Free CODE subscription with PyCon registration Message-ID: <6523e39a1001031134s101031a7x76613ca013ba983d@mail.gmail.com> Hey, IronPython folks - PyCon's arranged a special incentive this year for .NET programmers. I'd really appreciate it if you could spread the news to .NET user groups and mailing lists you're involved with. This is a good year to start a really robust growth of IronPython awareness in the .NET community. Please help make it happen! Thanks! ----------------------------------- .NET's Dynamic Language Runtime has brought new prominence to the role of .NET dynamic languages like IronPython, and many .NET programmers are looking for ways to get up-to-date on this growing aspect of the .NET environment. PyCon, the world's largest conference of Python and IronPython programmers, is an unparalleled learning opportunity. For $450 or less, attendees can spend an entire week learning from and working with Python and IronPython programmers from raw beginners to the creators of Python and IronPython themselves. This year, PyCon offers a bonus to .NET programmers - a free one-year subscription to CODE magazine, the leading independent .NET resource. PyCon 2010 runs Feb. 17-25 in Atlanta, Georgia. The conference includes five tracks of standard talks, plus Open Spaces, Lightning Talks, hands-on lab, exhibit hall, and poster sessions. Feb. 17-18 are set aside for twenty-four intensive, half-day tutorials. PyCon's development sprints run Feb. 22-25, in which ordinary attendees work together with project leaders to cooperate on extending and improving Python, IronPython, or their own favorite libraries and projects. IronPython, a full-powered .NET implementation of Python, lets .NET programmers easily use dynamic language capabilities in their .NET environments. An brief review of IronPython's benefits for .NET programmers is at http://ironpython-urls.blogspot.com/2009/12/why-ironpython.html Early-bird registration (through January 6) is just $450, and further discounts are available for students and attendees without employer support. For information and to register, see http://us.pycon.org. To claim your free subscription to CODE, use this coupon code during registration: CODE-subscription-PyCon2010 (If you've already registered for PyCon, signup for a CODE subscription will be available at the conference.) See you in Atlanta! -- - Catherine http://catherinedevlin.blogspot.com/ *** PyCon * Feb 17-25, 2010 * Atlanta, GA * us.pycon.org *** -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Tue Jan 5 06:03:42 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Mon, 4 Jan 2010 21:03:42 -0800 Subject: [IronPython] Silverlight IronPy Video Player Message-ID: <321b88ab1001042103q32aa38e6w2ed2589937ec34a0@mail.gmail.com> Does anyone have an example of a Video Player in IronPython using Silverlight? I would like to eventually build one. My Objectives are to dynamically generate the source Video Files in to the Silverlight App. But I can't seem to get past or find info on what is needed to build a Video Player using the IronPython/Silverlight controls Cheers Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 5 11:19:31 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 5 Jan 2010 10:19:31 +0000 Subject: [IronPython] Silverlight IronPy Video Player In-Reply-To: <321b88ab1001042103q32aa38e6w2ed2589937ec34a0@mail.gmail.com> References: <321b88ab1001042103q32aa38e6w2ed2589937ec34a0@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920700A7@TK5EX14MBXC141.redmond.corp.microsoft.com> There's plenty of samples out there about playing video in Silverlight (with C# or VB), and any of those should be easily translated to Python as well. I'm assuming you're not having trouble with actual Python code, but you don't know where to start with video in Silverlight: the Silverlight 3 Video and Audio documentation is a great place to start: http://msdn.microsoft.com/en-us/library/cc189078(VS.95).aspx. Let me know if you need help with the IronPython portion. ~js From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew Evans Sent: Monday, January 04, 2010 9:04 PM To: users at lists.ironpython.com Subject: [IronPython] Silverlight IronPy Video Player Does anyone have an example of a Video Player in IronPython using Silverlight? I would like to eventually build one. My Objectives are to dynamically generate the source Video Files in to the Silverlight App. But I can't seem to get past or find info on what is needed to build a Video Player using the IronPython/Silverlight controls Cheers Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Tue Jan 5 17:52:55 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Tue, 5 Jan 2010 08:52:55 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <73bb008d-bf50-43a6-a7e6-01b678a36ef2@tk5-exsmh-c102.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/62925. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Generator.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/List.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Importer.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/ObjectAttributesAdapter.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonDictionary.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/PythonType.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/UserTypeOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/PythonTypeUserDescriptorSlot.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/WeakRef.cs From andrew.canit at gmail.com Tue Jan 5 20:06:52 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Tue, 5 Jan 2010 11:06:52 -0800 Subject: [IronPython] Silverlight IronPy Video Player In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920700A7@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001042103q32aa38e6w2ed2589937ec34a0@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920700A7@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <321b88ab1001051106s14ac3c5dma064e6b778331968@mail.gmail.com> Hi Thank you for the reply I was able to get a simple video player working. The only IronPython code I seem to be having problems with now is using a Image as a Button I can't seem to figure out the syntax of that any suggestions are welcome button1 = Button() Image() etc just not sure I would really appreciate some advice on this On Tue, Jan 5, 2010 at 2:19 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > There?s plenty of samples out there about playing video in Silverlight > (with C# or VB), and any of those should be easily translated to Python as > well. I?m assuming you?re not having trouble with actual Python code, but > you don?t know where to start with video in Silverlight: the Silverlight 3 > Video and Audio documentation is a great place to start: > http://msdn.microsoft.com/en-us/library/cc189078(VS.95).aspx. > Let me know if you need help with the IronPython portion. > > > > ~js > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Andrew Evans > *Sent:* Monday, January 04, 2010 9:04 PM > *To:* users at lists.ironpython.com > *Subject:* [IronPython] Silverlight IronPy Video Player > > > > Does anyone have an example of a Video Player in IronPython using > Silverlight? > I would like to eventually build one. My Objectives are to dynamically > generate the source Video Files in to the Silverlight App. But I can't seem > to get past or find info on what is needed to build a Video Player using the > IronPython/Silverlight controls > > Cheers > > > Andrew > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ecullen at fibertel.com.ar Tue Jan 5 20:24:51 2010 From: ecullen at fibertel.com.ar (Ernesto Cullen) Date: Tue, 05 Jan 2010 16:24:51 -0300 Subject: [IronPython] can't execute method in globals Message-ID: <4B439203.8000101@fibertel.com.ar> hi all I have problems trying to update (from Ipy 1.1) code which uses IronPython scripts from an app in C#. If someone can shed a light on why this does not work, please... Ernesto Cullen I have this code in Ipy 1.1: EngineOptions engineOptions = new EngineOptions(); engineOptions.ExceptionDetail = true; engineOptions.ClrDebuggingEnabled = true; engineOptions.ShowClrExceptions = true; _pythonEngine = new PythonEngine(engineOptions); _pythonEngine.Globals["DbUtils"] = new DbUtils(); //class with db methods like ExecuteQuery ... Then I execute a script like this MSSqlServerUtils.py def InitDbUtils(): gl = globals() dbu = gs["DbUtils"] gl["ExecuteQuery"] = lambda q: dbu.ExecuteQuery(q) ... InitDbUtils() dbInfo = ExecuteQuery("SELECT ISNULL(SERVERPROPERTY('InstanceName'),'') instanceName") # (*) ... This works in Ipy 1.1, the query is executed, and returns a DataTable from the ExecuteQuery method of DbUtils class. In Ipy 2.6 I changed the initialization: _scriptEngine = Python.CreateEngine(options); //options is a Dictionary _scriptScope = _scriptEngine.CreateScope(); _scriptScope.SetVariable("DbUtils", new DbUtils()); ... and when the (*) line is reached, an exception is thrown: 'MSSqlServerUtils' object has no attribute 'ExecuteQuery' at IronPython.Runtime.Binding.PythonGetMemberBinder.FastErrorGet`1.GetError(CallSite site, TSelfType target, CodeContext context) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at $3.$1204(PythonFunction $function, Object q) in DbUtils.py:line 11 at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite site, CodeContext context, Object func, T0 arg0) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at $4.__init__$1243(PythonFunction $function, Object self) in MSSQLServer.py:line 157 at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite site, CodeContext context, Object func, T0 arg0) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at CallSite.Target(Closure , CallSite , CodeContext , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at CallSite.Target(Closure , CallSite , CodeContext , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at $4.Start$1244(PythonFunction $function) in MSSQLServer.py:line 162 at IronPython.Runtime.PythonFunction.FunctionCaller.Call0(CallSite site, CodeContext context, Object func) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrameframe) at Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) at IronPython.Compiler.PythonScriptCode.Run(Scope scope) at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope) at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink) at Microsoft.Scripting.SourceUnit.Execute(Scope scope) at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression, ScriptScope scope) -- Tell me and I forget. Teach me and I remember. Involve me and I learn. Benjamin Franklin From dinov at microsoft.com Tue Jan 5 20:39:24 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 5 Jan 2010 19:39:24 +0000 Subject: [IronPython] can't execute method in globals In-Reply-To: <4B439203.8000101@fibertel.com.ar> References: <4B439203.8000101@fibertel.com.ar> Message-ID: <1A472770E042064698CB5ADC83A12ACD284AE47A@TK5EX14MBXC118.redmond.corp.microsoft.com> What is "gs" in InitDbUtils, should that be gl? Also can you include the line of code where you're actually executing the code from your host? Are you setting ScriptRuntime.Globals to _scriptScope? Because I think Globals may have changed meaning between 1.1 and 2.0/2.6. In 2.x Globals is made available via imports but I don't remember how it was exposed in 1.1. I think what you want to do is call the Execute overload that takes a ScriptScope and pass in _scriptScope. Alternately you want to create a ScriptSource, Compile it, and then Execute it against the _scriptScope. But it's hard to tell w/o the full context. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Ernesto Cullen > Sent: Tuesday, January 05, 2010 11:25 AM > To: users at lists.ironpython.com > Subject: [IronPython] can't execute method in globals > > hi all > I have problems trying to update (from Ipy 1.1) code which uses > IronPython scripts from an app in C#. If someone can shed a light on why > this does not work, please... > > Ernesto Cullen > > > I have this code in Ipy 1.1: > > EngineOptions engineOptions = new EngineOptions(); > engineOptions.ExceptionDetail = true; > engineOptions.ClrDebuggingEnabled = true; > engineOptions.ShowClrExceptions = true; > _pythonEngine = new PythonEngine(engineOptions); > > _pythonEngine.Globals["DbUtils"] = new DbUtils(); //class with db > methods like ExecuteQuery > ... > > Then I execute a script like this > > MSSqlServerUtils.py > def InitDbUtils(): > gl = globals() > dbu = gs["DbUtils"] > gl["ExecuteQuery"] = lambda q: dbu.ExecuteQuery(q) > ... > InitDbUtils() > > dbInfo = ExecuteQuery("SELECT ISNULL(SERVERPROPERTY('InstanceName'),'') > instanceName") # (*) > ... > > This works in Ipy 1.1, the query is executed, and returns a DataTable > from the ExecuteQuery method of DbUtils class. > > In Ipy 2.6 I changed the initialization: > _scriptEngine = Python.CreateEngine(options); //options is a > Dictionary > _scriptScope = _scriptEngine.CreateScope(); > _scriptScope.SetVariable("DbUtils", new DbUtils()); > ... > and when the (*) line is reached, an exception is thrown: > > 'MSSqlServerUtils' object has no attribute 'ExecuteQuery' > at > IronPython.Runtime.Binding.PythonGetMemberBinder.FastErrorGet`1.GetError(CallS > ite > site, TSelfType target, CodeContext context) > at > System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > site, T0 arg0, T1 arg1) > at $3.$1204(PythonFunction $function, Object > q) in DbUtils.py:line 11 > at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite > site, CodeContext context, Object func, T0 arg0) > at > System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite > site, T0 arg0, T1 arg1, T2 arg2) > at $4.__init__$1243(PythonFunction $function, Object self) > in MSSQLServer.py:line 157 > at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite > site, CodeContext context, Object func, T0 arg0) > at > System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite > site, T0 arg0, T1 arg1, T2 arg2) > at CallSite.Target(Closure , CallSite , CodeContext , Object ) > at > System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > site, T0 arg0, T1 arg1) > at CallSite.Target(Closure , CallSite , CodeContext , Object ) > at > System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > site, T0 arg0, T1 arg1) > at $4.Start$1244(PythonFunction $function) in > MSSQLServer.py:line 162 > at IronPython.Runtime.PythonFunction.FunctionCaller.Call0(CallSite > site, CodeContext context, Object func) > at > System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > site, T0 arg0, T1 arg1) > at > Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrameframe > ) > at > Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFrame > frame) > at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame > frame) > at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 > arg0, T1 arg1) > at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) > at IronPython.Compiler.PythonScriptCode.Run(Scope scope) > at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) > at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope) > at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink > errorSink) > at Microsoft.Scripting.SourceUnit.Execute(Scope scope) > at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) > at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String > expression, ScriptScope scope) > > -- > Tell me and I forget. Teach me and I remember. Involve me and I learn. > Benjamin Franklin > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From ecullen at fibertel.com.ar Tue Jan 5 20:57:39 2010 From: ecullen at fibertel.com.ar (Ernesto Cullen) Date: Tue, 05 Jan 2010 16:57:39 -0300 Subject: [IronPython] can't execute method in globals In-Reply-To: <1A472770E042064698CB5ADC83A12ACD284AE47A@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B439203.8000101@fibertel.com.ar> <1A472770E042064698CB5ADC83A12ACD284AE47A@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B4399B3.3070903@fibertel.com.ar> > What is "gs" in InitDbUtils, should that be gl? yes, sorry > Also can you include the line of code where you're actually executing > the code from your host? The main code (the lambda definitions etc) is executed like this: ScriptSource source = _scriptEngine.CreateScriptSourceFromString(script_string, file_path, SourceCodeKind.Statements); source.Execute(_scriptScope); then, the main entry point is executed separately: _scriptEngine.Execute("Start()", _scriptScope) where Start() is a function in MSSqlServerUtils.py. > Are you setting ScriptRuntime.Globals to > _scriptScope? I've tested with and without it, same result > Because I think Globals may have changed meaning between > 1.1 and 2.0/2.6. In 2.x Globals is made available via imports but I don't > remember how it was exposed in 1.1. I think what you want to do is call the > Execute overload that takes a ScriptScope and pass in _scriptScope. > Alternately you want to create a ScriptSource, Compile it, and then Execute > it against the _scriptScope. But it's hard to tell w/o the full context. > Hope it is clear now. The actual code is pretty big, and it is part of a company project so I can't send it fully. In essence, what I am trying to do is execute some c# methods from python scripts -but don't want to expose the whole class to the scripts, only the methods as functions. Ernesto >> -----Original Message----- >> From: users-bounces at lists.ironpython.com [mailto:users- >> bounces at lists.ironpython.com] On Behalf Of Ernesto Cullen >> Sent: Tuesday, January 05, 2010 11:25 AM >> To: users at lists.ironpython.com >> Subject: [IronPython] can't execute method in globals >> >> hi all >> I have problems trying to update (from Ipy 1.1) code which uses >> IronPython scripts from an app in C#. If someone can shed a light on why >> this does not work, please... >> >> Ernesto Cullen >> >> >> I have this code in Ipy 1.1: >> >> EngineOptions engineOptions = new EngineOptions(); >> engineOptions.ExceptionDetail = true; >> engineOptions.ClrDebuggingEnabled = true; >> engineOptions.ShowClrExceptions = true; >> _pythonEngine = new PythonEngine(engineOptions); >> >> _pythonEngine.Globals["DbUtils"] = new DbUtils(); //class with db >> methods like ExecuteQuery >> ... >> >> Then I execute a script like this >> >> MSSqlServerUtils.py >> def InitDbUtils(): >> gl = globals() >> dbu = gs["DbUtils"] >> gl["ExecuteQuery"] = lambda q: dbu.ExecuteQuery(q) >> ... >> InitDbUtils() >> >> dbInfo = ExecuteQuery("SELECT ISNULL(SERVERPROPERTY('InstanceName'),'') >> instanceName") # (*) >> ... >> >> This works in Ipy 1.1, the query is executed, and returns a DataTable >> from the ExecuteQuery method of DbUtils class. >> >> In Ipy 2.6 I changed the initialization: >> _scriptEngine = Python.CreateEngine(options); //options is a >> Dictionary >> _scriptScope = _scriptEngine.CreateScope(); >> _scriptScope.SetVariable("DbUtils", new DbUtils()); >> ... >> and when the (*) line is reached, an exception is thrown: >> >> 'MSSqlServerUtils' object has no attribute 'ExecuteQuery' >> at >> IronPython.Runtime.Binding.PythonGetMemberBinder.FastErrorGet`1.GetError(CallS >> ite >> site, TSelfType target, CodeContext context) >> at >> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite >> site, T0 arg0, T1 arg1) >> at$3.$1204(PythonFunction $function, Object >> q) in DbUtils.py:line 11 >> at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite >> site, CodeContext context, Object func, T0 arg0) >> at >> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite >> site, T0 arg0, T1 arg1, T2 arg2) >> at$4.__init__$1243(PythonFunction $function, Object self) >> in MSSQLServer.py:line 157 >> at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite >> site, CodeContext context, Object func, T0 arg0) >> at >> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite >> site, T0 arg0, T1 arg1, T2 arg2) >> at CallSite.Target(Closure , CallSite , CodeContext , Object ) >> at >> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite >> site, T0 arg0, T1 arg1) >> at CallSite.Target(Closure , CallSite , CodeContext , Object ) >> at >> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite >> site, T0 arg0, T1 arg1) >> at$4.Start$1244(PythonFunction $function) in >> MSSQLServer.py:line 162 >> at IronPython.Runtime.PythonFunction.FunctionCaller.Call0(CallSite >> site, CodeContext context, Object func) >> at >> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite >> site, T0 arg0, T1 arg1) >> at >> Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrameframe >> ) >> at >> Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFrame >> frame) >> at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame >> frame) >> at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 >> arg0, T1 arg1) >> at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) >> at IronPython.Compiler.PythonScriptCode.Run(Scope scope) >> at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) >> at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope) >> at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink >> errorSink) >> at Microsoft.Scripting.SourceUnit.Execute(Scope scope) >> at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) >> at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String >> expression, ScriptScope scope) >> >> -- >> Tell me and I forget. Teach me and I remember. Involve me and I learn. >> Benjamin Franklin >> >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -- Tell me and I forget. Teach me and I remember. Involve me and I learn. Benjamin Franklin From dinov at microsoft.com Tue Jan 5 21:29:25 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 5 Jan 2010 20:29:25 +0000 Subject: [IronPython] can't execute method in globals In-Reply-To: <4B4399B3.3070903@fibertel.com.ar> References: <4B439203.8000101@fibertel.com.ar> <1A472770E042064698CB5ADC83A12ACD284AE47A@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4399B3.3070903@fibertel.com.ar> Message-ID: <1A472770E042064698CB5ADC83A12ACD34B67EF2@TK5EX14MBXC116.redmond.corp.microsoft.com> Is there anything different from the code below vs. what you're trying to do? Because this works for me in 2.6. It would seem like the only possible difference (based upon the error) is that there's some access ExecuteQuery on an MSSqlServerUtils object which I'm not seeing. If that's the case it may be that the type is internal or ExecuteQuery is not a public method on it. I seem to recall that we've tightened up some member access rules between 1.1 and 2.6. using System; using IronPython.Hosting; using IronPython.Runtime; using IronPython.Runtime.Operations; using Microsoft.Scripting; using Microsoft.Scripting.Hosting; using IronPython.Runtime.Exceptions; using System.Runtime.CompilerServices; using Microsoft.Scripting.Runtime; public class Foo { public static void Main(string[] args){ var pe = Python.CreateEngine(); var scope = pe.CreateScope(); scope.SetVariable("test", new Foo()); pe.Execute(@" def f(): x = globals() x[""foo""] = lambda : x[""test""].X() f() foo() ", scope); } public void X() { Console.WriteLine("Called"); } } > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Ernesto Cullen > Sent: Tuesday, January 05, 2010 11:58 AM > To: Discussion of IronPython > Subject: Re: [IronPython] can't execute method in globals > > > What is "gs" in InitDbUtils, should that be gl? > > yes, sorry > > > Also can you include the line of code where you're actually executing > > the code from your host? > The main code (the lambda definitions etc) is executed like this: > > ScriptSource source = > _scriptEngine.CreateScriptSourceFromString(script_string, file_path, > SourceCodeKind.Statements); > source.Execute(_scriptScope); > > then, the main entry point is executed separately: > > _scriptEngine.Execute("Start()", _scriptScope) > > where Start() is a function in MSSqlServerUtils.py. > > > Are you setting ScriptRuntime.Globals to > > _scriptScope? > I've tested with and without it, same result > > > Because I think Globals may have changed meaning between > > 1.1 and 2.0/2.6. In 2.x Globals is made available via imports but I don't > > remember how it was exposed in 1.1. I think what you want to do is call the > > Execute overload that takes a ScriptScope and pass in _scriptScope. > > Alternately you want to create a ScriptSource, Compile it, and then Execute > > it against the _scriptScope. But it's hard to tell w/o the full context. > > > Hope it is clear now. The actual code is pretty big, and it is part of a > company project so I can't send it fully. > In essence, what I am trying to do is execute some c# methods from > python scripts -but don't want to expose the whole class to the scripts, > only the methods as functions. > > Ernesto > > > >> -----Original Message----- > >> From: users-bounces at lists.ironpython.com [mailto:users- > >> bounces at lists.ironpython.com] On Behalf Of Ernesto Cullen > >> Sent: Tuesday, January 05, 2010 11:25 AM > >> To: users at lists.ironpython.com > >> Subject: [IronPython] can't execute method in globals > >> > >> hi all > >> I have problems trying to update (from Ipy 1.1) code which uses > >> IronPython scripts from an app in C#. If someone can shed a light on why > >> this does not work, please... > >> > >> Ernesto Cullen > >> > >> > >> I have this code in Ipy 1.1: > >> > >> EngineOptions engineOptions = new EngineOptions(); > >> engineOptions.ExceptionDetail = true; > >> engineOptions.ClrDebuggingEnabled = true; > >> engineOptions.ShowClrExceptions = true; > >> _pythonEngine = new PythonEngine(engineOptions); > >> > >> _pythonEngine.Globals["DbUtils"] = new DbUtils(); //class with db > >> methods like ExecuteQuery > >> ... > >> > >> Then I execute a script like this > >> > >> MSSqlServerUtils.py > >> def InitDbUtils(): > >> gl = globals() > >> dbu = gs["DbUtils"] > >> gl["ExecuteQuery"] = lambda q: dbu.ExecuteQuery(q) > >> ... > >> InitDbUtils() > >> > >> dbInfo = ExecuteQuery("SELECT ISNULL(SERVERPROPERTY('InstanceName'),'') > >> instanceName") # (*) > >> ... > >> > >> This works in Ipy 1.1, the query is executed, and returns a DataTable > >> from the ExecuteQuery method of DbUtils class. > >> > >> In Ipy 2.6 I changed the initialization: > >> _scriptEngine = Python.CreateEngine(options); //options is a > >> Dictionary > >> _scriptScope = _scriptEngine.CreateScope(); > >> _scriptScope.SetVariable("DbUtils", new DbUtils()); > >> ... > >> and when the (*) line is reached, an exception is thrown: > >> > >> 'MSSqlServerUtils' object has no attribute 'ExecuteQuery' > >> at > >> > IronPython.Runtime.Binding.PythonGetMemberBinder.FastErrorGet`1.GetError(CallS > >> ite > >> site, TSelfType target, CodeContext context) > >> at > >> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > >> site, T0 arg0, T1 arg1) > >> at$3.$1204(PythonFunction $function, Object > >> q) in DbUtils.py:line 11 > >> at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite > >> site, CodeContext context, Object func, T0 arg0) > >> at > >> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite > >> site, T0 arg0, T1 arg1, T2 arg2) > >> at$4.__init__$1243(PythonFunction $function, Object self) > >> in MSSQLServer.py:line 157 > >> at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite > >> site, CodeContext context, Object func, T0 arg0) > >> at > >> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite > >> site, T0 arg0, T1 arg1, T2 arg2) > >> at CallSite.Target(Closure , CallSite , CodeContext , Object ) > >> at > >> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > >> site, T0 arg0, T1 arg1) > >> at CallSite.Target(Closure , CallSite , CodeContext , Object ) > >> at > >> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > >> site, T0 arg0, T1 arg1) > >> at$4.Start$1244(PythonFunction $function) in > >> MSSQLServer.py:line 162 > >> at IronPython.Runtime.PythonFunction.FunctionCaller.Call0(CallSite > >> site, CodeContext context, Object func) > >> at > >> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > >> site, T0 arg0, T1 arg1) > >> at > >> > Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrameframe > >> ) > >> at > >> > Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFrame > >> frame) > >> at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame > >> frame) > >> at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 > >> arg0, T1 arg1) > >> at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) > >> at IronPython.Compiler.PythonScriptCode.Run(Scope scope) > >> at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) > >> at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope) > >> at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink > >> errorSink) > >> at Microsoft.Scripting.SourceUnit.Execute(Scope scope) > >> at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) > >> at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String > >> expression, ScriptScope scope) > >> > >> -- > >> Tell me and I forget. Teach me and I remember. Involve me and I learn. > >> Benjamin Franklin > >> > >> _______________________________________________ > >> Users mailing list > >> Users at lists.ironpython.com > >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >> > > _______________________________________________ > > Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > > -- > Tell me and I forget. Teach me and I remember. Involve me and I learn. > Benjamin Franklin > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From andrew.canit at gmail.com Tue Jan 5 21:44:15 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Tue, 5 Jan 2010 12:44:15 -0800 Subject: [IronPython] Can't Get an Image on a Button Ipy Silverlight Message-ID: <321b88ab1001051244m66f3897awc1b5326bcd977842@mail.gmail.com> I have been trying for two days now and can't seem to get it right. It doesn't help that Silverlight returns no errors Can any one help me figure out how to use an image as a Button in Silverlight some code I have tried self.stopB = Button() # stop button imageSource = Uri("images/stop.jpg", UriKind.Relative) stopImage = Image() stopImage.Source = imageSource self.stopB.Content = stopImage Cheers Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 5 22:10:08 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 5 Jan 2010 21:10:08 +0000 Subject: [IronPython] Can't Get an Image on a Button Ipy Silverlight In-Reply-To: <321b88ab1001051244m66f3897awc1b5326bcd977842@mail.gmail.com> References: <321b88ab1001051244m66f3897awc1b5326bcd977842@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920705CB@TK5EX14MBXC141.redmond.corp.microsoft.com> I think BitmapImage is what you're looking for: from System import Uri, UriKind from System.Windows.Controls import Button from System.Windows.Media.Imaging import BitmapImage stopB = Button() stopB.Content = BitmapImage(Uri("images/stop.jpg", UriKind.Relative)) ~js From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew Evans Sent: Tuesday, January 05, 2010 12:44 PM To: users at lists.ironpython.com Subject: [IronPython] Can't Get an Image on a Button Ipy Silverlight I have been trying for two days now and can't seem to get it right. It doesn't help that Silverlight returns no errors Can any one help me figure out how to use an image as a Button in Silverlight some code I have tried self.stopB = Button() # stop button imageSource = Uri("images/stop.jpg", UriKind.Relative) stopImage = Image() stopImage.Source = imageSource self.stopB.Content = stopImage Cheers Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Wed Jan 6 02:15:59 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Tue, 5 Jan 2010 17:15:59 -0800 Subject: [IronPython] Can't Get an Image on a Button Ipy Silverlight In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920705CB@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001051244m66f3897awc1b5326bcd977842@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920705CB@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <321b88ab1001051715ofc92f54tace2f8f357b8c14a@mail.gmail.com> I am still having problems. I don't think its a pathing issue but the Images don't display because I tried: "/images/stop.jpg" "images/stop.jpg" and placing the images in the same folder "stop.jpg" here is a chunk of my code from System.Windows.Controls import Button, Orientation, StackPanel from System import Uri, UriKind from System.Windows.Media.Imaging import BitmapImage .................. self.stopB = Button() self.stopB.Width = 25 self.stopB.Height = 20 self.stopB.Content = BitmapImage(Uri("/images/stop.jpg", UriKind.Relative)) ..................... On Tue, Jan 5, 2010 at 1:10 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > I think BitmapImage is what you?re looking for: > > > > from System import Uri, UriKind > > from System.Windows.Controls import Button > > from System.Windows.Media.Imaging import BitmapImage > > > > stopB = Button() > > stopB.Content = BitmapImage(Uri("images/stop.jpg", UriKind.Relative)) > > > > ~js > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Andrew Evans > *Sent:* Tuesday, January 05, 2010 12:44 PM > *To:* users at lists.ironpython.com > *Subject:* [IronPython] Can't Get an Image on a Button Ipy Silverlight > > > > I have been trying for two days now and can't seem to get it right. It > doesn't help that Silverlight returns no errors > > Can any one help me figure out how to use an image as a Button in > Silverlight > > some code I have tried > > self.stopB = Button() # stop button > imageSource = Uri("images/stop.jpg", UriKind.Relative) > stopImage = Image() > stopImage.Source = imageSource > self.stopB.Content = stopImage > > Cheers > > Andrew > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Jan 6 02:32:36 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 6 Jan 2010 01:32:36 +0000 Subject: [IronPython] Can't Get an Image on a Button Ipy Silverlight In-Reply-To: <321b88ab1001051715ofc92f54tace2f8f357b8c14a@mail.gmail.com> References: <321b88ab1001051244m66f3897awc1b5326bcd977842@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920705CB@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001051715ofc92f54tace2f8f357b8c14a@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92070A67@TK5EX14MBXC141.redmond.corp.microsoft.com> Can you possibly send me your project zipped up? jimmysch*(at)*microsoft.com. "images/stop.jpg" I believe will first look into images/stop.jpg inside the XAP file, and the look at http://yourserver.com/path/to/xap/images/stop.jpg, but I can get it working for you. From ecullen at fibertel.com.ar Wed Jan 6 14:26:51 2010 From: ecullen at fibertel.com.ar (Ernesto Cullen) Date: Wed, 06 Jan 2010 10:26:51 -0300 Subject: [IronPython] can't execute method in globals In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34B67EF2@TK5EX14MBXC116.redmond.corp.microsoft.com> References: <4B439203.8000101@fibertel.com.ar> <1A472770E042064698CB5ADC83A12ACD284AE47A@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4399B3.3070903@fibertel.com.ar> <1A472770E042064698CB5ADC83A12ACD34B67EF2@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: <4B448F9B.6000301@fibertel.com.ar> Thanks for the prompt answer! I finally found that the MSSqlServerUtils class is internal... changed to public and all worked ok! Now I am trying to make the internals visible to the scripts. I tried with [assembly: InternalsVisibleToAttribute("MyDemoProject,PublicKey=blahblahblah")] and [assembly: InternalsVisibleToAttribute("IronPython,PublicKey=blahblahblah")] but it did not succeed... is there a way to make the internals visible to the scripts? Ernesto El 05/01/2010 17:29, Dino Viehland escribi?: > Is there anything different from the code below vs. what you're trying to do? Because > this works for me in 2.6. It would seem like the only possible difference (based upon > the error) is that there's some access ExecuteQuery on an MSSqlServerUtils object > which I'm not seeing. If that's the case it may be that the type is internal or > ExecuteQuery is not a public method on it. I seem to recall that we've tightened up > some member access rules between 1.1 and 2.6. > > using System; > using IronPython.Hosting; > using IronPython.Runtime; > using IronPython.Runtime.Operations; > using Microsoft.Scripting; > using Microsoft.Scripting.Hosting; > using IronPython.Runtime.Exceptions; > using System.Runtime.CompilerServices; > using Microsoft.Scripting.Runtime; > > public class Foo { > public static void Main(string[] args){ > > var pe = Python.CreateEngine(); > > var scope = pe.CreateScope(); > scope.SetVariable("test", new Foo()); > pe.Execute(@" > def f(): > x = globals() > x[""foo""] = lambda : x[""test""].X() > > f() > foo() > ", scope); > > } > > public void X() { > Console.WriteLine("Called"); > } > } > > > >> -----Original Message----- >> From: users-bounces at lists.ironpython.com [mailto:users- >> bounces at lists.ironpython.com] On Behalf Of Ernesto Cullen >> Sent: Tuesday, January 05, 2010 11:58 AM >> To: Discussion of IronPython >> Subject: Re: [IronPython] can't execute method in globals >> >> > What is "gs" in InitDbUtils, should that be gl? >> >> yes, sorry >> >> >>> Also can you include the line of code where you're actually executing >>> the code from your host? >>> >> The main code (the lambda definitions etc) is executed like this: >> >> ScriptSource source = >> _scriptEngine.CreateScriptSourceFromString(script_string, file_path, >> SourceCodeKind.Statements); >> source.Execute(_scriptScope); >> >> then, the main entry point is executed separately: >> >> _scriptEngine.Execute("Start()", _scriptScope) >> >> where Start() is a function in MSSqlServerUtils.py. >> >> >>> Are you setting ScriptRuntime.Globals to >>> _scriptScope? >>> >> I've tested with and without it, same result >> >> >>> Because I think Globals may have changed meaning between >>> 1.1 and 2.0/2.6. In 2.x Globals is made available via imports but I don't >>> remember how it was exposed in 1.1. I think what you want to do is call the >>> Execute overload that takes a ScriptScope and pass in _scriptScope. >>> Alternately you want to create a ScriptSource, Compile it, and then Execute >>> it against the _scriptScope. But it's hard to tell w/o the full context. >>> >>> >> Hope it is clear now. The actual code is pretty big, and it is part of a >> company project so I can't send it fully. >> In essence, what I am trying to do is execute some c# methods from >> python scripts -but don't want to expose the whole class to the scripts, >> only the methods as functions. >> >> Ernesto >> >> >> >>>> -----Original Message----- >>>> From: users-bounces at lists.ironpython.com [mailto:users- >>>> bounces at lists.ironpython.com] On Behalf Of Ernesto Cullen >>>> Sent: Tuesday, January 05, 2010 11:25 AM >>>> To: users at lists.ironpython.com >>>> Subject: [IronPython] can't execute method in globals >>>> >>>> hi all >>>> I have problems trying to update (from Ipy 1.1) code which uses >>>> IronPython scripts from an app in C#. If someone can shed a light on why >>>> this does not work, please... >>>> >>>> Ernesto Cullen >>>> >>>> >>>> I have this code in Ipy 1.1: >>>> >>>> EngineOptions engineOptions = new EngineOptions(); >>>> engineOptions.ExceptionDetail = true; >>>> engineOptions.ClrDebuggingEnabled = true; >>>> engineOptions.ShowClrExceptions = true; >>>> _pythonEngine = new PythonEngine(engineOptions); >>>> >>>> _pythonEngine.Globals["DbUtils"] = new DbUtils(); //class with db >>>> methods like ExecuteQuery >>>> ... >>>> >>>> Then I execute a script like this >>>> >>>> MSSqlServerUtils.py >>>> def InitDbUtils(): >>>> gl = globals() >>>> dbu = gs["DbUtils"] >>>> gl["ExecuteQuery"] = lambda q: dbu.ExecuteQuery(q) >>>> ... >>>> InitDbUtils() >>>> >>>> dbInfo = ExecuteQuery("SELECT ISNULL(SERVERPROPERTY('InstanceName'),'') >>>> instanceName") # (*) >>>> ... >>>> >>>> This works in Ipy 1.1, the query is executed, and returns a DataTable >>>> from the ExecuteQuery method of DbUtils class. >>>> >>>> In Ipy 2.6 I changed the initialization: >>>> _scriptEngine = Python.CreateEngine(options); //options is a >>>> Dictionary >>>> _scriptScope = _scriptEngine.CreateScope(); >>>> _scriptScope.SetVariable("DbUtils", new DbUtils()); >>>> ... >>>> and when the (*) line is reached, an exception is thrown: >>>> >>>> 'MSSqlServerUtils' object has no attribute 'ExecuteQuery' >>>> at >>>> >>>> >> IronPython.Runtime.Binding.PythonGetMemberBinder.FastErrorGet`1.GetError(CallS >> >>>> ite >>>> site, TSelfType target, CodeContext context) >>>> at >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite >>>> site, T0 arg0, T1 arg1) >>>> at$3.$1204(PythonFunction $function, Object >>>> q) in DbUtils.py:line 11 >>>> at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite >>>> site, CodeContext context, Object func, T0 arg0) >>>> at >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite >>>> site, T0 arg0, T1 arg1, T2 arg2) >>>> at$4.__init__$1243(PythonFunction $function, Object self) >>>> in MSSQLServer.py:line 157 >>>> at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite >>>> site, CodeContext context, Object func, T0 arg0) >>>> at >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite >>>> site, T0 arg0, T1 arg1, T2 arg2) >>>> at CallSite.Target(Closure , CallSite , CodeContext , Object ) >>>> at >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite >>>> site, T0 arg0, T1 arg1) >>>> at CallSite.Target(Closure , CallSite , CodeContext , Object ) >>>> at >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite >>>> site, T0 arg0, T1 arg1) >>>> at$4.Start$1244(PythonFunction $function) in >>>> MSSQLServer.py:line 162 >>>> at IronPython.Runtime.PythonFunction.FunctionCaller.Call0(CallSite >>>> site, CodeContext context, Object func) >>>> at >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite >>>> site, T0 arg0, T1 arg1) >>>> at >>>> >>>> >> Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrameframe >> >>>> ) >>>> at >>>> >>>> >> Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFrame >> >>>> frame) >>>> at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame >>>> frame) >>>> at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 >>>> arg0, T1 arg1) >>>> at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) >>>> at IronPython.Compiler.PythonScriptCode.Run(Scope scope) >>>> at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) >>>> at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope) >>>> at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink >>>> errorSink) >>>> at Microsoft.Scripting.SourceUnit.Execute(Scope scope) >>>> at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) >>>> at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String >>>> expression, ScriptScope scope) >>>> >>>> -- >>>> Tell me and I forget. Teach me and I remember. Involve me and I learn. >>>> Benjamin Franklin >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users at lists.ironpython.com >>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>>> >>>> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.ironpython.com >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>> >>> >>> >> -- >> Tell me and I forget. Teach me and I remember. Involve me and I learn. >> Benjamin Franklin >> >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -- Tell me and I forget. Teach me and I remember. Involve me and I learn. Benjamin Franklin From Justin.Perez at energytransfer.com Wed Jan 6 15:48:00 2010 From: Justin.Perez at energytransfer.com (Perez, Justin) Date: Wed, 6 Jan 2010 08:48:00 -0600 Subject: [IronPython] IronPython 2.0.3 References: Message-ID: <5D89E1EA57432748ADF38D7724384892011357E0@SANxchg01.etc.lan> Hi. I am seemingly locked into Python 2.5 for compatibility with requirements from ESRI based products. I am wanting to write some C# code (very new to it) and call it from Python. Should I use IronPython 2.0.3? The C# interfaces are from GPS Pathfinder Office application. Hopefully I detailed the question sufficiently. Thanks. From dinov at microsoft.com Wed Jan 6 18:14:26 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 6 Jan 2010 17:14:26 +0000 Subject: [IronPython] can't execute method in globals In-Reply-To: <4B448F9B.6000301@fibertel.com.ar> References: <4B439203.8000101@fibertel.com.ar> <1A472770E042064698CB5ADC83A12ACD284AE47A@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4399B3.3070903@fibertel.com.ar> <1A472770E042064698CB5ADC83A12ACD34B67EF2@TK5EX14MBXC116.redmond.corp.microsoft.com> <4B448F9B.6000301@fibertel.com.ar> Message-ID: <1A472770E042064698CB5ADC83A12ACD34B80E33@TK5EX14MBXC116.redmond.corp.microsoft.com> There's no way to do internals visible to w/ dynamic code because we need to create the assembly at runtime. You could use the PrivateBinding option but it'll allow access to any members on all types and also requires full trust. I'd suggest just making the type public or alternately you could inject delegates to private functions into the scope instead. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Ernesto Cullen > Sent: Wednesday, January 06, 2010 5:27 AM > To: Discussion of IronPython > Subject: Re: [IronPython] can't execute method in globals > > Thanks for the prompt answer! I finally found that the MSSqlServerUtils > class is internal... changed to public and all worked ok! > Now I am trying to make the internals visible to the scripts. I tried with > > [assembly: > InternalsVisibleToAttribute("MyDemoProject,PublicKey=blahblahblah")] > and > [assembly: > InternalsVisibleToAttribute("IronPython,PublicKey=blahblahblah")] > > but it did not succeed... is there a way to make the internals visible > to the scripts? > > Ernesto > > > El 05/01/2010 17:29, Dino Viehland escribi?: > > Is there anything different from the code below vs. what you're trying to > do? Because > > this works for me in 2.6. It would seem like the only possible difference > (based upon > > the error) is that there's some access ExecuteQuery on an MSSqlServerUtils > object > > which I'm not seeing. If that's the case it may be that the type is > internal or > > ExecuteQuery is not a public method on it. I seem to recall that we've > tightened up > > some member access rules between 1.1 and 2.6. > > > > using System; > > using IronPython.Hosting; > > using IronPython.Runtime; > > using IronPython.Runtime.Operations; > > using Microsoft.Scripting; > > using Microsoft.Scripting.Hosting; > > using IronPython.Runtime.Exceptions; > > using System.Runtime.CompilerServices; > > using Microsoft.Scripting.Runtime; > > > > public class Foo { > > public static void Main(string[] args){ > > > > var pe = Python.CreateEngine(); > > > > var scope = pe.CreateScope(); > > scope.SetVariable("test", new Foo()); > > pe.Execute(@" > > def f(): > > x = globals() > > x[""foo""] = lambda : x[""test""].X() > > > > f() > > foo() > > ", scope); > > > > } > > > > public void X() { > > Console.WriteLine("Called"); > > } > > } > > > > > > > >> -----Original Message----- > >> From: users-bounces at lists.ironpython.com [mailto:users- > >> bounces at lists.ironpython.com] On Behalf Of Ernesto Cullen > >> Sent: Tuesday, January 05, 2010 11:58 AM > >> To: Discussion of IronPython > >> Subject: Re: [IronPython] can't execute method in globals > >> > >> > What is "gs" in InitDbUtils, should that be gl? > >> > >> yes, sorry > >> > >> > >>> Also can you include the line of code where you're actually executing > >>> the code from your host? > >>> > >> The main code (the lambda definitions etc) is executed like this: > >> > >> ScriptSource source = > >> _scriptEngine.CreateScriptSourceFromString(script_string, file_path, > >> SourceCodeKind.Statements); > >> source.Execute(_scriptScope); > >> > >> then, the main entry point is executed separately: > >> > >> _scriptEngine.Execute("Start()", _scriptScope) > >> > >> where Start() is a function in MSSqlServerUtils.py. > >> > >> > >>> Are you setting ScriptRuntime.Globals to > >>> _scriptScope? > >>> > >> I've tested with and without it, same result > >> > >> > >>> Because I think Globals may have changed meaning between > >>> 1.1 and 2.0/2.6. In 2.x Globals is made available via imports but I don't > >>> remember how it was exposed in 1.1. I think what you want to do is call > the > >>> Execute overload that takes a ScriptScope and pass in _scriptScope. > >>> Alternately you want to create a ScriptSource, Compile it, and then > Execute > >>> it against the _scriptScope. But it's hard to tell w/o the full context. > >>> > >>> > >> Hope it is clear now. The actual code is pretty big, and it is part of a > >> company project so I can't send it fully. > >> In essence, what I am trying to do is execute some c# methods from > >> python scripts -but don't want to expose the whole class to the scripts, > >> only the methods as functions. > >> > >> Ernesto > >> > >> > >> > >>>> -----Original Message----- > >>>> From: users-bounces at lists.ironpython.com [mailto:users- > >>>> bounces at lists.ironpython.com] On Behalf Of Ernesto Cullen > >>>> Sent: Tuesday, January 05, 2010 11:25 AM > >>>> To: users at lists.ironpython.com > >>>> Subject: [IronPython] can't execute method in globals > >>>> > >>>> hi all > >>>> I have problems trying to update (from Ipy 1.1) code which uses > >>>> IronPython scripts from an app in C#. If someone can shed a light on why > >>>> this does not work, please... > >>>> > >>>> Ernesto Cullen > >>>> > >>>> > >>>> I have this code in Ipy 1.1: > >>>> > >>>> EngineOptions engineOptions = new EngineOptions(); > >>>> engineOptions.ExceptionDetail = true; > >>>> engineOptions.ClrDebuggingEnabled = true; > >>>> engineOptions.ShowClrExceptions = true; > >>>> _pythonEngine = new PythonEngine(engineOptions); > >>>> > >>>> _pythonEngine.Globals["DbUtils"] = new DbUtils(); //class with db > >>>> methods like ExecuteQuery > >>>> ... > >>>> > >>>> Then I execute a script like this > >>>> > >>>> MSSqlServerUtils.py > >>>> def InitDbUtils(): > >>>> gl = globals() > >>>> dbu = gs["DbUtils"] > >>>> gl["ExecuteQuery"] = lambda q: dbu.ExecuteQuery(q) > >>>> ... > >>>> InitDbUtils() > >>>> > >>>> dbInfo = ExecuteQuery("SELECT ISNULL(SERVERPROPERTY('InstanceName'),'') > >>>> instanceName") # (*) > >>>> ... > >>>> > >>>> This works in Ipy 1.1, the query is executed, and returns a DataTable > >>>> from the ExecuteQuery method of DbUtils class. > >>>> > >>>> In Ipy 2.6 I changed the initialization: > >>>> _scriptEngine = Python.CreateEngine(options); //options is a > >>>> Dictionary > >>>> _scriptScope = _scriptEngine.CreateScope(); > >>>> _scriptScope.SetVariable("DbUtils", new DbUtils()); > >>>> ... > >>>> and when the (*) line is reached, an exception is thrown: > >>>> > >>>> 'MSSqlServerUtils' object has no attribute 'ExecuteQuery' > >>>> at > >>>> > >>>> > >> > IronPython.Runtime.Binding.PythonGetMemberBinder.FastErrorGet`1.GetError(CallS > >> > >>>> ite > >>>> site, TSelfType target, CodeContext context) > >>>> at > >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > >>>> site, T0 arg0, T1 arg1) > >>>> at$3.$1204(PythonFunction $function, Object > >>>> q) in DbUtils.py:line 11 > >>>> at > IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite > >>>> site, CodeContext context, Object func, T0 arg0) > >>>> at > >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite > >>>> site, T0 arg0, T1 arg1, T2 arg2) > >>>> at$4.__init__$1243(PythonFunction $function, Object self) > >>>> in MSSQLServer.py:line 157 > >>>> at > IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite > >>>> site, CodeContext context, Object func, T0 arg0) > >>>> at > >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite > >>>> site, T0 arg0, T1 arg1, T2 arg2) > >>>> at CallSite.Target(Closure , CallSite , CodeContext , Object ) > >>>> at > >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > >>>> site, T0 arg0, T1 arg1) > >>>> at CallSite.Target(Closure , CallSite , CodeContext , Object ) > >>>> at > >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > >>>> site, T0 arg0, T1 arg1) > >>>> at$4.Start$1244(PythonFunction $function) in > >>>> MSSQLServer.py:line 162 > >>>> at IronPython.Runtime.PythonFunction.FunctionCaller.Call0(CallSite > >>>> site, CodeContext context, Object func) > >>>> at > >>>> System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite > >>>> site, T0 arg0, T1 arg1) > >>>> at > >>>> > >>>> > >> > Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrameframe > >> > >>>> ) > >>>> at > >>>> > >>>> > >> > Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFrame > >> > >>>> frame) > >>>> at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame > >>>> frame) > >>>> at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 > >>>> arg0, T1 arg1) > >>>> at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) > >>>> at IronPython.Compiler.PythonScriptCode.Run(Scope scope) > >>>> at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) > >>>> at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope) > >>>> at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink > >>>> errorSink) > >>>> at Microsoft.Scripting.SourceUnit.Execute(Scope scope) > >>>> at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope > scope) > >>>> at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String > >>>> expression, ScriptScope scope) > >>>> > >>>> -- > >>>> Tell me and I forget. Teach me and I remember. Involve me and I learn. > >>>> Benjamin Franklin > >>>> > >>>> _______________________________________________ > >>>> Users mailing list > >>>> Users at lists.ironpython.com > >>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >>>> > >>>> > >>> _______________________________________________ > >>> Users mailing list > >>> Users at lists.ironpython.com > >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >>> > >>> > >>> > >> -- > >> Tell me and I forget. Teach me and I remember. Involve me and I learn. > >> Benjamin Franklin > >> > >> _______________________________________________ > >> Users mailing list > >> Users at lists.ironpython.com > >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >> > > _______________________________________________ > > Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > > -- > Tell me and I forget. Teach me and I remember. Involve me and I learn. > Benjamin Franklin > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From merllab at microsoft.com Wed Jan 6 17:55:19 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 6 Jan 2010 08:55:19 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/62969. ADDED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/DictionaryTypeInfoAttribute.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/SequenceTypeInfoAttribute.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Ast/BlockBuilder.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Ast/ExpressionCollectionBuilder.cs MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython.Modules/re.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/DictionaryTypeInfoAttribute.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/SequenceTypeInfoAttribute.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Ast/BlockBuilder.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Ast/ExpressionCollectionBuilder.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Actions/NamespaceTracker.cs $/IronPython/IronPython_Main/Src/IronPython/Modules/Builtin.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/DocBuilder.cs $/IronPython/IronPython_Main/Src/IronPython/IronPython.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Microsoft.Dynamic.csproj $/IronPython/IronPython_Main/Src/Tests/test_help.py $/IronPython/IronPython_Main/Src/Tests/test_genericmeth.py $/IronPython/IronPython_Main/Src/Tests/test_cliclass.py $/IronPython/IronPython_Main/Src/Tests/test_methoddispatch.py $/IronPython/IronPython_Main/Src/Tests/test_property.py From dinov at microsoft.com Wed Jan 6 18:20:35 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 6 Jan 2010 17:20:35 +0000 Subject: [IronPython] IronPython 2.0.3 In-Reply-To: <5D89E1EA57432748ADF38D7724384892011357E0@SANxchg01.etc.lan> References: <5D89E1EA57432748ADF38D7724384892011357E0@SANxchg01.etc.lan> Message-ID: <1A472770E042064698CB5ADC83A12ACD34B80E8B@TK5EX14MBXC116.redmond.corp.microsoft.com> Yep, 2.0.3 is the right version to target for 2.5 compatibility. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Perez, Justin > Sent: Wednesday, January 06, 2010 6:48 AM > To: users at lists.ironpython.com > Subject: [IronPython] IronPython 2.0.3 > > Hi. > > I am seemingly locked into Python 2.5 for compatibility with > requirements from ESRI based products. I am wanting to write some C# > code (very new to it) and call it from Python. Should I use IronPython > 2.0.3? > > The C# interfaces are from GPS Pathfinder Office application. Hopefully > I detailed the question sufficiently. Thanks. > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From ecullen at fibertel.com.ar Wed Jan 6 18:58:43 2010 From: ecullen at fibertel.com.ar (Ernesto Cullen) Date: Wed, 06 Jan 2010 14:58:43 -0300 Subject: [IronPython] can't execute method in globals In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34B80E33@TK5EX14MBXC116.redmond.corp.microsoft.com> References: <4B439203.8000101@fibertel.com.ar> <1A472770E042064698CB5ADC83A12ACD284AE47A@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4399B3.3070903@fibertel.com.ar> <1A472770E042064698CB5ADC83A12ACD34B67EF2@TK5EX14MBXC116.redmond.corp.microsoft.com> <4B448F9B.6000301@fibertel.com.ar> <1A472770E042064698CB5ADC83A12ACD34B80E33@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: <4B44CF53.6030601@fibertel.com.ar> I will make the types public then. Thanks a lot! Ernesto El 06/01/2010 14:14, Dino Viehland escribi?: > There's no way to do internals visible to w/ dynamic code because we > need to create the assembly at runtime. You could use the PrivateBinding > option but it'll allow access to any members on all types and also > requires full trust. I'd suggest just making the type public or alternately > you could inject delegates to private functions into the scope instead. > From kfarmer at thuban.org Wed Jan 6 19:01:16 2010 From: kfarmer at thuban.org (Keith J. Farmer) Date: Wed, 6 Jan 2010 10:01:16 -0800 Subject: [IronPython] IronPython 2.0.3 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34B80E8B@TK5EX14MBXC116.redmond.corp.microsoft.com> References: <5D89E1EA57432748ADF38D7724384892011357E0@SANxchg01.etc.lan> <1A472770E042064698CB5ADC83A12ACD34B80E8B@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: I was wondering if it might not be better (even possible) to merge the version compatibility into a switch, so people would optionally use a targetVersion flag or some-such. Part of the difference between versions isn't simply language, it's outright bug corrections and compatibility with the base DLR, neh? -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dino Viehland Sent: Wednesday, January 06, 2010 9:21 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython 2.0.3 Yep, 2.0.3 is the right version to target for 2.5 compatibility. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Perez, Justin > Sent: Wednesday, January 06, 2010 6:48 AM > To: users at lists.ironpython.com > Subject: [IronPython] IronPython 2.0.3 > > Hi. > > I am seemingly locked into Python 2.5 for compatibility with > requirements from ESRI based products. I am wanting to write some C# > code (very new to it) and call it from Python. Should I use IronPython > 2.0.3? > > The C# interfaces are from GPS Pathfinder Office application. Hopefully > I detailed the question sufficiently. Thanks. > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From dinov at microsoft.com Wed Jan 6 19:22:46 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 6 Jan 2010 18:22:46 +0000 Subject: [IronPython] IronPython 2.0.3 In-Reply-To: References: <5D89E1EA57432748ADF38D7724384892011357E0@SANxchg01.etc.lan> <1A472770E042064698CB5ADC83A12ACD34B80E8B@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34B814E1@TK5EX14MBXC116.redmond.corp.microsoft.com> Keith wrote: > I was wondering if it might not be better (even possible) to merge the version > compatibility into a switch, so people would optionally use a targetVersion > flag or some-such. > > Part of the difference between versions isn't simply language, it's outright > bug corrections and compatibility with the base DLR, neh? To a certain extent this is possible - for example it's not too hard to control the parser based upon version and enable/disable new features. Also controlling what methods are available and a small subset of behaviors is pretty easy and we've done that in the past when we've had options which enable a subset of the next version - 2.6 for example has a -X:Python30 option which enables some 3.0 features / compatibility. But to do this for an entire versions worth of features might be too many random checks spread throughout the code base - usually there are plenty of small changes in each release which we need to match. Things like deprecation of various features, object.__new__/__init__ changed in 2.6, methods sometimes get new arguments, and other little changes like that. Dealing with all of those will be difficult and clutter up the code base making it more difficult to maintain. In some cases we might need to add new features to fully emulate the old version. There's also the matter of our own compatibility at the .NET level - we constantly need to balance advancing IronPython w/ maintaining compatibility w/ existing apps. Would users upgrade a 2.0.3 app to 2.6 w/ 2.5 compat if there are some breaking changes they need to deal with from the C# side? I think a lot of the value in already released versions is their stability so I'm not sure that having an evolving target which from the Python side works mostly like the previous version has much value. Not to mention that it's just plain more work and we already have plenty to do :) From kfarmer at thuban.org Wed Jan 6 20:21:17 2010 From: kfarmer at thuban.org (Keith J. Farmer) Date: Wed, 6 Jan 2010 11:21:17 -0800 Subject: [IronPython] IronPython 2.0.3 Message-ID: <010501ca8f05$66af5a06$080a010a@circlecross.home> Yet you end up (worst case)maintaining nm different versions of the entire source, n CPython compats by m NetFX compats? That's not a great space to be in, and then end-users have to hunt for the IronPython version to use, as seen here. -----Original Message----- From: Dino Viehland Sent: Wednesday, January 06, 2010 10:23 To: Discussion of IronPython Subject: Re: [IronPython] IronPython 2.0.3 Keith wrote: > I was wondering if it might not be better (even possible) to merge the version > compatibility into a switch, so people would optionally use a targetVersion > flag or some-such. > > Part of the difference between versions isn't simply language, it's outright > bug corrections and compatibility with the base DLR, neh? To a certain extent this is possible - for example it's not too hard to control the parser based upon version and enable/disable new features. Also controlling what methods are available and a small subset of behaviors is pretty easy and we've done that in the past when we've had options which enable a subset of the next version - 2.6 for example has a -X:Python30 option which enables some 3.0 features / compatibility. But to do this for an entire versions worth of features might be too many random checks spread throughout the code base - usually there are plenty of small changes in each release which we need to match. Things like deprecation of various features, object.__new__/__init__ changed in 2.6, methods sometimes get new arguments, and other little changes like that. Dealing with all of those will be difficult and clutter up the code base making it more difficult to maintain. In some cases we might need to add new features to fully emulate the old version. There's also the matter of our own compatibility at the .NET level - we constantly need to balance advancing IronPython w/ maintaining compatibility w/ existing apps. Would users upgrade a 2.0.3 app to 2.6 w/ 2.5 compat if there are some breaking changes they need to deal with from the C# side? I think a lot of the value in already released versions is their stability so I'm not sure that having an evolving target which from the Python side works mostly like the previous version has much value. Not to mention that it's just plain more work and we already have plenty to do :) _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From dfugate at microsoft.com Wed Jan 6 20:42:34 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Wed, 6 Jan 2010 19:42:34 +0000 Subject: [IronPython] IronPython 2.0.3 In-Reply-To: <010501ca8f05$66af5a06$080a010a@circlecross.home> References: <010501ca8f05$66af5a06$080a010a@circlecross.home> Message-ID: <7CEEC335D70FFE4B957737DDE836F51B1898695E@TK5EX14MBXC123.redmond.corp.microsoft.com> There's one major benefit of n different IronPython versions though - testing. Right now, we run all CPy 2.6 tests for every IronPython (2.6) check-in. If IP 2.6 were to support CPy 2.5 as well, we'd also need to run all CPy 2.5 tests => the check-in times would nearly double. Don't even get me started on the week of automated tests each major public release of IronPython undergoes:) Dave -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Keith J. Farmer Sent: Wednesday, January 06, 2010 11:21 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython 2.0.3 Yet you end up (worst case)maintaining nm different versions of the entire source, n CPython compats by m NetFX compats? That's not a great space to be in, and then end-users have to hunt for the IronPython version to use, as seen here. -----Original Message----- From: Dino Viehland Sent: Wednesday, January 06, 2010 10:23 To: Discussion of IronPython Subject: Re: [IronPython] IronPython 2.0.3 Keith wrote: > I was wondering if it might not be better (even possible) to merge the version > compatibility into a switch, so people would optionally use a targetVersion > flag or some-such. > > Part of the difference between versions isn't simply language, it's outright > bug corrections and compatibility with the base DLR, neh? To a certain extent this is possible - for example it's not too hard to control the parser based upon version and enable/disable new features. Also controlling what methods are available and a small subset of behaviors is pretty easy and we've done that in the past when we've had options which enable a subset of the next version - 2.6 for example has a -X:Python30 option which enables some 3.0 features / compatibility. But to do this for an entire versions worth of features might be too many random checks spread throughout the code base - usually there are plenty of small changes in each release which we need to match. Things like deprecation of various features, object.__new__/__init__ changed in 2.6, methods sometimes get new arguments, and other little changes like that. Dealing with all of those will be difficult and clutter up the code base making it more difficult to maintain. In some cases we might need to add new features to fully emulate the old version. There's also the matter of our own compatibility at the .NET level - we constantly need to balance advancing IronPython w/ maintaining compatibility w/ existing apps. Would users upgrade a 2.0.3 app to 2.6 w/ 2.5 compat if there are some breaking changes they need to deal with from the C# side? I think a lot of the value in already released versions is their stability so I'm not sure that having an evolving target which from the Python side works mostly like the previous version has much value. Not to mention that it's just plain more work and we already have plenty to do :) _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From dinov at microsoft.com Wed Jan 6 20:47:25 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 6 Jan 2010 19:47:25 +0000 Subject: [IronPython] IronPython 2.0.3 In-Reply-To: <7CEEC335D70FFE4B957737DDE836F51B1898695E@TK5EX14MBXC123.redmond.corp.microsoft.com> References: <010501ca8f05$66af5a06$080a010a@circlecross.home> <7CEEC335D70FFE4B957737DDE836F51B1898695E@TK5EX14MBXC123.redmond.corp.microsoft.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34B81F08@TK5EX14MBXC116.redmond.corp.microsoft.com> The other thing is it's not quite n * m as m for 2.5 is only 1, and it's only 2 for 2.6. Eventually it'll go back down to 1 again. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Dave Fugate > Sent: Wednesday, January 06, 2010 11:43 AM > To: Discussion of IronPython > Subject: Re: [IronPython] IronPython 2.0.3 > > There's one major benefit of n different IronPython versions though - testing. > Right now, we run all CPy 2.6 tests for every IronPython (2.6) check-in. If > IP 2.6 were to support CPy 2.5 as well, we'd also need to run all CPy 2.5 > tests => the check-in times would nearly double. Don't even get me started on > the week of automated tests each major public release of IronPython > undergoes:) > > Dave > > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Keith J. Farmer > Sent: Wednesday, January 06, 2010 11:21 AM > To: Discussion of IronPython > Subject: Re: [IronPython] IronPython 2.0.3 > > Yet you end up (worst case)maintaining nm different versions of the entire > source, n CPython compats by m NetFX compats? That's not a great space to be > in, and then end-users have to hunt for the IronPython version to use, as seen > here. > > -----Original Message----- > From: Dino Viehland > Sent: Wednesday, January 06, 2010 10:23 > To: Discussion of IronPython > Subject: Re: [IronPython] IronPython 2.0.3 > > Keith wrote: > > I was wondering if it might not be better (even possible) to merge the > version > > compatibility into a switch, so people would optionally use a targetVersion > > flag or some-such. > > > > Part of the difference between versions isn't simply language, it's outright > > bug corrections and compatibility with the base DLR, neh? > > To a certain extent this is possible - for example it's not too hard to > control > the parser based upon version and enable/disable new features. Also > controlling what methods are available and a small subset of behaviors is > pretty easy and we've done that in the past when we've had options which > enable a subset of the next version - 2.6 for example has a -X:Python30 > option > which enables some 3.0 features / compatibility. > > But to do this for an entire versions worth of features might be too many > random checks spread throughout the code base - usually there are plenty of > small changes in each release which we need to match. Things like deprecation > of various features, object.__new__/__init__ changed in 2.6, methods sometimes > get new arguments, and other little changes like that. Dealing with all of > those > will be difficult and clutter up the code base making it more difficult to > maintain. In some cases we might need to add new features to fully emulate > the old version. > > There's also the matter of our own compatibility at the .NET level - we > constantly need to balance advancing IronPython w/ maintaining compatibility > w/ existing apps. Would users upgrade a 2.0.3 app to 2.6 w/ 2.5 compat if > there are some breaking changes they need to deal with from the C# side? I > think a lot of the value in already released versions is their stability > so I'm not sure that having an evolving target which from the Python side > works mostly like the previous version has much value. > > Not to mention that it's just plain more work and we already have plenty > to do :) > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From stephen.p.lepisto at intel.com Wed Jan 6 22:13:19 2010 From: stephen.p.lepisto at intel.com (Lepisto, Stephen P) Date: Wed, 6 Jan 2010 13:13:19 -0800 Subject: [IronPython] Apparent bug with redirecting output in IronPython 2.6 Message-ID: <6AF28EB9F93A354894F2F3916DF6F96E0C95AE1401@orsmsx510.amr.corp.intel.com> Hi, I've been evaluating a suite of python code originally targeting CPython 2.5 to see what needs to be fixed/changed to run under IronPython 2.6. I ran into a problem in IronPython 2.6 where I redirect sys.stdout through a class object that forwards output to the original sys.stdout. When control returns to the python command prompt, an exception is displayed in an infinite loop. If I redirect sys.stderr first (to the same object) before redirecting sys.stdout, IronPython 2.6 shows two exception errors then abruptly exits. Since this particular part of my python code runs fine under CPython 2.5, 2.6 and IronPython 2.0.3, I'm thinking it may be a bug in IronPython 2.6. What follows is a reproduction case showing IronPython 2.6 exiting after two exceptions. Note that the redirection is actually working and that the exception occurs only when the python console prompt is displayed. 1. Create a file called testredirect.py with the following code: import sys class _StreamLog(object): def __init__(self, ostream): self.ostream = ostream def write(self, *args): self.ostream.write("{") self.ostream.write(*args) self.ostream.write("}") def flush(self): self.ostream.flush() if not sys.stderr.__class__ == _StreamLog: sys.stderr = _StreamLog(sys.stderr) if not sys.stdout.__class__ == _StreamLog: sys.stdout = _StreamLog(sys.stdout) print >> sys.stderr, "Redirected stderr\n" print >> sys.stdout, "Redirected stdout\n" 2. Open an IronPython 2.6 console and import the testredirect module. This produces the following output: C:\>ipy IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.1433 Type "help", "copyright", "credits" or "license" for more information. >>> import testredirect {Redirected stderr }{ }{Redirected stdout }{ }{>>> }{Traceback (most recent call last): SystemError: Object reference not set to an instance of an object. }Unhandled exception: Traceback (most recent call last): SystemError: Object reference not set to an instance of an object. 4. Rerunning the above test with -X:ExceptionDetail enabled, I get the following: C:\ >ipy -X:ExceptionDetail IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.1433 Type "help", "copyright", "credits" or "license" for more information. >>> import testredirect {Redirected stderr }{ }{Redirected stdout }{ }{>>> }{Object reference not set to an instance of an object. at IronPython.Runtime.OutputWriter.Flush() at Microsoft.Scripting.Hosting.Shell.BasicConsole.Write(String text, Style style) at Microsoft.Scripting.Hosting.Shell.CommandLine.ReadStatement(Boolean& continueInteraction) at IronPython.Hosting.PythonCommandLine.RunOneInteraction() at IronPython.Hosting.PythonCommandLine.TryInteractiveActionWorker() at IronPython.Hosting.PythonCommandLine.TryInteractiveAction() at Microsoft.Scripting.Hosting.Shell.CommandLine.RunInteractiveLoop() SystemError: Object reference not set to an instance of an object. }Unhandled exception: Object reference not set to an instance of an object. at IronPython.Runtime.OutputWriter.Flush() at Microsoft.Scripting.Hosting.Shell.BasicConsole.Write(String text, Style style) at Microsoft.Scripting.Hosting.Shell.BasicConsole.WriteLine(String text, Style style) at IronPython.Runtime.Operations.PythonOps.PrintException(CodeContext context, Exception exception, IConsole console) at IronPython.Hosting.PythonCommandLine.UnhandledException(Exception e) at Microsoft.Scripting.Hosting.Shell.CommandLine.RunInteractiveLoop() at IronPython.Hosting.PythonCommandLine.RunInteractive() at Microsoft.Scripting.Hosting.Shell.CommandLine.Run() at IronPython.Hosting.PythonCommandLine.Run() at Microsoft.Scripting.Hosting.Shell.CommandLine.Run(ScriptEngine engine, IConsole console, ConsoleOptions options) at Microsoft.Scripting.Hosting.Shell.ConsoleHost.RunCommandLine() SystemError: Object reference not set to an instance of an object. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Wed Jan 6 23:06:33 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 6 Jan 2010 22:06:33 +0000 Subject: [IronPython] Apparent bug with redirecting output in IronPython 2.6 In-Reply-To: <6AF28EB9F93A354894F2F3916DF6F96E0C95AE1401@orsmsx510.amr.corp.intel.com> References: <6AF28EB9F93A354894F2F3916DF6F96E0C95AE1401@orsmsx510.amr.corp.intel.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34B83D98@TK5EX14MBXC116.redmond.corp.microsoft.com> It's a bug - thanks for reporting it! I've opened CodePlex issue 25861: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25861 It'll be fixed for 2.6.1, we're just grabbing our code context from the wrong spot. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Lepisto, Stephen P Sent: Wednesday, January 06, 2010 1:13 PM To: Discussion of IronPython Subject: [IronPython] Apparent bug with redirecting output in IronPython 2.6 Hi, I've been evaluating a suite of python code originally targeting CPython 2.5 to see what needs to be fixed/changed to run under IronPython 2.6. I ran into a problem in IronPython 2.6 where I redirect sys.stdout through a class object that forwards output to the original sys.stdout. When control returns to the python command prompt, an exception is displayed in an infinite loop. If I redirect sys.stderr first (to the same object) before redirecting sys.stdout, IronPython 2.6 shows two exception errors then abruptly exits. Since this particular part of my python code runs fine under CPython 2.5, 2.6 and IronPython 2.0.3, I'm thinking it may be a bug in IronPython 2.6. What follows is a reproduction case showing IronPython 2.6 exiting after two exceptions. Note that the redirection is actually working and that the exception occurs only when the python console prompt is displayed. 1. Create a file called testredirect.py with the following code: import sys class _StreamLog(object): def __init__(self, ostream): self.ostream = ostream def write(self, *args): self.ostream.write("{") self.ostream.write(*args) self.ostream.write("}") def flush(self): self.ostream.flush() if not sys.stderr.__class__ == _StreamLog: sys.stderr = _StreamLog(sys.stderr) if not sys.stdout.__class__ == _StreamLog: sys.stdout = _StreamLog(sys.stdout) print >> sys.stderr, "Redirected stderr\n" print >> sys.stdout, "Redirected stdout\n" 2. Open an IronPython 2.6 console and import the testredirect module. This produces the following output: C:\>ipy IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.1433 Type "help", "copyright", "credits" or "license" for more information. >>> import testredirect {Redirected stderr }{ }{Redirected stdout }{ }{>>> }{Traceback (most recent call last): SystemError: Object reference not set to an instance of an object. }Unhandled exception: Traceback (most recent call last): SystemError: Object reference not set to an instance of an object. 4. Rerunning the above test with -X:ExceptionDetail enabled, I get the following: C:\ >ipy -X:ExceptionDetail IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.1433 Type "help", "copyright", "credits" or "license" for more information. >>> import testredirect {Redirected stderr }{ }{Redirected stdout }{ }{>>> }{Object reference not set to an instance of an object. at IronPython.Runtime.OutputWriter.Flush() at Microsoft.Scripting.Hosting.Shell.BasicConsole.Write(String text, Style style) at Microsoft.Scripting.Hosting.Shell.CommandLine.ReadStatement(Boolean& continueInteraction) at IronPython.Hosting.PythonCommandLine.RunOneInteraction() at IronPython.Hosting.PythonCommandLine.TryInteractiveActionWorker() at IronPython.Hosting.PythonCommandLine.TryInteractiveAction() at Microsoft.Scripting.Hosting.Shell.CommandLine.RunInteractiveLoop() SystemError: Object reference not set to an instance of an object. }Unhandled exception: Object reference not set to an instance of an object. at IronPython.Runtime.OutputWriter.Flush() at Microsoft.Scripting.Hosting.Shell.BasicConsole.Write(String text, Style style) at Microsoft.Scripting.Hosting.Shell.BasicConsole.WriteLine(String text, Style style) at IronPython.Runtime.Operations.PythonOps.PrintException(CodeContext context, Exception exception, IConsole console) at IronPython.Hosting.PythonCommandLine.UnhandledException(Exception e) at Microsoft.Scripting.Hosting.Shell.CommandLine.RunInteractiveLoop() at IronPython.Hosting.PythonCommandLine.RunInteractive() at Microsoft.Scripting.Hosting.Shell.CommandLine.Run() at IronPython.Hosting.PythonCommandLine.Run() at Microsoft.Scripting.Hosting.Shell.CommandLine.Run(ScriptEngine engine, IConsole console, ConsoleOptions options) at Microsoft.Scripting.Hosting.Shell.ConsoleHost.RunCommandLine() SystemError: Object reference not set to an instance of an object. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Thu Jan 7 00:48:55 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Wed, 6 Jan 2010 15:48:55 -0800 Subject: [IronPython] Can't Get an Image on a Button Ipy Silverlight In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92070A67@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001051244m66f3897awc1b5326bcd977842@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920705CB@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001051715ofc92f54tace2f8f357b8c14a@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC92070A67@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <321b88ab1001061548l28b72a40h74bcf97d3f1e1f61@mail.gmail.com> Ok I think I may have found the problem In Visual Studio you need to add images as a Resource to the project so how can I do this in IronPython using Chiron Any ideas *cheers On Tue, Jan 5, 2010 at 5:32 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Can you possibly send me your project zipped up? jimmysch*(at)* > microsoft.com. "images/stop.jpg" I believe will first look into > images/stop.jpg inside the XAP file, and the look at > http://yourserver.com/path/to/xap/images/stop.jpg, but I can get it > working for you. > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Thu Jan 7 01:44:36 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Wed, 6 Jan 2010 16:44:36 -0800 Subject: [IronPython] Slider In IronPython Message-ID: <321b88ab1001061644s6bceff49g7a9a62c2e5f31bd1@mail.gmail.com> Ok I guess my first question is: Is there anyway to debug Silverlight Applications. When I receive no errors makes it hard to do any debugging any suggestions? Next question Making a slider for a video player here is the essential source. I appreciate the feedback ##### BEGIN LOTS OF CODE ##### from System.Windows import Application from System.Windows.Controls import MediaElement from System.Windows.Controls import Button, Orientation, StackPanel, Slider from System import Uri, UriKind from System.Windows.Media.Imaging import BitmapImage from System.Windows.Threading import * ....... self.timer = DispatcherTimer() self.timer.Interval = TimeSpan.FromMilliseconds(50) self.timer.Tick += MyTimeToTick self.main = StackPanel() ....... #add a video slider self.myslide = Slider() self.myslide.Width = 250 ........ self.layer1.Children.Add(self.myslide) ....... #create Media Element self.video = MediaElement() ....... self.video.CurrentStateChanged += videoChanged ........ def MyTimeToTick(self, s, e): if self.video.NaturalDuration.TimeSpan.TotalSeconds > 0: self.myslide.Value = self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds def videoChanged(self, s, e): if self.video.NaturalDuration.CurrentState == self.video.Playing: self.timer.Start() else: self.timer.Stop() ##### END CODE ###### -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Thu Jan 7 01:46:36 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Wed, 6 Jan 2010 16:46:36 -0800 Subject: [IronPython] Slider In IronPython In-Reply-To: <321b88ab1001061644s6bceff49g7a9a62c2e5f31bd1@mail.gmail.com> References: <321b88ab1001061644s6bceff49g7a9a62c2e5f31bd1@mail.gmail.com> Message-ID: <321b88ab1001061646x5f8316bfv65f14a641d432203@mail.gmail.com> It is not working and I would appreciate the feedback to get it to work Sorry about my double post -------------- next part -------------- An HTML attachment was scrubbed... URL: From kfarmer at thuban.org Thu Jan 7 04:21:43 2010 From: kfarmer at thuban.org (Keith J. Farmer) Date: Wed, 6 Jan 2010 19:21:43 -0800 Subject: [IronPython] IronPython 2.0.3 Message-ID: <010601ca8f48$85d90956$080a010a@circlecross.home> Only a week? :) Keeping m low alleviates some concern for your sanity, but I worry about n, then? -----Original Message----- From: Dave Fugate Sent: Wednesday, January 06, 2010 11:43 To: Discussion of IronPython Subject: Re: [IronPython] IronPython 2.0.3 There's one major benefit of n different IronPython versions though - testing. Right now, we run all CPy 2.6 tests for every IronPython (2.6) check-in. If IP 2.6 were to support CPy 2.5 as well, we'd also need to run all CPy 2.5 tests => the check-in times would nearly double. Don't even get me started on the week of automated tests each major public release of IronPython undergoes:) Dave -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Keith J. Farmer Sent: Wednesday, January 06, 2010 11:21 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython 2.0.3 Yet you end up (worst case)maintaining nm different versions of the entire source, n CPython compats by m NetFX compats? That's not a great space to be in, and then end-users have to hunt for the IronPython version to use, as seen here. -----Original Message----- From: Dino Viehland Sent: Wednesday, January 06, 2010 10:23 To: Discussion of IronPython Subject: Re: [IronPython] IronPython 2.0.3 Keith wrote: > I was wondering if it might not be better (even possible) to merge the version > compatibility into a switch, so people would optionally use a targetVersion > flag or some-such. > > Part of the difference between versions isn't simply language, it's outright > bug corrections and compatibility with the base DLR, neh? To a certain extent this is possible - for example it's not too hard to control the parser based upon version and enable/disable new features. Also controlling what methods are available and a small subset of behaviors is pretty easy and we've done that in the past when we've had options which enable a subset of the next version - 2.6 for example has a -X:Python30 option which enables some 3.0 features / compatibility. But to do this for an entire versions worth of features might be too many random checks spread throughout the code base - usually there are plenty of small changes in each release which we need to match. Things like deprecation of various features, object.__new__/__init__ changed in 2.6, methods sometimes get new arguments, and other little changes like that. Dealing with all of those will be difficult and clutter up the code base making it more difficult to maintain. In some cases we might need to add new features to fully emulate the old version. There's also the matter of our own compatibility at the .NET level - we constantly need to balance advancing IronPython w/ maintaining compatibility w/ existing apps. Would users upgrade a 2.0.3 app to 2.6 w/ 2.5 compat if there are some breaking changes they need to deal with from the C# side? I think a lot of the value in already released versions is their stability so I'm not sure that having an evolving target which from the Python side works mostly like the previous version has much value. Not to mention that it's just plain more work and we already have plenty to do :) _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From merllab at microsoft.com Thu Jan 7 17:53:59 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Thu, 7 Jan 2010 08:53:59 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <6536b52b-43eb-4b92-a6d3-3674af21debe@tk5-exsmh-c102.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63005. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython.Modules/nt.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/PlatformAdaptationLayer.cs From andrew.canit at gmail.com Fri Jan 8 02:55:31 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Thu, 7 Jan 2010 17:55:31 -0800 Subject: [IronPython] Slider In IronPython In-Reply-To: <321b88ab1001061646x5f8316bfv65f14a641d432203@mail.gmail.com> References: <321b88ab1001061644s6bceff49g7a9a62c2e5f31bd1@mail.gmail.com> <321b88ab1001061646x5f8316bfv65f14a641d432203@mail.gmail.com> Message-ID: <321b88ab1001071755n380f163dg5e91ce1f81750d90@mail.gmail.com> I have debugged some of the code now it loads for a second then it some how refreshes and disappears not sure what I am doing wrong Any ideas Cheers Here is the full code hope that's alright :D from System.Windows import Application from System.Windows.Controls import MediaElement from System.Windows.Controls import Button, Orientation, StackPanel, Slider from System import Uri, UriKind from System.Windows.Media.Imaging import BitmapImage from System.Windows.Threading import * from System import TimeSpan class Gui(): def __init__(self): self.main = StackPanel() self.layer1 = StackPanel() self.layer1.Orientation = Orientation.Horizontal self.stopB = Button() self.stopB.Width = 25 self.stopB.Height = 20 self.stopB.Content = BitmapImage(Uri("stop.jpg", UriKind.Relative)) self.pauseB = Button() self.pauseB.Width = 25 self.pauseB.Height = 20 self.pauseB.Content = BitmapImage(Uri("pause.jpg", UriKind.Relative)) self.playB = Button() self.playB.Width = 25 self.playB.Height = 20 self.playB.Content = BitmapImage(Uri("play.jpg", UriKind.Relative)) # Assign Buttons to Functions self.stopB.Click += self.StopPlay self.pauseB.Click += self.PausePlay self.playB.Click += self.StartPlay #add a video slider self.myslide = Slider() self.myslide.Width = 250 # Add buttons to sub stack panel self.layer1.Children.Add(self.stopB) self.layer1.Children.Add(self.pauseB) self.layer1.Children.Add(self.myslide) self.layer1.Children.Add(self.playB) # create new sub stack panel self.layer2 = StackPanel() self.layer2.Orientation = Orientation.Vertical #create Media Element self.video = MediaElement() self.source = Uri("counter.wmv", UriKind.Relative) self.video.Volume = 0.4 self.video.Source = self.source self.video.Width = 450 self.video.Height = 400 self.video.CurrentStateChanged += self.videoChanged self.timer = DispatcherTimer() self.timer.Interval = TimeSpan.FromMilliseconds(45) self.timer.Tick += self.MyTimeToTick # Add media Element to Sub Stack panel self.layer2.Children.Add(self.video) # Add sub stack panels to place holde stack panel self.main.Children.Add(self.layer1) self.main.Children.Add(self.layer2) # Load the UI Application.Current.RootVisual = self.main def MyTimeToTick(self, s, e): if self.video.NaturalDuration.TimeSpan.TotalSeconds > 0: self.myslide.Value = self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds def videoChanged(self, s, e): if self.video.NaturalDuration.CurrentState == MediaElementState.Playing: self.timer.Start() else: self.timer.Stop() ## ## def StopPlay(self, s, e): # stop the video self.video.Stop() def PausePlay(self, s, e): #pause the video self.video.Pause() def StartPlay(self, s, e): #play the video self.video.Play() gui = Gui() gui -------------- next part -------------- An HTML attachment was scrubbed... URL: From swalsh at impathnetworks.com Fri Jan 8 13:40:52 2010 From: swalsh at impathnetworks.com (Sandy Walsh) Date: Fri, 08 Jan 2010 08:40:52 -0400 Subject: [IronPython] I can't install the MSI for IP2.6 RC1 In-Reply-To: <4AD8A6A5.8030805@tartley.com> References: <4AD8A6A5.8030805@tartley.com> Message-ID: <4B4727D4.7070303@impathnetworks.com> Jonathan, not sure if you ever got an answer to this problem. I'm have the same issue. The offending operation seems to be: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe install C:\Program Files\IronPython 2.6\Microsoft.Scripting.dll /queue:1 One thing I noticed is when I run 'ngen queue status' directly I get this: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>ngen queue status Microsoft (R) CLR Native Image Generator - Version 2.0.50727.3053 Copyright (c) Microsoft Corporation. All rights reserved. The specified service does not exist as an installed service. (Exception from HRESULT: 0x80070424) ... but now I'm trying to find what the queue service runs under and how to fix it. Did you have any luck? -Sandy -------------- next part -------------- A non-text attachment was scrubbed... Name: swalsh.vcf Type: text/x-vcard Size: 313 bytes Desc: not available URL: From simon.dahlbacka at gmail.com Fri Jan 8 13:44:36 2010 From: simon.dahlbacka at gmail.com (Simon Dahlbacka) Date: Fri, 8 Jan 2010 14:44:36 +0200 Subject: [IronPython] I can't install the MSI for IP2.6 RC1 In-Reply-To: <4B4727D4.7070303@impathnetworks.com> References: <4AD8A6A5.8030805@tartley.com> <4B4727D4.7070303@impathnetworks.com> Message-ID: <57124721001080444i74cf920btd0ed55136acef774@mail.gmail.com> On Fri, Jan 8, 2010 at 2:40 PM, Sandy Walsh wrote: > Jonathan, not sure if you ever got an answer to this problem. I'm have the > same issue. > > The offending operation seems to be: > > C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe install C:\Program > Files\IronPython 2.6\Microsoft.Scripting.dll /queue:1 > > One thing I noticed is when I run 'ngen queue status' directly I get this: > > C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>ngen queue status > Microsoft (R) CLR Native Image Generator - Version 2.0.50727.3053 > Copyright (c) Microsoft Corporation. All rights reserved. > The specified service does not exist as an installed service. (Exception > from HRESULT: 0x80070424) > > ... but now I'm trying to find what the queue service runs under and how to > fix it. > at least on my XP x86 machine it is: Display name: .NET Runtime Optimization Service v2.0.50727_X86 Service name: clr_optimization_v2.0.50727_32 Startup type: manual > > Did you have any luck? > > -Sandy > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From swalsh at impathnetworks.com Fri Jan 8 13:49:04 2010 From: swalsh at impathnetworks.com (Sandy Walsh) Date: Fri, 08 Jan 2010 08:49:04 -0400 Subject: [IronPython] I can't install the MSI for IP2.6 RC1 In-Reply-To: <57124721001080444i74cf920btd0ed55136acef774@mail.gmail.com> References: <4AD8A6A5.8030805@tartley.com> <4B4727D4.7070303@impathnetworks.com> <57124721001080444i74cf920btd0ed55136acef774@mail.gmail.com> Message-ID: <4B4729C0.70909@impathnetworks.com> Thanks Simon, just found a blog post mentioning the same thing. Trouble is ... I don't have that service (which makes sense I suppose). Shouldn't it get installed with the .NET runtimes? I have everything from 2.0 to 3.5.1 installed. Thoughts? -Sandy On 1/8/2010 8:44 AM, Simon Dahlbacka wrote: > ... but now I'm trying to find what the queue service runs under and > how to fix it. > > at least on my XP x86 machine it is: > Display name: .NET Runtime Optimization Service v2.0.50727_X86 > Service name: clr_optimization_v2.0.50727_32 > Startup type: manual > -------------- next part -------------- A non-text attachment was scrubbed... Name: swalsh.vcf Type: text/x-vcard Size: 313 bytes Desc: not available URL: From swalsh at impathnetworks.com Fri Jan 8 15:34:20 2010 From: swalsh at impathnetworks.com (Sandy Walsh) Date: Fri, 08 Jan 2010 10:34:20 -0400 Subject: [IronPython] I can't install the MSI for IP2.6 RC1 -SOLVED In-Reply-To: <4B4729C0.70909@impathnetworks.com> References: <4AD8A6A5.8030805@tartley.com> <4B4727D4.7070303@impathnetworks.com> <57124721001080444i74cf920btd0ed55136acef774@mail.gmail.com> <4B4729C0.70909@impathnetworks.com> Message-ID: <4B47426C.2030002@impathnetworks.com> As Simon mentioned, the .NET Runtime Optimization Service v2.0.50727_X86 service is either not running or not installed. In my case it was not installed. To install it do the following: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>mscorsvw.exe -i Then the IronPython 2.6RC1 installer will work fine. Hope it helps! -Sandy On 1/8/2010 8:49 AM, Sandy Walsh wrote: > Thanks Simon, just found a blog post mentioning the same thing. > > Trouble is ... I don't have that service (which makes sense I > suppose). Shouldn't it get installed with the .NET runtimes? I have > everything from 2.0 to 3.5.1 installed. > > Thoughts? > > -Sandy > > > On 1/8/2010 8:44 AM, Simon Dahlbacka wrote: >> ... but now I'm trying to find what the queue service runs under and >> how to fix it. >> >> at least on my XP x86 machine it is: >> Display name: .NET Runtime Optimization Service v2.0.50727_X86 >> Service name: clr_optimization_v2.0.50727_32 >> Startup type: manual >> > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: swalsh.vcf Type: text/x-vcard Size: 313 bytes Desc: not available URL: From merllab at microsoft.com Fri Jan 8 17:53:00 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 8 Jan 2010 08:53:00 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63040. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Tests/ClrAssembly/ClrAssembly.csproj $/IronPython/IronPython_Main/Src/Tests/ClrAssembly/Src/dynamicobjmodel.cs $/IronPython/IronPython_Main/Src/Tests/ClrAssembly/Src/methodargs.cs From m_tayseer82 at yahoo.com Sun Jan 10 17:30:08 2010 From: m_tayseer82 at yahoo.com (Mohammad Tayseer) Date: Sun, 10 Jan 2010 08:30:08 -0800 (PST) Subject: [IronPython] sqlAlachemy In-Reply-To: References: <200912310954.06341.johnf@jfcomputer.com> <4B3CE89C.5070005@voidspace.org.uk> <200912311043.49264.johnf@jfcomputer.com> Message-ID: <865953.65567.qm@web113820.mail.gq1.yahoo.com> I'm working now with SqlAlchemy 0.5.7 using adodbapi, and till now it's fine. I'm just starting, and didn't try anything complicated yet. Mohammad Tayseer http://spellcoder.com/blogs/tayseer ________________________________ From: KATO Kanryu To: Discussion of IronPython Sent: Sun, January 3, 2010 7:10:26 AM Subject: Re: [IronPython] sqlAlachemy Hi, I had tried to use SQLAlchemy, but I gave up in the last result. Because, ipy load the library, which needs several seconds(3-4secs). And after compiled to a dll with pyc.py, I load failed with an error of stack over flow. The trial was in ipy 2.0, currently 2.6 . We should addtional tests for that. KATO Kanryu _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pavel.suhotjuk at gmail.com Sun Jan 10 22:07:54 2010 From: pavel.suhotjuk at gmail.com (Suhotyuk Pavel) Date: Sun, 10 Jan 2010 23:07:54 +0200 Subject: [IronPython] Custom module storage. Message-ID: <4B4A41AA.8000307@gmail.com> Hello. I have sql database with sources of python packages and modules. How I can run IronPython with custom module storage? May I build custom module loader with IronPython.Modules.PythonImport or DLR and IronPython have some ways for this? Thanks. From fuzzyman at voidspace.org.uk Sun Jan 10 22:15:10 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Sun, 10 Jan 2010 21:15:10 +0000 Subject: [IronPython] Custom module storage. In-Reply-To: <4B4A41AA.8000307@gmail.com> References: <4B4A41AA.8000307@gmail.com> Message-ID: <4B4A435E.1000602@voidspace.org.uk> On 10/01/2010 21:07, Suhotyuk Pavel wrote: > Hello. > > I have sql database with sources of python packages and modules. How I > can run IronPython with custom module storage? > May I build custom module loader with IronPython.Modules.PythonImport > or DLR and IronPython have some ways for this? > You may want to look at writing a PEP 302 importer - this can be done in pure Python. http://www.python.org/dev/peps/pep-0302/ Alternatively the ihooks module is another way of writing a custom importer. Michael > Thanks. > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog From dinov at microsoft.com Sun Jan 10 22:15:36 2010 From: dinov at microsoft.com (Dino Viehland) Date: Sun, 10 Jan 2010 21:15:36 +0000 Subject: [IronPython] Custom module storage. In-Reply-To: <4B4A41AA.8000307@gmail.com> References: <4B4A41AA.8000307@gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34BEDE89@TK5EX14MBXC118.redmond.corp.microsoft.com> Using Python's import hooks is one way to go and is also nice because you can do it all from Python as well - see PEP 302 which is at http://www.python.org/dev/peps/pep-0302/. You can also subclass ScriptHost and provide a custom PlatformAdaptionLayer which re-maps file I/O to the database. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Suhotyuk Pavel > Sent: Sunday, January 10, 2010 1:08 PM > To: Discussion of IronPython > Subject: [IronPython] Custom module storage. > > Hello. > > I have sql database with sources of python packages and modules. How I > can run IronPython with custom module storage? > May I build custom module loader with IronPython.Modules.PythonImport > or > DLR and IronPython have some ways for this? > > Thanks. > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From pavel.suhotjuk at gmail.com Sun Jan 10 22:25:05 2010 From: pavel.suhotjuk at gmail.com (Suhotyuk Pavel) Date: Sun, 10 Jan 2010 23:25:05 +0200 Subject: [IronPython] Custom module storage. In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34BEDE89@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B4A41AA.8000307@gmail.com> <1A472770E042064698CB5ADC83A12ACD34BEDE89@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B4A45B1.2050404@gmail.com> I know about pep-302, but I will try to use DLR-way. Microsoft.Scripting.PlatformAdaptationLayer is very interesting class. Thank you. On 10.01.2010 23:15, Dino Viehland wrote: > Using Python's import hooks is one way to go and is also nice because > you can do it all from Python as well - see PEP 302 which is at > http://www.python.org/dev/peps/pep-0302/. You can also subclass ScriptHost > and provide a custom PlatformAdaptionLayer which re-maps file I/O to the > database. > > >> -----Original Message----- >> From: users-bounces at lists.ironpython.com [mailto:users- >> bounces at lists.ironpython.com] On Behalf Of Suhotyuk Pavel >> Sent: Sunday, January 10, 2010 1:08 PM >> To: Discussion of IronPython >> Subject: [IronPython] Custom module storage. >> >> Hello. >> >> I have sql database with sources of python packages and modules. How I >> can run IronPython with custom module storage? >> May I build custom module loader with IronPython.Modules.PythonImport >> or >> DLR and IronPython have some ways for this? >> >> Thanks. >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > From skoria at gmail.com Mon Jan 11 13:53:55 2010 From: skoria at gmail.com (Ale Fernandez) Date: Mon, 11 Jan 2010 12:53:55 +0000 Subject: [IronPython] serial ports and arduinos Message-ID: <547aa2c41001110453l8dd5b8ft507480856fddda3@mail.gmail.com> Hi, I'm trying to figure out how to interface an arduino microcontroller to an ironpython script using serial comms. Has anyone done this before? Or, has anyone just used the serial comms functionality in IronPython, and if so, how have you tested this? I could only find one reference to it on this mailing list:http://lists.ironpython.com/pipermail/users-ironpython.com/2006-June/002641.html ...which uses the serial port class at http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx But there is also pyserial, the python library... Which one is going to be best to work with? Thanks, Ale -- ~The Cycle of the formation and disintegration http://alefernandez.org.uk/ of the universe influences the formation and disintegration of nature, which in turn is closely related with human life" - Yasuji Kimikura From m_tayseer82 at yahoo.com Mon Jan 11 16:21:04 2010 From: m_tayseer82 at yahoo.com (Mohammad Tayseer) Date: Mon, 11 Jan 2010 07:21:04 -0800 (PST) Subject: [IronPython] Using IronPython and IronRuby from C# 4.0 Message-ID: <353328.51407.qm@web113804.mail.gq1.yahoo.com> Hello I'm going to give a session about new features in C# 4.0 in Cairo Code Camp (), and I was thinking of illustrating using Python and Ruby libraries from C# 4, instead of the repeated COM interoperability. I was thinking of presenting BeautifulSoup, SqlAlchemy and/or Rails ActiveRecord, as examples of common libraries in dynamic languages. I'm still working on them and discovering if they are supported on IronPython and IronRuby, but what would you like to see if you were able to attend Your feedback is highly appreciated. Mohammad Tayseer http://spellcoder.com/blogs/tayseer -------------- next part -------------- An HTML attachment was scrubbed... URL: From swalsh at impathnetworks.com Mon Jan 11 18:43:03 2010 From: swalsh at impathnetworks.com (Sandy Walsh) Date: Mon, 11 Jan 2010 13:43:03 -0400 Subject: [IronPython] Converting C# to Python ... the lock() keyword? Message-ID: <4B4B6327.1010103@impathnetworks.com> Hi, I'm converting a C# program to IronPython and running into the C# lock() command ... what is the equivalent operation in IronPython? The C# is like: lock(m_object) if (...) { ... } Thanks! -Sandy -------------- next part -------------- A non-text attachment was scrubbed... Name: swalsh.vcf Type: text/x-vcard Size: 313 bytes Desc: not available URL: From dinov at microsoft.com Mon Jan 11 19:23:10 2010 From: dinov at microsoft.com (Dino Viehland) Date: Mon, 11 Jan 2010 18:23:10 +0000 Subject: [IronPython] Converting C# to Python ... the lock() keyword? In-Reply-To: <4B4B6327.1010103@impathnetworks.com> References: <4B4B6327.1010103@impathnetworks.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34C037C7@TK5EX14MBXC118.redmond.corp.microsoft.com> If you really want to use .NET monitors you can code it up as a try/finally: Monitor.Enter(m_object) try: if ...: ... finally: Monitor.Exit(m_object) If you'd like to do a slightly more Pythonic lock you could do: import threading x = threading.Lock() with x: pass Or you could combine the two approaches: from System.Threading import Monitor class ObjectLocker(object): def __init__(self, obj): self.obj = obj def __enter__(self): Monitor.Enter(self.obj) def __exit__(self, *args): Monitor.Exit(self.obj) with ObjectLocker(object()): pass > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Sandy Walsh > Sent: Monday, January 11, 2010 9:43 AM > To: users at lists.ironpython.com > Subject: [IronPython] Converting C# to Python ... the lock() keyword? > > Hi, > > I'm converting a C# program to IronPython and running into the C# lock() > command ... what is the equivalent operation in IronPython? > > The C# is like: > > lock(m_object) > if (...) > { > ... > } > > Thanks! > -Sandy From swalsh at impathnetworks.com Mon Jan 11 19:31:14 2010 From: swalsh at impathnetworks.com (Sandy Walsh) Date: Mon, 11 Jan 2010 14:31:14 -0400 Subject: [IronPython] Converting C# to Python ... the lock() keyword? In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34C037C7@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B4B6327.1010103@impathnetworks.com> <1A472770E042064698CB5ADC83A12ACD34C037C7@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B4B6E72.8060600@impathnetworks.com> Thanks for the prompt answer Dino. The lock is defined in a C# library and I have to access it ... I assume Monitor and threading.Lock() are different implementations (specifically, you can't mix and match)? I can live with the Monitor for now I think. Thanks again! -Sandy On 1/11/2010 2:23 PM, Dino Viehland wrote: > If you really want to use .NET monitors you can code it up as a try/finally: > > Monitor.Enter(m_object) > try: > if ...: > ... > finally: > Monitor.Exit(m_object) > > If you'd like to do a slightly more Pythonic lock you could do: > > import threading > > x = threading.Lock() > with x: > pass > > Or you could combine the two approaches: > > from System.Threading import Monitor > class ObjectLocker(object): > def __init__(self, obj): > self.obj = obj > def __enter__(self): > Monitor.Enter(self.obj) > def __exit__(self, *args): > Monitor.Exit(self.obj) > > with ObjectLocker(object()): > pass > > > > >> -----Original Message----- >> From: users-bounces at lists.ironpython.com [mailto:users- >> bounces at lists.ironpython.com] On Behalf Of Sandy Walsh >> Sent: Monday, January 11, 2010 9:43 AM >> To: users at lists.ironpython.com >> Subject: [IronPython] Converting C# to Python ... the lock() keyword? >> >> Hi, >> >> I'm converting a C# program to IronPython and running into the C# lock() >> command ... what is the equivalent operation in IronPython? >> >> The C# is like: >> >> lock(m_object) >> if (...) >> { >> ... >> } >> >> Thanks! >> -Sandy >> > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- A non-text attachment was scrubbed... Name: swalsh.vcf Type: text/x-vcard Size: 313 bytes Desc: not available URL: From dinov at microsoft.com Mon Jan 11 19:35:19 2010 From: dinov at microsoft.com (Dino Viehland) Date: Mon, 11 Jan 2010 18:35:19 +0000 Subject: [IronPython] Converting C# to Python ... the lock() keyword? In-Reply-To: <4B4B6E72.8060600@impathnetworks.com> References: <4B4B6327.1010103@impathnetworks.com> <1A472770E042064698CB5ADC83A12ACD34C037C7@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4B6E72.8060600@impathnetworks.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34C03844@TK5EX14MBXC118.redmond.corp.microsoft.com> Correct - threading.Lock is a custom lock implementation (it's also non-reentrant) so if you need to interoperate Monitor is the way to go. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Sandy Walsh > Sent: Monday, January 11, 2010 10:31 AM > To: Discussion of IronPython > Subject: Re: [IronPython] Converting C# to Python ... the lock() keyword? > > Thanks for the prompt answer Dino. > > The lock is defined in a C# library and I have to access it ... I assume > Monitor and threading.Lock() are different implementations (specifically, you > can't mix and match)? > > I can live with the Monitor for now I think. > > Thanks again! > -Sandy > > > On 1/11/2010 2:23 PM, Dino Viehland wrote: > > If you really want to use .NET monitors you can code it up as a try/finally: > > > > Monitor.Enter(m_object) > > try: > > if ...: > > ... > > finally: > > Monitor.Exit(m_object) > > > > If you'd like to do a slightly more Pythonic lock you could do: > > > > import threading > > > > x = threading.Lock() > > with x: > > pass > > > > Or you could combine the two approaches: > > > > from System.Threading import Monitor > > class ObjectLocker(object): > > def __init__(self, obj): > > self.obj = obj > > def __enter__(self): > > Monitor.Enter(self.obj) > > def __exit__(self, *args): > > Monitor.Exit(self.obj) > > > > with ObjectLocker(object()): > > pass > > > > > > > > > >> -----Original Message----- > >> From: users-bounces at lists.ironpython.com [mailto:users- > >> bounces at lists.ironpython.com] On Behalf Of Sandy Walsh > >> Sent: Monday, January 11, 2010 9:43 AM > >> To: users at lists.ironpython.com > >> Subject: [IronPython] Converting C# to Python ... the lock() keyword? > >> > >> Hi, > >> > >> I'm converting a C# program to IronPython and running into the C# > >> lock() command ... what is the equivalent operation in IronPython? > >> > >> The C# is like: > >> > >> lock(m_object) > >> if (...) > >> { > >> ... > >> } > >> > >> Thanks! > >> -Sandy > >> > > _______________________________________________ > > Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > From andrew.canit at gmail.com Mon Jan 11 22:03:42 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Mon, 11 Jan 2010 13:03:42 -0800 Subject: [IronPython] Silverlight code need help (Repost) Message-ID: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> I am having problems with my code. I am not sure how to debug silverlight. I receive no error messages, but this is what happens. When this app runs it starts for a second then disappears I am not sure where I am going wrong, any ideas? Perhaps in the threading? I am not a C# programmer but I am doing my best to find examples to compare to so I can translate into python I would really appreciate any help *Cheers Andrew Here is the full code hope that's alright :D from System.Windows import Application from System.Windows.Controls import MediaElement from System.Windows.Controls import Button, Orientation, StackPanel, Slider from System import Uri, UriKind from System.Windows.Media.Imaging import BitmapImage from System.Windows.Threading import * from System import TimeSpan class Gui(): def __init__(self): self.main = StackPanel() self.layer1 = StackPanel() self.layer1.Orientation = Orientation.Horizontal self.stopB = Button() self.stopB.Width = 25 self.stopB.Height = 20 self.stopB.Content = BitmapImage(Uri("stop.jpg", UriKind.Relative)) self.pauseB = Button() self.pauseB.Width = 25 self.pauseB.Height = 20 self.pauseB.Content = BitmapImage(Uri("pause.jpg", UriKind.Relative)) self.playB = Button() self.playB.Width = 25 self.playB.Height = 20 self.playB.Content = BitmapImage(Uri("play.jpg", UriKind.Relative)) # Assign Buttons to Functions self.stopB.Click += self.StopPlay self.pauseB.Click += self.PausePlay self.playB.Click += self.StartPlay #add a video slider self.myslide = Slider() self.myslide.Width = 250 # Add buttons to sub stack panel self.layer1.Children.Add(self. stopB) self.layer1.Children.Add(self.pauseB) self.layer1.Children.Add(self.myslide) self.layer1.Children.Add(self.playB) # create new sub stack panel self.layer2 = StackPanel() self.layer2.Orientation = Orientation.Vertical #create Media Element self.video = MediaElement() self.source = Uri("counter.wmv", UriKind.Relative) self.video.Volume = 0.4 self.video.Source = self.source self.video.Width = 450 self.video.Height = 400 self.video.CurrentStateChanged += self.videoChanged self.timer = DispatcherTimer() self.timer.Interval = TimeSpan.FromMilliseconds(45) self.timer.Tick += self.MyTimeToTick # Add media Element to Sub Stack panel self.layer2.Children.Add(self.video) # Add sub stack panels to place holde stack panel self.main.Children.Add(self.layer1) self.main.Children.Add(self.layer2) # Load the UI Application.Current.RootVisual = self.main def MyTimeToTick(self, s, e): if self.video.NaturalDuration.TimeSpan.TotalSeconds > 0: self.myslide.Value = self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds def videoChanged(self, s, e): if self.video.NaturalDuration.CurrentState == MediaElementState.Playing: self.timer.Start() else: self.timer.Stop() ## ## def StopPlay(self, s, e): # stop the video self.video.Stop() def PausePlay(self, s, e): #pause the video self.video.Pause() def StartPlay(self, s, e): #play the video self.video.Play() gui = Gui() gui -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Jan 11 22:26:55 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 11 Jan 2010 21:26:55 +0000 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> The error you're probably seeing is "AttributeError: 'Duration' object has no attribute 'CurrentState'," correct (line highlighted below)?. This is because MediaElement.NaturalDuration gives you a System.Windows.Duration object (http://msdn.microsoft.com/en-us/library/system.windows.duration(VS.95).aspx), which in-fact doesn't have a "CurrentState" member. However, MediaElement has a "CurrentState" member, so I think you intending that line to read " if self.video. CurrentState == MediaElementState.Playing:". You'll also need to add "from System.Windows.Media import MediaElementState" to make sure MediaElementState is available. Let me know if you have any other issues. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew Evans Sent: Monday, January 11, 2010 1:04 PM To: users at lists.ironpython.com Subject: [IronPython] Silverlight code need help (Repost) I am having problems with my code. I am not sure how to debug silverlight. I receive no error messages, but this is what happens. When this app runs it starts for a second then disappears I am not sure where I am going wrong, any ideas? Perhaps in the threading? I am not a C# programmer but I am doing my best to find examples to compare to so I can translate into python I would really appreciate any help *Cheers Andrew Here is the full code hope that's alright :D from System.Windows import Application from System.Windows.Controls import MediaElement from System.Windows.Controls import Button, Orientation, StackPanel, Slider from System import Uri, UriKind from System.Windows.Media.Imaging import BitmapImage from System.Windows.Threading import * from System import TimeSpan class Gui(): def __init__(self): self.main = StackPanel() self.layer1 = StackPanel() self.layer1.Orientation = Orientation.Horizontal self.stopB = Button() self.stopB.Width = 25 self.stopB.Height = 20 self.stopB.Content = BitmapImage(Uri("stop.jpg", UriKind.Relative)) self.pauseB = Button() self.pauseB.Width = 25 self.pauseB.Height = 20 self.pauseB.Content = BitmapImage(Uri("pause.jpg", UriKind.Relative)) self.playB = Button() self.playB.Width = 25 self.playB.Height = 20 self.playB.Content = BitmapImage(Uri("play.jpg", UriKind.Relative)) # Assign Buttons to Functions self.stopB.Click += self.StopPlay self.pauseB.Click += self.PausePlay self.playB.Click += self.StartPlay #add a video slider self.myslide = Slider() self.myslide.Width = 250 # Add buttons to sub stack panel self.layer1.Children.Add(self. stopB) self.layer1.Children.Add(self.pauseB) self.layer1.Children.Add(self.myslide) self.layer1.Children.Add(self.playB) # create new sub stack panel self.layer2 = StackPanel() self.layer2.Orientation = Orientation.Vertical #create Media Element self.video = MediaElement() self.source = Uri("counter.wmv", UriKind.Relative) self.video.Volume = 0.4 self.video.Source = self.source self.video.Width = 450 self.video.Height = 400 self.video.CurrentStateChanged += self.videoChanged self.timer = DispatcherTimer() self.timer.Interval = TimeSpan.FromMilliseconds(45) self.timer.Tick += self.MyTimeToTick # Add media Element to Sub Stack panel self.layer2.Children.Add(self.video) # Add sub stack panels to place holde stack panel self.main.Children.Add(self.layer1) self.main.Children.Add(self.layer2) # Load the UI Application.Current.RootVisual = self.main def MyTimeToTick(self, s, e): if self.video.NaturalDuration.TimeSpan.TotalSeconds > 0: self.myslide.Value = self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds def videoChanged(self, s, e): if self.video.NaturalDuration.CurrentState == MediaElementState.Playing: self.timer.Start() else: self.timer.Stop() ## ## def StopPlay(self, s, e): # stop the video self.video.Stop() def PausePlay(self, s, e): #pause the video self.video.Pause() def StartPlay(self, s, e): #play the video self.video.Play() gui = Gui() gui -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Jan 11 22:37:00 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 11 Jan 2010 21:37:00 +0000 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> You can attach Visual Studio to a running Silverlight process, and breakpoints will be hit in your Silverlight code if you set the debug flag in the HTML page hosting Silverlight: This only works if VS 2008 SP1 has the Silverlight 3 Tools (http://www.microsoft.com/downloads/details.aspx?familyid=9442b0f2-7465-417a-88f3-5e7b5409e9dd&displaylang=en) installed, or you're using VS 2010 (which support Silverlight out-of-the-box). ~js From: Jimmy Schementi Sent: Monday, January 11, 2010 1:27 PM To: users at lists.ironpython.com Subject: RE: [IronPython] Silverlight code need help (Repost) The error you're probably seeing is "AttributeError: 'Duration' object has no attribute 'CurrentState'," correct (line highlighted below)?. This is because MediaElement.NaturalDuration gives you a System.Windows.Duration object (http://msdn.microsoft.com/en-us/library/system.windows.duration(VS.95).aspx), which in-fact doesn't have a "CurrentState" member. However, MediaElement has a "CurrentState" member, so I think you intending that line to read " if self.video. CurrentState == MediaElementState.Playing:". You'll also need to add "from System.Windows.Media import MediaElementState" to make sure MediaElementState is available. Let me know if you have any other issues. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew Evans Sent: Monday, January 11, 2010 1:04 PM To: users at lists.ironpython.com Subject: [IronPython] Silverlight code need help (Repost) I am having problems with my code. I am not sure how to debug silverlight. I receive no error messages, but this is what happens. When this app runs it starts for a second then disappears I am not sure where I am going wrong, any ideas? Perhaps in the threading? I am not a C# programmer but I am doing my best to find examples to compare to so I can translate into python I would really appreciate any help *Cheers Andrew Here is the full code hope that's alright :D from System.Windows import Application from System.Windows.Controls import MediaElement from System.Windows.Controls import Button, Orientation, StackPanel, Slider from System import Uri, UriKind from System.Windows.Media.Imaging import BitmapImage from System.Windows.Threading import * from System import TimeSpan class Gui(): def __init__(self): self.main = StackPanel() self.layer1 = StackPanel() self.layer1.Orientation = Orientation.Horizontal self.stopB = Button() self.stopB.Width = 25 self.stopB.Height = 20 self.stopB.Content = BitmapImage(Uri("stop.jpg", UriKind.Relative)) self.pauseB = Button() self.pauseB.Width = 25 self.pauseB.Height = 20 self.pauseB.Content = BitmapImage(Uri("pause.jpg", UriKind.Relative)) self.playB = Button() self.playB.Width = 25 self.playB.Height = 20 self.playB.Content = BitmapImage(Uri("play.jpg", UriKind.Relative)) # Assign Buttons to Functions self.stopB.Click += self.StopPlay self.pauseB.Click += self.PausePlay self.playB.Click += self.StartPlay #add a video slider self.myslide = Slider() self.myslide.Width = 250 # Add buttons to sub stack panel self.layer1.Children.Add(self. stopB) self.layer1.Children.Add(self.pauseB) self.layer1.Children.Add(self.myslide) self.layer1.Children.Add(self.playB) # create new sub stack panel self.layer2 = StackPanel() self.layer2.Orientation = Orientation.Vertical #create Media Element self.video = MediaElement() self.source = Uri("counter.wmv", UriKind.Relative) self.video.Volume = 0.4 self.video.Source = self.source self.video.Width = 450 self.video.Height = 400 self.video.CurrentStateChanged += self.videoChanged self.timer = DispatcherTimer() self.timer.Interval = TimeSpan.FromMilliseconds(45) self.timer.Tick += self.MyTimeToTick # Add media Element to Sub Stack panel self.layer2.Children.Add(self.video) # Add sub stack panels to place holde stack panel self.main.Children.Add(self.layer1) self.main.Children.Add(self.layer2) # Load the UI Application.Current.RootVisual = self.main def MyTimeToTick(self, s, e): if self.video.NaturalDuration.TimeSpan.TotalSeconds > 0: self.myslide.Value = self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds def videoChanged(self, s, e): if self.video.NaturalDuration.CurrentState == MediaElementState.Playing: self.timer.Start() else: self.timer.Stop() ## ## def StopPlay(self, s, e): # stop the video self.video.Stop() def PausePlay(self, s, e): #pause the video self.video.Pause() def StartPlay(self, s, e): #play the video self.video.Play() gui = Gui() gui -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Mon Jan 11 23:13:46 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Mon, 11 Jan 2010 14:13:46 -0800 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> WOW ty so much at least I wasn't to far off :-P again ty, you saved me from giving up on Silverlight :D On Mon, Jan 11, 2010 at 1:37 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > You can attach Visual Studio to a running Silverlight process, and > breakpoints will be hit in your Silverlight code if you set the debug flag > in the HTML page hosting Silverlight: > > > > > > > > This only works if VS 2008 SP1 has the Silverlight 3 Tools ( > http://www.microsoft.com/downloads/details.aspx?familyid=9442b0f2-7465-417a-88f3-5e7b5409e9dd&displaylang=en) > installed, or you?re using VS 2010 (which support Silverlight > out-of-the-box). > > > > ~js > > > > *From:* Jimmy Schementi > *Sent:* Monday, January 11, 2010 1:27 PM > > *To:* users at lists.ironpython.com > *Subject:* RE: [IronPython] Silverlight code need help (Repost) > > > > The error you?re probably seeing is > ?AttributeError: 'Duration' object has no attribute 'CurrentState',? correct > (line highlighted below)?. This is because MediaElement.NaturalDuration > gives you a System.Windows.Duration object ( > http://msdn.microsoft.com/en-us/library/system.windows.duration(VS.95).aspx), > which in-fact doesn?t have a ?CurrentState? member. However, MediaElement > has a ?CurrentState? member, so I think you intending that line to read ? if > self.video. CurrentState == MediaElementState.Playing:?. You?ll also need to > add ?from System.Windows.Media import MediaElementState? to make sure > MediaElementState is available. > > > > Let me know if you have any other issues. > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Andrew Evans > *Sent:* Monday, January 11, 2010 1:04 PM > *To:* users at lists.ironpython.com > *Subject:* [IronPython] Silverlight code need help (Repost) > > > > I am having problems with my code. I am not sure how to debug silverlight. > I receive no error messages, but this is what happens. When this app runs it > starts for a second then disappears I am not sure where I am going wrong, > any ideas? Perhaps in the threading? > > I am not a C# programmer but I am doing my best to find examples to compare > to so I can translate into python > > > I would really appreciate any help *Cheers Andrew > > > Here is the full code hope that's alright :D > > > > > from System.Windows import Application > from System.Windows.Controls import MediaElement > from System.Windows.Controls import Button, Orientation, StackPanel, Slider > from System import Uri, UriKind > from System.Windows.Media.Imaging import BitmapImage > from System.Windows.Threading import * > > from System import TimeSpan > class Gui(): > def __init__(self): > > self.main = StackPanel() > > self.layer1 = StackPanel() > self.layer1.Orientation = Orientation.Horizontal > > self.stopB = Button() > self.stopB.Width = 25 > self.stopB.Height = 20 > self.stopB.Content = BitmapImage(Uri("stop.jpg", UriKind.Relative)) > > self.pauseB = Button() > self.pauseB.Width = 25 > self.pauseB.Height = 20 > self.pauseB.Content = BitmapImage(Uri("pause.jpg", > UriKind.Relative)) > > self.playB = Button() > self.playB.Width = 25 > self.playB.Height = 20 > self.playB.Content = BitmapImage(Uri("play.jpg", UriKind.Relative)) > > # Assign Buttons to Functions > self.stopB.Click += self.StopPlay > self.pauseB.Click += self.PausePlay > self.playB.Click += self.StartPlay > > > > #add a video slider > self.myslide = Slider() > self.myslide.Width = 250 > > > # Add buttons to sub stack panel > self.layer1.Children.Add(self. > > stopB) > self.layer1.Children.Add(self.pauseB) > > > self.layer1.Children.Add(self.myslide) > > self.layer1.Children.Add(self.playB) > > # create new sub stack panel > self.layer2 = StackPanel() > self.layer2.Orientation = Orientation.Vertical > > > > #create Media Element > self.video = MediaElement() > > self.source = Uri("counter.wmv", UriKind.Relative) > self.video.Volume = 0.4 > self.video.Source = self.source > self.video.Width = 450 > self.video.Height = 400 > self.video.CurrentStateChanged += self.videoChanged > > self.timer = DispatcherTimer() > self.timer.Interval = TimeSpan.FromMilliseconds(45) > self.timer.Tick += self.MyTimeToTick > > > > # Add media Element to Sub Stack panel > self.layer2.Children.Add(self.video) > > # Add sub stack panels to place holde stack panel > self.main.Children.Add(self.layer1) > self.main.Children.Add(self.layer2) > > # Load the UI > Application.Current.RootVisual = self.main > > > def MyTimeToTick(self, s, e): > if self.video.NaturalDuration.TimeSpan.TotalSeconds > 0: > self.myslide.Value = self.video.Position.TotalSeconds / > self.video.NaturalDuration.TimeSpan.TotalSeconds > > > def videoChanged(self, s, e): > > if self.video.NaturalDuration.CurrentState == > MediaElementState.Playing: > > > self.timer.Start() > else: > self.timer.Stop() > ## > ## > > def StopPlay(self, s, e): > # stop the video > self.video.Stop() > > def PausePlay(self, s, e): > #pause the video > self.video.Pause() > > def StartPlay(self, s, e): > #play the video > self.video.Play() > > gui = Gui() > gui > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Jan 11 23:32:55 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 11 Jan 2010 22:32:55 +0000 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> And to answer your initial question about images in buttons, here's how to do it: from System.Windows.Controls import Button, Image from System.Windows.Media.Imaging import BitmapImage btn = Button( Width = 25, Height = 20, Content = Image( Source = BitmapImage(Uri("images/stop.jpg", UriKind.Relative)) ) ) This assumes that "images/stop.jpg" is relative to the XAP file of your application. To add an image to a System.Windows.Controls.Button, you must use System.Windows.Controls.Image. The Image control then lets you set its Source, which is where System.Windows.Media.Imaging.BitmapImage comes into play. Confusing, I know =( This syntax uses IronPython's ability to use Python's named parameters to set properties; it makes working with Silverlight and WPF objects a lot less painful. Not using named parameters would look like this: btn = Button() btn.Width = 25 btn.Height = 20 img = Image() img.Source = BitmapImage(Uri("images/stop.jpg", UriKind.Relative)) btn.Content = img Oy =P Let me know if you have any other Silverlight questions, ~Jimmy From Jimmy.Schementi at microsoft.com Tue Jan 12 02:21:31 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 01:21:31 +0000 Subject: [IronPython] Can't Get an Image on a Button Ipy Silverlight In-Reply-To: <321b88ab1001061548l28b72a40h74bcf97d3f1e1f61@mail.gmail.com> References: <321b88ab1001051244m66f3897awc1b5326bcd977842@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920705CB@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001051715ofc92f54tace2f8f357b8c14a@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC92070A67@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001061548l28b72a40h74bcf97d3f1e1f61@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209E5FB@TK5EX14MBXC141.redmond.corp.microsoft.com> For archival purposes, here's the answer to this: http://lists.ironpython.com/pipermail/users-ironpython.com/2010-January/011953.html From dinov at microsoft.com Tue Jan 12 02:39:00 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 12 Jan 2010 01:39:00 +0000 Subject: [IronPython] IronPython 2.6 final: Debugging not working? In-Reply-To: References: Message-ID: <1A472770E042064698CB5ADC83A12ACD34C083F1@TK5EX14MBXC118.redmond.corp.microsoft.com> What does program.py look like? Is it all top-level code or does it also contain functions and classes? And are the break points in the top-level code or are they in functions/classes? I ask because I can't seem to hit breakpoints in top-level code at all but so far I reliably hit them in functions - but that may just be the way the races are going on my machine. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Joshua Kramer > Sent: Sunday, December 13, 2009 8:32 PM > To: users at lists.ironpython.com > Subject: Re: [IronPython] IronPython 2.6 final: Debugging not working? > > > Dino, > > This actually appears to be a threading issue. While I was filing a bug > report for PyDev I did further testing. In three debugging sessions, two > sessions worked fine with full debugging and one session skipped the > breakpoints. Here's a relevant debug log: > > This is where it DOES work: > > pydev debugger: starting > ('Executing file ', 'C:\\Documents and > Settings\\Joshua.Kramer\\workspace\\DebugTest\\src\\Program.py') > ('arguments:', "['C:\\\\Documents and > Settings\\\\Joshua.Kramer\\\\workspace\\\\DebugTest\\\\src\\\\Program.py']") > ('Connecting to ', 'localhost', ':', '3416') > ('Connected.',) > ('received command ', '501\t1\t1.1') > ('received command ', '111\t3\tC:\\Documents and > Settings\\Joshua.Kramer\\workspace\\DebugTest\\src\\Program.py\t10\t**FUNC**\t > None') > sending cmd: CMD_THREAD_CREATE 103 2 name="pydevd.reader" id="-1"/> > > sending cmd: CMD_VERSION 501 1 1.1 > > sending cmd: CMD_THREAD_CREATE 103 4 name="pydevd.writer" id="-1"/> > > Added breakpoint:c:\documents and > settings\joshua.kramer\workspace\debugtest\src\program.py - line:10 - > func_name: > ('received command ', '101\t5\t') > hello > lightbulb > ('found a new thread ', 'pid264_seq1') > sending cmd: CMD_THREAD_CREATE 103 6 name="MainThread" id="pid264_seq1" /> > > sending cmd: CMD_THREAD_SUSPEND 105 8 id="pid264_seq1" stop_reason="111"> name="%26lt%3Bmodule%26gt%3B" file="c%253A%255Cdocuments and > settings%255Cjoshua.kramer%255Cworkspace%255Cdebugtest%255Csrc%255Cprogram.py" > line="10">" > > ('received command ', '114\t7\tpid264_seq1\t43\tFRAME') > ('processing internal command ', ' at 0x000000000000002C>') > sending cmd: CMD_GET_FRAME 114 7 type="CodeContext" value="CodeContext%253A > %253CIronPython.Runtime.CodeContext object at 0x000000000000002D > %255BIronPython.Runtime.CodeContext%255D%26gt%3B" isContainer="True" > />%0A%0A name="functionCode" type="code" value="code%253A %253Ccode object at > 0x000000000000002E%26gt%3B" isContainer="True" />%0A > > This is where it does NOT work: > > pydev debugger: starting > ('Executing file ', 'C:\\Documents and > Settings\\Joshua.Kramer\\workspace\\DebugTest\\src\\Program.py') > ('arguments:', "['C:\\\\Documents and > Settings\\\\Joshua.Kramer\\\\workspace\\\\DebugTest\\\\src\\\\Program.py']") > ('Connecting to ', 'localhost', ':', '3422') > ('Connected.',) > ('received command ', '501\t1\t1.1') > ('received command ', '111\t3\tC:\\Documents and > Settings\\Joshua.Kramer\\workspace\\DebugTest\\src\\Program.py\t10\t**FUNC**\t > None') > sending cmd: CMD_THREAD_CREATE 103 2 name="pydevd.reader" id="-1"/> > > sending cmd: CMD_VERSION 501 1 1.1 > > sending cmd: CMD_THREAD_CREATE 103 4 name="pydevd.writer" id="-1"/> > > Added breakpoint:c:\documents and > settings\joshua.kramer\workspace\debugtest\src\program.py - line:10 - > func_name: > ('received command ', '101\t5\t') > hello > lightbulb > goodbye > gobble > done testing > > How can I further assist? > > Thanks, > -Josh > > -- > > ----- > http://www.globalherald.net/jb01 > GlobalHerald.NET, the Smarter Social Network! (tm) > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From andrew.canit at gmail.com Tue Jan 12 02:50:50 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Mon, 11 Jan 2010 17:50:50 -0800 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> Hello again You must be getting sick of me :-P j/k Ok I have a simple video player setup ultimately I would like to connect it to a Database. I am writing the database code but I am unsure how to $_GET a value in IronPython. Although I will be honest and haven't done to much research as of yet ;-) that will begin tonight. But if you have any advice on passing values to IronPython that would be greatly appreciated On Mon, Jan 11, 2010 at 2:32 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > And to answer your initial question about images in buttons, here's how to > do it: > > from System.Windows.Controls import Button, Image > from System.Windows.Media.Imaging import BitmapImage > > btn = Button( > Width = 25, > Height = 20, > Content = Image( > Source = BitmapImage(Uri("images/stop.jpg", UriKind.Relative)) > ) > ) > > This assumes that "images/stop.jpg" is relative to the XAP file of your > application. To add an image to a System.Windows.Controls.Button, you must > use System.Windows.Controls.Image. The Image control then lets you set its > Source, which is where System.Windows.Media.Imaging.BitmapImage comes into > play. Confusing, I know =( > > This syntax uses IronPython's ability to use Python's named parameters to > set properties; it makes working with Silverlight and WPF objects a lot less > painful. Not using named parameters would look like this: > > btn = Button() > btn.Width = 25 > btn.Height = 20 > img = Image() > img.Source = BitmapImage(Uri("images/stop.jpg", UriKind.Relative)) > btn.Content = img > > Oy =P > > Let me know if you have any other Silverlight questions, > ~Jimmy > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From josh at globalherald.net Tue Jan 12 04:56:44 2010 From: josh at globalherald.net (Joshua Kramer) Date: Mon, 11 Jan 2010 22:56:44 -0500 (EST) Subject: [IronPython] IronPython 2.6 final: Debugging not working? In-Reply-To: References: Message-ID: "I ask because I can't seem to hit breakpoints in top-level code at all but so far I reliably hit them in functions - but that may just be the way the races are going on my machine." That is interesting, Dino. At first my debug program was five simple print statements. The debug breakpoint was hit approximately 66% of the time. In a function, the debug breakpoint was hit 100% of the time, and the debug breakpoint on the top-level code still only hit 66% of the time. -- ----- http://www.globalherald.net/jb01 GlobalHerald.NET, the Smarter Social Network! (tm) From dinov at microsoft.com Tue Jan 12 03:20:36 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 12 Jan 2010 02:20:36 +0000 Subject: [IronPython] IronPython 2.6 final: Debugging not working? In-Reply-To: References: Message-ID: <1A472770E042064698CB5ADC83A12ACD34C08797@TK5EX14MBXC118.redmond.corp.microsoft.com> Thanks! In that case I think I understand what's going on and it should be fairly simple to fix. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Joshua Kramer > Sent: Monday, January 11, 2010 7:57 PM > To: users at lists.ironpython.com > Subject: Re: [IronPython] IronPython 2.6 final: Debugging not working? > > > "I ask because I can't seem to hit breakpoints in top-level code at all > but so far I reliably hit them in functions - but that may just be the > way > the races are going on my machine." > > That is interesting, Dino. At first my debug program was five simple > print statements. The debug breakpoint was hit approximately 66% of > the > time. In a function, the debug breakpoint was hit 100% of the time, > and > the debug breakpoint on the top-level code still only hit 66% of the > time. > > -- > > ----- > http://www.globalherald.net/jb01 > GlobalHerald.NET, the Smarter Social Network! (tm) > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From Jimmy.Schementi at microsoft.com Tue Jan 12 04:08:48 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 03:08:48 +0000 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209E787@TK5EX14MBXC141.redmond.corp.microsoft.com> > You must be getting sick of me :-P j/k Na, I'm happy someone's asking this many questions about Silverlight. =) > Ok I have a simple video player setup ultimately I would like to connect it > to a Database. I am writing the database code but I am unsure how to $_GET > a value in IronPython. Although I will be honest and haven't done to much > research as of yet ;-) that will begin tonight. > > But if you have any advice on passing values to IronPython that would be > greatly appreciated To make network calls from IronPython, you can use either System.Net.WebClient or System.Net.HttpWebRequest. Here's WebClient's basic usage: from System import Uri from System.Net import WebClient def process_response(sender, event_args): print event_args.result request = WebClient() request.DownloadStringCompleted(process_response) request.DownloadStringAsync(Uri("http://foo.com")) WebClient also has an OpenReadAsync method which works the same way, but let's you get a Stream instead of a String. There is also HttpWebRequest, which is more powerful (doing post requests and such), but a bit more verbose. Doing some searching on the web will definitely yield a ton of C#/VB examples on how to do this, which should be straight-forward to convert to Python. ~js From Jimmy.Schementi at microsoft.com Tue Jan 12 08:22:10 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 07:22:10 +0000 Subject: [IronPython] [Ironruby-core] Using IronPython and IronRuby from C# 4.0 In-Reply-To: <353328.51407.qm@web113804.mail.gq1.yahoo.com> References: <353328.51407.qm@web113804.mail.gq1.yahoo.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9209EC32@TK5EX14MBXC141.redmond.corp.microsoft.com> Check this out for something to get you started with ActiveRecord (outside of Rails): http://gist.github.com/273430. The Rails documentation on the IronRuby site is for all of Rails: http://ironruby.net/documentation/rails. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Tayseer Sent: Monday, January 11, 2010 7:21 AM To: IronPython IronPython; ironruby-core at rubyforge.org Subject: [Ironruby-core] Using IronPython and IronRuby from C# 4.0 Hello I'm going to give a session about new features in C# 4.0 in Cairo Code Camp (), and I was thinking of illustrating using Python and Ruby libraries from C# 4, instead of the repeated COM interoperability. I was thinking of presenting BeautifulSoup, SqlAlchemy and/or Rails ActiveRecord, as examples of common libraries in dynamic languages. I'm still working on them and discovering if they are supported on IronPython and IronRuby, but what would you like to see if you were able to attend Your feedback is highly appreciated. Mohammad Tayseer http://spellcoder.com/blogs/tayseer -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Tue Jan 12 17:52:35 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Tue, 12 Jan 2010 08:52:35 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63178. MODIFIED SOURCES $/IronPython/IronPython_Main/Doc/dotnet-integration.rst CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1453163 Date: 1/8/2010 1:35:10 PM Fixes 25448: Can't use ObservableCollection in clrtype.py Added some basic tests for clrtype.py other than the small sample. With this in place, it will be easier to add more tests going forward for new issues. Fixed some other bugs that were caught by the new tests (Shelveset: clrtype;REDMOND\sborde | SNAP CheckinId: 10110) From andrew.canit at gmail.com Tue Jan 12 17:54:48 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Tue, 12 Jan 2010 08:54:48 -0800 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9209E787@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E787@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <321b88ab1001120854j62f5d0a8ub226830447bd4acf@mail.gmail.com> There seems to be a Flaw in my code It seems the movie is finished before the slider reaches the end of its length. Any suggestions? Or is there something wrong with my browser? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 12 20:47:52 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 19:47:52 +0000 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <321b88ab1001120854j62f5d0a8ub226830447bd4acf@mail.gmail.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E787@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001120854j62f5d0a8ub226830447bd4acf@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920A9183@TK5EX14MBXC141.redmond.corp.microsoft.com> Haha, when in doubt blame your browser =P ... It's most likely an issue with your code. Feel free to send me your updated code and I can check things out. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew Evans Sent: Tuesday, January 12, 2010 8:55 AM To: Discussion of IronPython Subject: Re: [IronPython] Silverlight code need help (Repost) There seems to be a Flaw in my code It seems the movie is finished before the slider reaches the end of its length. Any suggestions? Or is there something wrong with my browser? -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Tue Jan 12 21:57:56 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Tue, 12 Jan 2010 12:57:56 -0800 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920A9183@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E787@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001120854j62f5d0a8ub226830447bd4acf@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920A9183@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <321b88ab1001121257q6e99bd03yaaee01d68a22aa92@mail.gmail.com> HAHA ya my browser is whats wrong :-P Did I ever tell you are awesome btw :-P Did you want me to email you the app or is this way fine? #Begin Code# from System import * from System.Windows import Application from System.Windows.Controls import MediaElement from System.Windows.Controls import Button, Orientation, StackPanel, Slider, Image, TextBlock from System import Uri, UriKind from System.Windows.Media.Imaging import BitmapImage from System.Windows.Threading import * from System import TimeSpan from System.Windows.Media import MediaElementState #from System.Net import WebClient class Gui(): def __init__(self): #stack panel self.main = StackPanel() #sub stack panel self.layer1 = StackPanel() self.layer1.Orientation = Orientation.Horizontal #buttons self.stopB = Button( Width = 25, Height = 20, Content = Image( Source = BitmapImage(Uri("images/stop.jpg", UriKind.Relative)) ) ) self.pauseB = Button( Width = 25, Height = 20, Content = Image( Source = BitmapImage(Uri("images/pause.jpg", UriKind.Relative)) ) ) self.playB = Button( Width = 25, Height = 20, Content = Image( Source = BitmapImage(Uri("images/play.jpg", UriKind.Relative)) ) ) # Assign Buttons to Functions self.stopB.Click += self.StopPlay self.pauseB.Click += self.PausePlay self.playB.Click += self.StartPlay #add a video slider self.myslide = Slider() self.myslide.Width = 190 self.myslide.MouseLeftButtonUp += self.lbup self.myslide.MouseLeftButtonDown += self.lbdown self.txtvidstatus = TextBlock() #add a volume slider self.volumeslide = Slider() self.volumeslide.Width = 100 self.volumeslide.ValueChanged += self.vidvol # Add buttons to sub stack panel self.layer1.Children.Add(self.stopB) self.layer1.Children.Add(self.pauseB) self.layer1.Children.Add(self.myslide) self.layer1.Children.Add(self.playB) self.layer1.Children.Add(self.volumeslide) self.layer1.Children.Add(self.txtvidstatus) # create new sub stack panel self.layer2 = StackPanel() self.layer2.Orientation = Orientation.Vertical #create Media Element self.video = MediaElement() self.source = Uri("counter.wmv", UriKind.Relative) self.video.Volume = 0.4 self.video.Source = self.source self.video.Width = 450 self.video.Height = 400 self.video.CurrentStateChanged += self.videoChanged self.video.AutoPlay = True self.timer = DispatcherTimer() self.timer.Interval = TimeSpan.FromMilliseconds(500) self.timer.Tick += self.MyTimeToTick self.timer.Start() # Add media Element to Sub Stack panel self.layer2.Children.Add(self.video) # Add sub stack panels to place holde stack panel self.main.Children.Add(self.layer1) self.main.Children.Add(self.layer2) # Load the UI Application.Current.RootVisual = self.main #Functions def vidvol(self, s, e): self.video.Volume = self.volumeslide.Value def lbdown(self, s, e): self.IsVideoScrubberLocked = True def lbup(self, s, e): if self.video.NaturalDuration.TimeSpan.TotalSeconds > 0 and not self.IsVideoScrubberLocked: self.myslide.Value = self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds def MyTimeToTick(self, s, e): if self.video.NaturalDuration.TimeSpan.TotalSeconds > 0: self.txtvidstatus.Text = String.Format("{0:00}:{1:00}", self.video.Position.Minutes, self.video.Position.Seconds) self.percentComplete = self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds self.myslide.Value = self.percentComplete def videoChanged(self, s, e): if self.video.CurrentState == MediaElementState.Playing: self.timer.Start() else: self.timer.Stop() ## ## def StopPlay(self, s, e): # stop the video self.video.Stop() def PausePlay(self, s, e): #pause the video self.video.Pause() def StartPlay(self, s, e): #play the video self.video.Play() gui = Gui() gui #End code # On Tue, Jan 12, 2010 at 11:47 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Haha, when in doubt blame your browser =P ? > > > > It?s most likely an issue with your code. Feel free to send me your updated > code and I can check things out. > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Andrew Evans > *Sent:* Tuesday, January 12, 2010 8:55 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] Silverlight code need help (Repost) > > > > There seems to be a Flaw in my code > > It seems the movie is finished before the slider reaches the end of its > length. > > Any suggestions? > > Or is there something wrong with my browser? > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jan 12 22:52:09 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 12 Jan 2010 21:52:09 +0000 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <321b88ab1001121257q6e99bd03yaaee01d68a22aa92@mail.gmail.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E1E6@TK5EX14MBXC141.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E787@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001120854j62f5d0a8ub226830447bd4acf@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920A9183@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001121257q6e99bd03yaaee01d68a22aa92@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920A9448@TK5EX14MBXC141.redmond.corp.microsoft.com> Thanks =) It's most likely an issue in the MyTimeToTick method. You should do some print-statement-debugging to make sure the properties you're using to compute the slider position are correct. To see the print statements, put this at the top of your file: import sys from Microsoft.Scripting.Silverlight import Repl repl = Repl.Show() sys.stdout = repl.output_buffer ... and then "print "Hello, World"" will show up in the "IronPython Console" tab. ~Jimmy From andrew.canit at gmail.com Wed Jan 13 00:37:04 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Tue, 12 Jan 2010 15:37:04 -0800 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920A9448@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E212@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E787@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001120854j62f5d0a8ub226830447bd4acf@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920A9183@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001121257q6e99bd03yaaee01d68a22aa92@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920A9448@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <321b88ab1001121537y2acac566u916492893d41c751@mail.gmail.com> Ok that has been done, but the values are incrementing correctly. So I am not exactly sure why its doing this I checked all values in that function. They increment as floating point numbers (time in milliseconds), which is correct. Any other suggestions ;) On Tue, Jan 12, 2010 at 1:52 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Thanks =) > > It's most likely an issue in the MyTimeToTick method. You should do some > print-statement-debugging to make sure the properties you're using to > compute the slider position are correct. To see the print statements, put > this at the top of your file: > > import sys > from Microsoft.Scripting.Silverlight import Repl > repl = Repl.Show() > sys.stdout = repl.output_buffer > > ... and then "print "Hello, World"" will show up in the "IronPython > Console" tab. > > ~Jimmy > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Wed Jan 13 01:16:57 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Tue, 12 Jan 2010 16:16:57 -0800 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <321b88ab1001121537y2acac566u916492893d41c751@mail.gmail.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <321b88ab1001111413n355bedd4k4537def96bc8ea01@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E787@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001120854j62f5d0a8ub226830447bd4acf@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920A9183@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001121257q6e99bd03yaaee01d68a22aa92@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920A9448@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001121537y2acac566u916492893d41c751@mail.gmail.com> Message-ID: <321b88ab1001121616m66291468rfe89a544c0d408c6@mail.gmail.com> This hack seems to fix my problem only its backwards :-P self.video.NaturalDuration.TimeSpan.TotalSeconds - self.video.Position.TotalSeconds will keep playing with it On Tue, Jan 12, 2010 at 3:37 PM, Andrew Evans wrote: > Ok that has been done, but the values are incrementing correctly. So I am > not exactly sure why its doing this > > I checked all values in that function. They increment as floating point > numbers (time in milliseconds), which is correct. > > Any other suggestions ;) > > > > On Tue, Jan 12, 2010 at 1:52 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> Thanks =) >> >> It's most likely an issue in the MyTimeToTick method. You should do some >> print-statement-debugging to make sure the properties you're using to >> compute the slider position are correct. To see the print statements, put >> this at the top of your file: >> >> import sys >> from Microsoft.Scripting.Silverlight import Repl >> repl = Repl.Show() >> sys.stdout = repl.output_buffer >> >> ... and then "print "Hello, World"" will show up in the "IronPython >> Console" tab. >> >> ~Jimmy >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Wed Jan 13 17:52:38 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 13 Jan 2010 08:52:38 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <952f4568-ffb7-4983-9a89-6dfad2d4cfdb@tk5-exsmh-c101.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63205. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Tests/interop/net/type/test_reachtype.py $/IronPython/IronPython_Main/Src/Tests/test_ironmath.py $/IronPython/IronPython_Main/Src/Tests/test_class.py $/IronPython/IronPython_Main/Src/Tests/test_methoddispatch.py $/IronPython/IronPython_Main/Src/Tests/test_numberhash.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1459771 Date: 1/12/2010 8:59:25 AM Filed a handful of .NET 4.0 bugs - (CPy) test_bytes.py, (CPy) test_complex.py, (CPy) test_uuid.py, test_class.py, test_ironmath.py, test_methoddispatch.py, test_numberhash.py, and test_reachtype.py. (Shelveset: NET40_BUGS02;REDMOND\dfugate | SNAP CheckinId: 10120) From cenovsky at bakalari.cz Wed Jan 13 19:36:59 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Wed, 13 Jan 2010 19:36:59 +0100 Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi Message-ID: <4B4E12CB.8060909@bakalari.cz> Hi, I have almost succesfully managed to access IronPython from Delphi 7 (Win32). But I have also encountered a bug connected with IronPython.Modules.dll. Here are steps to recreate it: 1. Unzip the attached file somewhere 2) Put IronPython IronPython-2.6 with IronPython dlls to the same folder (or change the path in Host\build.bat) 3) Build the host with Host\build.bat 4) Run Host\Host.exe - it runs OK 5) Run Delphi\IpyTest.exe - it runs OK 6) Put IronPython.Modules.dll to Delphi\ folder 7) Run Delphi\IpyTest.exe - it freezes. It freezes during creating IronPython engine. 8) Host\Host.exe runs fine with IronPython.Modules.dll I don't know how to debug this problem - can somebody please look at it? Thank you. -- -- Luk?? -------------- next part -------------- A non-text attachment was scrubbed... Name: IronPythonBug.zip Type: application/x-zip-compressed Size: 123440 bytes Desc: not available URL: From dinov at microsoft.com Wed Jan 13 19:47:58 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 13 Jan 2010 18:47:58 +0000 Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi In-Reply-To: <4B4E12CB.8060909@bakalari.cz> References: <4B4E12CB.8060909@bakalari.cz> Message-ID: <1A472770E042064698CB5ADC83A12ACD34C16982@TK5EX14MBXC118.redmond.corp.microsoft.com> The attachment was deleted - can you post it somewhere? For example you could open a bug on our CodePlex site and attach it. Also do you have VisualStudio installed? If so you could attach the debugger to your process and send the stack trace of where it's hanging. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky > Sent: Wednesday, January 13, 2010 10:37 AM > To: Discussion of IronPython > Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi > > Hi, > I have almost succesfully managed to access IronPython from Delphi 7 (Win32). > But I have also encountered a bug connected with IronPython.Modules.dll. > > Here are steps to recreate it: > 1. Unzip the attached file somewhere > 2) Put IronPython IronPython-2.6 with IronPython dlls to the same folder (or > change the path in Host\build.bat) > 3) Build the host with Host\build.bat > 4) Run Host\Host.exe - it runs OK > 5) Run Delphi\IpyTest.exe - it runs OK > 6) Put IronPython.Modules.dll to Delphi\ folder > 7) Run Delphi\IpyTest.exe - it freezes. It freezes during creating IronPython > engine. > 8) Host\Host.exe runs fine with IronPython.Modules.dll > > I don't know how to debug this problem - can somebody please look at it? > Thank you. > > -- > -- Luk?? From arno.jansevanrensburg at gmail.com Wed Jan 13 19:49:26 2010 From: arno.jansevanrensburg at gmail.com (Arno Janse van Rensburg) Date: Wed, 13 Jan 2010 20:49:26 +0200 Subject: [IronPython] help Message-ID: <5a014a071001131049m1aba3313tca46999b1db57414@mail.gmail.com> On Wed, Jan 13, 2010 at 8:41 PM, wrote: > Send Users mailing list submissions to > users 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-request at lists.ironpython.com > > You can reach the person managing the list at > users-owner at lists.ironpython.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Users digest..." > > > Today's Topics: > > 1. Re: Silverlight code need help (Repost) (Jimmy Schementi) > 2. Re: Silverlight code need help (Repost) (Andrew Evans) > 3. Re: Silverlight code need help (Repost) (Andrew Evans) > 4. IronPython 2.6 CodePlex Source Update (merllab at microsoft.com) > 5. IronPython.Modules.dll bug when access from Delphi > (Lukas Cenovsky) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 12 Jan 2010 21:52:09 +0000 > From: Jimmy Schementi > To: Discussion of IronPython > Subject: Re: [IronPython] Silverlight code need help (Repost) > Message-ID: > < > 1B42307CD4AADD438CDDA2FE1121CC920A9448 at TK5EX14MBXC141.redmond.corp.microsoft.com > > > > Content-Type: text/plain; charset="us-ascii" > > Thanks =) > > It's most likely an issue in the MyTimeToTick method. You should do some > print-statement-debugging to make sure the properties you're using to > compute the slider position are correct. To see the print statements, put > this at the top of your file: > > import sys > from Microsoft.Scripting.Silverlight import Repl > repl = Repl.Show() > sys.stdout = repl.output_buffer > > ... and then "print "Hello, World"" will show up in the "IronPython > Console" tab. > > ~Jimmy > > > ------------------------------ > > Message: 2 > Date: Tue, 12 Jan 2010 15:37:04 -0800 > From: Andrew Evans > To: Discussion of IronPython > Subject: Re: [IronPython] Silverlight code need help (Repost) > Message-ID: > <321b88ab1001121537y2acac566u916492893d41c751 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Ok that has been done, but the values are incrementing correctly. So I am > not exactly sure why its doing this > > I checked all values in that function. They increment as floating point > numbers (time in milliseconds), which is correct. > > Any other suggestions ;) > > > On Tue, Jan 12, 2010 at 1:52 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > > > Thanks =) > > > > It's most likely an issue in the MyTimeToTick method. You should do some > > print-statement-debugging to make sure the properties you're using to > > compute the slider position are correct. To see the print statements, put > > this at the top of your file: > > > > import sys > > from Microsoft.Scripting.Silverlight import Repl > > repl = Repl.Show() > > sys.stdout = repl.output_buffer > > > > ... and then "print "Hello, World"" will show up in the "IronPython > > Console" tab. > > > > ~Jimmy > > _______________________________________________ > > Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20100112/51c326a5/attachment-0001.htm > > > > ------------------------------ > > Message: 3 > Date: Tue, 12 Jan 2010 16:16:57 -0800 > From: Andrew Evans > To: Discussion of IronPython > Subject: Re: [IronPython] Silverlight code need help (Repost) > Message-ID: > <321b88ab1001121616m66291468rfe89a544c0d408c6 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > This hack seems to fix my problem only its backwards :-P > > self.video.NaturalDuration.TimeSpan.TotalSeconds - > self.video.Position.TotalSeconds > > will keep playing with it > > On Tue, Jan 12, 2010 at 3:37 PM, Andrew Evans >wrote: > > > Ok that has been done, but the values are incrementing correctly. So I am > > not exactly sure why its doing this > > > > I checked all values in that function. They increment as floating point > > numbers (time in milliseconds), which is correct. > > > > Any other suggestions ;) > > > > > > > > On Tue, Jan 12, 2010 at 1:52 PM, Jimmy Schementi < > > Jimmy.Schementi at microsoft.com> wrote: > > > >> Thanks =) > >> > >> It's most likely an issue in the MyTimeToTick method. You should do some > >> print-statement-debugging to make sure the properties you're using to > >> compute the slider position are correct. To see the print statements, > put > >> this at the top of your file: > >> > >> import sys > >> from Microsoft.Scripting.Silverlight import Repl > >> repl = Repl.Show() > >> sys.stdout = repl.output_buffer > >> > >> ... and then "print "Hello, World"" will show up in the "IronPython > >> Console" tab. > >> > >> ~Jimmy > >> _______________________________________________ > >> Users mailing list > >> Users at lists.ironpython.com > >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >> > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20100112/46bf116e/attachment-0001.htm > > > > ------------------------------ > > Message: 4 > Date: Wed, 13 Jan 2010 08:52:38 -0800 > From: > To: > Subject: [IronPython] IronPython 2.6 CodePlex Source Update > Message-ID: > < > 952f4568-ffb7-4983-9a89-6dfad2d4cfdb at tk5-exsmh-c101.redmond.corp.microsoft.com > > > > Content-Type: text/plain; charset="us-ascii" > > This is an automated email letting you know that sources > have recently been pushed out. You can download these newer > sources directly from > http://ironpython.codeplex.com/SourceControl/changeset/view/63205. > > MODIFIED SOURCES > > $/IronPython/IronPython_Main/Src/Tests/interop/net/type/test_reachtype.py > $/IronPython/IronPython_Main/Src/Tests/test_ironmath.py > $/IronPython/IronPython_Main/Src/Tests/test_class.py > $/IronPython/IronPython_Main/Src/Tests/test_methoddispatch.py > $/IronPython/IronPython_Main/Src/Tests/test_numberhash.py > > CHECKIN COMMENTS > > -------------------------------------------------------------------------------- > Changeset Id: 1459771 > Date: 1/12/2010 8:59:25 AM > > Filed a handful of .NET 4.0 bugs - (CPy) test_bytes.py, (CPy) > test_complex.py, (CPy) test_uuid.py, test_class.py, test_ironmath.py, > test_methoddispatch.py, test_numberhash.py, and test_reachtype.py. > > > > (Shelveset: NET40_BUGS02;REDMOND\dfugate | SNAP CheckinId: 10120) > > > > > > ------------------------------ > > Message: 5 > Date: Wed, 13 Jan 2010 19:36:59 +0100 > From: Lukas Cenovsky > To: Discussion of IronPython > Subject: [IronPython] IronPython.Modules.dll bug when access from > Delphi > Message-ID: <4B4E12CB.8060909 at bakalari.cz> > Content-Type: text/plain; charset="iso-8859-2"; Format="flowed" > > Hi, > I have almost succesfully managed to access IronPython from Delphi 7 > (Win32). But I have also encountered a bug connected with > IronPython.Modules.dll. > > Here are steps to recreate it: > 1. Unzip the attached file somewhere > 2) Put IronPython IronPython-2.6 with IronPython dlls to the same folder > (or change the path in Host\build.bat) > 3) Build the host with Host\build.bat > 4) Run Host\Host.exe - it runs OK > 5) Run Delphi\IpyTest.exe - it runs OK > 6) Put IronPython.Modules.dll to Delphi\ folder > 7) Run Delphi\IpyTest.exe - it freezes. It freezes during creating > IronPython engine. > 8) Host\Host.exe runs fine with IronPython.Modules.dll > > I don't know how to debug this problem - can somebody please look at it? > Thank you. > > -- > -- Luk?? > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: IronPythonBug.zip > Type: application/x-zip-compressed > Size: 123440 bytes > Desc: not available > URL: < > http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20100113/7f8d70f8/attachment.bin > > > > ------------------------------ > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > End of Users Digest, Vol 66, Issue 19 > ************************************* > -- Arno Janse van Rensburg e-mail : arno.jansevanrensburg at gmail.com cell : 0828765691 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cenovsky at bakalari.cz Wed Jan 13 20:05:51 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Wed, 13 Jan 2010 20:05:51 +0100 Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34C16982@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B4E12CB.8060909@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD34C16982@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B4E198F.8060209@bakalari.cz> I have created CodePlex issue: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25933 Unfortunately, I have only VS Express so I cannot attach debugger to a process. -- -- Luk?? Dino Viehland wrote: > The attachment was deleted - can you post it somewhere? For example you could > open a bug on our CodePlex site and attach it. > > Also do you have VisualStudio installed? If so you could attach the debugger > to your process and send the stack trace of where it's hanging. > > >> -----Original Message----- >> From: users-bounces at lists.ironpython.com [mailto:users- >> bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky >> Sent: Wednesday, January 13, 2010 10:37 AM >> To: Discussion of IronPython >> Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi >> >> Hi, >> I have almost succesfully managed to access IronPython from Delphi 7 (Win32). >> But I have also encountered a bug connected with IronPython.Modules.dll. >> >> Here are steps to recreate it: >> 1. Unzip the attached file somewhere >> 2) Put IronPython IronPython-2.6 with IronPython dlls to the same folder (or >> change the path in Host\build.bat) >> 3) Build the host with Host\build.bat >> 4) Run Host\Host.exe - it runs OK >> 5) Run Delphi\IpyTest.exe - it runs OK >> 6) Put IronPython.Modules.dll to Delphi\ folder >> 7) Run Delphi\IpyTest.exe - it freezes. It freezes during creating IronPython >> engine. >> 8) Host\Host.exe runs fine with IronPython.Modules.dll >> >> I don't know how to debug this problem - can somebody please look at it? >> Thank you. >> >> -- >> -- Luk?? >> > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Wed Jan 13 20:08:59 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 13 Jan 2010 19:08:59 +0000 Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi In-Reply-To: <4B4E198F.8060209@bakalari.cz> References: <4B4E12CB.8060909@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD34C16982@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4E198F.8060209@bakalari.cz> Message-ID: <1A472770E042064698CB5ADC83A12ACD34C16AB4@TK5EX14MBXC118.redmond.corp.microsoft.com> Ok, Dave was also somehow able to get the attachment and send it to me... What is IpyTest.exe? It's a big unmanaged EXE which I'm not inclined to run. Is this hosting the CLR somehow? Could you attach the debugger using windbg which is a free download and get the stack from there? From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Wednesday, January 13, 2010 11:06 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython.Modules.dll bug when access from Delphi I have created CodePlex issue: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25933 Unfortunately, I have only VS Express so I cannot attach debugger to a process. -- -- Luk?? Dino Viehland wrote: The attachment was deleted - can you post it somewhere? For example you could open a bug on our CodePlex site and attach it. Also do you have VisualStudio installed? If so you could attach the debugger to your process and send the stack trace of where it's hanging. -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users- bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Wednesday, January 13, 2010 10:37 AM To: Discussion of IronPython Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi Hi, I have almost succesfully managed to access IronPython from Delphi 7 (Win32). But I have also encountered a bug connected with IronPython.Modules.dll. Here are steps to recreate it: 1. Unzip the attached file somewhere 2) Put IronPython IronPython-2.6 with IronPython dlls to the same folder (or change the path in Host\build.bat) 3) Build the host with Host\build.bat 4) Run Host\Host.exe - it runs OK 5) Run Delphi\IpyTest.exe - it runs OK 6) Put IronPython.Modules.dll to Delphi\ folder 7) Run Delphi\IpyTest.exe - it freezes. It freezes during creating IronPython engine. 8) Host\Host.exe runs fine with IronPython.Modules.dll I don't know how to debug this problem - can somebody please look at it? Thank you. -- -- Luk?? _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cenovsky at bakalari.cz Wed Jan 13 20:20:58 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Wed, 13 Jan 2010 20:20:58 +0100 Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34C16AB4@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B4E12CB.8060909@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD34C16982@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4E198F.8060209@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD34C16AB4@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B4E1D1A.5090705@bakalari.cz> IpyTest is compiled IpyTest.dpr by Delphi 7. Yes, it hosts CLR. I'll try the windbg. -- -- Luk?? Dino Viehland wrote: > > Ok, Dave was also somehow able to get the attachment and send it to me... > > > > What is IpyTest.exe? It's a big unmanaged EXE which I'm not inclined > to run. > > > > Is this hosting the CLR somehow? Could you attach the debugger using > windbg > > which is a free download and get the stack from there? > > > > > > *From:* users-bounces at lists.ironpython.com > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Lukas Cenovsky > *Sent:* Wednesday, January 13, 2010 11:06 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] IronPython.Modules.dll bug when access > from Delphi > > > > I have created CodePlex issue: > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25933 > > Unfortunately, I have only VS Express so I cannot attach debugger to a > process. > > -- > -- Luk?? > > > Dino Viehland wrote: > > The attachment was deleted - can you post it somewhere? For example you could > open a bug on our CodePlex site and attach it. > > Also do you have VisualStudio installed? If so you could attach the debugger > to your process and send the stack trace of where it's hanging. > > > > -----Original Message----- > > From: users-bounces at lists.ironpython.com [mailto:users- > > bounces at lists.ironpython.com ] On Behalf Of Lukas Cenovsky > > Sent: Wednesday, January 13, 2010 10:37 AM > > To: Discussion of IronPython > > Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi > > > > Hi, > > I have almost succesfully managed to access IronPython from Delphi 7 (Win32). > > But I have also encountered a bug connected with IronPython.Modules.dll. > > > > Here are steps to recreate it: > > 1. Unzip the attached file somewhere > > 2) Put IronPython IronPython-2.6 with IronPython dlls to the same folder (or > > change the path in Host\build.bat) > > 3) Build the host with Host\build.bat > > 4) Run Host\Host.exe - it runs OK > > 5) Run Delphi\IpyTest.exe - it runs OK > > 6) Put IronPython.Modules.dll to Delphi\ folder > > 7) Run Delphi\IpyTest.exe - it freezes. It freezes during creating IronPython > > engine. > > 8) Host\Host.exe runs fine with IronPython.Modules.dll > > > > I don't know how to debug this problem - can somebody please look at it? > > Thank you. > > > > -- > > -- Luk?? > > > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Wed Jan 13 20:29:59 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 13 Jan 2010 19:29:59 +0000 Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi In-Reply-To: <4B4E1D1A.5090705@bakalari.cz> References: <4B4E12CB.8060909@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD34C16982@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4E198F.8060209@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD34C16AB4@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4E1D1A.5090705@bakalari.cz> Message-ID: <1A472770E042064698CB5ADC83A12ACD34C16E58@TK5EX14MBXC118.redmond.corp.microsoft.com> It'll be interesting to see what windbg shows - I just tried it and it works for me w/ or w/o IronPython.Modules.dll. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Wednesday, January 13, 2010 11:21 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython.Modules.dll bug when access from Delphi IpyTest is compiled IpyTest.dpr by Delphi 7. Yes, it hosts CLR. I'll try the windbg. -- -- Luk?? Dino Viehland wrote: Ok, Dave was also somehow able to get the attachment and send it to me... What is IpyTest.exe? It's a big unmanaged EXE which I'm not inclined to run. Is this hosting the CLR somehow? Could you attach the debugger using windbg which is a free download and get the stack from there? From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Wednesday, January 13, 2010 11:06 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython.Modules.dll bug when access from Delphi I have created CodePlex issue: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25933 Unfortunately, I have only VS Express so I cannot attach debugger to a process. -- -- Luk?? Dino Viehland wrote: The attachment was deleted - can you post it somewhere? For example you could open a bug on our CodePlex site and attach it. Also do you have VisualStudio installed? If so you could attach the debugger to your process and send the stack trace of where it's hanging. -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users- bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Wednesday, January 13, 2010 10:37 AM To: Discussion of IronPython Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi Hi, I have almost succesfully managed to access IronPython from Delphi 7 (Win32). But I have also encountered a bug connected with IronPython.Modules.dll. Here are steps to recreate it: 1. Unzip the attached file somewhere 2) Put IronPython IronPython-2.6 with IronPython dlls to the same folder (or change the path in Host\build.bat) 3) Build the host with Host\build.bat 4) Run Host\Host.exe - it runs OK 5) Run Delphi\IpyTest.exe - it runs OK 6) Put IronPython.Modules.dll to Delphi\ folder 7) Run Delphi\IpyTest.exe - it freezes. It freezes during creating IronPython engine. 8) Host\Host.exe runs fine with IronPython.Modules.dll I don't know how to debug this problem - can somebody please look at it? Thank you. -- -- Luk?? _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ________________________________ _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruce.bromberek at gmail.com Wed Jan 13 23:02:02 2010 From: bruce.bromberek at gmail.com (Bruce Bromberek) Date: Wed, 13 Jan 2010 16:02:02 -0600 Subject: [IronPython] IronPython and Project White UI Automation Message-ID: <58ad4a111001131402i46ce534ah6d4420add506e5a7@mail.gmail.com> I'm trying to use white (http://www.codeplex.com/white) to build some process automation scripts. I've hit a wall where my C# knowledge is insufficient/non-existent. White supports all rich client applications, which are Win32, WinForm, WPF and SWT (java). It is .NET based and hence you wouldn't have use proprietary scripting language. You can use your favourite .NET language, IDE and tools for developing tests/automation programs. White provides consistent object oriented API for all kinds of applications. Also it hides all the complexity of Microsoft's UIAutomation library and windows messages (on which it is based). *(While WHITE is completely ready to be used, the documentation is still work under progress. Please do point out the areas which needs documentation.)* My Problem is that a win32 based application (VB6!) has some custom controls. Specifically ListView20WndClass that was a common control from a microsoft provided OCX. The White team says that my solution is to implement a CustomUI control (see http://white.codeplex.com/wikipage?title=Custom%20UI%20Item&referringTitle=Homefor an example). Is it possible to do something like this at runtime in IronPython2.6 or do I need to go down the C# road? Any help/pointers would be appreciated. BB -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Thu Jan 14 21:17:48 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Thu, 14 Jan 2010 12:17:48 -0800 Subject: [IronPython] Silverlight code need help (Repost) In-Reply-To: <321b88ab1001121616m66291468rfe89a544c0d408c6@mail.gmail.com> References: <321b88ab1001111303t7c5f6ed1p429f5e29fcdb09f7@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E31B@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001111750j7fe4668dn35dd2fafbd9745d6@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC9209E787@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001120854j62f5d0a8ub226830447bd4acf@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920A9183@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001121257q6e99bd03yaaee01d68a22aa92@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920A9448@TK5EX14MBXC141.redmond.corp.microsoft.com> <321b88ab1001121537y2acac566u916492893d41c751@mail.gmail.com> <321b88ab1001121616m66291468rfe89a544c0d408c6@mail.gmail.com> Message-ID: <321b88ab1001141217h4ed0fc3aoa63ea37fc7ee7e31@mail.gmail.com> Ok Problem solved self.myslide.Maximum = 380 set that in the slider properties then self.myslide.Value = (self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds) * self.myslide.Maximum YAY :-) On Tue, Jan 12, 2010 at 4:16 PM, Andrew Evans wrote: > This hack seems to fix my problem only its backwards :-P > > self.video.NaturalDuration.TimeSpan.TotalSeconds - > self.video.Position.TotalSeconds > > will keep playing with it > > On Tue, Jan 12, 2010 at 3:37 PM, Andrew Evans wrote: > >> Ok that has been done, but the values are incrementing correctly. So I am >> not exactly sure why its doing this >> >> I checked all values in that function. They increment as floating point >> numbers (time in milliseconds), which is correct. >> >> Any other suggestions ;) >> >> >> >> On Tue, Jan 12, 2010 at 1:52 PM, Jimmy Schementi < >> Jimmy.Schementi at microsoft.com> wrote: >> >>> Thanks =) >>> >>> It's most likely an issue in the MyTimeToTick method. You should do some >>> print-statement-debugging to make sure the properties you're using to >>> compute the slider position are correct. To see the print statements, put >>> this at the top of your file: >>> >>> import sys >>> from Microsoft.Scripting.Silverlight import Repl >>> repl = Repl.Show() >>> sys.stdout = repl.output_buffer >>> >>> ... and then "print "Hello, World"" will show up in the "IronPython >>> Console" tab. >>> >>> ~Jimmy >>> _______________________________________________ >>> Users mailing list >>> Users at lists.ironpython.com >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.canit at gmail.com Thu Jan 14 22:48:00 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Thu, 14 Jan 2010 13:48:00 -0800 Subject: [IronPython] Iron Python and Silverlight Visual Designer/Editor Message-ID: <321b88ab1001141348u280cbc7fs45ef6b15c7093391@mail.gmail.com> Hello everyone on the List I am considering a project, which is to build a Visual Editor for Silverlight Applications specific to IronPython. From what I understand IronPython Studio supports WPF but not silverlight specifically (correct me if I am wrong) I would like to build it in the way that it generates Python first unless specified than generates XAML python mix. So my first question is how do you recommend I go about doing this, is it worth doing? It will be a huge learning curve having very little C# experience and Developing in foreign GUI Code. But it is something I would like to do Let me know your thoughts Cheers Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Thu Jan 14 23:04:20 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 14 Jan 2010 22:04:20 +0000 Subject: [IronPython] Iron Python and Silverlight Visual Designer/Editor In-Reply-To: <321b88ab1001141348u280cbc7fs45ef6b15c7093391@mail.gmail.com> References: <321b88ab1001141348u280cbc7fs45ef6b15c7093391@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920ACEC0@TK5EX14MBXC141.redmond.corp.microsoft.com> I would start from this: http://visitmix.com/labs/gestalt/downloads/xaml.playground.html It's a designer surface in the browse, feels a little like Blend, but still needs a bit of work. It would be pretty easy to allow Python code to be part of this UI as well; like double clicking on the UI elements you drop on the canvas and defining callbacks and whatnot. Plus, you could probably write it all in Python =) ~Jimmy From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Andrew Evans Sent: Thursday, January 14, 2010 1:48 PM To: users at lists.ironpython.com Subject: [IronPython] Iron Python and Silverlight Visual Designer/Editor Hello everyone on the List I am considering a project, which is to build a Visual Editor for Silverlight Applications specific to IronPython. From what I understand IronPython Studio supports WPF but not silverlight specifically (correct me if I am wrong) I would like to build it in the way that it generates Python first unless specified than generates XAML python mix. So my first question is how do you recommend I go about doing this, is it worth doing? It will be a huge learning curve having very little C# experience and Developing in foreign GUI Code. But it is something I would like to do Let me know your thoughts Cheers Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Thu Jan 14 23:13:28 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 14 Jan 2010 22:13:28 +0000 Subject: [IronPython] Iron Python and Silverlight Visual Designer/Editor In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920ACEC0@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001141348u280cbc7fs45ef6b15c7093391@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920ACEC0@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <4B4F9708.7020402@voidspace.org.uk> On 14/01/2010 22:04, Jimmy Schementi wrote: > > I would start from this: > > http://visitmix.com/labs/gestalt/downloads/xaml.playground.html > > It's a designer surface in the browse, feels a little like Blend, but > still needs a bit of work. It would be pretty easy to allow Python > code to be part of this UI as well; like double clicking on the UI > elements you drop on the canvas and defining callbacks and whatnot. > > Plus, you could probably write it all in Python =) > It sounds like a big task - but I would *definitely* be interested in using it. :-) Michael > ~Jimmy > > *From:* users-bounces at lists.ironpython.com > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Andrew Evans > *Sent:* Thursday, January 14, 2010 1:48 PM > *To:* users at lists.ironpython.com > *Subject:* [IronPython] Iron Python and Silverlight Visual Designer/Editor > > Hello everyone on the List > > I am considering a project, which is to build a Visual Editor for > Silverlight Applications specific to IronPython. From what I > understand IronPython Studio supports WPF but not silverlight > specifically (correct me if I am wrong) > > I would like to build it in the way that it generates Python first > unless specified than generates XAML python mix. > > So my first question is how do you recommend I go about doing this, is > it worth doing? It will be a huge learning curve having very little C# > experience and Developing in foreign GUI Code. But it is something I > would like to do > > Let me know your thoughts > > Cheers > > Andrew > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Thu Jan 14 23:34:52 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 14 Jan 2010 22:34:52 +0000 Subject: [IronPython] Iron Python and Silverlight Visual Designer/Editor In-Reply-To: <4B4F9708.7020402@voidspace.org.uk> References: <321b88ab1001141348u280cbc7fs45ef6b15c7093391@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920ACEC0@TK5EX14MBXC141.redmond.corp.microsoft.com> <4B4F9708.7020402@voidspace.org.uk> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920AD1FC@TK5EX14MBXC141.redmond.corp.microsoft.com> Michael Foord wrote: > It sounds like a big task - but I would *definitely* be interested in using it. :-) > > Michael True, but the big task isn't the Python part; it's the designer. If you were ok starting from that xaml-playground, then it would be pretty easy to add python support. However, getting the designer to not suck, like snapping to edges and whatnot, would be a larger commitment. ~Jimmy > Jimmy Schementi wrote: >> I would start from this: >> http://visitmix.com/labs/gestalt/downloads/xaml.playground.html >>? >> It's a designer surface in the browse, feels a little like Blend, but still needs a >> bit of work. It would be pretty easy to allow Python code to be part of this UI as well; >> like double clicking on the UI elements you drop on the canvas and defining callbacks >> and whatnot. >>? >> Plus, you could probably write it all in Python =) >> >> ~Jimmy From andrew.canit at gmail.com Thu Jan 14 23:45:48 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Thu, 14 Jan 2010 14:45:48 -0800 Subject: [IronPython] Iron Python and Silverlight Visual Designer/Editor In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AD1FC@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <321b88ab1001141348u280cbc7fs45ef6b15c7093391@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920ACEC0@TK5EX14MBXC141.redmond.corp.microsoft.com> <4B4F9708.7020402@voidspace.org.uk> <1B42307CD4AADD438CDDA2FE1121CC920AD1FC@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <321b88ab1001141445l3f7609efqbdb5ce60883be814@mail.gmail.com> that Xaml Playground looks like a good start I am prepared to commit my efforts to it :D I have nothing but time so, will give it my best On Thu, Jan 14, 2010 at 2:34 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Michael Foord wrote: > > It sounds like a big task - but I would *definitely* be interested in > using it. :-) > > > > Michael > > True, but the big task isn't the Python part; it's the designer. If you > were ok starting from that xaml-playground, then it would be pretty easy to > add python support. However, getting the designer to not suck, like snapping > to edges and whatnot, would be a larger commitment. > > ~Jimmy > > > Jimmy Schementi wrote: > >> I would start from this: > >> http://visitmix.com/labs/gestalt/downloads/xaml.playground.html > >> > >> It's a designer surface in the browse, feels a little like Blend, but > still needs a > >> bit of work. It would be pretty easy to allow Python code to be part of > this UI as well; > >> like double clicking on the UI elements you drop on the canvas and > defining callbacks > >> and whatnot. > >> > >> Plus, you could probably write it all in Python =) > >> > >> ~Jimmy > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Jan 15 20:33:53 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 15 Jan 2010 19:33:53 +0000 Subject: [IronPython] [ANN] IronPython 2.6 ASP.NET integration Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920AE49C@TK5EX14MBXC141.redmond.corp.microsoft.com> All, The ASP.NET integration (Microsoft.Web.Scripting.dll) has been updated to work with the final version of IronPython 2.6: Download it here: http://ironpython.net/download/aspnet-201001 Read more about the project here: http://aspnet.codeplex.com/wikipage?title=Dynamic%20Language%20Support And for all those curious about how it works: http://www.asp.net/IronPython/whitepaper/ ~Jimmy From donsaw at comcast.net Sat Jan 16 19:54:20 2010 From: donsaw at comcast.net (Don Sawatzky) Date: Sat, 16 Jan 2010 10:54:20 -0800 Subject: [IronPython] IronPython and Visual Designer Message-ID: A good Visual Designer for IronPython is hard to find. I was looking for a better GUI designer. I was spoiled by the VB6 designer, and found the graphics APIs in CPython to be a hassle. I discovered IronPython and WPF and set out to test them. Visual Studio for IronPython is not so good. I have so far settled happily on NetBeans with IronPython and Visual Studio for C#. I generate great graphics in XAML files in Visual Studio and Kazaml (I stay Pythonic and never write C# code), read and parse the XAML files with IronPython code, and add support code. I think M. Foord mentioned doing this somewhere on the Web. I have experimented in this work mode to design with difficulty a Python editor with WPF's RichTextBox. Writing a drag&drop GUI designer is hard. I think someone should take over development of Visual Studio for IronPython. That's seems a good place to start, and work it into a Silverlight IDE. Don L Sawatzky Spokane, WA -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnf at jfcomputer.com Sat Jan 16 21:56:47 2010 From: johnf at jfcomputer.com (John) Date: Sat, 16 Jan 2010 12:56:47 -0800 Subject: [IronPython] IronPython and Visual Designer In-Reply-To: References: Message-ID: <201001161256.47917.johnf@jfcomputer.com> On Saturday 16 January 2010 10:54:20 am Don Sawatzky wrote: > I have so far settled happily on NetBeans with IronPython and Visual Studio > for C#. I may be mis-reading the above but are you saying that you are using NetBeans in some manner to produce a UI that can be used with IronPython. Johnf From empirebuilder at gmail.com Sun Jan 17 08:24:50 2010 From: empirebuilder at gmail.com (Dody Gunawinata) Date: Sun, 17 Jan 2010 09:24:50 +0200 Subject: [IronPython] [ANN] IronPython 2.6 ASP.NET integration In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920AE49C@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AE49C@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <8cd017b81001162324p77557ac9j94e74ebc8fc1e894@mail.gmail.com> Awesome. Thank you so much. Now I can upgrade to final version of IronPython 2.6 :) Dody Gunawinata On Fri, Jan 15, 2010 at 9:33 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > All, > > The ASP.NET integration (Microsoft.Web.Scripting.dll) has been updated to > work with the final version of IronPython 2.6: > > Download it here: > http://ironpython.net/download/aspnet-201001 > > Read more about the project here: > http://aspnet.codeplex.com/wikipage?title=Dynamic%20Language%20Support > > And for all those curious about how it works: > http://www.asp.net/IronPython/whitepaper/ > > ~Jimmy > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- nomadlife.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Sun Jan 17 08:30:32 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sun, 17 Jan 2010 07:30:32 +0000 Subject: [IronPython] [ANN] IronPython 2.6 ASP.NET integration In-Reply-To: <8cd017b81001162324p77557ac9j94e74ebc8fc1e894@mail.gmail.com> References: <1B42307CD4AADD438CDDA2FE1121CC920AE49C@TK5EX14MBXC141.redmond.corp.microsoft.com> <8cd017b81001162324p77557ac9j94e74ebc8fc1e894@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920AEC83@TK5EX14MBXC141.redmond.corp.microsoft.com> You are welcome! Just so you know, the bugs you and Adam reported on the ASP.NET integration are still open: 25959, 25960, 25961. I haven't had time to really drill into them, though I plan to before PyCon in Feb. Please let me know if there are any other issues you'd like to see fixed. ~Jimmy From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dody Gunawinata Sent: Saturday, January 16, 2010 11:25 PM To: Discussion of IronPython Subject: Re: [IronPython] [ANN] IronPython 2.6 ASP.NET integration Awesome. Thank you so much. Now I can upgrade to final version of IronPython 2.6 :) Dody Gunawinata On Fri, Jan 15, 2010 at 9:33 PM, Jimmy Schementi > wrote: All, The ASP.NET integration (Microsoft.Web.Scripting.dll) has been updated to work with the final version of IronPython 2.6: Download it here: http://ironpython.net/download/aspnet-201001 Read more about the project here: http://aspnet.codeplex.com/wikipage?title=Dynamic%20Language%20Support And for all those curious about how it works: http://www.asp.net/IronPython/whitepaper/ ~Jimmy _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- nomadlife.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From caglartoklu at gmail.com Sun Jan 17 12:13:46 2010 From: caglartoklu at gmail.com (Caglar Toklu) Date: Sun, 17 Jan 2010 13:13:46 +0200 Subject: [IronPython] IronPython and Visual Designer In-Reply-To: References: Message-ID: Hi Don, You can use SharpDevelop http://www.icsharpcode.net/OpenSource/SD/ as a GUI designer. And yes, it is like "VB6" unlike the tools that just generate the UI code once. SharpDevelop supports IronPython 2.6 too, and it is much more up-to-date then http://ironpythonstudio.codeplex.com/. Caglar On Sat, Jan 16, 2010 at 8:54 PM, Don Sawatzky wrote: > A good Visual Designer for IronPython is hard to find. I was looking for > a better GUI designer. I was spoiled by the VB6 designer, and found the > graphics APIs in CPython to be a hassle. I discovered IronPython and WPF > and set out to test them. Visual Studio for IronPython is not so good. I > have so far settled happily on NetBeans with IronPython and Visual Studio > for C#. I generate great graphics in XAML files in Visual Studio > and Kazaml (I stay Pythonic and never write C# code), read and parse the > XAML files with IronPython code, and add support code. I think M. Foord > mentioned doing this somewhere on the Web. I have experimented in this work > mode to design with difficulty a Python editor with WPF's RichTextBox. > Writing a drag&drop GUI designer is hard. I think someone should take over > development of Visual Studio for IronPython. That's seems a good place to > start, and work it into a Silverlight IDE. > > Don L Sawatzky > Spokane, WA > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Mon Jan 18 17:52:57 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Mon, 18 Jan 2010 08:52:57 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <18957a25-d96b-4a89-928b-5a7e036bbadc@tk5-exsmh-c102.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63349. ADDED SOURCES $/IronPython/IronPython_Main/Src/IronPythonTest/DynamicRegressions.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Utils/NativeMethods.cs $/IronPython/IronPython_Main/Src/Tests/interop/net/dynamic $/IronPython/IronPython_Main/Src/Tests/interop/net/dynamic/__init__.py $/IronPython/IronPython_Main/Src/Tests/interop/net/dynamic/dynamic_regressions.py MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPythonTest/DynamicRegressions.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Microsoft.Scripting.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/PlatformAdaptationLayer.cs $/IronPython/IronPython_Main/Src/IronPythonTest/IronPythonTest.csproj $/IronPython/IronPython_Main/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Utils/NativeMethods.cs $/IronPython/IronPython_Main/Src/Tests/interop/net/dynamic/__init__.py $/IronPython/IronPython_Main/Src/Tests/interop/net/dynamic/dynamic_regressions.py $/IronPython/IronPython_Main/Src/Tests/interop/net/type/test_reachtype.py $/IronPython/IronPython_Main/Src/Tests/test_ipye.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1470788 Date: 1/15/2010 6:17:02 PM - added interop.net.dynamic.dynamic_regressions and IronPythonTest.DynamicRegressions (to IronPythonTest.dll). As their filenames might imply, these will hold regressions for .NET 4.0's dynamic feature - EngineTest.cs: workaround a new .NET 4.0 security feature from ScenarioPartialTrust - test_ipye.py: CodePlex 24085 looks fixed. - test_reachtype.py: CodePlex 25898 is a Won't Fix (Shelveset: CP87;REDMOND\dfugate | SNAP CheckinId: 19) From cenovsky at bakalari.cz Mon Jan 18 20:50:05 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Mon, 18 Jan 2010 20:50:05 +0100 Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34C16E58@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B4E12CB.8060909@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD34C16982@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4E198F.8060209@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD34C16AB4@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B4E1D1A.5090705@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD34C16E58@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B54BB6D.3040909@bakalari.cz> Of course the bug was not in IronPython :-) Thanks Dino for helping me find it! Check my question on StackOverflow (http://stackoverflow.com/questions/2048540/hosting-clr-in-delphi-with-jcl-example) how to work with .NET from Delphi Win32. Beware especially of different floating point exceptions behavior in Delphi (that was my problem). You have to call Set8087CW($133F); before any work with .NET. After that, it's only matter of creating IronPython engine etc. -- -- Luk?? Dino Viehland wrote: > > It'll be interesting to see what windbg shows -- I just tried it and > it works for me w/ or w/o IronPython.Modules.dll. > > > > *From:* users-bounces at lists.ironpython.com > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Lukas Cenovsky > *Sent:* Wednesday, January 13, 2010 11:21 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] IronPython.Modules.dll bug when access > from Delphi > > > > IpyTest is compiled IpyTest.dpr by Delphi 7. Yes, it hosts CLR. > I'll try the windbg. > > -- > -- Luk?? > > > Dino Viehland wrote: > > Ok, Dave was also somehow able to get the attachment and send it to me... > > > > What is IpyTest.exe? It's a big unmanaged EXE which I'm not inclined > to run. > > > > Is this hosting the CLR somehow? Could you attach the debugger using > windbg > > which is a free download and get the stack from there? > > > > > > *From:* users-bounces at lists.ironpython.com > > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Lukas Cenovsky > *Sent:* Wednesday, January 13, 2010 11:06 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] IronPython.Modules.dll bug when access > from Delphi > > > > I have created CodePlex issue: > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25933 > > Unfortunately, I have only VS Express so I cannot attach debugger to a > process. > > -- > -- Luk?? > > > Dino Viehland wrote: > > The attachment was deleted - can you post it somewhere? For example you could > open a bug on our CodePlex site and attach it. > > Also do you have VisualStudio installed? If so you could attach the debugger > to your process and send the stack trace of where it's hanging. > > > > -----Original Message----- > > From: users-bounces at lists.ironpython.com [mailto:users- > > bounces at lists.ironpython.com ] On Behalf Of Lukas Cenovsky > > Sent: Wednesday, January 13, 2010 10:37 AM > > To: Discussion of IronPython > > Subject: [IronPython] IronPython.Modules.dll bug when access from Delphi > > > > Hi, > > I have almost succesfully managed to access IronPython from Delphi 7 (Win32). > > But I have also encountered a bug connected with IronPython.Modules.dll. > > > > Here are steps to recreate it: > > 1. Unzip the attached file somewhere > > 2) Put IronPython IronPython-2.6 with IronPython dlls to the same folder (or > > change the path in Host\build.bat) > > 3) Build the host with Host\build.bat > > 4) Run Host\Host.exe - it runs OK > > 5) Run Delphi\IpyTest.exe - it runs OK > > 6) Put IronPython.Modules.dll to Delphi\ folder > > 7) Run Delphi\IpyTest.exe - it freezes. It freezes during creating IronPython > > engine. > > 8) Host\Host.exe runs fine with IronPython.Modules.dll > > > > I don't know how to debug this problem - can somebody please look at it? > > Thank you. > > > > -- > > -- Luk?? > > > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > > > > ------------------------------------------------------------------------ > > > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ejstembler at mac.com Tue Jan 19 04:47:16 2010 From: ejstembler at mac.com (Edward J. Stembler) Date: Mon, 18 Jan 2010 22:47:16 -0500 Subject: [IronPython] Are Converters (IValueConverter) supported in IronPython + Silverlight? In-Reply-To: <4058F8F9-CC22-4658-8770-503CB1E4BCE5@mac.com> References: <4058F8F9-CC22-4658-8770-503CB1E4BCE5@mac.com> Message-ID: <4B552B44.9070609@mac.com> I'm trying to port an existing (and working) C# Silverlight 3 application to IronPython. Right now, I working on the merging of the resource dictionaries, and have gotten to the point where I merge the converters. I took a simple converter and ported it to IronPython, however I'm getting the ever helpful SystemError 2255. I can manually import my converter class via the REPL, and do a dir on it too. Which leads me to believe there's another issue I'm unaware of. Perhaps it's not supported? Has anyone else tried implementing a converter in IronPython yet? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vginer at gmail.com Tue Jan 19 18:22:02 2010 From: vginer at gmail.com (Vicent) Date: Tue, 19 Jan 2010 18:22:02 +0100 Subject: [IronPython] IronPython in Visual Studio 2008 Message-ID: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> Hello to all. This is my first message to the list. I would like to ask you some basic questions about IronPython. First of all, sorry for my English. I've just discovered IronPython, and I am actually a new-by in Python, not an expert programmer. So maybe you'll find my questions quite simple or naive. I read the first chapter of the classic book for IronPython ( http://www.manning.com/foord/SampleChapter1.pdf), and in pages 7-8 the author says: "Visual Studio 2008 integration exists in the form of IronPython Studio, which is implemented through the Visual Studio Shell extensibility framework. IronPython Studio can either be run standalone (without requiring Visual Studio to be installed) or integrated into Visual Studio. It includes Windows Forms and WPF designers and is capable of producing binary executables from Python projects." I am very interested in fully understanding this sentence above, because I currently use C++ in MS Visual Studio 2008, but I like Python more. So, with IronPython + Visual Studio 2008: (1) Can I obtain compiled code from Python source, as efficient/fast/etc. as if it was made from C++? (2) Can I obtain executables (programs that people can install and use, in the "normal user" language) as good/fast/efficient as I would obtain using Visual C++? (3) Can I easily link my Python code with existing external C/C++ libraries? (4) (Similar to the previous one) Can I easily link my Python code with some C/C++ source code (I mean, mixing up Python and C in the same project, in a transparent way)? (5) Can I use NumPy, SciPy and other key (scientific) Python libraries in a transparent way? (or am I just dreaming??) Any answer will be appreciated. Thank you in advance. -- Vicent Giner -------------- next part -------------- An HTML attachment was scrubbed... URL: From vernondcole at gmail.com Tue Jan 19 22:17:02 2010 From: vernondcole at gmail.com (Vernon Cole) Date: Tue, 19 Jan 2010 14:17:02 -0700 Subject: [IronPython] IronPython in Visual Studio 2008 In-Reply-To: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> References: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> Message-ID: Vincent: I will try the first part of an answer to your question. It is a long question, so you will probably get lots of different answers... There are several different implementations of Python. I will talk about the two which are most common on Windows systems. I use both. CPython is implemented in the C++ language and uses the traditional (or OLD, depending on your point of view) method of operating a Windows program. It is much more mature, starts up much faster, and has lots of available modules, including numpy, scipy and countless others. You find it at http://python.org. To do Windows specific things with it, you also need pywin32 . It can be used on a web server, and several web engines such as django, are written using it. It cannot be used as a client script on a web page. IronPython is new, written by Microsoft in the C# language, and uses the new .NET way of hooking things together. It is a VERY good implementation of standard Python, but since many of the add-on libraries were written in C++, not C#, you cannot link to them. There is a package called IronClad which seeks to make this happen, often successfully. ( http://www.resolversystems.com/products/ironclad/ .) IronPython also suffers from the frustrating habit of ALL .NET implementations of taking several seconds (which at times feels like several minutes) to start a new process running. So while it may often be FASTER than CPython after it finally gets going, don't even THINK about using it for a quick command-line script. On the other hand, if you are trying to interface with a new .NET project, it is only reasonable way to go. It also runs on the Silverlight platform, so can be used as a scripting language for a web client page, not only a server page. I have heard nothing but BAD reports about using Iron Python Studio. However, there are several Integrated Development Environments which work with CPython, IronPython, or both. I, personally, use Wing for debugging, and the IDE which is built in to pywin32 for rough work. Will Python code run as fast as C, or C++, or C# code? No. (or almost never.) Will it run fast enough that a human user will never notice the difference? Almost always. So what you do is prototype in Python, where you are most productive, then if you find that some part of your system actually needs the performance boost, you recode that piece in C++ (or C#). I find that design changes usually do much more to boost perceived speed than compiler changes do. Python excels at that. So welcome aboard. You have discovered a great tool. -- Vernon Cole On Tue, Jan 19, 2010 at 10:22 AM, Vicent wrote: > Hello to all. > > This is my first message to the list. I would like to ask you some basic > questions about IronPython. First of all, sorry for my English. > > I've just discovered IronPython, and I am actually a new-by in Python, not > an expert programmer. So maybe you'll find my questions quite simple or > naive. > > I read the first chapter of the classic book for IronPython ( > http://www.manning.com/foord/SampleChapter1.pdf), and in pages 7-8 the > author says: > > "Visual Studio 2008 integration exists in the form of IronPython Studio, > which is implemented through the Visual Studio Shell extensibility > framework. IronPython Studio can either be run standalone (without requiring > Visual Studio to be installed) or integrated into Visual Studio. It includes > Windows Forms and WPF designers and is capable of producing binary > executables from Python projects." > > I am very interested in fully understanding this sentence above, because I > currently use C++ in MS Visual Studio 2008, but I like Python more. > > So, with IronPython + Visual Studio 2008: > > (1) Can I obtain compiled code from Python source, as efficient/fast/etc. > as if it was made from C++? > (2) Can I obtain executables (programs that people can install and use, in > the "normal user" language) as good/fast/efficient as I would obtain using > Visual C++? > (3) Can I easily link my Python code with existing external C/C++ > libraries? > (4) (Similar to the previous one) Can I easily link my Python code with > some C/C++ source code (I mean, mixing up Python and C in the same project, > in a transparent way)? > (5) Can I use NumPy, SciPy and other key (scientific) Python libraries in a > transparent way? > > (or am I just dreaming??) > > Any answer will be appreciated. Thank you in advance. > > -- > Vicent Giner > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From josh at globalherald.net Wed Jan 20 01:25:43 2010 From: josh at globalherald.net (Joshua Kramer) Date: Tue, 19 Jan 2010 19:25:43 -0500 (EST) Subject: [IronPython] IronPython in Visual Studio 2008 Message-ID: Hello Vicent, Regarding IronPython in Visual Studio 2008: don't try this. Visual Studio 2008 is hopelessly broken when it comes to Python, and it will mangle your Python code. At least that's the way it was when I tried it several months ago. I've been using Eclipse with PyDev with success. Some of the other more experienced folks can answer your questions about building packages and mixing C++ and Python code. According to the latest faq, you can't use modules such as NumPy or SciPy just yet, because they are C based and currently there is no way to link that code with the .NET based IronPython. Dino, am I correct? --Josh From brian.curtin at gmail.com Wed Jan 20 00:11:31 2010 From: brian.curtin at gmail.com (Brian Curtin) Date: Tue, 19 Jan 2010 17:11:31 -0600 Subject: [IronPython] IronPython in Visual Studio 2008 In-Reply-To: References: Message-ID: On Tue, Jan 19, 2010 at 18:25, Joshua Kramer wrote: > > Hello Vicent, > > Regarding IronPython in Visual Studio 2008: don't try this. Visual Studio > 2008 is hopelessly broken when it comes to Python, and it will mangle your > Python code. At least that's the way it was when I tried it several months > ago. I've been using Eclipse with PyDev with success. > > Some of the other more experienced folks can answer your questions about > building packages and mixing C++ and Python code. According to the latest > faq, you can't use modules such as NumPy or SciPy just yet, because they are > C based and currently there is no way to link that code with the .NET based > IronPython. Dino, am I correct? > > --Josh > Check out the IronClad project for using C modules in IronPython -- http://code.google.com/p/ironclad/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Wed Jan 20 00:23:23 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Tue, 19 Jan 2010 23:23:23 +0000 Subject: [IronPython] IronPython in Visual Studio 2008 In-Reply-To: References: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> Message-ID: <4B563EEB.80902@voidspace.org.uk> On 19/01/2010 21:17, Vernon Cole wrote: > Vincent: > > I will try the first part of an answer to your question. It is a long > question, so you will probably get lots of different answers... > > There are several different implementations of Python. I will talk > about the two which are most common on Windows systems. I use both. > > CPython is implemented in the C++ language Actually C and *not* C++, although that may change if unladen-swallow is merged back in (unladen-swallow uses LLVM which is written in C++). To answer some of the the other questions. Yes you *can* create 'exe' files written from compiled Python using IronPython. The user need never care that the program was written in Python. You can either use the Pyc compiler to create these directly or just write a simple '.exe' wrapper in C# that executes the Python code. .NET has an FFI (Foreign Function Interface) for integrating .NET applications written in C/C++. This is what Ironclad uses to interface with Python C extensions. You can use the FFI (PInvoke) directly for working with other C/C++ libraries. Even though few on this list would recommend using Visual Studio to edit your Python files you can use the standard .NET build system to build your project from combined Python, C# and C/C++ sources relatively easily. All the best, Michael Foord > and uses the traditional (or OLD, depending on your point of view) > method of operating a Windows program. It is much more mature, starts > up much faster, and has lots of available modules, including numpy, > scipy and countless others. You find it at http://python.org. > To do Windows specific things with it, you also > need pywin32 . It can be > used on a web server, and several web engines such as django, are > written using it. It cannot be used as a client script on a web page. > > IronPython is new, written by Microsoft in the C# language, and uses > the new .NET way of hooking things together. It is a VERY good > implementation of standard Python, but since many of the add-on > libraries were written in C++, not C#, you cannot link to them. There > is a package called IronClad which seeks to make this happen, often > successfully. ( http://www.resolversystems.com/products/ironclad/ .) > IronPython also suffers from the frustrating habit of ALL .NET > implementations of taking several seconds (which at times feels like > several minutes) to start a new process running. So while it may often > be FASTER than CPython after it finally gets going, don't even THINK > about using it for a quick command-line script. On the other hand, if > you are trying to interface with a new .NET project, it is only > reasonable way to go. It also runs on the Silverlight platform, so > can be used as a scripting language for a web client page, not only a > server page. > > I have heard nothing but BAD reports about using Iron Python Studio. > However, there are several Integrated Development Environments which > work with CPython, IronPython, or both. I, personally, use Wing for > debugging, and the IDE which is built in to pywin32 for rough work. > > Will Python code run as fast as C, or C++, or C# code? No. (or > almost never.) Will it run fast enough that a human user will never > notice the difference? Almost always. So what you do is prototype in > Python, where you are most productive, then if you find that some part > of your system actually needs the performance boost, you recode that > piece in C++ (or C#). I find that design changes usually do much more > to boost perceived speed than compiler changes do. Python excels at that. > > So welcome aboard. You have discovered a great tool. > -- > Vernon Cole > > > On Tue, Jan 19, 2010 at 10:22 AM, Vicent > wrote: > > Hello to all. > > This is my first message to the list. I would like to ask you some > basic questions about IronPython. First of all, sorry for my English. > > I've just discovered IronPython, and I am actually a new-by in > Python, not an expert programmer. So maybe you'll find my > questions quite simple or naive. > > I read the first chapter of the classic book for IronPython > (http://www.manning.com/foord/SampleChapter1.pdf), and in pages > 7-8 the author says: > > "Visual Studio 2008 integration exists in the form of IronPython > Studio, which is implemented through the Visual Studio Shell > extensibility framework. IronPython Studio can either be run > standalone (without requiring Visual Studio to be installed) or > integrated into Visual Studio. It includes Windows Forms and WPF > designers and is capable of producing binary executables from > Python projects." > > I am very interested in fully understanding this sentence above, > because I currently use C++ in MS Visual Studio 2008, but I like > Python more. > > So, with IronPython + Visual Studio 2008: > > (1) Can I obtain compiled code from Python source, as > efficient/fast/etc. as if it was made from C++? > (2) Can I obtain executables (programs that people can install and > use, in the "normal user" language) as good/fast/efficient as I > would obtain using Visual C++? > (3) Can I easily link my Python code with existing external C/C++ > libraries? > (4) (Similar to the previous one) Can I easily link my Python code > with some C/C++ source code (I mean, mixing up Python and C in the > same project, in a transparent way)? > (5) Can I use NumPy, SciPy and other key (scientific) Python > libraries in a transparent way? > > (or am I just dreaming??) > > Any answer will be appreciated. Thank you in advance. > > -- > Vicent Giner > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Wed Jan 20 03:34:34 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 20 Jan 2010 02:34:34 +0000 Subject: [IronPython] IronPython in Visual Studio 2008 In-Reply-To: References: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34C4AE4B@TK5EX14MBXC118.redmond.corp.microsoft.com> Does Wing now work w/ IronPython for debugging now that we added sys.settrace in 2.6? From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Vernon Cole Sent: Tuesday, January 19, 2010 1:17 PM To: Discussion of IronPython Subject: Re: [IronPython] IronPython in Visual Studio 2008 Vincent: I will try the first part of an answer to your question. It is a long question, so you will probably get lots of different answers... There are several different implementations of Python. I will talk about the two which are most common on Windows systems. I use both. CPython is implemented in the C++ language and uses the traditional (or OLD, depending on your point of view) method of operating a Windows program. It is much more mature, starts up much faster, and has lots of available modules, including numpy, scipy and countless others. You find it at http://python.org. To do Windows specific things with it, you also need pywin32 . It can be used on a web server, and several web engines such as django, are written using it. It cannot be used as a client script on a web page. IronPython is new, written by Microsoft in the C# language, and uses the new .NET way of hooking things together. It is a VERY good implementation of standard Python, but since many of the add-on libraries were written in C++, not C#, you cannot link to them. There is a package called IronClad which seeks to make this happen, often successfully. ( http://www.resolversystems.com/products/ironclad/ .) IronPython also suffers from the frustrating habit of ALL .NET implementations of taking several seconds (which at times feels like several minutes) to start a new process running. So while it may often be FASTER than CPython after it finally gets going, don't even THINK about using it for a quick command-line script. On the other hand, if you are trying to interface with a new .NET project, it is only reasonable way to go. It also runs on the Silverlight platform, so can be used as a scripting language for a web client page, not only a server page. I have heard nothing but BAD reports about using Iron Python Studio. However, there are several Integrated Development Environments which work with CPython, IronPython, or both. I, personally, use Wing for debugging, and the IDE which is built in to pywin32 for rough work. Will Python code run as fast as C, or C++, or C# code? No. (or almost never.) Will it run fast enough that a human user will never notice the difference? Almost always. So what you do is prototype in Python, where you are most productive, then if you find that some part of your system actually needs the performance boost, you recode that piece in C++ (or C#). I find that design changes usually do much more to boost perceived speed than compiler changes do. Python excels at that. So welcome aboard. You have discovered a great tool. -- Vernon Cole On Tue, Jan 19, 2010 at 10:22 AM, Vicent > wrote: Hello to all. This is my first message to the list. I would like to ask you some basic questions about IronPython. First of all, sorry for my English. I've just discovered IronPython, and I am actually a new-by in Python, not an expert programmer. So maybe you'll find my questions quite simple or naive. I read the first chapter of the classic book for IronPython (http://www.manning.com/foord/SampleChapter1.pdf), and in pages 7-8 the author says: "Visual Studio 2008 integration exists in the form of IronPython Studio, which is implemented through the Visual Studio Shell extensibility framework. IronPython Studio can either be run standalone (without requiring Visual Studio to be installed) or integrated into Visual Studio. It includes Windows Forms and WPF designers and is capable of producing binary executables from Python projects." I am very interested in fully understanding this sentence above, because I currently use C++ in MS Visual Studio 2008, but I like Python more. So, with IronPython + Visual Studio 2008: (1) Can I obtain compiled code from Python source, as efficient/fast/etc. as if it was made from C++? (2) Can I obtain executables (programs that people can install and use, in the "normal user" language) as good/fast/efficient as I would obtain using Visual C++? (3) Can I easily link my Python code with existing external C/C++ libraries? (4) (Similar to the previous one) Can I easily link my Python code with some C/C++ source code (I mean, mixing up Python and C in the same project, in a transparent way)? (5) Can I use NumPy, SciPy and other key (scientific) Python libraries in a transparent way? (or am I just dreaming??) Any answer will be appreciated. Thank you in advance. -- Vicent Giner _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From janrou at gmail.com Wed Jan 20 08:48:15 2010 From: janrou at gmail.com (Jan Rouvillain) Date: Wed, 20 Jan 2010 08:48:15 +0100 Subject: [IronPython] IronPython in Visual Studio 2008 In-Reply-To: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> References: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> Message-ID: Dear Vincent, I am very pleased with the open source SharpDevelop IDE. The windows designer works great. You can code in C# and IronPython in a Visual Studio like IDE. SharpDevelop is written in C# and is for the Windows platform. There is a stable community around SharpDevelop and of course forums with a lot of help. You find it here: http://www.icsharpcode.net/OpenSource/SD/ There are still some problems debugging windows programs, which can be worked around. As a default SharpDevelop generates compiled python (exe-files) when debugging, which are solved with some tweeks. The instructions to change it are to be found on SharpDevelops forum. Here is a review of IDEs for IronPyhton . Regards Jan Rouvillain -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Jan 20 09:12:02 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 20 Jan 2010 08:12:02 +0000 Subject: [IronPython] Are Converters (IValueConverter) supported in IronPython + Silverlight? In-Reply-To: <4B552B44.9070609@mac.com> References: <4058F8F9-CC22-4658-8770-503CB1E4BCE5@mac.com> <4B552B44.9070609@mac.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B5393@TK5EX14MBXC141.redmond.corp.microsoft.com> > I took a simple converter and ported it to IronPython, however > I'm getting the ever helpful SystemError 2255. Do you have the Silverlight "Developer" runtime? The "Consumer" runtime give you only error codes, while the developer runtime gives you actual exception messages. Here's the developer runtime: http://go.microsoft.com/fwlink/?LinkID=150228 > I can manually import my converter class via the REPL, and do a dir on it too. > ?Which leads me to believe there's another issue I'm unaware of. ? > Perhaps it's not supported? ?Has anyone else tried implementing a > converter in IronPython yet? IValueConverter is an interface that allows you to make custom data conversions that happen during data binding in XAML: http://msdn.microsoft.com/en-us/library/system.windows.data.ivalueconverter(VS.95).aspx. However, IronPython doesn't directly support data binding in Silverlight, since Python classes are not 1-to-1 with CLR classes. The XAML required to hook up a converter (Converter={StaticResource FormatConverter}) won't be able to find a FormatConverter class defined in IronPython either, since the name is auto-generated. So, you'll be able to interact with your Python classes from the REPL, but they will fail to be used in XAML (if you use the developer runtime you'll probably see an error in the XAML parser ... which unfortunately also gives cryptic error msgs =P) There are two ways to wire this up: (1) Use clrtype.py to control the CLR type, properties, etc, that the IronPython class generates. Luk?? ?enovsk? recently showed that you can do data-binding with this in Silverlight: http://gui-at.blogspot.com/2009/11/inotifypropertychanged-and-databinding.html (2) Have anything your XAML needs to reference as a C# stub (defining all things requiring static references, including properties and methods), which your Python class inherits from and defines the actual behavior. I suggest #1 as it's a more elegant solution, but #2 will work as a good safety net if you encounter something that doesn't work in #1. ~Jimmy From see_toronto at web.de Wed Jan 20 09:20:13 2010 From: see_toronto at web.de (see_toronto at web.de) Date: Wed, 20 Jan 2010 09:20:13 +0100 Subject: [IronPython] Strange error using settrace - help needed Message-ID: <293957216@web.de> Hi, probably I'm just not experienced enough with IP to see what's going wrong. If I run a script using ipy.exe and add the standard Python Lib folder to sys.path, I can use "import os". If I do the same, but issue an sys.settrace prior to the import the executions failes with an index out of range error. Here's a sample code: ------------------------------------------------- def trace(frame, event, arg): return trace import sys sys.path.append('C:\Python26\Lib') # Python 2.6.4 sys.settrace(trace) print 'Out 1' import os print 'Out 2' ------------------------------------------------- Actually I'm trying to embedd Python scripts into a C# project and to trace the execution. The error showed up in that context first, but it can be reproduced with the above code and ipy.exe as well. Does anyone have an idea what's going wrong here? Many thanks for your help Frank ___________________________________________________________ Preisknaller: WEB.DE DSL Flatrate f?r nur 16,99 Euro/mtl.! http://produkte.web.de/go/02/ From fuzzyman at voidspace.org.uk Wed Jan 20 11:27:31 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 20 Jan 2010 10:27:31 +0000 Subject: [IronPython] IronPython in Visual Studio 2008 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34C4AE4B@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD34C4AE4B@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B56DA93.3000404@voidspace.org.uk> On 20/01/2010 02:34, Dino Viehland wrote: > > Does Wing now work w/ IronPython for debugging now that we added > sys.settrace in 2.6? > Does settrace work? I've seen two questions about it in as many days that are as yet unanswered. The short answer is no. The Wing debugger is written in C. The SharpDevelop debugger (written in C#) does work with IronPython though. Michael > *From:* users-bounces at lists.ironpython.com > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Vernon Cole > *Sent:* Tuesday, January 19, 2010 1:17 PM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] IronPython in Visual Studio 2008 > > Vincent: > > I will try the first part of an answer to your question. It is a long > question, so you will probably get lots of different answers... > > There are several different implementations of Python. I will talk > about the two which are most common on Windows systems. I use both. > > CPython is implemented in the C++ language and uses the traditional > (or OLD, depending on your point of view) method of operating a > Windows program. It is much more mature, starts up much faster, and > has lots of available modules, including numpy, scipy and countless > others. You find it at http://python.org. To do > Windows specific things with it, you also need pywin32 > . It can be used on a web > server, and several web engines such as django, are written using it. > It cannot be used as a client script on a web page. > > IronPython is new, written by Microsoft in the C# language, and uses > the new .NET way of hooking things together. It is a VERY good > implementation of standard Python, but since many of the add-on > libraries were written in C++, not C#, you cannot link to them. There > is a package called IronClad which seeks to make this happen, often > successfully. ( http://www.resolversystems.com/products/ironclad/ .) > IronPython also suffers from the frustrating habit of ALL .NET > implementations of taking several seconds (which at times feels like > several minutes) to start a new process running. So while it may often > be FASTER than CPython after it finally gets going, don't even THINK > about using it for a quick command-line script. On the other hand, if > you are trying to interface with a new .NET project, it is only > reasonable way to go. It also runs on the Silverlight platform, so > can be used as a scripting language for a web client page, not only a > server page. > > I have heard nothing but BAD reports about using Iron Python Studio. > However, there are several Integrated Development Environments which > work with CPython, IronPython, or both. I, personally, use Wing for > debugging, and the IDE which is built in to pywin32 for rough work. > > Will Python code run as fast as C, or C++, or C# code? No. (or > almost never.) Will it run fast enough that a human user will never > notice the difference? Almost always. So what you do is prototype in > Python, where you are most productive, then if you find that some part > of your system actually needs the performance boost, you recode that > piece in C++ (or C#). I find that design changes usually do much more > to boost perceived speed than compiler changes do. Python excels at that. > > So welcome aboard. You have discovered a great tool. > -- > Vernon Cole > > On Tue, Jan 19, 2010 at 10:22 AM, Vicent > wrote: > > Hello to all. > > This is my first message to the list. I would like to ask you some > basic questions about IronPython. First of all, sorry for my English. > > I've just discovered IronPython, and I am actually a new-by in Python, > not an expert programmer. So maybe you'll find my questions quite > simple or naive. > > I read the first chapter of the classic book for IronPython > (http://www.manning.com/foord/SampleChapter1.pdf), and in pages 7-8 > the author says: > > "Visual Studio 2008 integration exists in the form of IronPython > Studio, which is implemented through the Visual Studio Shell > extensibility framework. IronPython Studio can either be run > standalone (without requiring Visual Studio to be installed) or > integrated into Visual Studio. It includes Windows Forms and WPF > designers and is capable of producing binary executables from Python > projects." > > I am very interested in fully understanding this sentence above, > because I currently use C++ in MS Visual Studio 2008, but I like > Python more. > > So, with IronPython + Visual Studio 2008: > > (1) Can I obtain compiled code from Python source, as > efficient/fast/etc. as if it was made from C++? > > (2) Can I obtain executables (programs that people can install and > use, in the "normal user" language) as good/fast/efficient as I would > obtain using Visual C++? > > (3) Can I easily link my Python code with existing external C/C++ > libraries? > > (4) (Similar to the previous one) Can I easily link my Python code > with some C/C++ source code (I mean, mixing up Python and C in the > same project, in a transparent way)? > > (5) Can I use NumPy, SciPy and other key (scientific) Python libraries > in a transparent way? > > (or am I just dreaming??) > > Any answer will be appreciated. Thank you in advance. > > -- > > Vicent Giner > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From janrou at gmail.com Wed Jan 20 12:03:50 2010 From: janrou at gmail.com (Jan Rouvillain) Date: Wed, 20 Jan 2010 12:03:50 +0100 Subject: [IronPython] IronPython in Visual Studio 2008 In-Reply-To: <4B56DA93.3000404@voidspace.org.uk> References: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD34C4AE4B@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B56DA93.3000404@voidspace.org.uk> Message-ID: Dear Michael Foord, The short answer is no. The Wing debugger is written in C. The SharpDevelop > debugger (written in C#) does work with IronPython though. > It's not that white or black. If the IronPython code does not call windows application run, then you can step through the code. You are right, that for windows forms SharpDevelop is back to old fashion logs or informative message boxes . -- Jan 2010/1/20 Michael Foord > On 20/01/2010 02:34, Dino Viehland wrote: > > Does Wing now work w/ IronPython for debugging now that we added > sys.settrace in 2.6? > > Does settrace work? I've seen two questions about it in as many days that > are as yet unanswered. > > The short answer is no. The Wing debugger is written in C. The SharpDevelop > debugger (written in C#) does work with IronPython though. > > Michael > > > > > > *From:* users-bounces at lists.ironpython.com [ > mailto:users-bounces at lists.ironpython.com] > *On Behalf Of *Vernon Cole > *Sent:* Tuesday, January 19, 2010 1:17 PM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] IronPython in Visual Studio 2008 > > > > Vincent: > > I will try the first part of an answer to your question. It is a long > question, so you will probably get lots of different answers... > > There are several different implementations of Python. I will talk about > the two which are most common on Windows systems. I use both. > > CPython is implemented in the C++ language and uses the traditional (or > OLD, depending on your point of view) method of operating a Windows > program. It is much more mature, starts up much faster, and has lots of > available modules, including numpy, scipy and countless others. You find it > at http://python.org. To do Windows specific things > with it, you also need pywin32 . It can be used on a web server, and several web engines such as django, > are written using it. It cannot be used as a client script on a web page. > > IronPython is new, written by Microsoft in the C# language, and uses the > new .NET way of hooking things together. It is a VERY good implementation > of standard Python, but since many of the add-on libraries were written in > C++, not C#, you cannot link to them. There is a package called IronClad > which seeks to make this happen, often successfully. ( > http://www.resolversystems.com/products/ironclad/ .) IronPython also > suffers from the frustrating habit of ALL .NET implementations of taking > several seconds (which at times feels like several minutes) to start a new > process running. So while it may often be FASTER than CPython after it > finally gets going, don't even THINK about using it for a quick command-line > script. On the other hand, if you are trying to interface with a new .NET > project, it is only reasonable way to go. It also runs on the Silverlight > platform, so can be used as a scripting language for a web client page, not > only a server page. > > I have heard nothing but BAD reports about using Iron Python Studio. > However, there are several Integrated Development Environments which work > with CPython, IronPython, or both. I, personally, use Wing for debugging, > and the IDE which is built in to pywin32 for rough work. > > Will Python code run as fast as C, or C++, or C# code? No. (or almost > never.) Will it run fast enough that a human user will never notice the > difference? Almost always. So what you do is prototype in Python, where > you are most productive, then if you find that some part of your system > actually needs the performance boost, you recode that piece in C++ (or C#). > I find that design changes usually do much more to boost perceived speed > than compiler changes do. Python excels at that. > > So welcome aboard. You have discovered a great tool. > -- > Vernon Cole > > On Tue, Jan 19, 2010 at 10:22 AM, Vicent wrote: > > Hello to all. > > > > This is my first message to the list. I would like to ask you some basic > questions about IronPython. First of all, sorry for my English. > > > > I've just discovered IronPython, and I am actually a new-by in Python, not > an expert programmer. So maybe you'll find my questions quite simple or > naive. > > > > I read the first chapter of the classic book for IronPython ( > http://www.manning.com/foord/SampleChapter1.pdf), and in pages 7-8 the > author says: > > > > "Visual Studio 2008 integration exists in the form of IronPython Studio, > which is implemented through the Visual Studio Shell extensibility > framework. IronPython Studio can either be run standalone (without requiring > Visual Studio to be installed) or integrated into Visual Studio. It includes > Windows Forms and WPF designers and is capable of producing binary > executables from Python projects." > > > > I am very interested in fully understanding this sentence above, because I > currently use C++ in MS Visual Studio 2008, but I like Python more. > > > > So, with IronPython + Visual Studio 2008: > > > > (1) Can I obtain compiled code from Python source, as efficient/fast/etc. > as if it was made from C++? > > (2) Can I obtain executables (programs that people can install and use, in > the "normal user" language) as good/fast/efficient as I would obtain using > Visual C++? > > (3) Can I easily link my Python code with existing external C/C++ > libraries? > > (4) (Similar to the previous one) Can I easily link my Python code with > some C/C++ source code (I mean, mixing up Python and C in the same project, > in a transparent way)? > > (5) Can I use NumPy, SciPy and other key (scientific) Python libraries in a > transparent way? > > > > (or am I just dreaming??) > > > > Any answer will be appreciated. Thank you in advance. > > > > -- > > Vicent Giner > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > _______________________________________________ > Users mailing listUsers at lists.ironpython.comhttp://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > -- http://www.ironpythoninaction.com/http://www.voidspace.org.uk/blog > > READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (?BOGUS AGREEMENTS?) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. > > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From josh at globalherald.net Wed Jan 20 17:27:50 2010 From: josh at globalherald.net (Joshua Kramer) Date: Wed, 20 Jan 2010 11:27:50 -0500 (EST) Subject: [IronPython] IronPython in Visual Studio 2008 (fwd) Message-ID: Michael Foord wrote: "The short answer is no. The Wing debugger is written in C. The SharpDevelop debugger (written in C#) does work with IronPython though." I'm not sure what the language that the editor is written with has to do with it. Eclipse + PyDev is written in Java and it works 95% [1] with IronPython 2.6. [1] There is a slight issue that I had discussed before (and filed a bug report on), in that breakpoints in top-level code are only hit approximately 66% of the time. Breakpoints inside of functions appear to be hit 100% of the time though. -- ----- http://www.globalherald.net/jb01 GlobalHerald.NET, the Smarter Social Network! (tm) From fuzzyman at voidspace.org.uk Wed Jan 20 15:43:44 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 20 Jan 2010 14:43:44 +0000 Subject: [IronPython] IronPython in Visual Studio 2008 (fwd) In-Reply-To: References: Message-ID: <4B5716A0.2050004@voidspace.org.uk> On 20/01/2010 16:27, Joshua Kramer wrote: > > Michael Foord wrote: "The short answer is no. The Wing debugger is > written in C. The SharpDevelop debugger (written in C#) does work with > IronPython though." > > I'm not sure what the language that the editor is written with has to > do with it. Nothing (the Wing editor is mostly written in Python), nor did I discuss it. What language the debugger is written in has a lot to do with it. > Eclipse + PyDev is written in Java and it works 95% [1] with > IronPython 2.6. Right - the PyDev debugger is presumably written in Python, using settrace, which is another viable choice. Michael > > [1] There is a slight issue that I had discussed before (and filed a > bug report on), in that breakpoints in top-level code are only hit > approximately 66% of the time. Breakpoints inside of functions appear > to be hit 100% of the time though. > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (?BOGUS AGREEMENTS?) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. From dfugate at microsoft.com Wed Jan 20 18:07:02 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Wed, 20 Jan 2010 17:07:02 +0000 Subject: [IronPython] Strange error using settrace - help needed In-Reply-To: <293957216@web.de> References: <293957216@web.de> Message-ID: <7CEEC335D70FFE4B957737DDE836F51B29B156C0@TK5EX14MBXC125.redmond.corp.microsoft.com> Thanks for reporting this Frank! Looks like a legit bug to me, and I've filed it on CodePlex - see http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25994. Dave -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of see_toronto at web.de Sent: Wednesday, January 20, 2010 12:20 AM To: users at lists.ironpython.com Subject: [IronPython] Strange error using settrace - help needed Hi, probably I'm just not experienced enough with IP to see what's going wrong. If I run a script using ipy.exe and add the standard Python Lib folder to sys.path, I can use "import os". If I do the same, but issue an sys.settrace prior to the import the executions failes with an index out of range error. Here's a sample code: ------------------------------------------------- def trace(frame, event, arg): return trace import sys sys.path.append('C:\Python26\Lib') # Python 2.6.4 sys.settrace(trace) print 'Out 1' import os print 'Out 2' ------------------------------------------------- Actually I'm trying to embedd Python scripts into a C# project and to trace the execution. The error showed up in that context first, but it can be reproduced with the above code and ipy.exe as well. Does anyone have an idea what's going wrong here? Many thanks for your help Frank ___________________________________________________________ Preisknaller: WEB.DE DSL Flatrate f?r nur 16,99 Euro/mtl.! http://produkte.web.de/go/02/ _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From dinov at microsoft.com Wed Jan 20 19:18:51 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 20 Jan 2010 18:18:51 +0000 Subject: [IronPython] IronPython in Visual Studio 2008 In-Reply-To: <4B56DA93.3000404@voidspace.org.uk> References: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD34C4AE4B@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B56DA93.3000404@voidspace.org.uk> Message-ID: <1A472770E042064698CB5ADC83A12ACD34C4F2E5@TK5EX14MBXC118.redmond.corp.microsoft.com> There've been a couple of bugs discovered in settrace but they're getting fixed for 2.6.1 (the import os issue works on my machine w/o me having to fix anything, so I guess it's a duplicate of some other bug). Bummer, I was hoping Wing might have implemented debugging like PyDev (a set of scripts). From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord Sent: Wednesday, January 20, 2010 2:28 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython in Visual Studio 2008 On 20/01/2010 02:34, Dino Viehland wrote: Does Wing now work w/ IronPython for debugging now that we added sys.settrace in 2.6? Does settrace work? I've seen two questions about it in as many days that are as yet unanswered. The short answer is no. The Wing debugger is written in C. The SharpDevelop debugger (written in C#) does work with IronPython though. Michael From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Vernon Cole Sent: Tuesday, January 19, 2010 1:17 PM To: Discussion of IronPython Subject: Re: [IronPython] IronPython in Visual Studio 2008 Vincent: I will try the first part of an answer to your question. It is a long question, so you will probably get lots of different answers... There are several different implementations of Python. I will talk about the two which are most common on Windows systems. I use both. CPython is implemented in the C++ language and uses the traditional (or OLD, depending on your point of view) method of operating a Windows program. It is much more mature, starts up much faster, and has lots of available modules, including numpy, scipy and countless others. You find it at http://python.org. To do Windows specific things with it, you also need pywin32 . It can be used on a web server, and several web engines such as django, are written using it. It cannot be used as a client script on a web page. IronPython is new, written by Microsoft in the C# language, and uses the new .NET way of hooking things together. It is a VERY good implementation of standard Python, but since many of the add-on libraries were written in C++, not C#, you cannot link to them. There is a package called IronClad which seeks to make this happen, often successfully. ( http://www.resolversystems.com/products/ironclad/ .) IronPython also suffers from the frustrating habit of ALL .NET implementations of taking several seconds (which at times feels like several minutes) to start a new process running. So while it may often be FASTER than CPython after it finally gets going, don't even THINK about using it for a quick command-line script. On the other hand, if you are trying to interface with a new .NET project, it is only reasonable way to go. It also runs on the Silverlight platform, so can be used as a scripting language for a web client page, not only a server page. I have heard nothing but BAD reports about using Iron Python Studio. However, there are several Integrated Development Environments which work with CPython, IronPython, or both. I, personally, use Wing for debugging, and the IDE which is built in to pywin32 for rough work. Will Python code run as fast as C, or C++, or C# code? No. (or almost never.) Will it run fast enough that a human user will never notice the difference? Almost always. So what you do is prototype in Python, where you are most productive, then if you find that some part of your system actually needs the performance boost, you recode that piece in C++ (or C#). I find that design changes usually do much more to boost perceived speed than compiler changes do. Python excels at that. So welcome aboard. You have discovered a great tool. -- Vernon Cole On Tue, Jan 19, 2010 at 10:22 AM, Vicent > wrote: Hello to all. This is my first message to the list. I would like to ask you some basic questions about IronPython. First of all, sorry for my English. I've just discovered IronPython, and I am actually a new-by in Python, not an expert programmer. So maybe you'll find my questions quite simple or naive. I read the first chapter of the classic book for IronPython (http://www.manning.com/foord/SampleChapter1.pdf), and in pages 7-8 the author says: "Visual Studio 2008 integration exists in the form of IronPython Studio, which is implemented through the Visual Studio Shell extensibility framework. IronPython Studio can either be run standalone (without requiring Visual Studio to be installed) or integrated into Visual Studio. It includes Windows Forms and WPF designers and is capable of producing binary executables from Python projects." I am very interested in fully understanding this sentence above, because I currently use C++ in MS Visual Studio 2008, but I like Python more. So, with IronPython + Visual Studio 2008: (1) Can I obtain compiled code from Python source, as efficient/fast/etc. as if it was made from C++? (2) Can I obtain executables (programs that people can install and use, in the "normal user" language) as good/fast/efficient as I would obtain using Visual C++? (3) Can I easily link my Python code with existing external C/C++ libraries? (4) (Similar to the previous one) Can I easily link my Python code with some C/C++ source code (I mean, mixing up Python and C in the same project, in a transparent way)? (5) Can I use NumPy, SciPy and other key (scientific) Python libraries in a transparent way? (or am I just dreaming??) Any answer will be appreciated. Thank you in advance. -- Vicent Giner _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Wed Jan 20 17:53:18 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 20 Jan 2010 08:53:18 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63401. ADDED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Compiler/PythonDynamicExpression.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Ast/LightDynamicExpression.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/ILightCallSiteBinder.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DynamicSplatInstruction.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Runtime/ArgumentArray.cs DELETED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/LazyDynamicExpression.cs MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Compiler/PythonDynamicExpression.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/UncollectableCompilationMode.Generated.cs $/IronPython/IronPython_Main/Src/IronPythonConsoleAny/IronPythonConsoleAny.csproj $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight.csproj $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/Chiron.csproj $/IronPython/IronPython_Main/Src/IronPython/Compiler/CompilationMode.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/ReducableDynamicExpression.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Ast/LightDynamicExpression.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/ILightCallSiteBinder.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DynamicSplatInstruction.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DynamicInstructions.Generated.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.Generated.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Actions/EventTracker.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/LightDelegateCreator.cs $/IronPython/IronPython_Main/Src/IronPythonWindowAny/IronPythonWindowAny.csproj $/IronPython/IronPython_Main/Src/IronPython/Runtime/Importer.cs $/IronPython/IronPython_Main/Src/IronPythonWindow/IronPythonWindow.csproj $/IronPython/IronPython_Main/Src/IronPythonTest/IronPythonTest.csproj $/IronPython/IronPython_Main/Src/IronPythonConsole/IronPythonConsole.csproj $/IronPython/IronPython_Main/Src/IronPython.Modules/IronPython.Modules.csproj $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/PythonAst.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/Node.cs $/IronPython/IronPython_Main/Src/IronPython/IronPython.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Runtime/ArgumentArray.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Microsoft.Dynamic.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Utils/TypeUtils.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Utils/DynamicUtils.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/LightLambda.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Debugging/Microsoft.Scripting.Debugging.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Core/Microsoft.Scripting.Core.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Core/Microsoft.Scripting.ExtensionAttribute.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Utils/NativeMethods.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Microsoft.Scripting.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/PlatformAdaptationLayer.cs $/IronPython/IronPython_Main/Src/Scripts/generate_dynamic_instructions.py $/IronPython/IronPython_Main/Src/Scripts/generate_reflected_calls.py $/IronPython/IronPython_Main/Src/Tests/ClrAssembly/ClrAssembly.csproj From Jimmy.Schementi at microsoft.com Thu Jan 21 02:16:41 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 21 Jan 2010 01:16:41 +0000 Subject: [IronPython] Write a Ruby or Python web-app and win cash! Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B617A@TK5EX14MBXC141.redmond.corp.microsoft.com> MIX 10K Smart Coding Challenge: http://mix10k.visitmix.com 9 days left, an counting, to enter your minimalist creation into the MIX 10K Smart Coding Challenge. I can be anything you want, it just has to be less than 10 kilobytes of source code. You can use HTML5, or Silverlight, and also use Ruby or Python through Gestalt. You can win a free trip to MIX and up to $1000 in cash. Get out the already submitted entries for inspiration: http://mix10k.visitmix.com/Gallery Some "Hello, World" examples to get you started: http://mix10k.visitmix.com/Content/mix10kSamples.zip And more info on http://visitmix.com/labs/gestalt Read more about the entry rules/prizes/etc: http://mix10k.visitmix.com/Terms Also, I'm on the judge panel for the contest (http://live.visitmix.com/News/MIX-10K-Judge-Panel-Announced), so I'd be *very happy* if you submitted a Python or Ruby app. ;) Let me know if you have any questions, ~Jimmy From ejstembler at mac.com Thu Jan 21 05:32:14 2010 From: ejstembler at mac.com (Edward J. Stembler) Date: Wed, 20 Jan 2010 23:32:14 -0500 Subject: [IronPython] Are Converters (IValueConverter) supported in IronPython + Silverlight? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920B5393@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <4058F8F9-CC22-4658-8770-503CB1E4BCE5@mac.com> <4B552B44.9070609@mac.com> <1B42307CD4AADD438CDDA2FE1121CC920B5393@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <81C046E4-4342-48FB-88A2-E2755C092DD8@mac.com> I installed the Developer runtime, which incidentally is LinkID=150227 for Mac. In any case, I got my Converter recognized as a .NET type; however I couldn't get passed the AG_E_PARSER_BAD_TYPE error when loading the converter reference in XAML. I initially thought there may be some namespace issue, but I can see the Converter is reflecting it's correct namespace, and the XML namespace seems to match too. I tried importing my converted in App.py before the XAML is loaded to see if that would put it in scope, but that didn't work either. I'm not sure what to try next? Anyone have any ideas? On Jan 20, 2010, at 3:12 AM, Jimmy Schementi wrote: >> I took a simple converter and ported it to IronPython, however >> I'm getting the ever helpful SystemError 2255. > > Do you have the Silverlight "Developer" runtime? The "Consumer" runtime give you only error codes, while the developer runtime gives you actual exception messages. Here's the developer runtime: > http://go.microsoft.com/fwlink/?LinkID=150228 > >> I can manually import my converter class via the REPL, and do a dir on it too. >> Which leads me to believe there's another issue I'm unaware of. >> Perhaps it's not supported? Has anyone else tried implementing a >> converter in IronPython yet? > > IValueConverter is an interface that allows you to make custom data conversions that happen during data binding in XAML: http://msdn.microsoft.com/en-us/library/system.windows.data.ivalueconverter(VS.95).aspx. However, IronPython doesn't directly support data binding in Silverlight, since Python classes are not 1-to-1 with CLR classes. The XAML required to hook up a converter (Converter={StaticResource FormatConverter}) won't be able to find a FormatConverter class defined in IronPython either, since the name is auto-generated. So, you'll be able to interact with your Python classes from the REPL, but they will fail to be used in XAML (if you use the developer runtime you'll probably see an error in the XAML parser ... which unfortunately also gives cryptic error msgs =P) > > There are two ways to wire this up: > > (1) Use clrtype.py to control the CLR type, properties, etc, that the IronPython class generates. Luk?? ?enovsk? recently showed that you can do data-binding with this in Silverlight: http://gui-at.blogspot.com/2009/11/inotifypropertychanged-and-databinding.html > > (2) Have anything your XAML needs to reference as a C# stub (defining all things requiring static references, including properties and methods), which your Python class inherits from and defines the actual behavior. > > I suggest #1 as it's a more elegant solution, but #2 will work as a good safety net if you encounter something that doesn't work in #1. > > ~Jimmy From Jimmy.Schementi at microsoft.com Thu Jan 21 06:52:42 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 21 Jan 2010 05:52:42 +0000 Subject: [IronPython] Are Converters (IValueConverter) supported in IronPython + Silverlight? In-Reply-To: <81C046E4-4342-48FB-88A2-E2755C092DD8@mac.com> References: <4058F8F9-CC22-4658-8770-503CB1E4BCE5@mac.com> <4B552B44.9070609@mac.com> <1B42307CD4AADD438CDDA2FE1121CC920B5393@TK5EX14MBXC141.redmond.corp.microsoft.com> <81C046E4-4342-48FB-88A2-E2755C092DD8@mac.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920B63ED@TK5EX14MBXC141.redmond.corp.microsoft.com> Are you using clrtype.py or a C# stub? If you're not using either of these, then you will get a AG_E_PARSER_BAD_TYPE when trying to tell XAML about your Python type, since the corresponding CLR type won't be found. If send your python and XAML code, then I can help you figure this out. ~Jimmy On Jan 20, 2010, at 8:32 PM, Edward J. Stembler wrote: > > I installed the Developer runtime, which incidentally is LinkID=150227 for > Mac. In any case, I got my Converter recognized as a .NET type; however I > couldn't get passed the AG_E_PARSER_BAD_TYPE error when loading the converter > reference in XAML. I initially thought there may be some namespace issue, but > I can see the Converter is reflecting it's correct namespace, and the XML > namespace seems to match too. I tried importing my converted in App.py > before the XAML is loaded to see if that would put it in scope, but that > didn't work either. I'm not sure what to try next? Anyone have any ideas? > > > On Jan 20, 2010, at 3:12 AM, Jimmy Schementi wrote: > > >> I took a simple converter and ported it to IronPython, however > >> I'm getting the ever helpful SystemError 2255. > > > > Do you have the Silverlight "Developer" runtime? The "Consumer" runtime > give you only error codes, while the developer runtime gives you actual > exception messages. Here's the developer runtime: > > http://go.microsoft.com/fwlink/?LinkID=150228 > > > >> I can manually import my converter class via the REPL, and do a dir on it > too. > >> Which leads me to believe there's another issue I'm unaware of. > >> Perhaps it's not supported? Has anyone else tried implementing a > >> converter in IronPython yet? > > > > IValueConverter is an interface that allows you to make custom data > conversions that happen during data binding in XAML: > http://msdn.microsoft.com/en- > us/library/system.windows.data.ivalueconverter(VS.95).aspx. However, > IronPython doesn't directly support data binding in Silverlight, since Python > classes are not 1-to-1 with CLR classes. The XAML required to hook up a > converter (Converter={StaticResource FormatConverter}) won't be able to find > a FormatConverter class defined in IronPython either, since the name is auto- > generated. So, you'll be able to interact with your Python classes from the > REPL, but they will fail to be used in XAML (if you use the developer runtime > you'll probably see an error in the XAML parser ... which unfortunately also > gives cryptic error msgs =P) > > > > There are two ways to wire this up: > > > > (1) Use clrtype.py to control the CLR type, properties, etc, that the > IronPython class generates. Luk?? ?enovsk? recently showed that you can do > data-binding with this in Silverlight: http://gui- > at.blogspot.com/2009/11/inotifypropertychanged-and-databinding.html > > > > (2) Have anything your XAML needs to reference as a C# stub (defining all > things requiring static references, including properties and methods), which > your Python class inherits from and defines the actual behavior. > > > > I suggest #1 as it's a more elegant solution, but #2 will work as a good > safety net if you encounter something that doesn't work in #1. > > > > ~Jimmy > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From fuzzyman at voidspace.org.uk Thu Jan 21 15:19:09 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 21 Jan 2010 14:19:09 +0000 Subject: [IronPython] IronPython in Visual Studio 2008 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34C4F2E5@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <50ed08f41001190922i2c149668xc8b675eb5f9a59a1@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD34C4AE4B@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B56DA93.3000404@voidspace.org.uk> <1A472770E042064698CB5ADC83A12ACD34C4F2E5@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B58625D.8040805@voidspace.org.uk> On 20/01/2010 18:18, Dino Viehland wrote: > > There've been a couple of bugs discovered in settrace but they're > getting fixed for 2.6.1 (the import os issue works on my machine w/o > me having to fix anything, so I guess it's a duplicate of some other > bug). Bummer, I was hoping Wing might have implemented debugging like > PyDev (a set of scripts). > I've forwarded this to the Wing IDE developers. :-) Michael > *From:* users-bounces at lists.ironpython.com > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Michael Foord > *Sent:* Wednesday, January 20, 2010 2:28 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] IronPython in Visual Studio 2008 > > On 20/01/2010 02:34, Dino Viehland wrote: > > Does Wing now work w/ IronPython for debugging now that we added > sys.settrace in 2.6? > > Does settrace work? I've seen two questions about it in as many days > that are as yet unanswered. > > The short answer is no. The Wing debugger is written in C. The > SharpDevelop debugger (written in C#) does work with IronPython though. > > Michael > > > > *From:* users-bounces at lists.ironpython.com > > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Vernon Cole > *Sent:* Tuesday, January 19, 2010 1:17 PM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] IronPython in Visual Studio 2008 > > Vincent: > > I will try the first part of an answer to your question. It is a long > question, so you will probably get lots of different answers... > > There are several different implementations of Python. I will talk > about the two which are most common on Windows systems. I use both. > > CPython is implemented in the C++ language and uses the traditional > (or OLD, depending on your point of view) method of operating a > Windows program. It is much more mature, starts up much faster, and > has lots of available modules, including numpy, scipy and countless > others. You find it at http://python.org. To do > Windows specific things with it, you also need pywin32 > . It can be used on a web > server, and several web engines such as django, are written using it. > It cannot be used as a client script on a web page. > > IronPython is new, written by Microsoft in the C# language, and uses > the new .NET way of hooking things together. It is a VERY good > implementation of standard Python, but since many of the add-on > libraries were written in C++, not C#, you cannot link to them. There > is a package called IronClad which seeks to make this happen, often > successfully. ( http://www.resolversystems.com/products/ironclad/ .) > IronPython also suffers from the frustrating habit of ALL .NET > implementations of taking several seconds (which at times feels like > several minutes) to start a new process running. So while it may often > be FASTER than CPython after it finally gets going, don't even THINK > about using it for a quick command-line script. On the other hand, if > you are trying to interface with a new .NET project, it is only > reasonable way to go. It also runs on the Silverlight platform, so > can be used as a scripting language for a web client page, not only a > server page. > > I have heard nothing but BAD reports about using Iron Python Studio. > However, there are several Integrated Development Environments which > work with CPython, IronPython, or both. I, personally, use Wing for > debugging, and the IDE which is built in to pywin32 for rough work. > > Will Python code run as fast as C, or C++, or C# code? No. (or > almost never.) Will it run fast enough that a human user will never > notice the difference? Almost always. So what you do is prototype in > Python, where you are most productive, then if you find that some part > of your system actually needs the performance boost, you recode that > piece in C++ (or C#). I find that design changes usually do much more > to boost perceived speed than compiler changes do. Python excels at that. > > So welcome aboard. You have discovered a great tool. > -- > Vernon Cole > > > On Tue, Jan 19, 2010 at 10:22 AM, Vicent > wrote: > > Hello to all. > > This is my first message to the list. I would like to ask you some > basic questions about IronPython. First of all, sorry for my English. > > I've just discovered IronPython, and I am actually a new-by in Python, > not an expert programmer. So maybe you'll find my questions quite > simple or naive. > > I read the first chapter of the classic book for IronPython > (http://www.manning.com/foord/SampleChapter1.pdf), and in pages 7-8 > the author says: > > "Visual Studio 2008 integration exists in the form of IronPython > Studio, which is implemented through the Visual Studio Shell > extensibility framework. IronPython Studio can either be run > standalone (without requiring Visual Studio to be installed) or > integrated into Visual Studio. It includes Windows Forms and WPF > designers and is capable of producing binary executables from Python > projects." > > I am very interested in fully understanding this sentence above, > because I currently use C++ in MS Visual Studio 2008, but I like > Python more. > > So, with IronPython + Visual Studio 2008: > > (1) Can I obtain compiled code from Python source, as > efficient/fast/etc. as if it was made from C++? > > (2) Can I obtain executables (programs that people can install and > use, in the "normal user" language) as good/fast/efficient as I would > obtain using Visual C++? > > (3) Can I easily link my Python code with existing external C/C++ > libraries? > > (4) (Similar to the previous one) Can I easily link my Python code > with some C/C++ source code (I mean, mixing up Python and C in the > same project, in a transparent way)? > > (5) Can I use NumPy, SciPy and other key (scientific) Python libraries > in a transparent way? > > (or am I just dreaming??) > > Any answer will be appreciated. Thank you in advance. > > -- > > Vicent Giner > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > > -- > http://www.ironpythoninaction.com/ > http://www.voidspace.org.uk/blog > > READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. > > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Thu Jan 21 17:53:22 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Thu, 21 Jan 2010 08:53:22 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63449. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.Conversions.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonTracebackListener.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/PythonScriptCode.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonUnaryOperationBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonDeleteIndexBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonGetIndexBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonSetIndexBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonOperationKind.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonDeleteMemberBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonOperationBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonInvokeBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/CreateFallbackBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/CompatibilityInvokeBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Hosting/Python.cs $/IronPython/IronPython_Main/Src/IronPython/Hosting/PythonService.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/MetaOldInstance.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/MetaPythonObject.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/Binders.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonProtocol.Operations.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/MetaUserObject.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/ConversionBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Exceptions/PythonExceptions.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/ReflectedIndexer.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/ReflectedProperty.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/ReflectedGetterSetter.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Generation/AssemblyGen.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.Invoke.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.DeleteMember.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Debugging/DebugContext.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Debugging/TracePipeline/TracePipeline.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Hosting/ScriptScope.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Hosting/ScriptEngine.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Hosting/Providers/HostingHelpers.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/StringOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Importer.cs $/IronPython/IronPython_Main/Src/IronPythonTest/IronPythonTest.csproj $/IronPython/IronPython_Main/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/OutputWriter.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Parser.cs $/IronPython/IronPython_Main/Src/Tests/modules/io_related/codecs_test.py $/IronPython/IronPython_Main/Src/Tests/modules/system_related/sys_test.py $/IronPython/IronPython_Main/Src/IronPython.Modules/_codecs.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/_ctypes.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/SimpleType.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Runtime/LanguageContext.cs $/IronPython/IronPython_Main/Src/Tests/test_superconsole.py $/IronPython/IronPython_Main/Src/Tests/test_function.py $/IronPython/IronPython_Main/Src/IronPython.Modules/ModuleOps.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/SimpleTypeKind.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_winreg.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/PythonAst.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/UnaryExpression.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/WithStatement.cs CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1478595 Date: 1/21/2010 8:20:13 AM 25819 DynamicObject.TryBinaryOperation not called for comparison operators 25477 Compat conversion binder isn't used to let objects convert themselves We need to respect errorSuggestion and always fallback for all binders. Also fixes a problem w/ incorrect # of arguments in the invoke binder. 25796 Debugging is Hit-and-Miss under 2.6 and Eclipse We cannot clear the trace pipeline when calling a trace function because that will clear it for all threads. Instead we remember if we are in a traceback and if so don?t dispatch further events. Also fixes an issue where the code name was in correct (should be ??) and updates a bunch of tests accordingly. 25775 Can't delete function attributes. This was already fixed, adding a test case 25700 Importing is not thread safe We need to lock when creating a built-in module. 25673 Silverlight lookup_error isn't available Just making this available in Silverlight be removing ifdef?s 25708 ctypes.wintypes missing / wintypes simple types not implemented Add support for variant bool type along w/ new test cases added to CPython?s ctypes tests 25709 _winreg exception missing error codes Improves the error reporting in _winreg, and also improves our automatic translation of Win32Exceptions. Also: Fixing span reported for function w/o parameters Fix issue w/ calling flush on non-Python file Moving PythonService to GetService API so it works cross-process Fixing performance of getting/setting scope vars via object operations Standardizes on Not/IsFalse DLR expression types Exposes PropertyType for all ReflectedGetter/Setters Exposes DynamicOperations off of LanguageContext for languages to use Adds CreateModule API to Python class for creating and publishing modules (Shelveset: Ipy261BugsFinal;REDMOND\dinov | SNAP CheckinId: 10156) -------------------------------------------------------------------------------- Changeset Id: 1478595 Date: 1/21/2010 8:20:13 AM 25819 DynamicObject.TryBinaryOperation not called for comparison operators 25477 Compat conversion binder isn't used to let objects convert themselves We need to respect errorSuggestion and always fallback for all binders. Also fixes a problem w/ incorrect # of arguments in the invoke binder. 25796 Debugging is Hit-and-Miss under 2.6 and Eclipse We cannot clear the trace pipeline when calling a trace function because that will clear it for all threads. Instead we remember if we are in a traceback and if so don?t dispatch further events. Also fixes an issue where the code name was in correct (should be ??) and updates a bunch of tests accordingly. 25775 Can't delete function attributes. This was already fixed, adding a test case 25700 Importing is not thread safe We need to lock when creating a built-in module. 25673 Silverlight lookup_error isn't available Just making this available in Silverlight be removing ifdef?s 25708 ctypes.wintypes missing / wintypes simple types not implemented Add support for variant bool type along w/ new test cases added to CPython?s ctypes tests 25709 _winreg exception missing error codes Improves the error reporting in _winreg, and also improves our automatic translation of Win32Exceptions. Also: Fixing span reported for function w/o parameters Fix issue w/ calling flush on non-Python file Moving PythonService to GetService API so it works cross-process Fixing performance of getting/setting scope vars via object operations Standardizes on Not/IsFalse DLR expression types Exposes PropertyType for all ReflectedGetter/Setters Exposes DynamicOperations off of LanguageContext for languages to use Adds CreateModule API to Python class for creating and publishing modules (Shelveset: Ipy261BugsFinal;REDMOND\dinov | SNAP CheckinId: 10156) From ejstembler at mac.com Fri Jan 22 04:29:55 2010 From: ejstembler at mac.com (Edward J. Stembler) Date: Thu, 21 Jan 2010 22:29:55 -0500 Subject: [IronPython] Are Converters (IValueConverter) supported in IronPython + Silverlight? In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920B63ED@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <4058F8F9-CC22-4658-8770-503CB1E4BCE5@mac.com> <4B552B44.9070609@mac.com> <1B42307CD4AADD438CDDA2FE1121CC920B5393@TK5EX14MBXC141.redmond.corp.microsoft.com> <81C046E4-4342-48FB-88A2-E2755C092DD8@mac.com> <1B42307CD4AADD438CDDA2FE1121CC920B63ED@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <89C5E22A-48AD-40AC-B6F3-0D56DE623988@mac.com> I'm using clrtype.py; trying to keep everything 100% IronPython. Here's the Converter code: import clr from System import Object, Type from System.Globalization import CultureInfo from System.Windows import Thickness from System.Windows.Data import IValueConverter from System.Windows.Media import Colors from Utilities import clrtype class ColorToThicknessConverter(IValueConverter): __metaclass__ = clrtype.ClrClass _clrnamespace = "3screens.Converters" @clrtype.accepts(Object, Type, Object, CultureInfo) @clrtype.returns(Object) def Convert(self, value, targetType, parameter, culture): return None if value is None or value == Colors.Transparent or value.A == 0x00 else Thickness(1) @clrtype.accepts(Object, Type, Object, CultureInfo) @clrtype.returns(Object) def ConvertBack(self, value, targetType, parameter, culture): pass For this app, I have the need to draw a border around a DataGrid cell if the specified background color is not null or transparent; thus the ColorToThinknessConverter class. As I mentioned earlier, this converter (as well as the other converters not ported yet) work in the C# version. I chose this particular one, to test first, since it is relatively simple. I also tried to Python-ize the C# code when porting; so the code may not be structured the same, however it is functionally the same. In the Python version of the Convert method though, I'm not sure if None translates 1:1 to C#'s null. Or, if I should return something else like DependencyProperty.UnsetValue. In any case, returning null in the C# version works. I placed the clrtype.py file in a Utilities module (directory with a non-empty __init__.py file). In the console I can correctly see it working as a .NET type: pv> from Converters import ColorToThicknessConverter => None py> c = ColorToThicknessConverter() => None c.GetType() => app.xaml: Normally I keep all of my XAML resources in a "Resources" directory. I was able to get my Brushes.xaml merged successfully this way. For the converters though, I commented out my normal convention and placed the reference in app.xaml to make debugging easier. Once it gets loaded correctly, I'll switch back to Resources/Converters.xaml app.py: from System import Uri, UriKind from System.Windows import Application from System.Windows.Controls import UserControl class App: def __init__(self): Application.LoadComponent(Application.Current, Uri("app.xaml", UriKind.Relative)) root = Application.Current.LoadRootVisual(UserControl(), "MainPage.xaml") App() Loading app.xaml fails with the aforementioned AG_E_PARSER_BAD_TYPE referring to the position of the Converter reference in the app.xaml file. Lastly, I'm doing all of this from a Mac. Incidentally, I replaced the server script with my own script code: server: open /Applications/Safari.app "http://localhost:2060" mono ../bin/Chiron.exe /d:$@ /w I also made it executable via chmode +x, and call it via: $ . server 3screens It launches Safari on the default Chiron port, and starts Chiron using the passed in directory. If you can help with any of this, great. But, don't spend too much time on it, as it's just an idle exercise I'm doing to see if I can do all of my Silverlight development on my Mac using IronPython (or IronRuny). Thanks. On Jan 21, 2010, at 12:52 AM, Jimmy Schementi wrote: > Are you using clrtype.py or a C# stub? If you're not using either of these, then you will get a AG_E_PARSER_BAD_TYPE when trying to tell XAML about your Python type, since the corresponding CLR type won't be found. If send your python and XAML code, then I can help you figure this out. > > ~Jimmy > > > On Jan 20, 2010, at 8:32 PM, Edward J. Stembler wrote: >> >> I installed the Developer runtime, which incidentally is LinkID=150227 for >> Mac. In any case, I got my Converter recognized as a .NET type; however I >> couldn't get passed the AG_E_PARSER_BAD_TYPE error when loading the converter >> reference in XAML. I initially thought there may be some namespace issue, but >> I can see the Converter is reflecting it's correct namespace, and the XML >> namespace seems to match too. I tried importing my converted in App.py >> before the XAML is loaded to see if that would put it in scope, but that >> didn't work either. I'm not sure what to try next? Anyone have any ideas? >> >> >> On Jan 20, 2010, at 3:12 AM, Jimmy Schementi wrote: >> >>>> I took a simple converter and ported it to IronPython, however >>>> I'm getting the ever helpful SystemError 2255. >>> >>> Do you have the Silverlight "Developer" runtime? The "Consumer" runtime >> give you only error codes, while the developer runtime gives you actual >> exception messages. Here's the developer runtime: >>> http://go.microsoft.com/fwlink/?LinkID=150228 >>> >>>> I can manually import my converter class via the REPL, and do a dir on it >> too. >>>> Which leads me to believe there's another issue I'm unaware of. >>>> Perhaps it's not supported? Has anyone else tried implementing a >>>> converter in IronPython yet? >>> >>> IValueConverter is an interface that allows you to make custom data >> conversions that happen during data binding in XAML: >> http://msdn.microsoft.com/en- >> us/library/system.windows.data.ivalueconverter(VS.95).aspx. However, >> IronPython doesn't directly support data binding in Silverlight, since Python >> classes are not 1-to-1 with CLR classes. The XAML required to hook up a >> converter (Converter={StaticResource FormatConverter}) won't be able to find >> a FormatConverter class defined in IronPython either, since the name is auto- >> generated. So, you'll be able to interact with your Python classes from the >> REPL, but they will fail to be used in XAML (if you use the developer runtime >> you'll probably see an error in the XAML parser ... which unfortunately also >> gives cryptic error msgs =P) >>> >>> There are two ways to wire this up: >>> >>> (1) Use clrtype.py to control the CLR type, properties, etc, that the >> IronPython class generates. Luk?? ?enovsk? recently showed that you can do >> data-binding with this in Silverlight: http://gui- >> at.blogspot.com/2009/11/inotifypropertychanged-and-databinding.html >>> >>> (2) Have anything your XAML needs to reference as a C# stub (defining all >> things requiring static references, including properties and methods), which >> your Python class inherits from and defines the actual behavior. >>> >>> I suggest #1 as it's a more elegant solution, but #2 will work as a good >> safety net if you encounter something that doesn't work in #1. >>> >>> ~Jimmy From david.mcwright at usbfmi.com Fri Jan 22 04:43:31 2010 From: david.mcwright at usbfmi.com (David McWright) Date: Thu, 21 Jan 2010 19:43:31 -0800 (PST) Subject: [IronPython] Error Iterating Message-ID: Hello All, I'm working through a book and one of the exercise involves building comboBox filled with the names of the installed FontFamilies. The code and error are: >>> import clr >>> clr.AddReference("System.Drawing") >>> from System.Drawing.Text import InstalledFontCollection >>> for f in InstalledFontCollection.Families: ... print f.Name ... ... TypeError: iteration over non-sequence of type getset_descriptor The MSDN says that InstalledFontCollection.Families should be an Array of FontFamily objects which I thought I could step through. What did I do wrong here? TIA, David From curt at hagenlocher.org Fri Jan 22 05:08:08 2010 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Thu, 21 Jan 2010 20:08:08 -0800 Subject: [IronPython] Error Iterating In-Reply-To: References: Message-ID: You need to instantiate the InstalledFontCollection because "Families" is not a static property. >>> import clr >>> clr.AddReference('System.Drawing') >>> from System.Drawing.Text import InstalledFontCollection >>> for f in InstalledFontCollection().Families: ... print f.Name ... break ... Agency FB >>> On Thu, Jan 21, 2010 at 7:43 PM, David McWright wrote: > Hello All, > I'm working through a book and one of the exercise involves > building comboBox filled with the names of the installed > FontFamilies. The code and error are: > > >>> import clr > >>> clr.AddReference("System.Drawing") > >>> from System.Drawing.Text import InstalledFontCollection > >>> for f in InstalledFontCollection.Families: > ... print f.Name > ... > ... > TypeError: iteration over non-sequence of type getset_descriptor > > The MSDN says that InstalledFontCollection.Families should be an Array > of FontFamily objects which I thought I could step through. What did > I do wrong here? > > TIA, > David > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddicato at microsoft.com Fri Jan 22 05:08:41 2010 From: ddicato at microsoft.com (David DiCato) Date: Fri, 22 Jan 2010 04:08:41 +0000 Subject: [IronPython] Error Iterating In-Reply-To: References: Message-ID: You need to instantiate InstalledFontCollection in order to use its Families field directly. The code sample you sent gets Families from the type InstalledFontCollection, rather than an instance thereof, and thus tries to iterate over a property descriptor. Try the following: >>> for f in InstalledFontCollection().Families: ... print f.Name ... Good luck, - David -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of David McWright Sent: Thursday, January 21, 2010 7:44 PM To: users at lists.ironpython.com Subject: [IronPython] Error Iterating Hello All, I'm working through a book and one of the exercise involves building comboBox filled with the names of the installed FontFamilies. The code and error are: >>> import clr >>> clr.AddReference("System.Drawing") >>> from System.Drawing.Text import InstalledFontCollection >>> for f in InstalledFontCollection.Families: ... print f.Name ... ... TypeError: iteration over non-sequence of type getset_descriptor The MSDN says that InstalledFontCollection.Families should be an Array of FontFamily objects which I thought I could step through. What did I do wrong here? TIA, David _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From david.mcwright at usbfmi.com Fri Jan 22 05:15:41 2010 From: david.mcwright at usbfmi.com (David McWright) Date: Thu, 21 Jan 2010 20:15:41 -0800 (PST) Subject: [IronPython] Error Iterating In-Reply-To: References: Message-ID: <067da8e2-c5db-439b-88d7-15b464e0a6c2@e37g2000yqn.googlegroups.com> Curt & David, Thanks for the help! Should have figured that one out. :) On Jan 21, 11:08?pm, David DiCato wrote: > You need to instantiate InstalledFontCollection in order to use its Families field directly. The code sample you sent gets Families from the type InstalledFontCollection, rather than an instance thereof, and thus tries to iterate over a property descriptor. Try the following: > > >>> for f in InstalledFontCollection().Families: > > ... ? ? print f.Name > ... > > Good luck, > - David > > -----Original Message----- > From: users-boun... at lists.ironpython.com [mailto:users-boun... at lists.ironpython.com] On Behalf Of David McWright > Sent: Thursday, January 21, 2010 7:44 PM > To: us... at lists.ironpython.com > Subject: [IronPython] Error Iterating > > Hello All, > ? ?I'm working through a book and one of the exercise involves > building comboBox filled with the names of the installed > FontFamilies. ?The code and error are: > > >>> import clr > >>> clr.AddReference("System.Drawing") > >>> from System.Drawing.Text import InstalledFontCollection > >>> for f in InstalledFontCollection.Families: > ... ? ? print f.Name > ... > ... > TypeError: iteration over non-sequence of type getset_descriptor > > The MSDN says that InstalledFontCollection.Families should be an Array > of FontFamily objects which I thought I could step through. ?What did > I do wrong here? > > TIA, > David > > _______________________________________________ > Users mailing list > Us... at lists.ironpython.comhttp://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ > Users mailing list > Us... at lists.ironpython.comhttp://lists.ironpython.com/listinfo.cgi/users-ironpython.com From merllab at microsoft.com Fri Jan 22 17:54:43 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 22 Jan 2010 08:54:43 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <6cd7f794-d1e8-4601-9cfd-2ef001f77f57@tk5-exsmh-c101.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63480. ADDED SOURCES $/IronPython/IronPython_Main/Src/Tests/interop/net/versions $/IronPython/IronPython_Main/Src/Tests/interop/net/versions/__init__.py $/IronPython/IronPython_Main/Src/Tests/interop/net/versions/four_dot_zero.py MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/paramsinretval.py $/IronPython/IronPython_Main/Src/Tests/interop/net/versions/__init__.py $/IronPython/IronPython_Main/Src/Tests/interop/net/versions/four_dot_zero.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1480131 Date: 1/21/2010 4:33:28 PM interop.com.dlrcomlib.paramsinretval.test_interface_types_typerror - disabled under .NET 4.0 due to http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26000. (Shelveset: CP01;REDMOND\dfugate | SNAP CheckinId: 10168) -------------------------------------------------------------------------------- Changeset Id: 1479453 Date: 1/21/2010 10:24:29 AM - renamed generic tests for ClrType and ClrTypeTests to match other IP tests - added interop.net.versions.four_dot_zero and related GenericTest. As its name implies this is where the majority of (non-dynamic) .NET 4.0-specific tests will eventually reside - added a small sanity test for the Comment Checker IronPython sample (Shelveset: MISC_TESTS;REDMOND\dfugate | SNAP CheckinId: 10158) From andrew.canit at gmail.com Sun Jan 24 01:19:24 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Sat, 23 Jan 2010 16:19:24 -0800 Subject: [IronPython] Calling a System DLL In IronPython? Message-ID: <321b88ab1001231619i7f2031eav6a956a9b0f2190e2@mail.gmail.com> I am trying to call user32.dll into IronPython how do I do this? Do I use clr.AddReference, that doesn't seem to do it. Suggestions -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Sun Jan 24 01:31:04 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Sun, 24 Jan 2010 00:31:04 +0000 Subject: [IronPython] Calling a System DLL In IronPython? In-Reply-To: <321b88ab1001231619i7f2031eav6a956a9b0f2190e2@mail.gmail.com> References: <321b88ab1001231619i7f2031eav6a956a9b0f2190e2@mail.gmail.com> Message-ID: <4B5B94C8.6080503@voidspace.org.uk> On 24/01/2010 00:19, Andrew Evans wrote: > I am trying to call user32.dll into IronPython how do I do this? Do I > use clr.AddReference, that doesn't seem to do it. clr.AddReference only works for .NET assemblies. user32.dll is not a .NET assembly. To use it you will either need PInvoke or ctypes that comes with IronPython 2.6. PInvoke relies on .NET attributes. It used to be the case that you couldn't use these directly with IronPython but needed a simple C# wrapper. The following article shows how to call into user32.dll using a C# wrapper: http://www.voidspace.org.uk/ironpython/winforms/part10.shtml Alternatively you can try clrtype.py that comes with IronPython 2.6. All the best, Michael Foord > > Suggestions > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.mcwright at usbfmi.com Sun Jan 24 04:24:52 2010 From: david.mcwright at usbfmi.com (David McWright) Date: Sat, 23 Jan 2010 19:24:52 -0800 (PST) Subject: [IronPython] Calling a System DLL In IronPython? In-Reply-To: <4B5B94C8.6080503@voidspace.org.uk> References: <321b88ab1001231619i7f2031eav6a956a9b0f2190e2@mail.gmail.com> <4B5B94C8.6080503@voidspace.org.uk> Message-ID: <5a6c84f3-4ec6-46b6-b9bd-5f6972f4715a@g1g2000yqi.googlegroups.com> Is there a reference somewhere for PInvoke or ctypes in IP? TIA, David On Jan 23, 7:31?pm, Michael Foord wrote: > On 24/01/2010 00:19, Andrew Evans wrote: > > > I am trying to call user32.dll into IronPython how do I do this? Do I > > use clr.AddReference, that doesn't seem to do it. > > clr.AddReference only works for .NET assemblies. user32.dll is not a > .NET assembly. To use it you will either need PInvoke or ctypes that > comes with IronPython 2.6. > > PInvoke relies on .NET attributes. It used to be the case that you > couldn't use these directly with IronPython but needed a simple C# > wrapper. The following article shows how to call into user32.dll using a > C# wrapper: > > ? ? ?http://www.voidspace.org.uk/ironpython/winforms/part10.shtml > > Alternatively you can try clrtype.py that comes with IronPython 2.6. > > All the best, > > Michael Foord > > > > > Suggestions > > > _______________________________________________ > > Users mailing list > > Us... at lists.ironpython.com > >http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > --http://www.ironpythoninaction.com/http://www.voidspace.org.uk/blog > > READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. > > _______________________________________________ > Users mailing list > Us... at lists.ironpython.comhttp://lists.ironpython.com/listinfo.cgi/users-ironpython.com From fuzzyman at voidspace.org.uk Sun Jan 24 13:18:39 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Sun, 24 Jan 2010 12:18:39 +0000 Subject: [IronPython] Calling a System DLL In IronPython? In-Reply-To: <5a6c84f3-4ec6-46b6-b9bd-5f6972f4715a@g1g2000yqi.googlegroups.com> References: <321b88ab1001231619i7f2031eav6a956a9b0f2190e2@mail.gmail.com> <4B5B94C8.6080503@voidspace.org.uk> <5a6c84f3-4ec6-46b6-b9bd-5f6972f4715a@g1g2000yqi.googlegroups.com> Message-ID: For ctypes you should use the documentation that is part of the Python documentation. For PInvoke the references will be mainly for C#. Does anyone have examples of using PInvoke with clrtype and IronPython 2.6? Michael -- http://www.ironpythoninaction.com On 24 Jan 2010, at 03:24, David McWright wrote: > Is there a reference somewhere for PInvoke or ctypes in IP? > > TIA, > David > > On Jan 23, 7:31 pm, Michael Foord wrote: >> On 24/01/2010 00:19, Andrew Evans wrote: >> >>> I am trying to call user32.dll into IronPython how do I do this? >>> Do I >>> use clr.AddReference, that doesn't seem to do it. >> >> clr.AddReference only works for .NET assemblies. user32.dll is not a >> .NET assembly. To use it you will either need PInvoke or ctypes that >> comes with IronPython 2.6. >> >> PInvoke relies on .NET attributes. It used to be the case that you >> couldn't use these directly with IronPython but needed a simple C# >> wrapper. The following article shows how to call into user32.dll >> using a >> C# wrapper: >> >> http://www.voidspace.org.uk/ironpython/winforms/part10.shtml >> >> Alternatively you can try clrtype.py that comes with IronPython 2.6. >> >> All the best, >> >> Michael Foord >> >> >> >>> Suggestions >> >>> _______________________________________________ >>> Users mailing list >>> Us... at lists.ironpython.com >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> >> --http://www.ironpythoninaction.com/http://www.voidspace.org.uk/blog >> >> READ CAREFULLY. By accepting and reading this email you agree, on >> behalf of your employer, to release me from all obligations and >> waivers arising from any and all NON-NEGOTIATED agreements, >> licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, >> confidentiality, non-disclosure, non-compete and acceptable use >> policies ("BOGUS AGREEMENTS") that I have entered into with your >> employer, its partners, licensors, agents and assigns, in >> perpetuity, without prejudice to my ongoing rights and privileges. >> You further represent that you have the authority to release me >> from any BOGUS AGREEMENTS on behalf of your employer. >> >> _______________________________________________ >> Users mailing list >> Us... at lists.ironpython.comhttp://lists.ironpython.com/listinfo.cgi/ >> users-ironpython.com > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From merllab at microsoft.com Mon Jan 25 17:53:32 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Mon, 25 Jan 2010 08:53:32 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63561. ADDED SOURCES $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/DetailsForm.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/DetailsForm.Designer.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/DetailsForm.resx $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/Notification.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/NotifyIcon.ico MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/DetailsForm.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/DetailsForm.Designer.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/DetailsForm.resx $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/Chiron.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/HttpServer.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/Chiron.csproj $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/Notification.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/NotifyIcon.ico $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/PythonNameBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/Node.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/ScopeStatement.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonBinaryOperationBinder.cs CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1481710 Date: 1/22/2010 2:30:19 PM Adds /notification option to Chiron. This option causes Chiron to pop a notification ballon on startup identifying where it is running. It then provides a content menu for stopping the server, bringing up the status, or opening a web browser which points at the server. (Shelveset: ChironNotification;REDMOND\dinov | SNAP CheckinId: 10179) From Shri.Borde at microsoft.com Mon Jan 25 22:23:58 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 25 Jan 2010 21:23:58 +0000 Subject: [IronPython] Calling a System DLL In IronPython? In-Reply-To: References: <321b88ab1001231619i7f2031eav6a956a9b0f2190e2@mail.gmail.com> <4B5B94C8.6080503@voidspace.org.uk> <5a6c84f3-4ec6-46b6-b9bd-5f6972f4715a@g1g2000yqi.googlegroups.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89A150@TK5EX14MBXC140.redmond.corp.microsoft.com> Its in Samples.zip on http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482. There have been a few bug fixes since that are not in Samples.zip, but it does not affect pinvoke. -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord Sent: Sunday, January 24, 2010 4:19 AM To: Discussion of IronPython Cc: users at lists.ironpython.com Subject: Re: [IronPython] Calling a System DLL In IronPython? For ctypes you should use the documentation that is part of the Python documentation. For PInvoke the references will be mainly for C#. Does anyone have examples of using PInvoke with clrtype and IronPython 2.6? Michael -- http://www.ironpythoninaction.com On 24 Jan 2010, at 03:24, David McWright wrote: > Is there a reference somewhere for PInvoke or ctypes in IP? > > TIA, > David > > On Jan 23, 7:31 pm, Michael Foord wrote: >> On 24/01/2010 00:19, Andrew Evans wrote: >> >>> I am trying to call user32.dll into IronPython how do I do this? >>> Do I >>> use clr.AddReference, that doesn't seem to do it. >> >> clr.AddReference only works for .NET assemblies. user32.dll is not a >> .NET assembly. To use it you will either need PInvoke or ctypes that >> comes with IronPython 2.6. >> >> PInvoke relies on .NET attributes. It used to be the case that you >> couldn't use these directly with IronPython but needed a simple C# >> wrapper. The following article shows how to call into user32.dll >> using a >> C# wrapper: >> >> http://www.voidspace.org.uk/ironpython/winforms/part10.shtml >> >> Alternatively you can try clrtype.py that comes with IronPython 2.6. >> >> All the best, >> >> Michael Foord >> >> >> >>> Suggestions >> >>> _______________________________________________ >>> Users mailing list >>> Us... at lists.ironpython.com >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> >> --http://www.ironpythoninaction.com/http://www.voidspace.org.uk/blog >> >> READ CAREFULLY. By accepting and reading this email you agree, on >> behalf of your employer, to release me from all obligations and >> waivers arising from any and all NON-NEGOTIATED agreements, >> licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, >> confidentiality, non-disclosure, non-compete and acceptable use >> policies ("BOGUS AGREEMENTS") that I have entered into with your >> employer, its partners, licensors, agents and assigns, in >> perpetuity, without prejudice to my ongoing rights and privileges. >> You further represent that you have the authority to release me >> from any BOGUS AGREEMENTS on behalf of your employer. >> >> _______________________________________________ >> Users mailing list >> Us... at lists.ironpython.comhttp://lists.ironpython.com/listinfo.cgi/ >> users-ironpython.com > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From potti_n at subway.com Mon Jan 25 22:47:57 2010 From: potti_n at subway.com (Neelima Potti) Date: Mon, 25 Jan 2010 16:47:57 -0500 Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Message-ID: <00ad01ca9e08$0ed111b0$2c733510$@com> Hi, I am new to IronPython.. I have downloaded IronPython from the website http://www.codeplex.com/IronPython lastweek. When I open IronPython Console, it shows IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.3053 I am trying to invoke the Python engine at run time By calling in c# source(.NET 4.0 framework) _runtime = ScriptRuntime.CreateFromConfiguration() When I add Microsoft.Scripting as a Reference to this project, it shows the version as 2.6.911.0 And my app.config has
During runtime, I get the error: An error occurred creating the configuration section handler for microsoft.scripting: Could not load file or assembly 'Microsoft.Scripting, Version=2.6.911.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040 What am I missing here? Is my version wrong or publicKeyToken wrong or?? Any help would be greatly appreciated Thank you NPotti -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Mon Jan 25 22:51:06 2010 From: dinov at microsoft.com (Dino Viehland) Date: Mon, 25 Jan 2010 21:51:06 +0000 Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 In-Reply-To: <00ad01ca9e08$0ed111b0$2c733510$@com> References: <00ad01ca9e08$0ed111b0$2c733510$@com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34C94889@TK5EX14MBXC116.redmond.corp.microsoft.com> You need to download the version of IronPython which is built for .NET 4.0: http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125 That'll just work and it'll support interop w/ C# 4.0. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti Sent: Monday, January 25, 2010 1:48 PM To: users at lists.ironpython.com Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Hi, I am new to IronPython.. I have downloaded IronPython from the website http://www.codeplex.com/IronPython lastweek. When I open IronPython Console, it shows IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.3053 I am trying to invoke the Python engine at run time By calling in c# source(.NET 4.0 framework) _runtime = ScriptRuntime.CreateFromConfiguration() When I add Microsoft.Scripting as a Reference to this project, it shows the version as 2.6.911.0 And my app.config has
During runtime, I get the error: An error occurred creating the configuration section handler for microsoft.scripting: Could not load file or assembly 'Microsoft.Scripting, Version=2.6.911.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040 What am I missing here? Is my version wrong or publicKeyToken wrong or?? Any help would be greatly appreciated Thank you NPotti -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Mon Jan 25 23:00:19 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Mon, 25 Jan 2010 22:00:19 +0000 Subject: [IronPython] Calling a System DLL In IronPython? In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C89A150@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <321b88ab1001231619i7f2031eav6a956a9b0f2190e2@mail.gmail.com> <4B5B94C8.6080503@voidspace.org.uk> <5a6c84f3-4ec6-46b6-b9bd-5f6972f4715a@g1g2000yqi.googlegroups.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A150@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B5E1473.5050506@voidspace.org.uk> On 25/01/2010 21:23, Shri Borde wrote: > Its in Samples.zip on http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482. There have been a few bug fixes since that are not in Samples.zip, but it does not affect pinvoke. > > Great - thanks. For what it's worth it is worth running a tool like pyflakes over clrtype.py. I'm using a version that is possibly slightly outdated in a Silverlight project and pyflakes gives several warnings on clrtype.py (including a warning about an incorrectly constructed assert): modules/clrtype.py:21: 'Char' imported but unused modules/clrtype.py:21: 'Boolean' imported but unused modules/clrtype.py:27: 'NameType' imported but unused modules/clrtype.py:28: 'ReflectedProperty' imported but unused modules/clrtype.py:182: local variable 'p' is assigned to but never used modules/clrtype.py:354: local variable 'p' is assigned to but never used (I have already fixed the assert manually I believe.) All the best, Michael > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord > Sent: Sunday, January 24, 2010 4:19 AM > To: Discussion of IronPython > Cc: users at lists.ironpython.com > Subject: Re: [IronPython] Calling a System DLL In IronPython? > > For ctypes you should use the documentation that is part of the Python > documentation. For PInvoke the references will be mainly for C#. > > Does anyone have examples of using PInvoke with clrtype and IronPython > 2.6? > > Michael > > > -- > http://www.ironpythoninaction.com > > On 24 Jan 2010, at 03:24, David McWright > wrote: > > >> Is there a reference somewhere for PInvoke or ctypes in IP? >> >> TIA, >> David >> >> On Jan 23, 7:31 pm, Michael Foord wrote: >> >>> On 24/01/2010 00:19, Andrew Evans wrote: >>> >>> >>>> I am trying to call user32.dll into IronPython how do I do this? >>>> Do I >>>> use clr.AddReference, that doesn't seem to do it. >>>> >>> clr.AddReference only works for .NET assemblies. user32.dll is not a >>> .NET assembly. To use it you will either need PInvoke or ctypes that >>> comes with IronPython 2.6. >>> >>> PInvoke relies on .NET attributes. It used to be the case that you >>> couldn't use these directly with IronPython but needed a simple C# >>> wrapper. The following article shows how to call into user32.dll >>> using a >>> C# wrapper: >>> >>> http://www.voidspace.org.uk/ironpython/winforms/part10.shtml >>> >>> Alternatively you can try clrtype.py that comes with IronPython 2.6. >>> >>> All the best, >>> >>> Michael Foord >>> >>> >>> >>> >>>> Suggestions >>>> >>> >>>> _______________________________________________ >>>> Users mailing list >>>> Us... at lists.ironpython.com >>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>>> >>> --http://www.ironpythoninaction.com/http://www.voidspace.org.uk/blog >>> >>> READ CAREFULLY. By accepting and reading this email you agree, on >>> behalf of your employer, to release me from all obligations and >>> waivers arising from any and all NON-NEGOTIATED agreements, >>> licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, >>> confidentiality, non-disclosure, non-compete and acceptable use >>> policies ("BOGUS AGREEMENTS") that I have entered into with your >>> employer, its partners, licensors, agents and assigns, in >>> perpetuity, without prejudice to my ongoing rights and privileges. >>> You further represent that you have the authority to release me >>> from any BOGUS AGREEMENTS on behalf of your employer. >>> >>> _______________________________________________ >>> Users mailing list >>> Us... at lists.ironpython.comhttp://lists.ironpython.com/listinfo.cgi/ >>> users-ironpython.com >>> >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (?BOGUS AGREEMENTS?) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. From Shri.Borde at microsoft.com Mon Jan 25 23:15:10 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 25 Jan 2010 22:15:10 +0000 Subject: [IronPython] Calling a System DLL In IronPython? In-Reply-To: <4B5E1473.5050506@voidspace.org.uk> References: <321b88ab1001231619i7f2031eav6a956a9b0f2190e2@mail.gmail.com> <4B5B94C8.6080503@voidspace.org.uk> <5a6c84f3-4ec6-46b6-b9bd-5f6972f4715a@g1g2000yqi.googlegroups.com> <8E45365BECA665489F3CB8878A6C1B7D0C89A150@TK5EX14MBXC140.redmond.corp.microsoft.com> <4B5E1473.5050506@voidspace.org.uk> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C89A26F@TK5EX14MBXC140.redmond.corp.microsoft.com> Good idea (for all other samples too). Will look into it. -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord Sent: Monday, January 25, 2010 2:00 PM To: Discussion of IronPython Subject: Re: [IronPython] Calling a System DLL In IronPython? On 25/01/2010 21:23, Shri Borde wrote: > Its in Samples.zip on http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482. There have been a few bug fixes since that are not in Samples.zip, but it does not affect pinvoke. > > Great - thanks. For what it's worth it is worth running a tool like pyflakes over clrtype.py. I'm using a version that is possibly slightly outdated in a Silverlight project and pyflakes gives several warnings on clrtype.py (including a warning about an incorrectly constructed assert): modules/clrtype.py:21: 'Char' imported but unused modules/clrtype.py:21: 'Boolean' imported but unused modules/clrtype.py:27: 'NameType' imported but unused modules/clrtype.py:28: 'ReflectedProperty' imported but unused modules/clrtype.py:182: local variable 'p' is assigned to but never used modules/clrtype.py:354: local variable 'p' is assigned to but never used (I have already fixed the assert manually I believe.) All the best, Michael > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord > Sent: Sunday, January 24, 2010 4:19 AM > To: Discussion of IronPython > Cc: users at lists.ironpython.com > Subject: Re: [IronPython] Calling a System DLL In IronPython? > > For ctypes you should use the documentation that is part of the Python > documentation. For PInvoke the references will be mainly for C#. > > Does anyone have examples of using PInvoke with clrtype and IronPython > 2.6? > > Michael > > > -- > http://www.ironpythoninaction.com > > On 24 Jan 2010, at 03:24, David McWright > wrote: > > >> Is there a reference somewhere for PInvoke or ctypes in IP? >> >> TIA, >> David >> >> On Jan 23, 7:31 pm, Michael Foord wrote: >> >>> On 24/01/2010 00:19, Andrew Evans wrote: >>> >>> >>>> I am trying to call user32.dll into IronPython how do I do this? >>>> Do I >>>> use clr.AddReference, that doesn't seem to do it. >>>> >>> clr.AddReference only works for .NET assemblies. user32.dll is not a >>> .NET assembly. To use it you will either need PInvoke or ctypes that >>> comes with IronPython 2.6. >>> >>> PInvoke relies on .NET attributes. It used to be the case that you >>> couldn't use these directly with IronPython but needed a simple C# >>> wrapper. The following article shows how to call into user32.dll >>> using a >>> C# wrapper: >>> >>> http://www.voidspace.org.uk/ironpython/winforms/part10.shtml >>> >>> Alternatively you can try clrtype.py that comes with IronPython 2.6. >>> >>> All the best, >>> >>> Michael Foord >>> >>> >>> >>> >>>> Suggestions >>>> >>> >>>> _______________________________________________ >>>> Users mailing list >>>> Us... at lists.ironpython.com >>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>>> >>> --http://www.ironpythoninaction.com/http://www.voidspace.org.uk/blog >>> >>> READ CAREFULLY. By accepting and reading this email you agree, on >>> behalf of your employer, to release me from all obligations and >>> waivers arising from any and all NON-NEGOTIATED agreements, >>> licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, >>> confidentiality, non-disclosure, non-compete and acceptable use >>> policies ("BOGUS AGREEMENTS") that I have entered into with your >>> employer, its partners, licensors, agents and assigns, in >>> perpetuity, without prejudice to my ongoing rights and privileges. >>> You further represent that you have the authority to release me >>> from any BOGUS AGREEMENTS on behalf of your employer. >>> >>> _______________________________________________ >>> Users mailing list >>> Us... at lists.ironpython.comhttp://lists.ironpython.com/listinfo.cgi/ >>> users-ironpython.com >>> >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From andrew.canit at gmail.com Tue Jan 26 20:35:23 2010 From: andrew.canit at gmail.com (Andrew Evans) Date: Tue, 26 Jan 2010 11:35:23 -0800 Subject: [IronPython] IronPython ASP Message-ID: <321b88ab1001261135p38636be2vaacfa856cfcc2431@mail.gmail.com> Does anyone have an article on installing and configuring IronPython for ASP.net for Windows Server 2008? *cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: From potti_n at subway.com Tue Jan 26 22:23:48 2010 From: potti_n at subway.com (Neelima Potti) Date: Tue, 26 Jan 2010 16:23:48 -0500 Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34C94889@TK5EX14MBXC116.redmond.corp.microsoft.com> References: <00ad01ca9e08$0ed111b0$2c733510$@com> <1A472770E042064698CB5ADC83A12ACD34C94889@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: <001501ca9ecd$d9443290$8bcc97b0$@com> Thank you Dino.it worked. but I have a Q: http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482. .. Whose release notes say "Updating to the latest version of the DLR"..so doesn't that mean it is .NET framework 4.0 as DLR is for .NET 4.0 http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125 ."IronPython 2.6 CTP for .NET 4.0 Beta 2". In terms of DLR..what is the difference between the above 2 releases. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dino Viehland Sent: Monday, January 25, 2010 4:51 PM To: Discussion of IronPython Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 You need to download the version of IronPython which is built for .NET 4.0: http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125 That'll just work and it'll support interop w/ C# 4.0. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti Sent: Monday, January 25, 2010 1:48 PM To: users at lists.ironpython.com Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Hi, I am new to IronPython.. I have downloaded IronPython from the website http://www.codeplex.com/IronPython lastweek. When I open IronPython Console, it shows IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.3053 I am trying to invoke the Python engine at run time By calling in c# source(.NET 4.0 framework) _runtime = ScriptRuntime.CreateFromConfiguration() When I add Microsoft.Scripting as a Reference to this project, it shows the version as 2.6.911.0 And my app.config has
During runtime, I get the error: An error occurred creating the configuration section handler for microsoft.scripting: Could not load file or assembly 'Microsoft.Scripting, Version=2.6.911.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040 What am I missing here? Is my version wrong or publicKeyToken wrong or?? Any help would be greatly appreciated Thank you NPotti Click here to report this email as spam. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddicato at microsoft.com Tue Jan 26 22:58:05 2010 From: ddicato at microsoft.com (David DiCato) Date: Tue, 26 Jan 2010 21:58:05 +0000 Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 In-Reply-To: <001501ca9ecd$d9443290$8bcc97b0$@com> References: <00ad01ca9e08$0ed111b0$2c733510$@com> <1A472770E042064698CB5ADC83A12ACD34C94889@TK5EX14MBXC116.redmond.corp.microsoft.com> <001501ca9ecd$d9443290$8bcc97b0$@com> Message-ID: The DLR is not exclusively for .NET 4.0, and until recently, it was not part of the framework. Starting with .NET 4.0, core bits of the DLR have been added as a feature. IronPython 2.6 runs on .NET 2.0 SP1 and contains its own distribution of the DLR. The release page refers to this distribution when it mentions the update. On the other hand, IronPython 2.6 CTP for .NET 4.0 Beta 2 does not need to include the DLR core. Hope this clears things up, - David From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti Sent: Tuesday, January 26, 2010 1:24 PM To: 'Discussion of IronPython' Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Thank you Dino...it worked. but I have a Q: http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482... Whose release notes say "Updating to the latest version of the DLR"..so doesn't that mean it is .NET framework 4.0 as DLR is for .NET 4.0 http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125 ..."IronPython 2.6 CTP for .NET 4.0 Beta 2". In terms of DLR..what is the difference between the above 2 releases... From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dino Viehland Sent: Monday, January 25, 2010 4:51 PM To: Discussion of IronPython Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 You need to download the version of IronPython which is built for .NET 4.0: http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125 That'll just work and it'll support interop w/ C# 4.0. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti Sent: Monday, January 25, 2010 1:48 PM To: users at lists.ironpython.com Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Hi, I am new to IronPython.. I have downloaded IronPython from the website http://www.codeplex.com/IronPython lastweek. When I open IronPython Console, it shows IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.3053 I am trying to invoke the Python engine at run time By calling in c# source(.NET 4.0 framework) _runtime = ScriptRuntime.CreateFromConfiguration() When I add Microsoft.Scripting as a Reference to this project, it shows the version as 2.6.911.0 And my app.config has
During runtime, I get the error: An error occurred creating the configuration section handler for microsoft.scripting: Could not load file or assembly 'Microsoft.Scripting, Version=2.6.911.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040 What am I missing here? Is my version wrong or publicKeyToken wrong or?? Any help would be greatly appreciated Thank you NPotti Click here to report this email as spam. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronnie.maor at gmail.com Wed Jan 27 17:16:42 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Wed, 27 Jan 2010 18:16:42 +0200 Subject: [IronPython] bug with closure in coroutine Message-ID: <2fd6b9d1001270816k6af00730w616ffe08b2e049c4@mail.gmail.com> Hi IronPython team, Seems IronPython 2.6 has some problems with compiling coroutines that contain closures: tmp.py: def coroutine(): x = yield 3 def inner(): print 'x=',x inner() c = coroutine() c.next() c.send(10) with CPython: C:\Temp>python tmp.py x= 10 Traceback (most recent call last): File "tmp.py", line 9, in c.send(10) StopIteration with IronPython 2.6: C:\Temp>ipy tmp.py Traceback (most recent call last): File "tmp.py", line 7, in tmp.py TypeError: Unable to cast object of type 'Microsoft.Scripting.Ast.FieldExpression' to type 'Microsoft.Scripting.Ast.BlockExpression'. workarounds: 1) re-assign the result returned from yield to another variable def coroutine(): tmp_x = yield 3 x = tmp_x def inner(): print 'x=',x inner() 2) pass the value explicitly instead of using a closure def coroutine(): x = yield 3 def inner(x): print 'x=',x inner(x) hope it's easy to fix thanks Ronnie -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Wed Jan 27 17:53:35 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 27 Jan 2010 08:53:35 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <3ef42e1c-43f1-42ee-bfc6-8ccae79a0ff6@tk5-exsmh-c101.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63611. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Lib/iptest/test_env.py $/IronPython/IronPython_Main/Src/IronPython/Runtime/ClrModule.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_Main/Src/Tests/test_clrload.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1494245 Date: 1/26/2010 3:33:49 PM (ddicato) CLR4 only: Track in PythonContext when Assembly.LoadFile is called. Change AssemblyResolve hook to skip searching sys.path when the RequestingAssembly is not loaded in the current context. (dfugate) Added an env. var to iptest.test_env to see if we're using the DLR that comes installed with .NET 4.0. (Shelveset: cp23506;REDMOND\ddicato | SNAP CheckinId: 10206) From empirebuilder at gmail.com Wed Jan 27 18:33:17 2010 From: empirebuilder at gmail.com (Dody Gunawinata) Date: Wed, 27 Jan 2010 19:33:17 +0200 Subject: [IronPython] IronPython ASP In-Reply-To: <321b88ab1001261135p38636be2vaacfa856cfcc2431@mail.gmail.com> References: <321b88ab1001261135p38636be2vaacfa856cfcc2431@mail.gmail.com> Message-ID: <8cd017b81001270933h42647a12tcbabaff06971b396@mail.gmail.com> If you need any specific help, just make post on this list. I am running production IronPython for ASP.Net applications on Windows 2008, Windows 2003 so I might be able to help. In general, there is no special treatment needed to be done to have it running on Windows Server 2008. On Tue, Jan 26, 2010 at 9:35 PM, Andrew Evans wrote: > Does anyone have an article on installing and configuring IronPython for > ASP.net for Windows Server 2008? > > *cheers > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -- nomadlife.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Wed Jan 27 19:08:42 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 27 Jan 2010 18:08:42 +0000 Subject: [IronPython] bug with closure in coroutine In-Reply-To: <2fd6b9d1001270816k6af00730w616ffe08b2e049c4@mail.gmail.com> References: <2fd6b9d1001270816k6af00730w616ffe08b2e049c4@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34CA507D@TK5EX14MBXC116.redmond.corp.microsoft.com> It's so easy to fix it's actually already fixed for 2.6.1 :) Thanks for reporting it though. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronnie Maor Sent: Wednesday, January 27, 2010 8:17 AM To: Discussion of IronPython Subject: [IronPython] bug with closure in coroutine Hi IronPython team, Seems IronPython 2.6 has some problems with compiling coroutines that contain closures: tmp.py: def coroutine(): x = yield 3 def inner(): print 'x=',x inner() c = coroutine() c.next() c.send(10) with CPython: C:\Temp>python tmp.py x= 10 Traceback (most recent call last): File "tmp.py", line 9, in c.send(10) StopIteration with IronPython 2.6: C:\Temp>ipy tmp.py Traceback (most recent call last): File "tmp.py", line 7, in tmp.py TypeError: Unable to cast object of type 'Microsoft.Scripting.Ast.FieldExpression' to type 'Microsoft.Scripting.Ast.BlockExpression'. workarounds: 1) re-assign the result returned from yield to another variable def coroutine(): tmp_x = yield 3 x = tmp_x def inner(): print 'x=',x inner() 2) pass the value explicitly instead of using a closure def coroutine(): x = yield 3 def inner(x): print 'x=',x inner(x) hope it's easy to fix thanks Ronnie -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronnie.maor at gmail.com Wed Jan 27 20:56:33 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Wed, 27 Jan 2010 21:56:33 +0200 Subject: [IronPython] bug with closure in coroutine In-Reply-To: <1A472770E042064698CB5ADC83A12ACD34CA507D@TK5EX14MBXC116.redmond.corp.microsoft.com> References: <2fd6b9d1001270816k6af00730w616ffe08b2e049c4@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD34CA507D@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: <2fd6b9d1001271156y7182ed6do112d09adc6506395@mail.gmail.com> welcome. pleasure doing business with you :-) On Wed, Jan 27, 2010 at 8:08 PM, Dino Viehland wrote: > It?s so easy to fix it?s actually already fixed for 2.6.1 J Thanks for > reporting it though. > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Ronnie Maor > *Sent:* Wednesday, January 27, 2010 8:17 AM > *To:* Discussion of IronPython > *Subject:* [IronPython] bug with closure in coroutine > > > > Hi IronPython team, > > > > Seems IronPython 2.6 has some problems with compiling coroutines that > contain closures: > > > > tmp.py: > > def coroutine(): > > x = yield 3 > > def inner(): > > print 'x=',x > > inner() > > > > c = coroutine() > > c.next() > > c.send(10) > > > > with CPython: > > C:\Temp>python tmp.py > > x= 10 > > Traceback (most recent call last): > > File "tmp.py", line 9, in > > c.send(10) > > StopIteration > > > > > > with IronPython 2.6: > > C:\Temp>ipy tmp.py > > Traceback (most recent call last): > > File "tmp.py", line 7, in tmp.py > > TypeError: Unable to cast object of type > 'Microsoft.Scripting.Ast.FieldExpression' to type > 'Microsoft.Scripting.Ast.BlockExpression'. > > > > > > workarounds: > > 1) re-assign the result returned from yield to another variable > > def coroutine(): > > tmp_x = yield 3 > > x = tmp_x > > def inner(): > > print 'x=',x > > inner() > > > > 2) pass the value explicitly instead of using a closure > > def coroutine(): > > x = yield 3 > > def inner(x): > > print 'x=',x > > inner(x) > > > > hope it's easy to fix > > > > thanks > > Ronnie > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Wed Jan 27 21:10:44 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 27 Jan 2010 12:10:44 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <138c7c03-501d-4d76-9345-2e313ef18a4f@tk5-exsmh-c101.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63614. ADDED SOURCES $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/ArgumentArray.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/ControlFlowInstructions.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/LessThanInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/StackOperations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/ArrayOperations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DynamicInstructionN.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/FieldOperations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/AddInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/LocalAccess.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DivInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/GreaterThanInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/EqualInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/NumericConvertInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DynamicInstructions.Generated.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.Generated.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DynamicSplatInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/InstructionFactory.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/TypeOperations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/NotEqualInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/Instruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/InstructionList.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/BranchLabel.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LoopCompiler.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LocalVariables.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/ILightCallSiteBinder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/BlockBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/Utils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/LightDynamicExpression.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/ExpressionCollectionBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Actions/IInvokeOnGetBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/CustomInstanceDictionaryStorage.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/SequenceTypeInfoAttribute.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/CollectionDebugView.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/ObjectDebugView.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonContext.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/DictionaryTypeInfoAttribute.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ILoopStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/GetParentContextFromFunctionExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/GetGlobalContextExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/DynamicGetMemberExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AstMethods.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/DynamicConvertExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/SerializedScopeStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/PythonConstantExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/PythonDynamicExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/LookupCompilationMode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/UncollectableCompilationMode.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ToDiskCompilationMode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/CollectableCompilationMode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/UncollectableCompilationMode.cs $/IronPython/IronPython_2_6/Src/IronPythonTest/DynamicRegressions.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/Notification.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/NotifyIcon.ico $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/DetailsForm.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/DetailsForm.Designer.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/DetailsForm.resx $/IronPython/IronPython_2_6/Src/Tests/modules/type_related $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/time_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/sys_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/gc_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/nt_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/_locale_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/thread_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/type_related/types_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/type_related/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/type_related/_struct_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/type_related/array_test.py $/IronPython/IronPython_2_6/Src/Scripts/generate_UncollectableCompilationMode.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Utils/ExpressionUtils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Utils/NativeMethods.cs $/IronPython/IronPython_2_6/Src/Tests/modules/misc $/IronPython/IronPython_2_6/Src/Tests/modules/io_related $/IronPython/IronPython_2_6/Src/Tests/modules/network_related $/IronPython/IronPython_2_6/Src/Tests/modules/system_related $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_sha256.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_warnings_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/system_namespaces.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_random_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/future_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/math_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_weakref_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/datetime_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_sha512.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/operator_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/copy_reg_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/re_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/binascii_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/_bytesio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/cStringIO_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/cPickle_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/codecs_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/marshal_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/_fileio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/network_related/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/network_related/_ssl_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/network_related/socket_test.py $/IronPython/IronPython_2_6/Src/Tests/encoded_files/cp1019.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/dynamic $/IronPython/IronPython_2_6/Src/Tests/interop/net/versions $/IronPython/IronPython_2_6/Src/Tests/interop/net/dynamic/dynamic_regressions.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/dynamic/__init__.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/versions/__init__.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/versions/four_dot_zero.py DELETED SOURCES $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/TypeExtensions.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/ReflectedCaller.Generated.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/ReflectedCaller.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.Generated.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/DynamicRuntimeHostingProvider.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/DictionaryGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/CustomOldClassDictionary.cs $/IronPython/IronPython_2_6/Src/Tests/modules/_ssl_test.py $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SavableGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AstGenerator.cs $/IronPython/IronPython_2_6/Src/Tests/test_future.py $/IronPython/IronPython_2_6/Src/Tests/test_gc.py $/IronPython/IronPython_2_6/Src/Tests/test_datetime.py $/IronPython/IronPython_2_6/Src/Tests/test_weakref.py $/IronPython/IronPython_2_6/Src/Tests/test_struct.py $/IronPython/IronPython_2_6/Src/Tests/test_sys.py $/IronPython/IronPython_2_6/Src/Tests/test_marshal.py $/IronPython/IronPython_2_6/Src/Tests/test_math.py $/IronPython/IronPython_2_6/Src/Tests/test_binascii.py $/IronPython/IronPython_2_6/Src/Tests/test_nt.py $/IronPython/IronPython_2_6/Src/Tests/test_re.py $/IronPython/IronPython_2_6/Src/Tests/modules/_warnings_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_namespaces.py $/IronPython/IronPython_2_6/Src/Tests/modules/_fileio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/array_test.py $/IronPython/IronPython_2_6/Src/Scripts/generate_SharedGlobalAllocator.py $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ArrayGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.Generated.cs $/IronPython/IronPython_2_6/Src/Tests/test_cPickle.py $/IronPython/IronPython_2_6/Src/Tests/test_random.py $/IronPython/IronPython_2_6/Src/Tests/test_codecs.py $/IronPython/IronPython_2_6/Src/Tests/test_socket.py $/IronPython/IronPython_2_6/Src/Tests/test_cStringIO.py $/IronPython/IronPython_2_6/Src/Tests/test_copy_reg.py $/IronPython/IronPython_2_6/Src/Tests/test_locale.py $/IronPython/IronPython_2_6/Src/Tests/test_thread.py $/IronPython/IronPython_2_6/Src/Tests/test_operator.py $/IronPython/IronPython_2_6/Src/Tests/test_interpret_sanity.py $/IronPython/IronPython_2_6/Src/Tests/test_time.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha256.py $/IronPython/IronPython_2_6/Src/Tests/modules/_bytesio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha512.py MODIFIED SOURCES $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/ArgumentArray.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/ControlFlowInstructions.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/LessThanInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/StackOperations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/ArrayOperations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DynamicInstructionN.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/FieldOperations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/AddInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/LocalAccess.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DivInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/GreaterThanInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/EqualInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/NumericConvertInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DynamicInstructions.Generated.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.Generated.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/DynamicSplatInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/InstructionFactory.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/TypeOperations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/NotEqualInstruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/Instruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/InstructionList.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/BranchLabel.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LoopCompiler.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LocalVariables.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/ILightCallSiteBinder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/BlockBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/Utils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/LightDynamicExpression.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/ExpressionCollectionBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Actions/IInvokeOnGetBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/CustomInstanceDictionaryStorage.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/SequenceTypeInfoAttribute.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/CollectionDebugView.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/ObjectDebugView.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonContext.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/DictionaryTypeInfoAttribute.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ILoopStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/GetParentContextFromFunctionExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/GetGlobalContextExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/DynamicGetMemberExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AstMethods.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/DynamicConvertExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/SerializedScopeStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/PythonConstantExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/PythonDynamicExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/LookupCompilationMode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/UncollectableCompilationMode.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ToDiskCompilationMode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/CollectableCompilationMode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/UncollectableCompilationMode.cs $/IronPython/IronPython_2_6/Src/IronPythonTest/DynamicRegressions.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/Notification.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/NotifyIcon.ico $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/DetailsForm.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/DetailsForm.Designer.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/DetailsForm.resx $/IronPython/IronPython_2_6/Doc/dotnet-integration.rst $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Hosting/Shell/CommandLine.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/MathUtils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Math/BigIntegerV4.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/TokenizerBuffer.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/AssemblyTypeNames.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Generation/AssemblyGen.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LightLambda.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LightDelegateCreator.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/UnaryExpression.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/OverloadResolver.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/ParameterWrapper.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/MethodCandidate.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/ActionBinder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/NamespaceTracker.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.DeleteMember.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/PerfTrack.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Hosting/Shell/OptionsParser.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/CollectionUtils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/TypeUtils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/DynamicUtils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/ThreadLocal.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Math/BigIntegerV2.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/MetaObjectExtensions.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Generation/ILGen.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Generation/ToDiskRewriter.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Generation/CompilerHelpers.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Interpreter.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LightLambdaClosureVisitor.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LightLambda.Generated.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LightCompiler.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LastFaultingLineExpression.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/InterpretedFrame.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/MethodCallExpression.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/FinallyFlowControlExpression.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/FlowControlRewriter.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/ParameterMapping.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/BindingResult.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/SimpleArgBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/DefaultOverloadResolver.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/CallFailureReason.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.Conversions.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/EventTracker.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.GetMember.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/OperatorInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.Operations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.SetMember.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.Invoke.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Microsoft.Dynamic.csproj $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/DelegateInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/ScriptingRuntimeHelpers.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/ReflectionUtils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Ast/Expression.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Compiler/ILGen.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Microsoft.Scripting.Core.csproj $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/CFuncPtrType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/UnionType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/SimpleType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/CFuncPtr.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/_ctypes.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/nt.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/IronPython.Modules.csproj $/IronPython/IronPython_2_6/Src/IronPython.Modules/math.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_collections.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_winreg.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/ModuleOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Hosting/PythonService.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonUnaryOperationBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/MetaPythonType.Calls.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/CreateFallbackBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonGetMemberBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/MetaUserObject.Members.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonBinaryOperationBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonProtocol.Operations.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/MetaUserObject.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/ConversionBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonSetIndexBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonOperationKind.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/OldInstance.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/PythonType.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/BuiltinFunction.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/DocBuilder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/ReflectedIndexer.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/PythonTypeDictSlot.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/UserTypeOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/StringOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Exceptions/PythonExceptions.cs $/IronPython/IronPython_2_6/Src/Tests/Modes/ConsoleHelp.Debug.out $/IronPython/IronPython_2_6/Src/Tests/interop/com/dlrcomlib/paramsinretval.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/method/test_arguments.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/type/test_reachtype.py $/IronPython/IronPython_2_6/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_2_6/Src/Scripts/generate_reflected_calls.py $/IronPython/IronPython_2_6/Src/Scripts/generate_walker.py $/IronPython/IronPython_2_6/Src/Scripts/generate_calls.py $/IronPython/IronPython_2_6/Src/IronPython/GlobalSuppressions.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/PythonCompilerOptions.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/GeneratorRewriter.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/PythonScriptCode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/YieldExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ExecStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/SliceExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/TupleExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AssignmentStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/UnaryExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ListExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/PythonAst.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/PrintStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/OrExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/SuiteStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AssertStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/MemberExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ExpressionStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Lib/iptest/misc_util.py $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Set.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonDictionary.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonModule.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/OutputWriter.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/ObjectAttributesAdapter.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/LongOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/NewTypeMaker.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/PythonType.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/ReflectedGetterSetter.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonInvokeBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/CompatibilityInvokeBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/SlotOrFunction.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonGetIndexBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/Binders.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Debugging/Microsoft.Scripting.Debugging.csproj $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Ast/TypeUtils.cs $/IronPython/IronPython_2_6/Src/Tests/ClrAssembly/ClrAssembly.csproj $/IronPython/IronPython_2_6/Src/Tests/ClrAssembly/Src/methodargs.cs $/IronPython/IronPython_2_6/Config/Signed/App.config $/IronPython/IronPython_2_6/Config/Unsigned/App.config $/IronPython/IronPython_2_6/Src/IronPythonWindowAny/IronPythonWindowAny.csproj $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Microsoft.Scripting.Silverlight/BrowserScriptHost.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/Chiron.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/HttpServer.cs $/IronPython/IronPython_2_6/Src/IronPythonConsoleAny/IronPythonConsoleAny.csproj $/IronPython/IronPython_2_6/Src/IronPythonWindow/IronPythonWindow.csproj $/IronPython/IronPython_2_6/Src/IronPython/Compiler/PythonGlobal.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/LazyCode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ClosureInfo.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/CompilationMode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/PythonGlobalVariableExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ClosureExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/RuntimeScriptCode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/WhileStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/FromImportStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ParenthesisExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/NameExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/VariableKind.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/BreakStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/LambdaExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AugmentedAssignStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ErrorExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/IfStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/GlobalStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/PythonNameBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ImportStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/Node.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/PythonVariable.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/WeakRef.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Importer.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/PythonTypeUserDescriptorSlot.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/OldClass.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/ReflectedProperty.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonDeleteMemberBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/BindingHelpers.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonDeleteIndexBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/MetaPythonObject.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonOperationBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/MetaOldInstance.cs $/IronPython/IronPython_2_6/Src/IronPython/Hosting/Python.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_codecs.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/re.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/socket.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/PointerType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/StructType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/Array.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/INativeType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/SimpleCData.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/ArrayType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/CData.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/SimpleTypeKind.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Debugging/DebugContext.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Debugging/DebuggableLambdaBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Microsoft.Scripting.ExtensionAttribute.csproj $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Compiler/ConstantCheck.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Actions/DynamicObject.cs $/IronPython/IronPython_2_6/Src/Tests/test_traceback.py $/IronPython/IronPython_2_6/Src/Tests/regressions.py $/IronPython/IronPython_2_6/Src/Tests/test_genericmeth.py $/IronPython/IronPython_2_6/Src/Tests/test_stdconsole.py $/IronPython/IronPython_2_6/Src/Tests/RunAgainstCpy.py $/IronPython/IronPython_2_6/Src/Tests/test_superconsole.py $/IronPython/IronPython_2_6/Src/Tests/test_bigint.py $/IronPython/IronPython_2_6/Src/Tests/test_methoddispatch.py $/IronPython/IronPython_2_6/Src/Tests/test_generator.py $/IronPython/IronPython_2_6/Src/Tests/test_numberhash.py $/IronPython/IronPython_2_6/Src/Tests/test_help.py $/IronPython/IronPython_2_6/Src/Tests/test_property.py $/IronPython/IronPython_2_6/Src/Tests/test_dict.py $/IronPython/IronPython_2_6/Src/Tests/test_stdmodules.py $/IronPython/IronPython_2_6/Src/Tests/test_inheritance.py $/IronPython/IronPython_2_6/Src/Tests/test_unicode.py $/IronPython/IronPython_2_6/Src/Tests/test_list.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/type/test_clrtype.py $/IronPython/IronPython_2_6/Tutorial/Tutorial.htm $/IronPython/IronPython_2_6/Src/IronPythonConsole/IronPythonConsole.csproj $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight.csproj $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/Chiron.csproj $/IronPython/IronPython_2_6/Src/IronPythonTest/IronPythonTest.csproj $/IronPython/IronPython_2_6/Src/Scripts/generate_AssemblyTypeNames.py $/IronPython/IronPython_2_6/Src/Scripts/generate_dynamic_instructions.py $/IronPython/IronPython_2_6/Src/IronPython/IronPython.csproj $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ReducableDynamicExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/OnDiskScriptCode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/RunnableScriptCode.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Tokenizer.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Parser.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ConditionalExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ConstantExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/BackQuoteExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/DelStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/BinaryExpression.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/CallExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/Parameter.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AndExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/EmptyStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/DictionaryExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ListComprehensionFor.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/RaiseStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ScopeStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/TryStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/FunctionDefinition.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ReturnStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/SequenceExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/BinaryExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/Arg.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ForStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ContinueStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/GeneratorExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ClassDefinition.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/Expression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/WithStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/PythonReference.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/Statement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/IndexExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ListComprehension.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ListComprehensionIf.cs $/IronPython/IronPython_2_6/Src/IronPython/Modules/Builtin.cs $/IronPython/IronPython_2_6/Src/IronPython/Lib/iptest/assert_util.py $/IronPython/IronPython_2_6/Src/IronPython/Runtime/CodeContext.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/FunctionCode.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonTracebackListener.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/List.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonFunction.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonTuple.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Generator.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Debugging/TracePipeline/TracePipeline.cs $/IronPython/IronPython_2_6/Src/Tests/test_dllsite.py $/IronPython/IronPython_2_6/Src/Tests/test_function.py $/IronPython/IronPython_2_6/Src/Tests/test_cliclass.py $/IronPython/IronPython_2_6/Src/Tests/test_ironmath.py $/IronPython/IronPython_2_6/Src/Tests/test_exceptions.py $/IronPython/IronPython_2_6/Src/Tests/test_namebinding.py $/IronPython/IronPython_2_6/Src/Tests/test_methodbinder1.py $/IronPython/IronPython_2_6/Src/Tests/test_class.py $/IronPython/IronPython_2_6/Src/Tests/test_winforms.py $/IronPython/IronPython_2_6/Src/Tests/test_str.py $/IronPython/IronPython_2_6/Src/Tests/test_importpkg.py $/IronPython/IronPython_2_6/Src/Tests/test_memory.py $/IronPython/IronPython_2_6/Src/Tests/test_ipye.py $/IronPython/IronPython_2_6/Src/Tests/test_complex.py $/IronPython/IronPython_2_6/Src/Tests/Modes/ConsoleHelp.Release.out $/IronPython/IronPython_2_6/Src/Tests/Modes/ConsoleFlags.ps1 $/IronPython/IronPython_2_6/Src/Tests/ClrAssembly/Src/baseclasscs.cs $/IronPython/IronPython_2_6/Src/Tests/ClrAssembly/Src/dynamicobjmodel.cs $/IronPython/IronPython_2_6/Src/Tests/ClrAssembly/Src/indexerdefinitionsvb.vb $/IronPython/IronPython_2_6/Src/Tests/interop/com/apps/excel.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/test_accessibility.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/derivation/test_method_override.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/property/test_indexervb.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Runtime/Scope.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Runtime/DynamicOperations.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Microsoft.Scripting.csproj $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/ErrorSink.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/LanguageOptions.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Runtime/ScopeStorage.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Hosting/ScriptEngine.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Hosting/LanguageSetup.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Hosting/ScriptRuntime.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Hosting/ScriptScope.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Hosting/Providers/HostingHelpers.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/PlatformAdaptationLayer.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Runtime/LanguageContext.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Hosting/ErrorListenerProxy.cs $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/time_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/sys_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/gc_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/nt_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/_locale_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/thread_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/type_related/types_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/type_related/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/type_related/_struct_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/type_related/array_test.py $/IronPython/IronPython_2_6/Src/Scripts/generate_UncollectableCompilationMode.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Utils/ExpressionUtils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Utils/NativeMethods.cs $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_sha256.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_warnings_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/system_namespaces.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_random_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/future_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/math_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_weakref_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/datetime_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/_sha512.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/operator_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/copy_reg_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/re_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/binascii_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/_bytesio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/cStringIO_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/cPickle_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/codecs_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/marshal_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/_fileio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/network_related/__init__.py $/IronPython/IronPython_2_6/Src/Tests/modules/network_related/_ssl_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/network_related/socket_test.py $/IronPython/IronPython_2_6/Src/Tests/encoded_files/cp1019.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/dynamic/dynamic_regressions.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/dynamic/__init__.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/versions/__init__.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/versions/four_dot_zero.py From jdhardy at gmail.com Wed Jan 27 22:37:54 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Wed, 27 Jan 2010 14:37:54 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update In-Reply-To: <138c7c03-501d-4d76-9345-2e313ef18a4f@tk5-exsmh-c101.redmond.corp.microsoft.com> References: <138c7c03-501d-4d76-9345-2e313ef18a4f@tk5-exsmh-c101.redmond.corp.microsoft.com> Message-ID: It's commits like this that I wish had an explanation :). - Jeff On Wed, Jan 27, 2010 at 1:10 PM, wrote: > This is an automated email letting you know that sources > have recently been pushed out. ?You can download these newer > sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63614. > > ADDED SOURCES > ? ? ? ?$/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/ArgumentArray.cs > ? ? ? ... From dinov at microsoft.com Wed Jan 27 22:41:15 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 27 Jan 2010 21:41:15 +0000 Subject: [IronPython] IronPython 2.6 CodePlex Source Update In-Reply-To: References: <138c7c03-501d-4d76-9345-2e313ef18a4f@tk5-exsmh-c101.redmond.corp.microsoft.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD34CA61E5@TK5EX14MBXC116.redmond.corp.microsoft.com> My bad, I forgot the magic marker which includes the commit message. This was just an integration of all the changes from Main that have Gone in over the past few months (which have for the most part had commit messages) to the 2.6 servicing branch. The only differences were to avoid binary breaking changes which might break apps between Main and 2.6. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Jeff Hardy > Sent: Wednesday, January 27, 2010 1:38 PM > To: Discussion of IronPython > Subject: Re: [IronPython] IronPython 2.6 CodePlex Source Update > > It's commits like this that I wish had an explanation :). > > - Jeff > > On Wed, Jan 27, 2010 at 1:10 PM, wrote: > > This is an automated email letting you know that sources > > have recently been pushed out. ?You can download these newer > > sources directly from > http://ironpython.codeplex.com/SourceControl/changeset/view/63614. > > > > ADDED SOURCES > > > ?$/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/ArgumentArr > ay.cs > > ? ? ? ... > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From potti_n at subway.com Thu Jan 28 15:59:28 2010 From: potti_n at subway.com (Neelima Potti) Date: Thu, 28 Jan 2010 09:59:28 -0500 Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 In-Reply-To: References: <00ad01ca9e08$0ed111b0$2c733510$@com> <1A472770E042064698CB5ADC83A12ACD34C94889@TK5EX14MBXC116.redmond.corp.microsoft.com> <001501ca9ecd$d9443290$8bcc97b0$@com> Message-ID: <007801caa02a$7d7439c0$785cad40$@com> Thank you David. That explains the things. We have a .NET application on .NET framework 3.5 where we want to use IronPython for some validations. This application will be eventually migrated to .NET 4.0. So my question is if we develop using IronPython 2.6, when we migrate to .NET 4.0, what are the changes required for Ironpython? Is it only the references that need to be replaced with IronPython 2.6 CTP references or will there be subsequent changes that need to be done? Will there be any changes from development, testing perspective? And other trivial Q: Is IronPython an official Micorsoft dynamic scripting language? Thank you Neelima From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of David DiCato Sent: Tuesday, January 26, 2010 4:58 PM To: Discussion of IronPython Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 The DLR is not exclusively for .NET 4.0, and until recently, it was not part of the framework. Starting with .NET 4.0, core bits of the DLR have been added as a feature. IronPython 2.6 runs on .NET 2.0 SP1 and contains its own distribution of the DLR. The release page refers to this distribution when it mentions the update. On the other hand, IronPython 2.6 CTP for .NET 4.0 Beta 2 does not need to include the DLR core. Hope this clears things up, - David From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti Sent: Tuesday, January 26, 2010 1:24 PM To: 'Discussion of IronPython' Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Thank you Dino.it worked. but I have a Q: http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482. .. Whose release notes say "Updating to the latest version of the DLR"..so doesn't that mean it is .NET framework 4.0 as DLR is for .NET 4.0 http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125 ."IronPython 2.6 CTP for .NET 4.0 Beta 2". In terms of DLR..what is the difference between the above 2 releases. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dino Viehland Sent: Monday, January 25, 2010 4:51 PM To: Discussion of IronPython Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 You need to download the version of IronPython which is built for .NET 4.0: http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125 That'll just work and it'll support interop w/ C# 4.0. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti Sent: Monday, January 25, 2010 1:48 PM To: users at lists.ironpython.com Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Hi, I am new to IronPython.. I have downloaded IronPython from the website http://www.codeplex.com/IronPython lastweek. When I open IronPython Console, it shows IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.3053 I am trying to invoke the Python engine at run time By calling in c# source(.NET 4.0 framework) _runtime = ScriptRuntime.CreateFromConfiguration() When I add Microsoft.Scripting as a Reference to this project, it shows the version as 2.6.911.0 And my app.config has
During runtime, I get the error: An error occurred creating the configuration section handler for microsoft.scripting: Could not load file or assembly 'Microsoft.Scripting, Version=2.6.911.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040 What am I missing here? Is my version wrong or publicKeyToken wrong or?? Any help would be greatly appreciated Thank you NPotti Click here to report this email as spam. -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Thu Jan 28 17:53:25 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Thu, 28 Jan 2010 08:53:25 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <21181df6-1b57-4dc9-bd28-6f54fc940bbb@tk5-exsmh-c101.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63628. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Ast/ExpressionCollectionBuilder.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Hosting/Shell/CommandLine.cs From cenovsky at bakalari.cz Fri Jan 29 00:52:19 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Fri, 29 Jan 2010 00:52:19 +0100 Subject: [IronPython] Compiling .py to .dll to use with Silverlight In-Reply-To: <4B1420C7.8040403@voidspace.org.uk> References: <4B09AC8D.4090207@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD04D2017F@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B1420C7.8040403@voidspace.org.uk> Message-ID: <4B622333.5050809@bakalari.cz> Any update on this issue? I'd like to see it working as it is quite an issue for business apps. For others interested please vote: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25680 -- -- Luk?? Michael Foord wrote: > Dino Viehland wrote: >> I'm not aware of any working example of this. In theory you can do >> it by >> hand by just taking the resulting DLL that gets compiled on the desktop >> and updating all of the assembly versions to be the Silverlight assembly >> versions. That can be done by sending it through ildasm/ilasm. You'd >> need to update all of the IronPython and DLR assemblies as well as >> mscorlib and System all of which have different versions on Silverlight >> vs the desktop CLR. >> > > For the record I tried this and it didn't work for me. The resulting > assembly uses StrongBox (from memory) and possibly other features not > available in CoreCLR. > > I would also love to see a solution to this as import time is a big > factor in the startup of IronPython Silverlight apps and pre-compiled > assemblies would help a lot. > > All the best, > > Michael > >> >> >>> -----Original Message----- >>> From: users-bounces at lists.ironpython.com [mailto:users- >>> bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky >>> Sent: Sunday, November 22, 2009 1:27 PM >>> To: Discussion of IronPython >>> Subject: [IronPython] Compiling .py to .dll to use with Silverlight >>> >>> Hi, >>> I'd like to know status of the $subj. I have found some discussions >>> (e.g. Michael tried to use pyc or >>> http://sdlsdk.codeplex.com/Thread/View.aspx?ThreadId=52207&ANCHOR >>> ) >>> but >>> no working example - is there any? And if not will be any? :-) >>> Thanks. >>> >>> -- >>> -- Luk?? >>> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.ironpython.com >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>> >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> > > From Jimmy.Schementi at microsoft.com Fri Jan 29 01:45:09 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 29 Jan 2010 00:45:09 +0000 Subject: [IronPython] Compiling .py to .dll to use with Silverlight In-Reply-To: <4B622333.5050809@bakalari.cz> References: <4B09AC8D.4090207@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD04D2017F@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B1420C7.8040403@voidspace.org.uk> <4B622333.5050809@bakalari.cz> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920D6BA8@TK5EX14MBXC138.redmond.corp.microsoft.com> No update yet, but I'm planning on looking at it for my PyCon talk ... ~Jimmy > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky > Sent: Thursday, January 28, 2010 3:52 PM > To: Discussion of IronPython > Subject: Re: [IronPython] Compiling .py to .dll to use with Silverlight > > Any update on this issue? I'd like to see it working as it is quite an issue > for business apps. > > For others interested please vote: > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25680 > > -- > -- Luk?? > > > Michael Foord wrote: > > Dino Viehland wrote: > >> I'm not aware of any working example of this. In theory you can do > >> it by hand by just taking the resulting DLL that gets compiled on the > >> desktop and updating all of the assembly versions to be the > >> Silverlight assembly versions. That can be done by sending it > >> through ildasm/ilasm. You'd need to update all of the IronPython and > >> DLR assemblies as well as mscorlib and System all of which have > >> different versions on Silverlight vs the desktop CLR. > >> > > > > For the record I tried this and it didn't work for me. The resulting > > assembly uses StrongBox (from memory) and possibly other features not > > available in CoreCLR. > > > > I would also love to see a solution to this as import time is a big > > factor in the startup of IronPython Silverlight apps and pre-compiled > > assemblies would help a lot. > > > > All the best, > > > > Michael > > > >> > >> > >>> -----Original Message----- > >>> From: users-bounces at lists.ironpython.com [mailto:users- > >>> bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky > >>> Sent: Sunday, November 22, 2009 1:27 PM > >>> To: Discussion of IronPython > >>> Subject: [IronPython] Compiling .py to .dll to use with Silverlight > >>> > >>> Hi, > >>> I'd like to know status of the $subj. I have found some discussions > >>> (e.g. Michael tried to use pyc or > >>> http://sdlsdk.codeplex.com/Thread/View.aspx?ThreadId=52207&ANCHOR > >>> ) > >>> but > >>> no working example - is there any? And if not will be any? :-) > >>> Thanks. > >>> > >>> -- > >>> -- Luk?? > >>> > >>> _______________________________________________ > >>> Users mailing list > >>> Users at lists.ironpython.com > >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >>> > >> _______________________________________________ > >> Users mailing list > >> Users at lists.ironpython.com > >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >> > > > > > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From ddicato at microsoft.com Fri Jan 29 06:29:33 2010 From: ddicato at microsoft.com (David DiCato) Date: Fri, 29 Jan 2010 05:29:33 +0000 Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 In-Reply-To: <007801caa02a$7d7439c0$785cad40$@com> References: <00ad01ca9e08$0ed111b0$2c733510$@com> <1A472770E042064698CB5ADC83A12ACD34C94889@TK5EX14MBXC116.redmond.corp.microsoft.com> <001501ca9ecd$d9443290$8bcc97b0$@com> <007801caa02a$7d7439c0$785cad40$@com> Message-ID: >From a development and testing perspective, few other changes (if any) should be required, and are best addressed on a case-by-case basis. We're definitely trying to minimize the number of breaking changes between the .NET 2.0 and 4.0 builds, especially any that would be visible from pure Python. That being said, some changes are inevitable, so this is not a 100% guarantee. Personally, I would suggest testing against both builds of IronPython well before the migration. Whether or not such testing is feasible, we'd love to hear from you and help sort out any problems you run into. As for your last question, it sort of depends on what you mean by "official" (for example, we don't ship in-the-box with Visual Studio). But by almost any other standard, IronPython and IronRuby are both official Microsoft dynamic languages. Happy scripting! - David From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti Sent: Thursday, January 28, 2010 6:59 AM To: 'Discussion of IronPython' Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Thank you David. That explains the things. We have a .NET application on .NET framework 3.5 where we want to use IronPython for some validations. This application will be eventually migrated to .NET 4.0. So my question is if we develop using IronPython 2.6, when we migrate to .NET 4.0, what are the changes required for Ironpython? Is it only the references that need to be replaced with IronPython 2.6 CTP references or will there be subsequent changes that need to be done? Will there be any changes from development, testing perspective? And other trivial Q: Is IronPython an official Micorsoft dynamic scripting language? Thank you Neelima From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of David DiCato Sent: Tuesday, January 26, 2010 4:58 PM To: Discussion of IronPython Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 The DLR is not exclusively for .NET 4.0, and until recently, it was not part of the framework. Starting with .NET 4.0, core bits of the DLR have been added as a feature. IronPython 2.6 runs on .NET 2.0 SP1 and contains its own distribution of the DLR. The release page refers to this distribution when it mentions the update. On the other hand, IronPython 2.6 CTP for .NET 4.0 Beta 2 does not need to include the DLR core. Hope this clears things up, - David From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti Sent: Tuesday, January 26, 2010 1:24 PM To: 'Discussion of IronPython' Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Thank you Dino...it worked. but I have a Q: http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482... Whose release notes say "Updating to the latest version of the DLR"..so doesn't that mean it is .NET framework 4.0 as DLR is for .NET 4.0 http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125 ..."IronPython 2.6 CTP for .NET 4.0 Beta 2". In terms of DLR..what is the difference between the above 2 releases... From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dino Viehland Sent: Monday, January 25, 2010 4:51 PM To: Discussion of IronPython Subject: Re: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 You need to download the version of IronPython which is built for .NET 4.0: http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125 That'll just work and it'll support interop w/ C# 4.0. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti Sent: Monday, January 25, 2010 1:48 PM To: users at lists.ironpython.com Subject: [IronPython] to invoke ironpython from runtime in .NET framework 4.0 Hi, I am new to IronPython.. I have downloaded IronPython from the website http://www.codeplex.com/IronPython lastweek. When I open IronPython Console, it shows IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.3053 I am trying to invoke the Python engine at run time By calling in c# source(.NET 4.0 framework) _runtime = ScriptRuntime.CreateFromConfiguration() When I add Microsoft.Scripting as a Reference to this project, it shows the version as 2.6.911.0 And my app.config has
During runtime, I get the error: An error occurred creating the configuration section handler for microsoft.scripting: Could not load file or assembly 'Microsoft.Scripting, Version=2.6.911.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040 What am I missing here? Is my version wrong or publicKeyToken wrong or?? Any help would be greatly appreciated Thank you NPotti Click here to report this email as spam. -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Fri Jan 29 17:53:48 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 29 Jan 2010 08:53:48 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <845ee8fb-2144-47f8-8b77-069e22a46e05@tk5-exsmh-c101.redmond.corp.microsoft.com> This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/63647. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/FunctionCode.cs CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1525040 Date: 1/28/2010 3:49:13 PM Fixes a regression in 2.6.1 found by the full test run. This issue is showing up now because of the lazy production of the ASTs. But it?s been there for a while. But here?s what?s happening: First off FunctionCode.GetAlLCode is broken ? it?s losing the list of function code objects by exchanging in curCodeList (which is null) instead of initialCode. This causes us not to flip tracing onto a code object. After fixing that we flip the function codes of more objects which exposes an issue of UpdateDelegate compiling code which causes the creation of more FunctionCode objects. That causes us to re-enter and corrupt our lock which is held while we?re updating the function codes. So now we won?t compile function code objects switching back from tracing on to off just like we don?t when switching from off to on. GetRootCodeNoUpdating was also broken (and would spin forever if we hit this race) although that?s unrelated to the failures we?re seeing (Shelveset: Fix261Regression;REDMOND\dinov | SNAP CheckinId: 10227) From cenovsky at bakalari.cz Fri Jan 29 17:59:50 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Fri, 29 Jan 2010 17:59:50 +0100 Subject: [IronPython] Compiling .py to .dll to use with Silverlight In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920D6BA8@TK5EX14MBXC138.redmond.corp.microsoft.com> References: <4B09AC8D.4090207@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD04D2017F@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B1420C7.8040403@voidspace.org.uk> <4B622333.5050809@bakalari.cz> <1B42307CD4AADD438CDDA2FE1121CC920D6BA8@TK5EX14MBXC138.redmond.corp.microsoft.com> Message-ID: <4B631406.4060806@bakalari.cz> Looking forward to see it! -- -- Luk?? Jimmy Schementi wrote: > No update yet, but I'm planning on looking at it for my PyCon talk ... > > ~Jimmy > > > >> -----Original Message----- >> From: users-bounces at lists.ironpython.com [mailto:users- >> bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky >> Sent: Thursday, January 28, 2010 3:52 PM >> To: Discussion of IronPython >> Subject: Re: [IronPython] Compiling .py to .dll to use with Silverlight >> >> Any update on this issue? I'd like to see it working as it is quite an issue >> for business apps. >> >> For others interested please vote: >> http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25680 >> >> -- >> -- Luk?? >> >> >> Michael Foord wrote: >> >>> Dino Viehland wrote: >>> >>>> I'm not aware of any working example of this. In theory you can do >>>> it by hand by just taking the resulting DLL that gets compiled on the >>>> desktop and updating all of the assembly versions to be the >>>> Silverlight assembly versions. That can be done by sending it >>>> through ildasm/ilasm. You'd need to update all of the IronPython and >>>> DLR assemblies as well as mscorlib and System all of which have >>>> different versions on Silverlight vs the desktop CLR. >>>> >>>> >>> For the record I tried this and it didn't work for me. The resulting >>> assembly uses StrongBox (from memory) and possibly other features not >>> available in CoreCLR. >>> >>> I would also love to see a solution to this as import time is a big >>> factor in the startup of IronPython Silverlight apps and pre-compiled >>> assemblies would help a lot. >>> >>> All the best, >>> >>> Michael >>> >>> >>>> >>>>> -----Original Message----- >>>>> From: users-bounces at lists.ironpython.com [mailto:users- >>>>> bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky >>>>> Sent: Sunday, November 22, 2009 1:27 PM >>>>> To: Discussion of IronPython >>>>> Subject: [IronPython] Compiling .py to .dll to use with Silverlight >>>>> >>>>> Hi, >>>>> I'd like to know status of the $subj. I have found some discussions >>>>> (e.g. Michael tried to use pyc or >>>>> http://sdlsdk.codeplex.com/Thread/View.aspx?ThreadId=52207&ANCHOR >>>>> ) >>>>> but >>>>> no working example - is there any? And if not will be any? :-) >>>>> Thanks. >>>>> >>>>> -- >>>>> -- Luk?? >>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users at lists.ironpython.com >>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>>>> >>>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users at lists.ironpython.com >>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>>> >>>> >>> >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Sun Jan 31 02:21:27 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Sat, 30 Jan 2010 18:21:27 -0700 Subject: [IronPython] Django, __unicode__, and #20366 Message-ID: Hi all, I've got a question regarding __unicode__ and issue #20366[0]. Django explicitly encourages the use of __unicode__ on models[1], which would not be available on IronPython. Also, they have some lazy evaluation functions that depend on differences between str and unicode, and default to using __unicode__. Now, these differences could be worked around in Django, but I wonder if that's the right place for them. I also have no idea how this will play out under 3.0. I'm working around by checking `str is unicode`; I'm not sure there's really a better option. - Jeff [0] http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=20366 [1] http://docs.djangoproject.com/en/1.1/ref/models/instances/#django.db.models.Model.__unicode__ From cenovsky at bakalari.cz Sun Jan 31 20:00:21 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Sun, 31 Jan 2010 20:00:21 +0100 Subject: [IronPython] IronPython 2.6 and Moonlight Message-ID: <4B65D345.40005@bakalari.cz> Hi all, does anybody know why Silverlight app developed in IronPython 2.6 does not work in Moonlight 2? Is it because of SILVERLIGHT_3 flag? Is there any workaround? I tested it with the SL template, Ubuntu 9.10, Firefox 3.5.7, Moonlight 2.0: http://gui-at.cendaweb.cz/SLLinux/ -- -- Luk?? From fuzzyman at voidspace.org.uk Sun Jan 31 20:25:16 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Sun, 31 Jan 2010 19:25:16 +0000 Subject: [IronPython] Django, __unicode__, and #20366 In-Reply-To: References: Message-ID: <4B65D91C.4030902@voidspace.org.uk> On 31/01/2010 01:21, Jeff Hardy wrote: > Hi all, > I've got a question regarding __unicode__ and issue #20366[0]. Django > explicitly encourages the use of __unicode__ on models[1], which would > not be available on IronPython. Also, they have some lazy evaluation > functions that depend on differences between str and unicode, and > default to using __unicode__. Now, these differences could be worked > around in Django, but I wonder if that's the right place for them. There's *unlikely* to be an easy fix in IronPython any time soon, although I would love to be proved wrong. The Django team have *explicitly* said that they are open to patches (or even just bug reports) to make Django compatible with IronPython. > I > also have no idea how this will play out under 3.0. > > Django is not expecting to move to Python 3 for quite some time as I understand it. > I'm working around by checking `str is unicode`; I'm not sure there's > really a better option. > That sounds like a good solution to me. > - Jeff > > > [0] http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=20366 > I still think the partial-fix I suggest in that issue would be much better than the current situation... All the best, Michael > [1] http://docs.djangoproject.com/en/1.1/ref/models/instances/#django.db.models.Model.__unicode__ > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (?BOGUS AGREEMENTS?) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. From dinov at microsoft.com Sun Jan 31 21:14:58 2010 From: dinov at microsoft.com (Dino Viehland) Date: Sun, 31 Jan 2010 20:14:58 +0000 Subject: [IronPython] Django, __unicode__, and #20366 In-Reply-To: <4B65D91C.4030902@voidspace.org.uk> References: <4B65D91C.4030902@voidspace.org.uk> Message-ID: <1A472770E042064698CB5ADC83A12ACD391EE281@TK5EX14MBXC116.redmond.corp.microsoft.com> I'll take a look and see what breaks if we call __unicode__ when it's defined when the user calls str/unicode. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Michael Foord > Sent: Sunday, January 31, 2010 11:25 AM > To: Discussion of IronPython > Subject: Re: [IronPython] Django, __unicode__, and #20366 > > On 31/01/2010 01:21, Jeff Hardy wrote: > > Hi all, > > I've got a question regarding __unicode__ and issue #20366[0]. Django > > explicitly encourages the use of __unicode__ on models[1], which > would > > not be available on IronPython. Also, they have some lazy evaluation > > functions that depend on differences between str and unicode, and > > default to using __unicode__. Now, these differences could be worked > > around in Django, but I wonder if that's the right place for them. > There's *unlikely* to be an easy fix in IronPython any time soon, > although I would love to be proved wrong. The Django team have > *explicitly* said that they are open to patches (or even just bug > reports) to make Django compatible with IronPython. > > > I > > also have no idea how this will play out under 3.0. > > > > > > Django is not expecting to move to Python 3 for quite some time as I > understand it. > > > I'm working around by checking `str is unicode`; I'm not sure there's > > really a better option. > > > > That sounds like a good solution to me. > > > - Jeff > > > > > > [0] > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=20366 > > > I still think the partial-fix I suggest in that issue would be much > better than the current situation... > > All the best, > > Michael > > > [1] > http://docs.djangoproject.com/en/1.1/ref/models/instances/#django.db.mo > dels.Model.__unicode__ > > _______________________________________________ > > Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > -- > http://www.ironpythoninaction.com/ > http://www.voidspace.org.uk/blog > > READ CAREFULLY. By accepting and reading this email you agree, on > behalf of your employer, to release me from all obligations and waivers > arising from any and all NON-NEGOTIATED agreements, licenses, terms-of- > service, shrinkwrap, clickwrap, browsewrap, confidentiality, non- > disclosure, non-compete and acceptable use policies ("BOGUS > AGREEMENTS") that I have entered into with your employer, its partners, > licensors, agents and assigns, in perpetuity, without prejudice to my > ongoing rights and privileges. You further represent that you have the > authority to release me from any BOGUS AGREEMENTS on behalf of your > employer. > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From fuzzyman at voidspace.org.uk Sun Jan 31 21:23:03 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Sun, 31 Jan 2010 20:23:03 +0000 Subject: [IronPython] Django, __unicode__, and #20366 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD391EE281@TK5EX14MBXC116.redmond.corp.microsoft.com> References: <4B65D91C.4030902@voidspace.org.uk> <1A472770E042064698CB5ADC83A12ACD391EE281@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: <4B65E6A7.904@voidspace.org.uk> On 31/01/2010 20:14, Dino Viehland wrote: > I'll take a look and see what breaks if we call __unicode__ when it's defined > when the user calls str/unicode. > > Great. Given that *currently* IronPython will do the wrong thing I can't *imagine* any failures caused by this, but this probably a lack of imagination on my part... All the best, Michael >> -----Original Message----- >> From: users-bounces at lists.ironpython.com [mailto:users- >> bounces at lists.ironpython.com] On Behalf Of Michael Foord >> Sent: Sunday, January 31, 2010 11:25 AM >> To: Discussion of IronPython >> Subject: Re: [IronPython] Django, __unicode__, and #20366 >> >> On 31/01/2010 01:21, Jeff Hardy wrote: >> >>> Hi all, >>> I've got a question regarding __unicode__ and issue #20366[0]. Django >>> explicitly encourages the use of __unicode__ on models[1], which >>> >> would >> >>> not be available on IronPython. Also, they have some lazy evaluation >>> functions that depend on differences between str and unicode, and >>> default to using __unicode__. Now, these differences could be worked >>> around in Django, but I wonder if that's the right place for them. >>> >> There's *unlikely* to be an easy fix in IronPython any time soon, >> although I would love to be proved wrong. The Django team have >> *explicitly* said that they are open to patches (or even just bug >> reports) to make Django compatible with IronPython. >> >> >>> I >>> also have no idea how this will play out under 3.0. >>> >>> >>> >> Django is not expecting to move to Python 3 for quite some time as I >> understand it. >> >> >>> I'm working around by checking `str is unicode`; I'm not sure there's >>> really a better option. >>> >>> >> That sounds like a good solution to me. >> >> >>> - Jeff >>> >>> >>> [0] >>> >> http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=20366 >> >>> >> I still think the partial-fix I suggest in that issue would be much >> better than the current situation... >> >> All the best, >> >> Michael >> >> >>> [1] >>> >> http://docs.djangoproject.com/en/1.1/ref/models/instances/#django.db.mo >> dels.Model.__unicode__ >> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.ironpython.com >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>> >>> >> >> -- >> http://www.ironpythoninaction.com/ >> http://www.voidspace.org.uk/blog >> >> READ CAREFULLY. By accepting and reading this email you agree, on >> behalf of your employer, to release me from all obligations and waivers >> arising from any and all NON-NEGOTIATED agreements, licenses, terms-of- >> service, shrinkwrap, clickwrap, browsewrap, confidentiality, non- >> disclosure, non-compete and acceptable use policies ("BOGUS >> AGREEMENTS") that I have entered into with your employer, its partners, >> licensors, agents and assigns, in perpetuity, without prejudice to my >> ongoing rights and privileges. You further represent that you have the >> authority to release me from any BOGUS AGREEMENTS on behalf of your >> employer. >> >> >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (?BOGUS AGREEMENTS?) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. From jdhardy at gmail.com Sun Jan 31 23:11:27 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Sun, 31 Jan 2010 15:11:27 -0700 Subject: [IronPython] 'Cannot evaluate expression because the code of the current method is optimized.' when debugging IronPython 2.6 Message-ID: Hi, When debugging Python code with Visual Studio, I'm getting 'Cannot evaluate expression because the code of the current method is optimized.' for just about everything when trying to inspect Python objects, even when running with -X:Debug. This is with IronPython 2.6. I remember this working at some point in the past, so I'm wondering if there is something else I need to do (like a different -X: switch) to be able to view the values on those objects. - Jeff From jdhardy at gmail.com Sun Jan 31 23:35:19 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Sun, 31 Jan 2010 15:35:19 -0700 Subject: [IronPython] 'Cannot evaluate expression because the code of the current method is optimized.' when debugging IronPython 2.6 In-Reply-To: References: Message-ID: Hmm, this is only an issue when using System.Diagnostics.Debugger.Break(); as soon as I hit F10 all of the variables become available. - Jeff On Sun, Jan 31, 2010 at 3:11 PM, Jeff Hardy wrote: > Hi, > When debugging Python code with Visual Studio, I'm getting 'Cannot > evaluate expression because the code of the current method is > optimized.' for just about everything when trying to inspect Python > objects, even when running with -X:Debug. This is with IronPython 2.6. > > I remember this working at some point in the past, so I'm wondering if > there is something else I need to do (like a different -X: switch) to > be able to view the values on those objects. > > - Jeff > From curt at hagenlocher.org Sun Jan 31 23:54:02 2010 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Sun, 31 Jan 2010 14:54:02 -0800 Subject: [IronPython] 'Cannot evaluate expression because the code of the current method is optimized.' when debugging IronPython 2.6 In-Reply-To: References: Message-ID: Yes, this is true in the debugger in general and not just for IronPython. You have to step back to a managed function after hitting the Break. On Sun, Jan 31, 2010 at 2:35 PM, Jeff Hardy wrote: > Hmm, this is only an issue when using > System.Diagnostics.Debugger.Break(); as soon as I hit F10 all of the > variables become available. > > - Jeff > > On Sun, Jan 31, 2010 at 3:11 PM, Jeff Hardy wrote: > > Hi, > > When debugging Python code with Visual Studio, I'm getting 'Cannot > > evaluate expression because the code of the current method is > > optimized.' for just about everything when trying to inspect Python > > objects, even when running with -X:Debug. This is with IronPython 2.6. > > > > I remember this working at some point in the past, so I'm wondering if > > there is something else I need to do (like a different -X: switch) to > > be able to view the values on those objects. > > > > - Jeff > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Sun Jan 31 23:58:26 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Sun, 31 Jan 2010 15:58:26 -0700 Subject: [IronPython] 'Cannot evaluate expression because the code of the current method is optimized.' when debugging IronPython 2.6 In-Reply-To: References: Message-ID: Cool. Thanks, Curt. - Jeff On Sun, Jan 31, 2010 at 3:54 PM, Curt Hagenlocher wrote: > Yes, this is true in the debugger in general and not just for IronPython. > You have to step back to a managed function after hitting the Break. > > On Sun, Jan 31, 2010 at 2:35 PM, Jeff Hardy wrote: >> >> Hmm, this is only an issue when using >> System.Diagnostics.Debugger.Break(); as soon as I hit F10 all of the >> variables become available. >> >> - Jeff >> >> On Sun, Jan 31, 2010 at 3:11 PM, Jeff Hardy wrote: >> > Hi, >> > When debugging Python code with Visual Studio, I'm getting 'Cannot >> > evaluate expression because the code of the current method is >> > optimized.' for just about everything when trying to inspect Python >> > objects, even when running with -X:Debug. This is with IronPython 2.6. >> > >> > I remember this working at some point in the past, so I'm wondering if >> > there is something else I need to do (like a different -X: switch) to >> > be able to view the values on those objects. >> > >> > - Jeff >> > >> _______________________________________________ >> Users mailing list >> Users at lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >