From empirebuilder at gmail.com Mon Mar 1 13:18:50 2010 From: empirebuilder at gmail.com (Dody Gunawinata) Date: Mon, 1 Mar 2010 04:18:50 -0800 Subject: [IronPython] IronPython for asp.net integration with Visual Studio 2008 In-Reply-To: References: Message-ID: <8cd017b81003010418l2049180fn324d553eef11402f@mail.gmail.com> Get this drop http://ironpython.net/download/aspnet-201001 for IronPython 2.6 support. On Thu, Feb 25, 2010 at 7:41 AM, Pablo Dalmazzo wrote: > Hi there, > > I have Visual Studio 2008 Professional SP1 installed. I also have > IronPython v. 2.6 installed. In the C:\Program files\IronPython folder there > is an IronPython.dll file version 2.6.911.0. But when I create an asp.netwebsite project in IronPython in Visual Studio, the IronPython.dll file > created in the bin folder is listed as version 2.0.0.0 and in the web.config > file as > > "IronPython, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" > > is this the last version VS2008 supports or is there any way to update VS > to create the website with a 2.6.911.0 version instead? > > Greetings > > ------------------------------ > Hotmail es confiable. Con autenticaci?n de remitentes y filtros Anti-Spam > mejorados un 80% . Ver m?s. > > _______________________________________________ > 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 markjoel60 at gmail.com Mon Mar 1 14:53:48 2010 From: markjoel60 at gmail.com (Mark Grice) Date: Mon, 1 Mar 2010 08:53:48 -0500 Subject: [IronPython] CreateScriptSourceFrom ... database? Message-ID: <294f1ba41003010553m4fa4d78av4738f229c19c19cf@mail.gmail.com> I have a series of Python scripts that I am running from my C# program. I use the CreateScriptSourceFromFile() method to read in the file and execute it. I would like, however, to move these scripts to a databse file -- simply a large memo/text field containing the full script, and then execute them from there instead of the file (to simplify my management). I thought I could just convert the python file to a string, save it, and then bring it back with CreateScriptSourceFromString() instead. But the parser doesn't seem to like the embedded \r, \n. \t, etc. Is there a simple way of accomplishing this that is escaping me? Has anyone ever done anything similar? Thanks! -Mark Grice -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablodalma93 at hotmail.com Mon Mar 1 15:04:20 2010 From: pablodalma93 at hotmail.com (Pablo Dalmazzo) Date: Mon, 1 Mar 2010 11:04:20 -0300 Subject: [IronPython] Are there plans for IronPython in Action II? Message-ID: Michael? _________________________________________________________________ Hotmail en tu celu ?f?cil y sin descargas! Ingres? a mobile.live.com y env?a correos donde est?s http://www.windowsliveformobile.com/es/hotmail/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at shamirlens.co.uk Mon Mar 1 15:27:31 2010 From: michael at shamirlens.co.uk (Michael M Mason) Date: Mon, 1 Mar 2010 14:27:31 -0000 Subject: [IronPython] [Newbie] Problem with Getting Started code Message-ID: <2B7AA81C577B0942A14C2B388867E2C70E0952@harry.shamirlens.co.uk> I've been trying the Getting Started example code (from http://ironpython.net/browser/gettingstarted.html) but I get an error message. The message is:- TypeError: unsupported operand type(s) for +: 'NoneType' and 'function' and the code that causes it is this (marked line appears to be the cause of the error):- Can anyone explain what the correct code would be? -- Michael From fuzzyman at voidspace.org.uk Mon Mar 1 15:39:29 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Mon, 01 Mar 2010 14:39:29 +0000 Subject: [IronPython] Are there plans for IronPython in Action II? In-Reply-To: References: Message-ID: <4B8BD1A1.2060803@voidspace.org.uk> On 01/03/2010 14:04, Pablo Dalmazzo wrote: > Michael? > Hello Pablo, There is very little in IronPython in Action that is actually incorrect, but both Silverlight 3 and IronPython 2.6 have been released since the book was published. An update to the book would probably remove most of the references to IronPython 1 and use the new techniques for creating Silverlight applications that Jimmy has been blogging about. The old ways still work however (and indeed we're still deploying apps that way in my current job - but since Jimmy's presentation at PyCon I may try and get us to switch). There are also some exciting new features in 2.6 that I would cover. The substance of the book would remain unchanged. The short answer though is that I have offered to do an updated edition for my publisher but they haven't yet taken me up on the offer. Sales have been going pretty well, but they probably have remaining stock of the first edition. All the best, Michael Foord > > > ------------------------------------------------------------------------ > Internet Explorer 8 es m?s seguro -?Probalo gratis! Hac? clic aqu? > > > > _______________________________________________ > 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 tcronin at asrclkrec.com Mon Mar 1 17:33:27 2010 From: tcronin at asrclkrec.com (Cronin, Ted) Date: Mon, 1 Mar 2010 08:33:27 -0800 Subject: [IronPython] Updated Website but no updated gestalt Message-ID: So, the new IronPython Browser page looks nice, there is a lot more concentrated here on this page, but the gestalt version is still at gestalt-20091120, so will there be an updated version that supports our own assemblies uploaded so that we can take advantage of this methodology, hopefully soon. Ted Cronin ACR ValueGIS (951) 955-0487 -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Mon Mar 1 17:54:16 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Mon, 1 Mar 2010 08:54:16 -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/64370. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/Interpreter.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/LightCompiler.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/InterpretedFrame.cs $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Chiron/Properties/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/NewTypeMaker.cs $/IronPython/IronPython_Main/Src/AssemblyVersion.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/TryStatement.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Properties/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/LightLambda.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/Runtime/Microsoft.Scripting.Debugging/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Properties/AssemblyInfo.cs CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1610067 Date: 2/26/2010 7:08:23 PM Bug 26249 - Cannot inherit from a clrtype class Title is required. NewTypeMaker.IsInstanceType was not dealing with types created by clrtype.py Enabled associated tests that were disabled, and added some more for super and isinstance (Shelveset: clrtype;REDMOND\sborde | SNAP CheckinId: m11274) From merllab at microsoft.com Mon Mar 1 21:07:22 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Mon, 1 Mar 2010 12:07:22 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <026b4034-5ef8-4d51-bcce-43cb92c4506a@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/64372. MODIFIED SOURCES $/IronPython/IronPython_2_6/Src/AssemblyVersion.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Properties/AssemblyInfo.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.Debugging/AssemblyInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Properties/AssemblyInfo.cs From dinov at microsoft.com Mon Mar 1 22:20:30 2010 From: dinov at microsoft.com (Dino Viehland) Date: Mon, 1 Mar 2010 21:20:30 +0000 Subject: [IronPython] CreateScriptSourceFrom ... database? In-Reply-To: <294f1ba41003010553m4fa4d78av4738f229c19c19cf@mail.gmail.com> References: <294f1ba41003010553m4fa4d78av4738f229c19c19cf@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD393BCFC2@TK5EX14MBXC118.redmond.corp.microsoft.com> Are the \r and \n getting escaped somehow? There should be no problem if the new lines are in the string the same as they would be in a file. Your solution generally sounds like the right and easy one to go with. If you wanted a more complicated solution you could replace the PlatformAdaptionLayer class with your own which would read "files" from the database. That would enable things like "import foo" to work where the user could define a "foo" script in the database. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Mark Grice Sent: Monday, March 01, 2010 5:54 AM To: users at lists.ironpython.com Subject: [IronPython] CreateScriptSourceFrom ... database? I have a series of Python scripts that I am running from my C# program. I use the CreateScriptSourceFromFile() method to read in the file and execute it. I would like, however, to move these scripts to a databse file -- simply a large memo/text field containing the full script, and then execute them from there instead of the file (to simplify my management). I thought I could just convert the python file to a string, save it, and then bring it back with CreateScriptSourceFromString() instead. But the parser doesn't seem to like the embedded \r, \n. \t, etc. Is there a simple way of accomplishing this that is escaping me? Has anyone ever done anything similar? Thanks! -Mark Grice -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablodalma93 at hotmail.com Tue Mar 2 13:06:40 2010 From: pablodalma93 at hotmail.com (Pablo Dalmazzo) Date: Tue, 2 Mar 2010 09:06:40 -0300 Subject: [IronPython] vb.net webform in asp.net website problem reloaded Message-ID: Hi there, So, I finally got the dlls files made with IronPython to work in asp.net by updating to the last version of IronPython and compiling them with clr.CompileModules() . So I thought, there is nothing now to stop me from using IronPython for comercial projects. Now I work with other people who might keep using VB.NET in the projects for a while. So in IronPython 2.0 I found a trick to have both .vb and .py files in the same website, by creating an ironpython website and placing the .vb files in the App_Folder . But this doesnt work anymore with IronPython 2.6 and its web.config example , so now I can have modules imported from dlls made in IronPython but I cant have both .vb and .py files in the same website. Any workaround for this? Any idea? We could create 2 different projects (one in VB.NET and one in IronPython) , and when we want to unify them we convert the .vb and .py to dlls files, but the problem with this is we cant use Visual Source Safe and if I edit some of my co-workers files there is no control of version at all Greetings, Pablo. _________________________________________________________________ ?Cu?nto espacio necesit?s para guardar tus emails? Con Hotmail ten?s 5GB y puede ampliarse a m?s. http://www.descubrewindowslive.com/hotmail/almacenamiento.asp -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablodalma93 at hotmail.com Tue Mar 2 14:21:32 2010 From: pablodalma93 at hotmail.com (Pablo Dalmazzo) Date: Tue, 2 Mar 2010 10:21:32 -0300 Subject: [IronPython] Compiling with clr.CompileModules, is this a bug or it's supposed to work like this? Message-ID: Hi, when I compile a .py file to dll by using clr.CompileModules(), if the .py file has actually the extension .aspx.py instead of .py , the module in the dll created can't be imported. Now if you do that in VB.NET (compiling a .aspx.vb file to dll) it works. Is that not supposed to be allowed in IronPython or is it a bug? Greetings, Pablo _________________________________________________________________ Hotmail tiene actualizaci?n autom?tica de la bandeja de entrada, para que ning?n email se escape de tu vista. Ver m?s http://www.descubrewindowslive.com/hotmail/actualizacion-guardado.asp -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Tue Mar 2 17:54:11 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Tue, 2 Mar 2010 08:54:11 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <1b7357b1-160d-416c-a7b9-3da36ba6b8d8@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/64385. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/BinaryExpression.Generated.cs $/IronPython/IronPython_Main/Src/IronPython/Modules/Builtin.cs $/IronPython/IronPython_Main/Src/IronPython/Modules/sys.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_bytesio.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_fileio.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/PointerType.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/CFuncPtr.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/Field.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/_ctypes.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/CFuncPtrType.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/Array.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/ModuleOps.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/SimpleType.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/ArrayType.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/StructType.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_collections.cs $/IronPython/IronPython_Main/Config/Unsigned/App.config $/IronPython/IronPython_Main/Config/Signed/App.config $/IronPython/IronPython_Main/Src/App.config $/IronPython/IronPython_Main/Src/IronPython.Modules/_struct.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/cmath.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_winreg.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/array.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_random.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/cPickle.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/copy_reg.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/FutureBuiltins.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/ByteOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/ByteArray.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Bytes.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/MetaOldInstance.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/BindingHelpers.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/Binding/PythonBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/TypeInfo.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/PythonType.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonTuple.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/OldInstance.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/TypeCache.Generated.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/ObjectOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/ComplexOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/IntOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/IntOps.Generated.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/FloatOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/DecimalOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/StringOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/LongOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/BoolOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/LiteralParser.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/StringFormatter.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/List.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Converter.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonFile.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/socket.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/InstructionFactory.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Ast/ConstantExpression.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Hosting/Shell/ConsoleHost.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Generation/CompilerHelpers.cs $/IronPython/IronPython_Main/Src/IronPythonTest/IronPythonTest.csproj $/IronPython/IronPython_Main/Src/IronPythonTest/IronMath.cs $/IronPython/IronPython_Main/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_Main/Src/IronPythonTest/BinderTest.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/operator.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/nt.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/math.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/marshal.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/IterTools.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/datetime.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Tokenizer.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Parser.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Math/BigIntegerV2.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Math/BigIntegerV4.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Utils/MathUtils.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Properties/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Math/Complex64.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/AssemblyInfo.cs $/IronPython/IronPython_Main/Src/Tests/modules/misc/math_test.py $/IronPython/IronPython_Main/Src/Tests/compat/common.py $/IronPython/IronPython_Main/Src/Scripts/generate_typecache.py $/IronPython/IronPython_Main/Src/Scripts/generate_ops.py $/IronPython/IronPython_Main/Src/Tests/test_ironmath.py $/IronPython/IronPython_Main/Src/Tests/test_methodbinder1.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1613348 Date: 3/1/2010 11:49:15 PM Switches underlying implementation of bigint and complex to System.Numerics Also fixes a couple CodePlex bugs: - 25893: in throws wrong exception - 25895: coerce(, ) doesn't throw (Shelveset: numerics;REDMOND\ddicato | SNAP CheckinId: 10430) -------------------------------------------------------------------------------- Changeset Id: 1612839 Date: 3/1/2010 4:00:48 PM Updates the version numbers for 2.6.1 in the main branch. This is a superset of the version number update that went into the servicing branch for the 2.6.1 RC, with a couple exceptions: - IronPython.wxs: updated product version with today?s date instead of 02/02 so that this version is distinct from the RC. - DLR-related AssemblyInfo.cs: updated AssemblyVersion to 1.0.0.0. This was not necessary on my last update to the servicing branch because it had already been changed to 1.0.0.0 In general, any DLR AssemblyVersion changed from 0.9.6.20 to 1.0.0.0 and Assembly[File/Informational]Version from 1.0 to 1.0.1. Also updated any IronPython DisplayName to ?IronPython 2.6.1? and Version to 2.6.10920.0 and re-generated ETScenarios\ETScenariosCSLinq[V4].dll. (Shelveset: 261VersionNumbers;REDMOND\ddicato | SNAP CheckinId: 10426) -------------------------------------------------------------------------------- Changeset Id: 1612839 Date: 3/1/2010 4:00:48 PM Updates the version numbers for 2.6.1 in the main branch. This is a superset of the version number update that went into the servicing branch for the 2.6.1 RC, with a couple exceptions: - IronPython.wxs: updated product version with today?s date instead of 02/02 so that this version is distinct from the RC. - DLR-related AssemblyInfo.cs: updated AssemblyVersion to 1.0.0.0. This was not necessary on my last update to the servicing branch because it had already been changed to 1.0.0.0 In general, any DLR AssemblyVersion changed from 0.9.6.20 to 1.0.0.0 and Assembly[File/Informational]Version from 1.0 to 1.0.1. Also updated any IronPython DisplayName to ?IronPython 2.6.1? and Version to 2.6.10920.0 and re-generated ETScenarios\ETScenariosCSLinq[V4].dll. (Shelveset: 261VersionNumbers;REDMOND\ddicato | SNAP CheckinId: 10426) From dfugate at microsoft.com Tue Mar 2 22:15:38 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Tue, 2 Mar 2010 21:15:38 +0000 Subject: [IronPython] Running the IronPython tests (on Mono) In-Reply-To: <1266966503.5756.3.camel@calcifer> References: <1266821392.4977.3.camel@calcifer> <4B342496A3EFEB48839E10BB4BF5964C3DB72768@TK5EX14MBXC122.redmond.corp.microsoft.com> <1266862082.4977.7.camel@calcifer> <7CEEC335D70FFE4B957737DDE836F51B34857BC6@TK5EX14MBXC125.redmond.corp.microsoft.com> <1266966503.5756.3.camel@calcifer> Message-ID: <7CEEC335D70FFE4B957737DDE836F51B35824748@TK5EX14MBXC123.redmond.corp.microsoft.com> Just checked a couple of our releases and harness.py is available with at least 2.6.1 RC1 and 2.6 Beta 2 (July 2009). Maybe you're using IronPython 2.0.x? The exact harness.py instructions (for Windows at least) are: 1. Download and unzip the source zip file 2. Build the Debug configuration of Src\IronPython.sln 3. Build the Debug configuration of Src\Tests\ClrAssembly\ClrAssembly.csproj and the release configuration of Src\Tests\DlrComLibrary\DlrComLibrary.sln 4. set IRONPYTHONPATH to CPython 2.6's stdlib 5. cd into 'Src\Tests' and call '..\..\Bin\Debug\ipy.exe -X:FullFrames harness.py' Doing the above under Windows 2008 R2, we get all the way to modules.io_related.codecs_test before any failures are observed. Dave -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of C.J. Adams-Collier Sent: Tuesday, February 23, 2010 3:08 PM To: Discussion of IronPython Subject: Re: [IronPython] Running the IronPython tests (on Mono) I don't see a harness.py. Maybe the snapshot I'm working from is too old. 8/5/2009 On Mon, 2010-02-22 at 21:59 +0000, Dave Fugate wrote: > For IronPython, try running: > IronPython\Tests> ipy.exe harness.py > > I haven't tried running this recently, but it did work about a year ago... > > Dave > > -----Original Message----- > From: users-bounces at lists.ironpython.com > [mailto:users-bounces at lists.ironpython.com] On Behalf Of C.J. > Adams-Collier > Sent: Monday, February 22, 2010 1:08 PM > To: Discussion of IronPython > Subject: Re: [IronPython] Running the IronPython tests (on Mono) > > Thanks Tomas, > > I recall doing a bit of work on this with Ivan last year. I think we got most of them performing reasonably. I don't remember whether we re-wrote the batch files in ruby or bash or whatever... we should probably do that at some point... > > Cheers, > > C.J. > > > On Mon, 2010-02-22 at 17:19 +0000, Tomas Matousek wrote: > > To run IronRuby tests you can use Merlin\Main\Languages\Ruby\Scripts\irtests.rb. > > But it won't run on Linux as is due to dependencies on various batch files. We should replace all of them by Ruby scripts in future so that it runs on Linux as well. > > > > Tomas > > > > -----Original Message----- > > From: users-bounces at lists.ironpython.com > > [mailto:users-bounces at lists.ironpython.com] On Behalf Of C.J. > > Adams-Collier > > Sent: Sunday, February 21, 2010 10:50 PM > > To: users at lists.ironpython.com > > Subject: [IronPython] Running the IronPython tests (on Mono) > > > > Hey folks, > > > > I'm trying hard to shoehorn IronPython (and IronRuby) into Ubuntu Lucid, the next long-term stable release. They're asking if I can get the test suite to execute as part of the package build script. > > > > Can someone walk me through running the test suite? > > > > The one caveat is that this is a snapshot from git as of 08/05/2009. > > I've been working on this version since then in order to get it packaged up. It shouldn't take quite so long to get releases packaged up in the future. > > > > Let me know if you need a shell on ironruby.colliertech.org and when/if you can help me walk through getting the test suite going. > > > > Thanks in advance, > > > > C.J. > > > > _______________________________________________ > > 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 Wed Mar 3 17:53:10 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 3 Mar 2010 08:53:10 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <315b8c21-78b3-4197-a949-496bd07a8558@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/64414. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPythonConsoleAny/IronPythonConsoleAny.csproj $/IronPython/IronPython_Main/Src/IronPythonConsole/IronPythonConsole.csproj $/IronPython/IronPython_Main/Src/IronPython.Modules/IronPython.Modules.csproj $/IronPython/IronPython_Main/Src/IronPython/IronPython.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Microsoft.Dynamic.csproj $/IronPython/IronPython_Main/Src/IronPythonWindowAny/IronPythonWindowAny.csproj $/IronPython/IronPython_Main/Src/IronPythonWindow/IronPythonWindow.csproj $/IronPython/IronPython_Main/Src/IronPythonTest/IronPythonTest.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Debugging/Microsoft.Scripting.Debugging.csproj $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Microsoft.Scripting.csproj From merllab at microsoft.com Wed Mar 3 21:08:00 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 3 Mar 2010 12:08:00 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <2e8031f6-4d58-47a7-96f0-5469ed11f8c0@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/64416. MODIFIED SOURCES $/IronPython/IronPython_2_6/Src/IronPython.Modules/IronPython.Modules.csproj $/IronPython/IronPython_2_6/Src/IronPython/IronPython.csproj $/IronPython/IronPython_2_6/Src/IronPythonConsole/IronPythonConsole.csproj $/IronPython/IronPython_2_6/Src/IronPythonConsoleAny/IronPythonConsoleAny.csproj $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Microsoft.Dynamic.csproj $/IronPython/IronPython_2_6/Src/IronPythonTest/IronPythonTest.csproj $/IronPython/IronPython_2_6/Src/IronPythonWindow/IronPythonWindow.csproj $/IronPython/IronPython_2_6/Src/IronPythonWindowAny/IronPythonWindowAny.csproj $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Debugging/Microsoft.Scripting.Debugging.csproj $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Microsoft.Scripting.csproj From steve at mcneel.com Thu Mar 4 03:59:44 2010 From: steve at mcneel.com (Steve Baer) Date: Wed, 3 Mar 2010 18:59:44 -0800 Subject: [IronPython] DocString for properties Message-ID: Hi guys, I've been struggling with getting at the documentation string for a static property defined in one of my C# classes from IronPython. Say my C# class had a public static property that returned an int. public class MyClass { ///My property summary public static int MyProperty{ get{return 1;} } } If I use the following python script to call help, I get help information on the int data type (I can understand why this is happening). help( MyLib.MyClass.MyProperty ) Thanks, -Steve From dinov at microsoft.com Thu Mar 4 04:27:17 2010 From: dinov at microsoft.com (Dino Viehland) Date: Thu, 4 Mar 2010 03:27:17 +0000 Subject: [IronPython] DocString for properties In-Reply-To: References: Message-ID: <1A472770E042064698CB5ADC83A12ACD393D095E@TK5EX14MBXC118.redmond.corp.microsoft.com> Steve wote: > Hi guys, > I've been struggling with getting at the documentation string for a > static > property defined in one of my C# classes from IronPython. > > Say my C# class had a public static property that returned an int. > public class MyClass > { > ///My property summary > public static int MyProperty{ get{return 1;} } > } > > If I use the following python script to call help, I get help > information on > the int data type (I can understand why this is happening). > > help( MyLib.MyClass.MyProperty ) You'll need to go into the type's dictionary and pull out the actual descriptor object and access the __doc__ attribute from there. For example: >>> import System >>> print System.Environment.__dict__['CurrentDirectory'].__doc__ Gets or sets the fully qualified path of the current working directory. Get: CurrentDirectory() -> str Set: CurrentDirectory() = value >>> From steve at mcneel.com Thu Mar 4 04:34:29 2010 From: steve at mcneel.com (Steve Baer) Date: Wed, 3 Mar 2010 19:34:29 -0800 Subject: [IronPython] DocString for properties In-Reply-To: <1A472770E042064698CB5ADC83A12ACD393D095E@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <1A472770E042064698CB5ADC83A12ACD393D095E@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <7F6F00F51F8546AE828FAB2588CF9B60@mcneel.com> That works great! Thanks Dino. -Steve -------------------------------------------------- From: "Dino Viehland" Sent: Wednesday, March 03, 2010 7:27 PM To: "Discussion of IronPython" Subject: Re: [IronPython] DocString for properties > Steve wote: >> Hi guys, >> I've been struggling with getting at the documentation string for a >> static >> property defined in one of my C# classes from IronPython. >> >> Say my C# class had a public static property that returned an int. >> public class MyClass >> { >> ///My property summary >> public static int MyProperty{ get{return 1;} } >> } >> >> If I use the following python script to call help, I get help >> information on >> the int data type (I can understand why this is happening). >> >> help( MyLib.MyClass.MyProperty ) > > You'll need to go into the type's dictionary and pull out the actual > descriptor object and access the __doc__ attribute from there. For > example: > >>>> import System >>>> print System.Environment.__dict__['CurrentDirectory'].__doc__ > > Gets or sets the fully qualified path of the current > working > directory. > > > Get: CurrentDirectory() -> str > Set: CurrentDirectory() = value > >>>> > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > From avinhan at gmail.com Thu Mar 4 10:56:02 2010 From: avinhan at gmail.com (Aravin) Date: Thu, 4 Mar 2010 17:56:02 +0800 Subject: [IronPython] Redirecting Input Message-ID: Hi all, In my application, I have a shell like control for users to interact with tan embedded python engine. When the user enters some command and presses , I use, _engine.CreateScriptSourceFromString(code, SourceCodeKind .InteractiveCode).Execute(_globalScope); to execute the command. I have redirected the output so that any output would be shown in my shell control. I would like to know how to redirect input so that when a command contains, for e.g., "a = raw_input("Enter a value: ")", I can prompt users to enter the value in my shell itself. I also need to pause the execution till the users enter some value and press . Can someone show me how to accomplish this? Thanks, Aravin -------------- next part -------------- An HTML attachment was scrubbed... URL: From markjoel60 at gmail.com Thu Mar 4 17:04:29 2010 From: markjoel60 at gmail.com (Mark Grice) Date: Thu, 4 Mar 2010 11:04:29 -0500 Subject: [IronPython] CreateScriptSourceFrom ... database? Message-ID: <294f1ba41003040804m2c6b6ea0hb6b139c6a6596904@mail.gmail.com> Dino, Thanks for the reply. Actually, I did have an error in the string, and I fixed that. But the real problem seems to be with the "Import" statement. I put my common methods in a file that I then import into the various Python script files. It makes sense that the script would error, since, as a string, it doesn't know how to handle the import. It seems like the only way to go would be to replace the PlatformAdaptionLayer class as you suggest -- but to be honest, I don't even know where to begin with that. Dino Viehland Wrote: >Are the \r and \n getting escaped somehow? There should be no problem if the new lines are in the string the same as they would be in a file. > >Your solution generally sounds like the right and easy one to go with. If you wanted a more complicated solution you could replace the PlatformAdaptionLayer class >with your own which would read "files" from the database. That would enable things like "import foo" to work where the user could define a "foo" script in the database. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Thu Mar 4 18:57:51 2010 From: dinov at microsoft.com (Dino Viehland) Date: Thu, 4 Mar 2010 17:57:51 +0000 Subject: [IronPython] CreateScriptSourceFrom ... database? In-Reply-To: <294f1ba41003040804m2c6b6ea0hb6b139c6a6596904@mail.gmail.com> References: <294f1ba41003040804m2c6b6ea0hb6b139c6a6596904@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD393D5116@TK5EX14MBXC118.redmond.corp.microsoft.com> Replacing the PAL definitely isn't very obvious. First you need to subclass ScriptHost and override the PlatformAdaptationLayer property to return your subclass of the PAL. There's lots of file system related APIs on the PAL class that you'll want to override and redirect to the database. Then you create a ScriptRuntimeSetup object to create the script runtime - and on this you set the HostType property to the type of your ScriptHost. The DLR will then create an instance of you ScriptHost and get the PAL from it. An example of this is the Silverlight host: http://ironpython.codeplex.com/SourceControl/changeset/view/64416#760498 has the ScriptHost and PAL and then the ScriptRuntimeSetup gets created over in DynamicEngine.cs: http://ironpython.codeplex.com/SourceControl/changeset/view/64416#944508 From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Mark Grice Sent: Thursday, March 04, 2010 8:04 AM To: users at lists.ironpython.com Subject: Re: [IronPython] CreateScriptSourceFrom ... database? Dino, Thanks for the reply. Actually, I did have an error in the string, and I fixed that. But the real problem seems to be with the "Import" statement. I put my common methods in a file that I then import into the various Python script files. It makes sense that the script would error, since, as a string, it doesn't know how to handle the import. It seems like the only way to go would be to replace the PlatformAdaptionLayer class as you suggest -- but to be honest, I don't even know where to begin with that. Dino Viehland Wrote: >Are the \r and \n getting escaped somehow? There should be no problem if the new lines are in the string the same as they would be in a file. > >Your solution generally sounds like the right and easy one to go with. If you wanted a more complicated solution you could replace the PlatformAdaptionLayer class >with your own which would read "files" from the database. That would enable things like "import foo" to work where the user could define a "foo" script in the database. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfugate at microsoft.com Thu Mar 4 21:37:20 2010 From: dfugate at microsoft.com (dfugate at microsoft.com) Date: Thu, 4 Mar 2010 12:37:20 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <43be866e-b8af-4ed0-96ee-3d53d5101645@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/64458. ADDED SOURCES $/IronPython/IronPython_2_6/Src/Tests/modules/array_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha512.py $/IronPython/IronPython_2_6/Src/Tests/modules/_fileio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_ssl_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_bytesio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_namespaces.py $/IronPython/IronPython_2_6/Src/Tests/modules/_warnings_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha256.py $/IronPython/IronPython_2_6/Src/Tests/test_binascii.py $/IronPython/IronPython_2_6/Src/Tests/test_copy_reg.py $/IronPython/IronPython_2_6/Src/Tests/test_codecs.py $/IronPython/IronPython_2_6/Src/Tests/test_cPickle.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/TypeExtensions.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/Runtime/DynamicRuntimeHostingProvider.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/CustomOldClassDictionary.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AstGenerator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ArrayGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SavableGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/DictionaryGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/Scripts/generate_SharedGlobalAllocator.py $/IronPython/IronPython_2_6/Src/Tests/test_cStringIO.py $/IronPython/IronPython_2_6/Src/Tests/test_datetime.py $/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_interpret_sanity.py $/IronPython/IronPython_2_6/Src/Tests/test_locale.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_nt.py $/IronPython/IronPython_2_6/Src/Tests/test_operator.py $/IronPython/IronPython_2_6/Src/Tests/test_random.py $/IronPython/IronPython_2_6/Src/Tests/test_re.py $/IronPython/IronPython_2_6/Src/Tests/test_socket.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_thread.py $/IronPython/IronPython_2_6/Src/Tests/test_time.py $/IronPython/IronPython_2_6/Src/Tests/test_weakref.py MODIFIED SOURCES $/IronPython/IronPython_2_6/Src/Tests/modules/array_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha512.py $/IronPython/IronPython_2_6/Src/Tests/modules/_fileio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_ssl_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_bytesio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_namespaces.py $/IronPython/IronPython_2_6/Src/Tests/modules/_warnings_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha256.py $/IronPython/IronPython_2_6/Src/Tests/test_binascii.py $/IronPython/IronPython_2_6/Src/Tests/test_copy_reg.py $/IronPython/IronPython_2_6/Src/Tests/test_codecs.py $/IronPython/IronPython_2_6/Src/Tests/test_cPickle.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/TypeExtensions.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/Runtime/DynamicRuntimeHostingProvider.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/CustomOldClassDictionary.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AstGenerator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ArrayGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SavableGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/DictionaryGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/Scripts/generate_SharedGlobalAllocator.py $/IronPython/IronPython_2_6/Src/Tests/test_cStringIO.py $/IronPython/IronPython_2_6/Src/Tests/test_datetime.py $/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_interpret_sanity.py $/IronPython/IronPython_2_6/Src/Tests/test_locale.py $/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/Runtime/Microsoft.Scripting.Core/Properties/ExtensionAssemblyInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Properties/AssemblyInfo.cs $/IronPython/IronPython_2_6/Src/IronPython/Hosting/PythonCommandLine.cs $/IronPython/IronPython_2_6/Src/IronPython/Hosting/Python.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/Properties/AssemblyInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Properties/AssemblyInfo.cs $/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_nt.py $/IronPython/IronPython_2_6/Src/Tests/test_operator.py $/IronPython/IronPython_2_6/Src/Tests/test_random.py $/IronPython/IronPython_2_6/Src/Tests/test_re.py $/IronPython/IronPython_2_6/Src/Tests/test_socket.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_thread.py $/IronPython/IronPython_2_6/Src/Tests/test_time.py $/IronPython/IronPython_2_6/Src/Tests/test_weakref.py $/IronPython/IronPython_2_6/Readme.html $/IronPython/IronPython_2_6/Src/AssemblyVersion.cs From dfugate at microsoft.com Thu Mar 4 23:23:23 2010 From: dfugate at microsoft.com (dfugate at microsoft.com) Date: Thu, 4 Mar 2010 14:23:23 -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/64462. DELETED SOURCES $/IronPython/IronPython_2_6/Src/Tests/modules/array_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha512.py $/IronPython/IronPython_2_6/Src/Tests/modules/_fileio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_ssl_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_bytesio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_namespaces.py $/IronPython/IronPython_2_6/Src/Tests/modules/_warnings_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha256.py $/IronPython/IronPython_2_6/Src/Tests/test_binascii.py $/IronPython/IronPython_2_6/Src/Tests/test_codecs.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/TypeExtensions.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/Runtime/DynamicRuntimeHostingProvider.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.cs $/IronPython/IronPython_2_6/Src/Tests/test_copy_reg.py $/IronPython/IronPython_2_6/Src/Tests/test_cPickle.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/CustomOldClassDictionary.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AstGenerator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ArrayGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SavableGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/DictionaryGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/Scripts/generate_SharedGlobalAllocator.py $/IronPython/IronPython_2_6/Src/Tests/test_cStringIO.py $/IronPython/IronPython_2_6/Src/Tests/test_datetime.py $/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_interpret_sanity.py $/IronPython/IronPython_2_6/Src/Tests/test_locale.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_nt.py $/IronPython/IronPython_2_6/Src/Tests/test_operator.py $/IronPython/IronPython_2_6/Src/Tests/test_random.py $/IronPython/IronPython_2_6/Src/Tests/test_re.py $/IronPython/IronPython_2_6/Src/Tests/test_socket.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_thread.py $/IronPython/IronPython_2_6/Src/Tests/test_time.py $/IronPython/IronPython_2_6/Src/Tests/test_weakref.py From drken567 at gmail.com Thu Mar 4 23:29:59 2010 From: drken567 at gmail.com (Ken MacDonald) Date: Thu, 4 Mar 2010 17:29:59 -0500 Subject: [IronPython] Mouse events in Iron Python - implement flyover help???? Message-ID: <3468cae11003041429r4f9fcbbex7b152e36a0dfc509@mail.gmail.com> AddPreviewMouseMoveHandler Hi, Found reference to the above while going thru MSDN. It appears that this is an implementation of what I always called a 'hover' event, correct? The examples didn't make it too clear how to attach this, say, to a button in an ipy/xaml application. We'd love to be able to hover on a button and pop up something like "flyover help", perhaps after a short delay, or get to a context menu with a right-click, or...... Anyone had any luck being able to get ipy/xaml to do this, or implementing any type of hovering effect with a mouse? Thanks, Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfugate at microsoft.com Thu Mar 4 23:35:33 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Thu, 4 Mar 2010 22:35:33 +0000 Subject: [IronPython] IronPython 2.6 CodePlex Source Update In-Reply-To: References: Message-ID: <7CEEC335D70FFE4B957737DDE836F51B3582A70D@TK5EX14MBXC123.redmond.corp.microsoft.com> Please ignore this and the last "IronPython 2.6 CodePlex Source Update" message. We're working through a couple of issues with our automated source updates to CodePlex. Thanks, Dave -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of dfugate at microsoft.com Sent: Thursday, March 04, 2010 2:23 PM To: users at lists.ironpython.com Subject: [IronPython] IronPython 2.6 CodePlex Source Update 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/64462. DELETED SOURCES $/IronPython/IronPython_2_6/Src/Tests/modules/array_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha512.py $/IronPython/IronPython_2_6/Src/Tests/modules/_fileio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_ssl_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_bytesio_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_namespaces.py $/IronPython/IronPython_2_6/Src/Tests/modules/_warnings_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/_sha256.py $/IronPython/IronPython_2_6/Src/Tests/test_binascii.py $/IronPython/IronPython_2_6/Src/Tests/test_codecs.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/TypeExtensions.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/Runtime/DynamicRuntimeHostingProvider.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.cs $/IronPython/IronPython_2_6/Src/Tests/test_copy_reg.py $/IronPython/IronPython_2_6/Src/Tests/test_cPickle.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instruction.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/DynamicInstructions.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/CustomOldClassDictionary.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AstGenerator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/ArrayGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SavableGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/SharedGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/DictionaryGlobalAllocator.cs $/IronPython/IronPython_2_6/Src/Scripts/generate_SharedGlobalAllocator.py $/IronPython/IronPython_2_6/Src/Tests/test_cStringIO.py $/IronPython/IronPython_2_6/Src/Tests/test_datetime.py $/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_interpret_sanity.py $/IronPython/IronPython_2_6/Src/Tests/test_locale.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_nt.py $/IronPython/IronPython_2_6/Src/Tests/test_operator.py $/IronPython/IronPython_2_6/Src/Tests/test_random.py $/IronPython/IronPython_2_6/Src/Tests/test_re.py $/IronPython/IronPython_2_6/Src/Tests/test_socket.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_thread.py $/IronPython/IronPython_2_6/Src/Tests/test_time.py $/IronPython/IronPython_2_6/Src/Tests/test_weakref.py _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From seawolf2913 at gmail.com Fri Mar 5 04:17:58 2010 From: seawolf2913 at gmail.com (David Nichols) Date: Thu, 4 Mar 2010 22:17:58 -0500 Subject: [IronPython] Problems translating from C# Message-ID: <5dd0fabb1003041917p4de25878h469f0d3f543c3513@mail.gmail.com> Hi Everyone- I've used Python for a while and I understand the basic concepts of OOP, but I'm new to .NET and C#. I'm trying to automate a 3D CAD package called Alibre so I can generate 300+ assemblies and export them to an industry standard format. I've been looking through their C# sample code for two days now and I understand most of it, I can translate a good portion of it, (IronPython in Action arrived three days ago :), but there is on line in particular that I can't figure out. Here's a snippet of the C# example file. I can post the whole thing if needed. //# starts comments I've added in. ..... using AlibreX ..... private void btnBrowse_Click(object sender, EventArgs e) { IADSession objSession; //Holds Alibre Session Object IADDesignSession designSession; //Holds Alibre Design Session object IADPhysicalProperties designProps; //Holds Physical Properties object ..... OpenFileDialog ofd = new OpenFileDialog(); //# Opens a dialog box so you can enter the name of an existing part file. ofd.Title = "Select File"; ofd.Filter = "Alibre Part|*.AD_PRT"; if (ofd.ShowDialog() == DialogResult.OK) { txtFilePath.Text = ofd.FileName; if (rootObj == null) //# rootObj is the Root Object for controlling Alibre Design { OpenAlibre(); //Call to method which checks to see if there is running instance of Alibre Design //# This method, defined further down in the file, attaches to a running instance of the program, or starts a new instance. //# In either case, rootObj is created and attached to it. } objSession = rootObj.OpenFile(txtFilePath.Text); //# Creates an instance of IADSession from the rootObj if (objSession.SessionType == ADObjectSubType.AD_PART) //# As long as the Session is attached to a part... { //# THIS IS THE LINE I CAN'T TRANSLATE!!! designSession = (IADDesignSession)objSession; //Set Design Session Object to be the Session you opened //# I think it's creating an instance of IADDesignSession based on the objSession (see code line below) and I can't figure out how to do it. //# designSession = objSession obviously leaves me two references to the same Session Object. //# I've done dir(objSession) and I don't see a method to create a DesignSession instance. //# Any ideas?? designProps = designSession.PhysicalProperties(ADAccuracySetting.AD_HIGH); //Set Design Properties object with the Physical Properties of the Part ..... Thanks in Advance Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From nishant.mittal19 at gmail.com Fri Mar 5 04:24:37 2010 From: nishant.mittal19 at gmail.com (Nishant Mittal) Date: Fri, 5 Mar 2010 08:54:37 +0530 Subject: [IronPython] Problem in Reading IronPython Script Message-ID: Hi All Please let me know how to read ironpython script or call function using C# Regards Nishant -------------- next part -------------- An HTML attachment was scrubbed... URL: From nishant.mittal19 at gmail.com Fri Mar 5 04:53:05 2010 From: nishant.mittal19 at gmail.com (Nishant Mittal) Date: Fri, 5 Mar 2010 09:23:05 +0530 Subject: [IronPython] How to call IronPython Script from C# Message-ID: Hi All Can anybody give an idea. How to call IronPython Script from C# Regards Nishant -------------- next part -------------- An HTML attachment was scrubbed... URL: From avinhan at gmail.com Fri Mar 5 04:53:05 2010 From: avinhan at gmail.com (Aravin) Date: Fri, 5 Mar 2010 11:53:05 +0800 Subject: [IronPython] Problems translating from C# In-Reply-To: <5dd0fabb1003041917p4de25878h469f0d3f543c3513@mail.gmail.com> References: <5dd0fabb1003041917p4de25878h469f0d3f543c3513@mail.gmail.com> Message-ID: Hi Dave, In your code you are declaring designSession as an interface of IADDesignSession: IADDesignSession designSession; The line, designSession = (IADDesignSession)objSession; , is simply casting objSession into the interface IADDesignSession so that in C# you can access its members, given that objSession implements that interface. Since python is a dynamic language, you dont need to cast objects to access their members. So you can even do this, if your sure objSession indeed implements the IADDesignSession interface. designProps = objSession.PhysicalProperties(ADAccuracySetting.AD_HIGH); I believe that since PhysicalProperties is a function defined in IADDesignSession interface, you might be able to call it like this too, from import IADDesignSession designProps = IADDesignSession.PhysicalProperties(objSession, ADAccuracySetting.AD_HIGH); hope this helps. Aravin On Fri, Mar 5, 2010 at 11:17 AM, David Nichols wrote: > Hi Everyone- > I've used Python for a while and I understand the basic concepts of OOP, > but I'm new to .NET and C#. I'm trying to automate a 3D CAD package called > Alibre so I can generate 300+ assemblies and export them to an industry > standard format. I've been looking through their C# sample code for two days > now and I understand most of it, I can translate a good portion of it, > (IronPython in Action arrived three days ago :), but there is on line in > particular that I can't figure out. > > Here's a snippet of the C# example file. I can post the whole thing if > needed. //# starts comments I've added in. > ..... > using AlibreX > ..... > private void btnBrowse_Click(object sender, EventArgs e) > { > IADSession objSession; //Holds Alibre Session > Object > IADDesignSession designSession; //Holds Alibre Design > Session object > IADPhysicalProperties designProps; //Holds Physical > Properties object > ..... > OpenFileDialog ofd = new OpenFileDialog(); //# Opens a dialog > box so you can enter the name of an existing part file. > ofd.Title = "Select File"; > ofd.Filter = "Alibre Part|*.AD_PRT"; > > if (ofd.ShowDialog() == DialogResult.OK) > { > txtFilePath.Text = ofd.FileName; > > if (rootObj == null) //# rootObj is the Root Object for > controlling Alibre Design > { > OpenAlibre(); //Call to method which checks to see if > there is running instance of Alibre Design > //# This method, defined further > down in the file, attaches to a running instance of the program, or starts a > new instance. > //# In either case, rootObj is > created and attached to it. > } > objSession = rootObj.OpenFile(txtFilePath.Text); //# > Creates an instance of IADSession from the rootObj > > if (objSession.SessionType == ADObjectSubType.AD_PART) //# > As long as the Session is attached to a part... > { > //# THIS IS THE LINE I CAN'T TRANSLATE!!! > designSession = > (IADDesignSession)objSession; //Set Design Session Object to > be the Session you opened > //# I think it's creating an instance of > IADDesignSession based on the objSession (see code line below) and I can't > figure out how to do it. > //# designSession = objSession obviously leaves me two > references to the same Session Object. > //# I've done dir(objSession) and I don't see a method > to create a DesignSession instance. > //# Any ideas?? > > designProps = > designSession.PhysicalProperties(ADAccuracySetting.AD_HIGH); //Set Design > Properties object with the Physical Properties of the Part > > ..... > > Thanks in Advance > Dave > > > _______________________________________________ > 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 qiuyingbo at sohu.com Fri Mar 5 05:54:47 2010 From: qiuyingbo at sohu.com (qiuyingbo at sohu.com) Date: Fri, 05 Mar 2010 04:54:47 GMT Subject: [IronPython] Will 2.6.1 implement ssl module? Message-ID: <1267764887.29110c068a6d4fd09ae03452bd5f899c.qiuyingbo@sohu.com> I notice that 2.6.1rc1 is still broken. http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25026 http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24266 From dinov at microsoft.com Fri Mar 5 06:29:47 2010 From: dinov at microsoft.com (Dino Viehland) Date: Fri, 5 Mar 2010 05:29:47 +0000 Subject: [IronPython] Will 2.6.1 implement ssl module? In-Reply-To: <1267764887.29110c068a6d4fd09ae03452bd5f899c.qiuyingbo@sohu.com> References: <1267764887.29110c068a6d4fd09ae03452bd5f899c.qiuyingbo@sohu.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD393DA434@TK5EX14MBXC118.redmond.corp.microsoft.com> Maybe. I've been working on it the past couple of days. I'm working my way through the test cases and hopefully will be able to get them all working - but I'm making good progress even if it's been going slower than I'd have liked. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of qiuyingbo at sohu.com > Sent: Thursday, March 04, 2010 8:55 PM > To: users > Subject: [IronPython] Will 2.6.1 implement ssl module? > > I notice that 2.6.1rc1 is still broken. > > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25026 > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24266 > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From cenovsky at bakalari.cz Fri Mar 5 10:39:38 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Fri, 05 Mar 2010 10:39:38 +0100 Subject: [IronPython] Problem in Reading IronPython Script In-Reply-To: References: Message-ID: <4B90D15A.80500@bakalari.cz> Look here: http://www.ironpython.info/index.php/Contents -- -- Luk?s( Nishant Mittal wrote: > Hi All > > > Please let me know how to read ironpython script or call function using C# > > > Regards > Nishant > ------------------------------------------------------------------------ > > _______________________________________________ > 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 Fri Mar 5 17:53:38 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 5 Mar 2010 08:53:38 -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/64485. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/PythonConstantExpression.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/AstMethods.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/PythonAst.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/Node.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/AttributesDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Modules/Builtin.cs $/IronPython/IronPython_Main/Src/IronPython/Modules/sys.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/PythonScriptCode.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/FunctionCode.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Exceptions/TraceBack.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/SuiteStatement.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Math/BigIntegerV4.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonTracebackListener.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Debugging/TracePipeline/TracePipeline.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_Main/Src/Tests/modules/system_related/sys_test.py $/IronPython/IronPython_Main/Src/Tests/modules/system_related/thread_test.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1645923 Date: 3/4/2010 12:00:40 PM Fixes a number of issues w/ tracing. ?X:Tracing isn?t working correctly. One problem is that we?re maintaining 2 sets of frames when ?X:Frames is passed. The two lists are now unified between sys._getframe and tracing so the tracing support now uses the same FunctionStack. We also now remove the PushFrame/PopFrame from our tracing methods and instead always create the frames via the tracing infrastructure. We also now hide the $... variables from the tracing. Also fixes f_globals so that it returns the correct globals dictionary by pulling it out of the $globalContext variable. Fixes an issue w/ empty modules so that they always include some line number information so we don?t hit an assert (http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25994) Also fixes IronPython so it blocks for threads creating via the threading module. We need to look for threading._shutdown and call it if it exists. Also re-enables an optimization for evaluating expressions which happen to be constant. (Shelveset: TracingFixesFinal;REDMOND\dinov | SNAP CheckinId: 10453) From merllab at microsoft.com Fri Mar 5 21:10:06 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 5 Mar 2010 12:10:06 -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/64493. MODIFIED SOURCES $/IronPython/IronPython_2_6/Src/AssemblyVersion.cs $/IronPython/IronPython_2_6/Readme.html $/IronPython/IronPython_2_6/Src/IronPython/Hosting/Python.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/Properties/AssemblyInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Properties/AssemblyInfo.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/IronPython/Hosting/PythonCommandLine.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Debugging/AssemblyInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Properties/AssemblyInfo.cs From Jimmy.Schementi at microsoft.com Sat Mar 6 10:32:44 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sat, 6 Mar 2010 09:32:44 +0000 Subject: [IronPython] [ANN] Python in the browser (update) Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920F61D455@TK5EX14MBXC134.redmond.corp.microsoft.com> Gestalt (codename for the new IronPython in Silverlight integration) has been updated to what I showed at PyCon 2010: either reference http://gestalt.ironpython.net/dlr-20100305.js in a HTML page, or download the redistributable package to develop locally (http://ironpython.net/browser/gestalt-20100305.zip), and then you can write Python in the browser like so: Resources: Python in the browser: http://ironpython/browser/ o Getting Started: http://ironpython.net/browser/gettingstarted.html o Documentation: http://ironpython.net/browser/docs.html PyCon 2010 talk: http://blog.jimmy.schementi.com/2010/03/pycon-2010-python-in-browser.html Note: this redistributable package will be moved into the normal IronPython releases, in the Silverlight directory; these "snapshot of the sources" releases are just a convenience until that happens. Also, for every IronPython release, a new version will be uploaded to gestalt.ironpython.net (ipy-2.6.1.js, for example). ~Jimmy From Jimmy.Schementi at microsoft.com Sat Mar 6 10:44:10 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sat, 6 Mar 2010 09:44:10 +0000 Subject: [IronPython] [Newbie] Problem with Getting Started code In-Reply-To: <2B7AA81C577B0942A14C2B388867E2C70E0952@harry.shamirlens.co.uk> References: <2B7AA81C577B0942A14C2B388867E2C70E0952@harry.shamirlens.co.uk> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920F61D486@TK5EX14MBXC134.redmond.corp.microsoft.com> > I've been trying the Getting Started example code (from > http://ironpython.net/browser/gettingstarted.html) but I get an error > message. The message is:- > > TypeError: unsupported operand type(s) for +: 'NoneType' and 'function' > > and the code that causes it is this (marked line appears to be the cause of > the error):- > > > > > Can anyone explain what the correct code would be? Sorry for the confusion; that was recently changed to: document.button.events.onclick += button_onclick This is because the following is ambiguous as to which is an event and which is a property (and Silverlight doesn't provide a reliable way to distinguish the two): document.button.onclick document.button.foo So a new "events" method has been added to "HtmlObject", which allows for hooking arbitrary events. The documentation will be updated shortly. Note: you'll have to use the latest bits to see this behavior; previous builds you'd have to do it the long way: from System import EventHandler from System.Windows.Browser import HtmlEventArgs document.button.AttachEvent("onclick", EventHandler[HtmlEventArgs](button_onclick)) ~Jimmy From pablodalma93 at hotmail.com Sat Mar 6 15:52:19 2010 From: pablodalma93 at hotmail.com (Pablo Dalmazzo) Date: Sat, 6 Mar 2010 11:52:19 -0300 Subject: [IronPython] IronPython for asp.net and codefiles Message-ID: Hi there, now I got to work the dlls and I did a small app. which turns my asp.net .py codefile into 2 pieces, a .py codefile which makes only functions calls to a dll with the actual logic code. But I was wondering why IronPython for asp.net was designed without having in mind to allow the .aspx files to be tied with dlls for the sourcecode, for allowing obfuscation just like it's possible to make in VB.NET or C#. Or may be it just wasnt easy at all to do that for IronPython? Is the technical explanation too complicated or may I know about it? Is there information about this somewhere? Greetins, Pablo _________________________________________________________________ ?Cu?nto espacio necesit?s para guardar tus emails? Con Hotmail ten?s 5GB y puede ampliarse a m?s. http://www.descubrewindowslive.com/hotmail/almacenamiento.asp -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcronin at asrclkrec.com Sun Mar 7 00:20:07 2010 From: tcronin at asrclkrec.com (Cronin, Ted) Date: Sat, 6 Mar 2010 15:20:07 -0800 Subject: [IronPython] [ANN] Python in the browser (update) In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920F61D455@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <1B42307CD4AADD438CDDA2FE1121CC920F61D455@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: Cool, thanks Jimmy ________________________________________ From: users-bounces at lists.ironpython.com [users-bounces at lists.ironpython.com] On Behalf Of Jimmy Schementi [Jimmy.Schementi at microsoft.com] Sent: Saturday, March 06, 2010 1:32 AM To: Discussion of IronPython Cc: Hans Hugli; Nishant Kothary; Joshua Allen Subject: [IronPython] [ANN] Python in the browser (update) Gestalt (codename for the new IronPython in Silverlight integration) has been updated to what I showed at PyCon 2010: either reference http://gestalt.ironpython.net/dlr-20100305.js in a HTML page, or download the redistributable package to develop locally (http://ironpython.net/browser/gestalt-20100305.zip), and then you can write Python in the browser like so: Resources: Python in the browser: http://ironpython/browser/ o Getting Started: http://ironpython.net/browser/gettingstarted.html o Documentation: http://ironpython.net/browser/docs.html PyCon 2010 talk: http://blog.jimmy.schementi.com/2010/03/pycon-2010-python-in-browser.html Note: this redistributable package will be moved into the normal IronPython releases, in the Silverlight directory; these "snapshot of the sources" releases are just a convenience until that happens. Also, for every IronPython release, a new version will be uploaded to gestalt.ironpython.net (ipy-2.6.1.js, for example). ~Jimmy _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From zhichao.hong at gmail.com Sun Mar 7 15:52:39 2010 From: zhichao.hong at gmail.com (Zhichao Hong) Date: Sun, 7 Mar 2010 08:52:39 -0600 Subject: [IronPython] Failed to install IronPython 2.6.1 rc1 for .NET 4.0 RC1 Message-ID: <3fea10111003070652o3459736fobdbcf689571c7d3c@mail.gmail.com> I have downloaded the 2.6.1 rc1 for .NET 4.0 RC1. The .NET 4.0 RC is installed by the vs2010 RC installation. The ironpython msi failed to install. I have searched the mailing list for related issues. It looks like I have to run mscorsvw.exe -i to install the .NET runtime optimization service. I then tried manually install it and the mscorsvw.exe fails completely. I cannot find it in either the device manager or services list. I then generate a full install log for ironpython to dig in the details. And it complains that ngen fails: ExecNetFx: Error 0x80070002: failed to execute Ngen command: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe install "C:\Program Files\IronPython 2.6 for .NET 4.0 RC\Microsoft.Scripting.dll" /queue:1 Action 8:31:54: Rollback. Rolling back action: Rollback: Publishing product information Rollback: Publishing Product Features I am puzzled now why it tries to use ngen from v2.0 instead of v4.0. Since this is a clean install of .NET 4.0. The ngen.exe does not even exists in the v2.0.50727 directory. Any help? -Zhichao Zhichao Hong, CSDP zhichao.hong at computer.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From djlawler at aol.com Sun Mar 7 18:22:16 2010 From: djlawler at aol.com (djlawler) Date: Sun, 7 Mar 2010 09:22:16 -0800 (PST) Subject: [IronPython] Programming a package in c# (heirarchical modules) Message-ID: <27809285.post@talk.nabble.com> I've been working on a port of PyCrypto to IronPython. Are there any pointers on how to properly program an external 'package' that has heirarchical modules in it? I know that this is easy in python. I know that I can create modules in c# for use in IronPython using the PythonModule attribute, but these seem to be limited to __builtin__ modules, and also do not seem to support nested or heirarchical modules (like Crypto.Hash.MD4). Any comments or pointers would be welcome. See http://stackoverflow.com/questions/2365661/how-to-create-a-package-in-c-for-use-in-ironpython for more information on what I'm asking. Thanks, David -- View this message in context: http://old.nabble.com/Programming-a-package-in-c--%28heirarchical-modules%29-tp27809285p27809285.html Sent from the IronPython mailing list archive at Nabble.com. From idan at cloudshare.com Mon Mar 8 06:55:53 2010 From: idan at cloudshare.com (Idan Zaltzberg) Date: Mon, 8 Mar 2010 07:55:53 +0200 Subject: [IronPython] Suspending threads Message-ID: <40f5d030b2cbaa1267e3de2d271ab711@mail.gmail.com> Hi, I would like to write a code the suspends all "other" threads, does something and then resumes them. Similar to what the GC does when its running (only I don?t do it for garbage collection). Obviously, I want only the threads I started to suspend and not to change the state of the interpreters threads. Is there a way to do this in IronPython? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Mon Mar 8 13:31:49 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Mon, 08 Mar 2010 12:31:49 +0000 Subject: [IronPython] Silverlight: UnicodeEncodeError not defined and other encoding issues Message-ID: <4B94EE35.7080605@voidspace.org.uk> Hey all, Using Silverlight 2.6.1 RC: NameError: global name UnicodeEncodeError is not defined Oops (and a problem for us). Also: 'some string'.encode('latin-1') results in: LookupError: unknown encoding: latin-1 If I then add the codecs and encodings standard library modules to our application I get the following exception: AttributeError: 'module' object has no attribute 'latin_1_encode' The error is in line 17 of the encodings/latin_1.py module: encode = codecs.latin_1_encode This unfortunately kills a fair bit of Python code and means I'm going to have to rewrite a chunk of the library we're using. :-( Thanks Michael Foord -- 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 michael at shamirlens.co.uk Mon Mar 8 16:05:14 2010 From: michael at shamirlens.co.uk (Michael M Mason) Date: Mon, 8 Mar 2010 15:05:14 -0000 Subject: [IronPython] [Newbie] Problem with Getting Started code In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920F61D486@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <2B7AA81C577B0942A14C2B388867E2C70E0952@harry.shamirlens.co.uk> <1B42307CD4AADD438CDDA2FE1121CC920F61D486@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: <2B7AA81C577B0942A14C2B388867E2C70E0AE2@harry.shamirlens.co.uk> Jimmy Schementi wrote on 06 March 2010 at 09:44:- > Michael M Mason wrote:- >> I've been trying the Getting Started example code (from >> http://ironpython.net/browser/gettingstarted.html) but I get >> an error message... [snip] >> Can anyone explain what the correct code would be? > > Sorry for the confusion; that was recently changed to: > > document.button.events.onclick += button_onclick Many thanks, Jimmy! I'm a complete novice, and it's a bit discouraging if you can't get the basic "Hello World" program to work... -- Michael From curt at hagenlocher.org Mon Mar 8 16:13:11 2010 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Mon, 8 Mar 2010 07:13:11 -0800 Subject: [IronPython] Suspending threads In-Reply-To: <40f5d030b2cbaa1267e3de2d271ab711@mail.gmail.com> References: <40f5d030b2cbaa1267e3de2d271ab711@mail.gmail.com> Message-ID: IronPython doesn't have "its own" threads; it runs on whatever thread it's called on. The .NET Thread class has methods Suspend ( http://msdn.microsoft.com/en-us/library/system.threading.thread.suspend.aspx) and Resume ( http://msdn.microsoft.com/en-us/library/system.threading.thread.resume.aspx). These are deprecated and dangerous and all-around a bad idea. If you give a little more detail about what you're trying to accomplish, perhaps someone can suggest an alternative approach. On Sun, Mar 7, 2010 at 9:55 PM, Idan Zaltzberg wrote: > Hi, > > I would like to write a code the suspends all "other" threads, does > something and then resumes them. Similar to what the GC does when its > running (only I don?t do it for garbage collection). > > Obviously, I want only the threads I started to suspend and not to change > the state of the interpreters threads. > > Is there a way to do this in IronPython? > > > > Thanks. > > _______________________________________________ > 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 Mon Mar 8 18:05:59 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 8 Mar 2010 10:05:59 -0700 Subject: [IronPython] Programming a package in c# (heirarchical modules) In-Reply-To: <27809285.post@talk.nabble.com> References: <27809285.post@talk.nabble.com> Message-ID: Hi David, I looked into this some more, and I made some errors in my SO answer that I'll correct later (sorry!). When building PyCrypto, it builds & installs .pyd files into the necessary folders; I assumed that it built one monolithic DLL (a strategy used by other modules), but it doesn't. When looking for Crypto.Hash.MD4, CPython will find and load Crypto\Hash\MD4.pyd. I had forgotten how .pyd files were used. I don't know if IronPython supports this technique; I've only used the monolithic DLL approach, so your current solution may be the correct one. - Jeff On Sun, Mar 7, 2010 at 10:22 AM, djlawler wrote: > > I've been working on a port of PyCrypto to IronPython. ?Are there any > pointers on how to properly program an external 'package' that has > heirarchical modules in it? ?I know that this is easy in python. ?I know > that I can create modules in c# for use in IronPython using the PythonModule > attribute, but these seem to be limited to __builtin__ modules, and also do > not seem to support nested or heirarchical modules (like Crypto.Hash.MD4). > > Any comments or pointers would be welcome. ?See > http://stackoverflow.com/questions/2365661/how-to-create-a-package-in-c-for-use-in-ironpython > for more information on what I'm asking. > > Thanks, > David > -- > View this message in context: http://old.nabble.com/Programming-a-package-in-c--%28heirarchical-modules%29-tp27809285p27809285.html > Sent from the IronPython mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > From dfugate at microsoft.com Mon Mar 8 18:09:07 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Mon, 8 Mar 2010 17:09:07 +0000 Subject: [IronPython] Failed to install IronPython 2.6.1 rc1 for .NET 4.0 RC1 In-Reply-To: <3fea10111003070652o3459736fobdbcf689571c7d3c@mail.gmail.com> References: <3fea10111003070652o3459736fobdbcf689571c7d3c@mail.gmail.com> Message-ID: <96F8AA58D9F50A4CAFD1DCA93C99232C0CC8BD@TK5EX14MBXC123.redmond.corp.microsoft.com> You're running Windows XP, right? Thanks, Dave From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Zhichao Hong Sent: Sunday, March 07, 2010 6:53 AM To: users at lists.ironpython.com Subject: [IronPython] Failed to install IronPython 2.6.1 rc1 for .NET 4.0 RC1 I have downloaded the 2.6.1 rc1 for .NET 4.0 RC1. The .NET 4.0 RC is installed by the vs2010 RC installation. The ironpython msi failed to install. I have searched the mailing list for related issues. It looks like I have to run mscorsvw.exe -i to install the .NET runtime optimization service. I then tried manually install it and the mscorsvw.exe fails completely. I cannot find it in either the device manager or services list. I then generate a full install log for ironpython to dig in the details. And it complains that ngen fails: ExecNetFx: Error 0x80070002: failed to execute Ngen command: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe install "C:\Program Files\IronPython 2.6 for .NET 4.0 RC\Microsoft.Scripting.dll" /queue:1 Action 8:31:54: Rollback. Rolling back action: Rollback: Publishing product information Rollback: Publishing Product Features I am puzzled now why it tries to use ngen from v2.0 instead of v4.0. Since this is a clean install of .NET 4.0. The ngen.exe does not even exists in the v2.0.50727 directory. Any help? -Zhichao Zhichao Hong, CSDP zhichao.hong at computer.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Mon Mar 8 18:10:23 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Mon, 08 Mar 2010 17:10:23 +0000 Subject: [IronPython] Programming a package in c# (heirarchical modules) In-Reply-To: References: <27809285.post@talk.nabble.com> Message-ID: <4B952F7F.1030501@voidspace.org.uk> Hey guys, I'm probably missing the point - but why not just use .NET namespaces? Or even (did someone suggest this) write the raw classes in C# and then compose them into the correct package heirarchy with a pure Python wrapper. This latter approach is probably the one I would take. Michael On 08/03/2010 17:05, Jeff Hardy wrote: > Hi David, > I looked into this some more, and I made some errors in my SO answer > that I'll correct later (sorry!). > > When building PyCrypto, it builds& installs .pyd files into the > necessary folders; I assumed that it built one monolithic DLL (a > strategy used by other modules), but it doesn't. When looking for > Crypto.Hash.MD4, CPython will find and load Crypto\Hash\MD4.pyd. I had > forgotten how .pyd files were used. > > I don't know if IronPython supports this technique; I've only used the > monolithic DLL approach, so your current solution may be the correct > one. > > - Jeff > > On Sun, Mar 7, 2010 at 10:22 AM, djlawler wrote: > >> I've been working on a port of PyCrypto to IronPython. Are there any >> pointers on how to properly program an external 'package' that has >> heirarchical modules in it? I know that this is easy in python. I know >> that I can create modules in c# for use in IronPython using the PythonModule >> attribute, but these seem to be limited to __builtin__ modules, and also do >> not seem to support nested or heirarchical modules (like Crypto.Hash.MD4). >> >> Any comments or pointers would be welcome. See >> http://stackoverflow.com/questions/2365661/how-to-create-a-package-in-c-for-use-in-ironpython >> for more information on what I'm asking. >> >> Thanks, >> David >> -- >> View this message in context: http://old.nabble.com/Programming-a-package-in-c--%28heirarchical-modules%29-tp27809285p27809285.html >> Sent from the IronPython mailing list archive at Nabble.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 zhichao.hong at gmail.com Mon Mar 8 18:30:27 2010 From: zhichao.hong at gmail.com (Zhichao Hong) Date: Mon, 8 Mar 2010 11:30:27 -0600 Subject: [IronPython] Failed to install IronPython 2.6.1 rc1 for .NET 4.0 RC1 Message-ID: <3fea10111003080930l6f16c2fdn1d9092671ae9707d@mail.gmail.com> > > You're running Windows XP, right? > > Thanks, > > Dave Yes, it is a XP SP3 clean install. -Zhichao -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Mon Mar 8 18:46:17 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Mon, 08 Mar 2010 17:46:17 +0000 Subject: [IronPython] Programming a package in c# (heirarchical modules) In-Reply-To: References: <27809285.post@talk.nabble.com> <4B952F7F.1030501@voidspace.org.uk> Message-ID: <4B9537E9.7090704@voidspace.org.uk> On 08/03/2010 17:34, Jeff Hardy wrote: > On Mon, Mar 8, 2010 at 10:10 AM, Michael Foord > wrote: > >> Or even (did someone suggest this) write the raw classes in C# and then >> compose them into the correct package heirarchy with a pure Python wrapper. >> This latter approach is probably the one I would take. >> > That's the basic idea, yes. The trick is doing it in a way that's > compatible with the existing PyCrypto Python code, since it's about > 50/50 C/Python, and I assume that David only wants to do half the work > :). That said, I could be projecting my bias about how this should be > done onto David, so I'll let him make that decision. > > If PyCrypto was pure C and had to be completely rewritten I would > recommend just using namespaces as well - but it's not, so what's the > best way to leverage the existing PyCrypto Python code while replacing > the C code with C#? PyCrypto uses .pyd files, but it looks like > IronPython doesn't support an equivalent. > > Ah - I didn't realise that PyCrypto was partly implemented in Python. I would still probably do it by implementing the necessary C# and then modifying the Python code to add references to the assemblies. That way the Python can be reused with only minor changes. Michael > - Jeff > -- 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 Mon Mar 8 18:59:34 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 8 Mar 2010 10:59:34 -0700 Subject: [IronPython] Programming a package in c# (heirarchical modules) In-Reply-To: <4B9537E9.7090704@voidspace.org.uk> References: <27809285.post@talk.nabble.com> <4B952F7F.1030501@voidspace.org.uk> <4B9537E9.7090704@voidspace.org.uk> Message-ID: On Mon, Mar 8, 2010 at 10:46 AM, Michael Foord wrote: > Ah - I didn't realise that PyCrypto was partly implemented in Python. I > would still probably do it by implementing the necessary C# and then > modifying the Python code to add references to the assemblies. That way the > Python can be reused with only minor changes. I think that's the approach that David plans to use, but I'll let him speak up :). Hopefully the PyCrypto maintainers are willing to accept some minor changes. - Jeff From dinov at microsoft.com Mon Mar 8 19:23:01 2010 From: dinov at microsoft.com (Dino Viehland) Date: Mon, 8 Mar 2010 18:23:01 +0000 Subject: [IronPython] Silverlight: UnicodeEncodeError not defined and other encoding issues In-Reply-To: <4B94EE35.7080605@voidspace.org.uk> References: <4B94EE35.7080605@voidspace.org.uk> Message-ID: <1A472770E042064698CB5ADC83A12ACD393F2EAF@TK5EX14MBXC118.redmond.corp.microsoft.com> Silverlight (at the CLR level) only includes UTF8 - no other encodings are available. That's the reason why latin_1 isn't available (which makes sense) and basically the reason why UnicodeEncodeError isn't available (which makes less sense as I think we're just missing the .NET exception to map it onto). We could certainly fix the missing UnicodeEncodeError but for latin-1 you could probably publish your own latin_1_encode method into the codecs module. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Michael Foord > Sent: Monday, March 08, 2010 4:32 AM > To: Discussion of IronPython > Subject: [IronPython] Silverlight: UnicodeEncodeError not defined and other > encoding issues > > Hey all, > > Using Silverlight 2.6.1 RC: > > NameError: global name UnicodeEncodeError is not defined > > Oops (and a problem for us). > > Also: 'some string'.encode('latin-1') results in: > > LookupError: unknown encoding: latin-1 > > If I then add the codecs and encodings standard library modules to our > application I get the following exception: > > AttributeError: 'module' object has no attribute 'latin_1_encode' > > The error is in line 17 of the encodings/latin_1.py module: > > encode = codecs.latin_1_encode > > This unfortunately kills a fair bit of Python code and means I'm going > to have to rewrite a chunk of the library we're using. :-( > > Thanks > > Michael Foord > > -- > 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 Mon Mar 8 20:31:39 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Mon, 08 Mar 2010 19:31:39 +0000 Subject: [IronPython] Silverlight: UnicodeEncodeError not defined and other encoding issues In-Reply-To: <1A472770E042064698CB5ADC83A12ACD393F2EAF@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B94EE35.7080605@voidspace.org.uk> <1A472770E042064698CB5ADC83A12ACD393F2EAF@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B95509B.7080305@voidspace.org.uk> On 08/03/2010 18:23, Dino Viehland wrote: > Silverlight (at the CLR level) only includes UTF8 - no other encodings are > available. That's the reason why latin_1 isn't available (which makes sense) > and basically the reason why UnicodeEncodeError isn't available (which makes > less sense as I think we're just missing the .NET exception to map it onto). > > We could certainly fix the missing UnicodeEncodeError but for latin-1 > you could probably publish your own latin_1_encode method into the > codecs module. > Ok. Even though it's still annoying at least it makes sense now. :-) Michael > >> -----Original Message----- >> From: users-bounces at lists.ironpython.com [mailto:users- >> bounces at lists.ironpython.com] On Behalf Of Michael Foord >> Sent: Monday, March 08, 2010 4:32 AM >> To: Discussion of IronPython >> Subject: [IronPython] Silverlight: UnicodeEncodeError not defined and other >> encoding issues >> >> Hey all, >> >> Using Silverlight 2.6.1 RC: >> >> NameError: global name UnicodeEncodeError is not defined >> >> Oops (and a problem for us). >> >> Also: 'some string'.encode('latin-1') results in: >> >> LookupError: unknown encoding: latin-1 >> >> If I then add the codecs and encodings standard library modules to our >> application I get the following exception: >> >> AttributeError: 'module' object has no attribute 'latin_1_encode' >> >> The error is in line 17 of the encodings/latin_1.py module: >> >> encode = codecs.latin_1_encode >> >> This unfortunately kills a fair bit of Python code and means I'm going >> to have to rewrite a chunk of the library we're using. :-( >> >> Thanks >> >> Michael Foord >> >> -- >> 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 djlawler at aol.com Mon Mar 8 20:56:03 2010 From: djlawler at aol.com (djlawler at aol.com) Date: Mon, 08 Mar 2010 14:56:03 -0500 Subject: [IronPython] Programming a package in c# (heirarchical modules) In-Reply-To: <4B952F7F.1030501@voidspace.org.uk> References: <27809285.post@talk.nabble.com> <4B952F7F.1030501@voidspace.org.uk> Message-ID: <8CC8D1084AAA00C-16F0-17D8@webmail-d079.sysops.aol.com> Thanks for taking the time to reply! Let me see if I can be more clear: If you create a standard class in c# to be used in IronPython....when you clr.AddReference and import it. It will look like a Python class (not a module). For instance, it will have __class__ defined. PyCrypto is a bit unusual in that it is a bunch of Python modules. It has classes yes....but for instance, you call MD4.new() where MD4 is a module and new is a function and and it gives you back a MD4 class which is actually created in a pyd. For example: >>> from Crypto.Hash import MD4 >>> dir(MD4) ['__doc__', '__file__', '__name__', '__package__', 'digest_size', 'new'] >>> m = MD4.new() >>> dir(m) ['copy', 'digest', 'hexdigest', 'update'] >>> type(MD4) >>> type(m) >>> Sooooo. If you want to make a module in c# (to be used in IronPython), then you need to do something like this: using System; using IronPython.Runtime; using IronPython.Runtime.Operations; using Microsoft.Scripting.Runtime; using IronPyCrypto.Util; [assembly: PythonModule("IronPyCrypto_Hash_MD4", typeof(IronPyCrypto.Hash.MD4))] namespace IronPyCrypto.Hash { public class MD4: IHash etc. Setting the PythonModule attribute means that the c# class now shows up in IronPython as if it were a module! All is wonderful....except.... any module that you create this way shows up in __builtins__ not as an external module. Also, you cannot simulate a package (or at least I have not found a way to do so in c# only). By that, I mean you can't include a '.' in the module name. I have 'gotten around this' by doing an import in the __init__.py of PyCrypto.Hash like this: import sys if sys.platform == "cli": import clr clr.AddReference("IronPyCrypto.dll") import IronPyCrypto_Hash_MD2 as MD2 import IronPyCrypto_Hash_MD4 as MD4 but this looks like a kludge to me. I'm just wondering if I've run into something that was not considered by the developers? Or, is there a way to do what I want but I'm not clever enough? Or, do I just need to drink more wine and not worry about all these funny details :) I have to say that even without the PythonModule attribute, everything still worked. It's just if you do dir() and or help() on the objects generated by my dll things look very....odd! Thanks! David -----Original Message----- From: Michael Foord To: Discussion of IronPython Sent: Mon, Mar 8, 2010 12:10 pm Subject: Re: [IronPython] Programming a package in c# (heirarchical modules) Hey guys,? ? I'm probably missing the point - but why not just use .NET namespaces?? ? Or even (did someone suggest this) write the raw classes in C# and then compose them into the correct package heirarchy with a pure Python wrapper. This latter approach is probably the one I would take.? ? Michael? ? On 08/03/2010 17:05, Jeff Hardy wrote:? > Hi David,? > I looked into this some more, and I made some errors in my SO answer? > that I'll correct later (sorry!).? >? > When building PyCrypto, it builds& installs .pyd files into the? > necessary folders; I assumed that it built one monolithic DLL (a? > strategy used by other modules), but it doesn't. When looking for? > Crypto.Hash.MD4, CPython will find and load Crypto\Hash\MD4.pyd. I had? > forgotten how .pyd files were used.? >? > I don't know if IronPython supports this technique; I've only used the? > monolithic DLL approach, so your current solution may be the correct? > one.? >? > - Jeff? >? > On Sun, Mar 7, 2010 at 10:22 AM, djlawler wrote:? > >> I've been working on a port of PyCrypto to IronPython. Are there any? >> pointers on how to properly program an external 'package' that has? >> heirarchical modules in it? I know that this is easy in python. I know? >> that I can create modules in c# for use in IronPython using the PythonModule? >> attribute, but these seem to be limited to __builtin__ modules, and also do? >> not seem to support nested or heirarchical modules (like Crypto.Hash.MD4).? >>? >> Any comments or pointers would be welcome. See? >> http://stackoverflow.com/questions/2365661/how-to-create-a-package-in-c-for-use-in-ironpython? >> for more information on what I'm asking.? >>? >> Thanks,? >> David? >> --? >> View this message in context: http://old.nabble.com/Programming-a-package-in-c--%28heirarchical-modules%29-tp27809285p27809285.html? >> Sent from the IronPython mailing list archive at Nabble.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 bruce.bromberek at gmail.com Tue Mar 9 05:20:06 2010 From: bruce.bromberek at gmail.com (Bruce Bromberek) Date: Mon, 8 Mar 2010 22:20:06 -0600 Subject: [IronPython] How to reference enumeration in System.Windows.Input Message-ID: <58ad4a111003082020r6e092d33t53fc195cea299895@mail.gmail.com> I can't seem to figure out how to add a reference to System.Windows.Input now that it is part of the PresentationCore assembly. Specifically I'm trying to check for the enterkey, but I'm forced to do this: if str(e.Key) == "Return": instead of if e.Key == Key.Enter: I'm using Ironpython 2.6.1 RC1 with .Net 3.5. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Tue Mar 9 05:28:42 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 9 Mar 2010 04:28:42 +0000 Subject: [IronPython] How to reference enumeration in System.Windows.Input In-Reply-To: <58ad4a111003082020r6e092d33t53fc195cea299895@mail.gmail.com> References: <58ad4a111003082020r6e092d33t53fc195cea299895@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD393F60FE@TK5EX14MBXC118.redmond.corp.microsoft.com> Has Key moved from WindowsBase to PresentationCore? I'm not familiar with WPF but the docs says it's in WB: http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx If it has genuinely moved, is now type forwarded, and we're not picking it up my suggestion would be to add a reference to both assemblies. If it hasn't moved we probably need a test which shows that type forwarded types are available - I'm hoping reflection will do that. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Bruce Bromberek Sent: Monday, March 08, 2010 8:20 PM To: Discussion of IronPython Subject: [IronPython] How to reference enumeration in System.Windows.Input I can't seem to figure out how to add a reference to System.Windows.Input now that it is part of the PresentationCore assembly. Specifically I'm trying to check for the enterkey, but I'm forced to do this: if str(e.Key) == "Return": instead of if e.Key == Key.Enter: I'm using Ironpython 2.6.1 RC1 with .Net 3.5. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruce.bromberek at gmail.com Tue Mar 9 05:48:12 2010 From: bruce.bromberek at gmail.com (Bruce Bromberek) Date: Mon, 8 Mar 2010 22:48:12 -0600 Subject: [IronPython] How to reference enumeration in System.Windows.Input In-Reply-To: <1A472770E042064698CB5ADC83A12ACD393F60FE@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <58ad4a111003082020r6e092d33t53fc195cea299895@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD393F60FE@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <58ad4a111003082048g3a4e0854l64ca104593d49c55@mail.gmail.com> I kept searching for XAML and enterkey which kept taking me to PresentationCore. But you are right, Key is in WindowsBase. Adding a reference fixed it for me. On Mon, Mar 8, 2010 at 10:28 PM, Dino Viehland wrote: > Has Key moved from WindowsBase to PresentationCore? I?m not familiar > with WPF but the docs says it?s in WB: > http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx > > > > If it has genuinely moved, is now type forwarded, and we?re not picking it > up my suggestion would be to add a reference to both assemblies. If it > hasn?t moved we probably need a test which shows that type forwarded types > are available ? I?m hoping reflection will do that. > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Bruce Bromberek > *Sent:* Monday, March 08, 2010 8:20 PM > *To:* Discussion of IronPython > *Subject:* [IronPython] How to reference enumeration in > System.Windows.Input > > > > I can't seem to figure out how to add a reference to System.Windows.Input > now that it is part of the PresentationCore assembly. Specifically I'm > trying to check for the enterkey, but I'm forced to do this: > > if str(e.Key) == "Return": > > instead of > > if e.Key == Key.Enter: > > > I'm using Ironpython 2.6.1 RC1 with .Net 3.5. > > > Thanks > > _______________________________________________ > 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 Tue Mar 9 17:53:42 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Tue, 9 Mar 2010 08:53:42 -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/64607. MODIFIED SOURCES $/IronPython/IronPython_Main/Config/Unsigned/App.config $/IronPython/IronPython_Main/Config/Signed/App.config $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonBinaryOperationBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonProtocol.Operations.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/ConversionBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/ComplexOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/FloatOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/LongOps.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Math/BigIntegerV2.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Math/BigIntegerV4.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/TypeInfo.cs $/IronPython/IronPython_Main/Src/IronPythonTest/IronMath.cs $/IronPython/IronPython_Main/Src/Tests/test_ironmath.py $/IronPython/IronPython_Main/Tools/Scripts/pyc.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1660565 Date: 3/8/2010 2:35:24 PM Fixes the following bugs: 24997 - pyc.py broken. Had to replace a Call opcode with Callvirt to reflect a change in .NET 4.0. 24091 - overflow when comparing floats with very large longs. Adds special cases to float comparison which bypass the default conversion from long to float, which can throw. 25895 - Meant to go in on a previous checkin. Adds a special conversion from long to complex. 25894, 25899 - Fixed some inconsistencies between the V2 and V4 BigInteger APIs that are exposed. Also aliases External.LCA_Restricted\Languages\*Python\26\Lib, makes a few cosmetic changes, and removes 2 lines of dead code in PythonBinaryOperationBinder.cs (Shelveset: Net40Bugs02;REDMOND\ddicato | SNAP CheckinId: 10470) From cjac at colliertech.org Wed Mar 10 19:27:34 2010 From: cjac at colliertech.org (C.J. Adams-Collier) Date: Wed, 10 Mar 2010 10:27:34 -0800 Subject: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid Message-ID: <1268245654.4601.11.camel@calcifer> Hey all, The dlr-languages package has been accepted into Debian. It should take much less effort to get the next release in. Does anyone have a recommendation for what version we should package next? Thanks for all of your help getting this shipped! C.J. -------------- next part -------------- An embedded message was scrubbed... From: Archive Administrator Subject: dlr-languages_20090805+git.e6b28d27+dfsg-1_amd64.changes ACCEPTED Date: Wed, 10 Mar 2010 12:32:25 +0000 Size: 3152 URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From dinov at microsoft.com Wed Mar 10 19:38:34 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 10 Mar 2010 18:38:34 +0000 Subject: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid In-Reply-To: <1268245654.4601.11.camel@calcifer> References: <1268245654.4601.11.camel@calcifer> Message-ID: <1A472770E042064698CB5ADC83A12ACD39400280@TK5EX14MBXC118.redmond.corp.microsoft.com> Do you know when you'll do the next push? I'd suggest IronPython 2.6.1 and IronRuby 1.0 both of which we'll release right around VS 2010 shipping (mid-April). Were you successful in getting IronPython tests running or do you still need some help there? > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of C.J. Adams-Collier > Sent: Wednesday, March 10, 2010 10:28 AM > To: users at lists.ironpython.com; ironruby-core at rubyforge.org > Subject: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid > > Hey all, > > The dlr-languages package has been accepted into Debian. It should take much > less effort to get the next release in. > > Does anyone have a recommendation for what version we should package next? > > Thanks for all of your help getting this shipped! > > C.J. From cjac at colliertech.org Wed Mar 10 20:32:04 2010 From: cjac at colliertech.org (C.J. Adams-Collier) Date: Wed, 10 Mar 2010 11:32:04 -0800 Subject: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid In-Reply-To: <1A472770E042064698CB5ADC83A12ACD39400280@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <1268245654.4601.11.camel@calcifer> <1A472770E042064698CB5ADC83A12ACD39400280@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <1268249524.4601.15.camel@calcifer> Thanks Dino. Those versions sound good to me. We haven't decided on the next release date. Will they be using their own DLR, or will they be depending on the one in .NET v4? No, the tests are not yet running. I may have some free time during spring break that I can use to work on that. It would probably be best if I sync'd my codebase up before trying to get them working. Cheers, C.J. On Wed, 2010-03-10 at 18:38 +0000, Dino Viehland wrote: > Do you know when you'll do the next push? I'd suggest IronPython 2.6.1 > and IronRuby 1.0 both of which we'll release right around VS 2010 shipping > (mid-April). > > Were you successful in getting IronPython tests running or do you still > need some help there? > > > -----Original Message----- > > From: users-bounces at lists.ironpython.com [mailto:users- > > bounces at lists.ironpython.com] On Behalf Of C.J. Adams-Collier > > Sent: Wednesday, March 10, 2010 10:28 AM > > To: users at lists.ironpython.com; ironruby-core at rubyforge.org > > Subject: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid > > > > Hey all, > > > > The dlr-languages package has been accepted into Debian. It should take much > > less effort to get the next release in. > > > > Does anyone have a recommendation for what version we should package next? > > > > Thanks for all of your help getting this shipped! > > > > C.J. > > _______________________________________________ > 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: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From dinov at microsoft.com Thu Mar 11 01:16:04 2010 From: dinov at microsoft.com (Dino Viehland) Date: Thu, 11 Mar 2010 00:16:04 +0000 Subject: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid In-Reply-To: <1268249524.4601.15.camel@calcifer> References: <1268245654.4601.11.camel@calcifer> <1A472770E042064698CB5ADC83A12ACD39400280@TK5EX14MBXC118.redmond.corp.microsoft.com> <1268249524.4601.15.camel@calcifer> Message-ID: <1A472770E042064698CB5ADC83A12ACD39401C8F@TK5EX14MBXC118.redmond.corp.microsoft.com> CJ wrote: > Thanks Dino. Those versions sound good to me. We haven't decided on the next > release date. Will they be using their own DLR, or will they be depending on > the one in .NET v4? They'll be running on both - we'll have the .NET 2.0 releases like we've always had and we'll also have separate binaries for .NET 4.0 which don't include Microsoft.Scripting.Core.dll because it's functionality is in System.Core.dll. We'll also continue to support building either way. > No, the tests are not yet running. I may have some free time during spring > break that I can use to work on that. It would probably be best if I sync'd > my codebase up before trying to get them working. Ok, let me know if you run into any issues. From cjac at colliertech.org Thu Mar 11 02:35:24 2010 From: cjac at colliertech.org (C.J. Adams-Collier) Date: Wed, 10 Mar 2010 17:35:24 -0800 Subject: [IronPython] Debian bug #516396 Message-ID: <1268271324.4313.2.camel@calcifer> Hey folks, When running the ipy REPL on Debian from bash, ^Z suspends the current process, so using "^Z enter" doesn't work as a quit key sequence. Where should I start poking to put a check for host shell and set the appropriate key sequence (^D)? http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516396 Cheers, C.J. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From dinov at microsoft.com Thu Mar 11 03:57:21 2010 From: dinov at microsoft.com (Dino Viehland) Date: Thu, 11 Mar 2010 02:57:21 +0000 Subject: [IronPython] Debian bug #516396 In-Reply-To: <1268271324.4313.2.camel@calcifer> References: <1268271324.4313.2.camel@calcifer> Message-ID: <1A472770E042064698CB5ADC83A12ACD39402AD5@TK5EX14MBXC118.redmond.corp.microsoft.com> C.J. wrote: > Hey folks, > > When running the ipy REPL on Debian from bash, ^Z suspends the current > process, so using "^Z enter" doesn't work as a quit key sequence. > Where should I start poking to put a check for host shell and set the > appropriate key sequence (^D)? > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516396 > Does ^D not work at all? Does it work w/ the -X:TabCompletion option? In -X:TabCompletion mode we have code specifically to check if we're on Unix and if so we recognize Ctrl-D instead of Ctrl-Z. This code is in SuperConsole.cs if you want to step through in case that's not working. I hope it is though because we closed a bug on this on our side after we put this code in! :) Otherwise w/o that option we're just calling Console.In.ReadLine(). On Windows this returns NULL when you type Ctrl-Z because it's the EOF. I would say if this should return null when you type Ctrl-D on Linux then Mono should support this behavior (unless there's some reason why this doesn't make sense and then we should discuss). If you wanted to try and step through this it's in BasicConsole.cs. From dinov at microsoft.com Thu Mar 11 04:05:53 2010 From: dinov at microsoft.com (Dino Viehland) Date: Thu, 11 Mar 2010 03:05:53 +0000 Subject: [IronPython] Debian bug #516396 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD39402AD5@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <1268271324.4313.2.camel@calcifer> <1A472770E042064698CB5ADC83A12ACD39402AD5@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD39402B67@TK5EX14MBXC118.redmond.corp.microsoft.com> Dino wrote: > C.J. wrote: > > Hey folks, > > > > When running the ipy REPL on Debian from bash, ^Z suspends the > current > > process, so using "^Z enter" doesn't work as a quit key sequence. > > Where should I start poking to put a check for host shell and set the > > appropriate key sequence (^D)? > > > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516396 > > > > Does ^D not work at all? Does it work w/ the -X:TabCompletion option? > > In -X:TabCompletion mode we have code specifically to check if we're on > Unix and if so we recognize Ctrl-D instead of Ctrl-Z. This code is in > SuperConsole.cs if you want to step through in case that's not working. > I hope it is though because we closed a bug on this on our side after > we > put this code in! :) > > Otherwise w/o that option we're just calling Console.In.ReadLine(). On > Windows this returns NULL when you type Ctrl-Z because it's the EOF. I > would say if this should return null when you type Ctrl-D on Linux then > Mono should support this behavior (unless there's some reason why this > doesn't make sense and then we should discuss). If you wanted to try > and step through this it's in BasicConsole.cs. Also this bug appears to be reported against Ipy 1.1.1 - the bug may not be fixed there so it might be worth making sure it still repros w/ 2.6 if you haven't already. From vernondcole at gmail.com Thu Mar 11 06:38:44 2010 From: vernondcole at gmail.com (Vernon Cole) Date: Wed, 10 Mar 2010 22:38:44 -0700 Subject: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid In-Reply-To: <1268245654.4601.11.camel@calcifer> References: <1268245654.4601.11.camel@calcifer> Message-ID: C.J.: This in indeed great news! Can you give a hint how to get Ubuntu to pick this up? I'm really tired of only having IPy 1.1, but I don't know my way around Debian's APT-GET setup for new submissions. -- Vernon Cole On Wed, Mar 10, 2010 at 11:27 AM, C.J. Adams-Collier wrote: > Hey all, > > The dlr-languages package has been accepted into Debian. It should take > much less effort to get the next release in. > > Does anyone have a recommendation for what version we should package > next? > > Thanks for all of your help getting this shipped! > > C.J. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nishant.mittal19 at gmail.com Thu Mar 11 07:14:05 2010 From: nishant.mittal19 at gmail.com (Nishant Mittal) Date: Thu, 11 Mar 2010 11:44:05 +0530 Subject: [IronPython] Python script using .Net Message-ID: Hi Guys Can any body please tell me how to run .py file from C# 2008.I want to run gdal_retile.py from C#. Please help me Regards Nishant -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Thu Mar 11 17:56:00 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Thu, 11 Mar 2010 08:56:00 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <09ae5c6e-df35-46d4-bd70-cbaaa7cd4db4@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/64644. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/AstMethods.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/BinaryExpression.Generated.cs $/IronPython/IronPython_Main/Src/IronPython/Modules/Builtin.Generated.cs $/IronPython/IronPython_Main/Src/IronPython/Modules/Builtin.cs $/IronPython/IronPython_Main/Src/IronPython/Lib/iptest/assert_util.py $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/MetaPythonType.Members.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ssl.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Exceptions/PythonExceptions.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Exceptions/PythonExceptions.Generated.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/ComplexOps.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/Operations/LongOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/StringFormatter.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Super.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/socket.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/ConstantExpression.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/BinaryExpression.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Tokenizer.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Token.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Parser.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Math/BigIntegerV4.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Utils/MathUtils.cs $/IronPython/IronPython_Main/Src/Tests/interop/com/apps/excel.py $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/BuiltinFunction.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/OldClass.cs $/IronPython/IronPython_Main/Src/Tests/compat/common.py $/IronPython/IronPython_Main/Src/Scripts/generate_ops.py $/IronPython/IronPython_Main/Src/Scripts/generate_exceptions.py $/IronPython/IronPython_Main/Src/Tests/modules/network_related/_ssl_test.py $/IronPython/IronPython_Main/Src/Tests/test_imp.py $/IronPython/IronPython_Main/Src/Tests/test_cliclass.py $/IronPython/IronPython_Main/Src/Tests/test_class.py $/IronPython/IronPython_Main/Src/Tests/test_memory.py $/IronPython/IronPython_Main/Src/Tests/test_traceback.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1673519 Date: 3/10/2010 8:11:41 PM 26193 Problems with the Python module mpmath in IronPython 2.6.1 (2.6.30207.0) on .NET 4.0.30128.1 We need to do the descriptor protocol for old-style classes 26028 attribute '__all__' of 'namespace#' object is read-only This is working, adding a test case for try get member (hasattr) for types and namespaces 26098 __import__ incompatibility from from_list is not a list Add a check for strings coming in, and treat them as a list-of-one 24654 StackOverflowException when retrieving doc-string of Excel automation object This is working, adding a test case 26005 Major memory leak in hosted scenarios triggered by un-consumed IronPython iterators This is working, adding a test case 25428 Disabled test test_traceback.py run:test_throw_while_yield This is working because we always compile loops now, re-enabling the test case 24586 IronPython 2.6 test cases disabled All of these seem to be passing w/ two exceptions: test_namebinding is failing due to a reference being kept alive too long. Fixed BuiltinFunction so our closure doesn?t hold onto the BindingTarget and instead just holds onto the name. test_str is failing in debug builds because we emit too many strings ? limit our constant folding of string multiplication. 21411 Implement _ssl module 25990 https support for httplib Adding ssl support Also making UnicodeEncodeError/DecodeError available in silverlight and making ?u?%s? % SomeObjectWith__unicode__? so that it calls __unicode__ before __str__. Also fixes an issue w/ assert_util where retry_on_failure loses the stack trace. (Shelveset: Final261Fixes4;REDMOND\dinov | SNAP CheckinId: 10495) -------------------------------------------------------------------------------- Changeset Id: 1672895 Date: 3/10/2010 1:25:49 PM Adds constant folding for complex numbers. Refactors duplicated BigInt V4 GetWords() logic into MathUtils. Fixes an issue with dev.bat's ability to find sn.exe. (Shelveset: Net40Bugs02_1;REDMOND\ddicato | SNAP CheckinId: 10491) From drken567 at gmail.com Thu Mar 11 18:11:21 2010 From: drken567 at gmail.com (Ken MacDonald) Date: Thu, 11 Mar 2010 12:11:21 -0500 Subject: [IronPython] How to find import in ipy Message-ID: <3468cae11003110911u2e2e6278xf47d534950d641a7@mail.gmail.com> Hi, I have an app with a popup containing a listbox. I want to dynamically add a few items to the listbox and found code in a number of places which does something like: listbox.Items.Add(ListItem("Special", 11)) listbox.Items.Add(ListItem("Regular", 19)) However, I can't find the proper import so that it finds ListItem. On MSDN it shows as being in from System.Web.UI.WebControls import ListItem but I get "can't import UI" So, anyone know how to do this? Also, I'm concerned that next time (if I ever get it working first time) I come to this popup, it will contain the items I had added previously; how does one go about clearing the whole listbox? Thanks, Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Thu Mar 11 18:17:25 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 11 Mar 2010 17:17:25 +0000 Subject: [IronPython] How to find import in ipy In-Reply-To: <3468cae11003110911u2e2e6278xf47d534950d641a7@mail.gmail.com> References: <3468cae11003110911u2e2e6278xf47d534950d641a7@mail.gmail.com> Message-ID: <4B9925A5.6090104@voidspace.org.uk> On 11/03/2010 17:11, Ken MacDonald wrote: > Hi, I have an app with a popup containing a listbox. I want to > dynamically add a few items to the listbox and found code in a number > of places which does something like: > > listbox.Items.Add(ListItem("Special", 11)) > listbox.Items.Add(ListItem("Regular", 19)) > > However, I can't find the proper import so that it finds ListItem. On > MSDN it shows as being in > > from System.Web.UI.WebControls import ListItem That's for ASP - is that what you are using? > > but I get "can't import UI" You will need to add a reference to its containing assembly before you can import it. > > So, anyone know how to do this? > > Also, I'm concerned that next time (if I ever get it working first > time) I come to this popup, it will contain the items I had added > previously; how does one go about clearing the whole listbox? listbox.Items.Clear() HTH, Michael > Thanks, > Ken > > > _______________________________________________ > 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 brian.curtin at gmail.com Thu Mar 11 18:18:13 2010 From: brian.curtin at gmail.com (Brian Curtin) Date: Thu, 11 Mar 2010 11:18:13 -0600 Subject: [IronPython] How to find import in ipy In-Reply-To: <3468cae11003110911u2e2e6278xf47d534950d641a7@mail.gmail.com> References: <3468cae11003110911u2e2e6278xf47d534950d641a7@mail.gmail.com> Message-ID: On Thu, Mar 11, 2010 at 11:11, Ken MacDonald wrote: > Hi, I have an app with a popup containing a listbox. I want to dynamically > add a few items to the listbox and found code in a number of places which > does something like: > > listbox.Items.Add(ListItem("Special", 11)) > listbox.Items.Add(ListItem("Regular", 19)) > > However, I can't find the proper import so that it finds ListItem. On MSDN > it shows as being in > > from System.Web.UI.WebControls import ListItem > > but I get "can't import UI" > > So, anyone know how to do this? > > Also, I'm concerned that next time (if I ever get it working first time) I > come to this popup, it will contain the items I had added previously; how > does one go about clearing the whole listbox? > Thanks, > Ken Did you add a reference to it? >>> import clr >>> clr.AddReference("System.Web") >>> from System.Web.UI.WebControls import ListItem >>> ListItem -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Thu Mar 11 18:33:12 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 11 Mar 2010 17:33:12 +0000 Subject: [IronPython] Silverlight on the Windows 7 Phone Message-ID: <4B992958.6060001@voidspace.org.uk> Hello all, I haven't followed the details of the Windows 7 phone closely but I do know it will include Silverlight. Any word on whether or not that will support IronPython applications? Michael -- 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 drken567 at gmail.com Thu Mar 11 18:33:10 2010 From: drken567 at gmail.com (Ken MacDonald) Date: Thu, 11 Mar 2010 12:33:10 -0500 Subject: [IronPython] How to find import in ipy In-Reply-To: <4B9925A5.6090104@voidspace.org.uk> References: <3468cae11003110911u2e2e6278xf47d534950d641a7@mail.gmail.com> <4B9925A5.6090104@voidspace.org.uk> Message-ID: <3468cae11003110933t6a0bbb19k3a9dbddcfe1dd993@mail.gmail.com> Thanks Michael, We're using .NET, so this should be OK, I guess? All of the other controls (StackPanel, Grid...) are being imported from System.Windows.Controls, so I thought ListItem ought to have been somewhere in there. > > from System.Web.UI.WebControls import ListItem > > > That's for ASP - is that what you are using? > > > but I get "can't import UI" > > > You will need to add a reference to its containing assembly before you can > import it. > > What is the 'containing assembly'? Should I do something like.... from System.Web import UI (guess, not, same error!) > > > So, anyone know how to do this? > > Also, I'm concerned that next time (if I ever get it working first time) I > come to this popup, it will contain the items I had added previously; how > does one go about clearing the whole listbox? > > listbox.Items.Clear() > > HTH, > > Michael > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at voidspace.org.uk Thu Mar 11 18:36:54 2010 From: michael at voidspace.org.uk (Michael Foord) Date: Thu, 11 Mar 2010 17:36:54 +0000 Subject: [IronPython] How to find import in ipy In-Reply-To: <3468cae11003110933t6a0bbb19k3a9dbddcfe1dd993@mail.gmail.com> References: <3468cae11003110911u2e2e6278xf47d534950d641a7@mail.gmail.com> <4B9925A5.6090104@voidspace.org.uk> <3468cae11003110933t6a0bbb19k3a9dbddcfe1dd993@mail.gmail.com> Message-ID: <4B992A36.3000605@voidspace.org.uk> On 11/03/2010 17:33, Ken MacDonald wrote: > Thanks Michael, > We're using .NET, so this should be OK, I guess? If you're using IronPython that you are definitely using .NET. Do you mean you are using ASP.NET? > All of the other controls (StackPanel, Grid...) are being imported > from System.Windows.Controls, so I thought ListItem ought to have been > somewhere in there. > >> >> from System.Web.UI.WebControls import ListItem > > That's for ASP - is that what you are using? > >> >> but I get "can't import UI" > > You will need to add a reference to its containing assembly before > you can import it. > > > What is the 'containing assembly'? Should I do something like.... If you go to the MSDN page you were using as a reference previously it will tell you what *assembly* the WebControls namespace is contained in (System.Web perhaps). You will need to add a reference to this assembly before you can import from it. This will look *something* like: import clr clr.AddReference('System.Web') All the best, Michael > > from System.Web import UI > > (guess, not, same error!) > > >> >> So, anyone know how to do this? >> >> Also, I'm concerned that next time (if I ever get it working >> first time) I come to this popup, it will contain the items I had >> added previously; how does one go about clearing the whole listbox? > listbox.Items.Clear() > > HTH, > > Michael > > > > _______________________________________________ > 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 curt at hagenlocher.org Thu Mar 11 18:44:18 2010 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Thu, 11 Mar 2010 09:44:18 -0800 Subject: [IronPython] How to find import in ipy In-Reply-To: <3468cae11003110933t6a0bbb19k3a9dbddcfe1dd993@mail.gmail.com> References: <3468cae11003110911u2e2e6278xf47d534950d641a7@mail.gmail.com> <4B9925A5.6090104@voidspace.org.uk> <3468cae11003110933t6a0bbb19k3a9dbddcfe1dd993@mail.gmail.com> Message-ID: On Thu, Mar 11, 2010 at 9:33 AM, Ken MacDonald wrote: > > Thanks Michael, > All of the other controls (StackPanel, Grid...) are being imported from System.Windows.Controls, > so I thought ListItem ought to have been somewhere in there. Given that you seem to be using WPF, you probably want System.Windows.Documents.ListItem. -- Curt Hagenlocher curt at hagenlocher.org From dinov at microsoft.com Thu Mar 11 18:46:08 2010 From: dinov at microsoft.com (Dino Viehland) Date: Thu, 11 Mar 2010 17:46:08 +0000 Subject: [IronPython] Silverlight on the Windows 7 Phone In-Reply-To: <4B992958.6060001@voidspace.org.uk> References: <4B992958.6060001@voidspace.org.uk> Message-ID: <1A472770E042064698CB5ADC83A12ACD394065CF@TK5EX14MBXC118.redmond.corp.microsoft.com> Michael wrote: > I haven't followed the details of the Windows 7 phone closely but I do > know it will include Silverlight. Any word on whether or not that will > support IronPython applications? I don't think we know - it all depends on what CLR is being used in the phones. If it's the compact framework then we have the same problem we have on the Xbox - no dynamic methods. If it's "CoreCLR" that's used in the browser then it should work. From fuzzyman at voidspace.org.uk Thu Mar 11 18:47:48 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 11 Mar 2010 17:47:48 +0000 Subject: [IronPython] Silverlight on the Windows 7 Phone In-Reply-To: <1A472770E042064698CB5ADC83A12ACD394065CF@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B992958.6060001@voidspace.org.uk> <1A472770E042064698CB5ADC83A12ACD394065CF@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B992CC4.10508@voidspace.org.uk> On 11/03/2010 17:46, Dino Viehland wrote: > Michael wrote: > >> I haven't followed the details of the Windows 7 phone closely but I do >> know it will include Silverlight. Any word on whether or not that will >> support IronPython applications? >> > I don't think we know - it all depends on what CLR is being used in the > phones. If it's the compact framework then we have the same problem we > have on the Xbox - no dynamic methods. If it's "CoreCLR" that's used in > the browser then it should work. > Right, that's what I figured. XNA is also included, which definitely uses compact framework - but I would *expect* Silverlight to use the CoreCLR. I guess we have to wait and see... Thanks Michael > > _______________________________________________ > 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 drken567 at gmail.com Thu Mar 11 20:07:46 2010 From: drken567 at gmail.com (Ken MacDonald) Date: Thu, 11 Mar 2010 14:07:46 -0500 Subject: [IronPython] How to find import in ipy In-Reply-To: References: <3468cae11003110911u2e2e6278xf47d534950d641a7@mail.gmail.com> <4B9925A5.6090104@voidspace.org.uk> <3468cae11003110933t6a0bbb19k3a9dbddcfe1dd993@mail.gmail.com> Message-ID: <3468cae11003111107k4709fbfdwc7e061bb72ab16dc@mail.gmail.com> Thanks Michael, Brian, Curt.... Found out I should've been using List*Box*Item instead of ListItem as I'm working w/ a ListBox, but now have this piece working. The pointers and suggestions were REAL helpful in tracking down what I actually needed, even though I started out asking for the wrong thing. Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Thu Mar 11 20:36:52 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Thu, 11 Mar 2010 12:36:52 -0700 Subject: [IronPython] Silverlight on the Windows 7 Phone In-Reply-To: <4B992CC4.10508@voidspace.org.uk> References: <4B992958.6060001@voidspace.org.uk> <1A472770E042064698CB5ADC83A12ACD394065CF@TK5EX14MBXC118.redmond.corp.microsoft.com> <4B992CC4.10508@voidspace.org.uk> Message-ID: On Thu, Mar 11, 2010 at 10:47 AM, Michael Foord wrote: > Right, that's what I figured. XNA is also included, which definitely uses > compact framework - but I would *expect* Silverlight to use the CoreCLR. I > guess we have to wait and see... It could be using a version of XNA that runs on CoreCLR. Whatever the case, we should find out next week. - Jeff From merllab at microsoft.com Fri Mar 12 17:53:59 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 12 Mar 2010 08:53:59 -0800 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <3bedc8db-a741-4bd7-889c-0f1952821338@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/64666. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Compiler/Parser.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/TypeCache.Generated.cs CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1674964 Date: 3/11/2010 5:24:40 PM Fixes an issue w/ the parser not setting the span of an incomplete call expression. When we have an incomplete call expr we can still report it as a reference so knowing it's location is useful. (Shelveset: IncompleteCallSpan;REDMOND\dinov | SNAP CheckinId: m11373) -------------------------------------------------------------------------------- Changeset Id: 1674958 Date: 3/11/2010 5:21:58 PM Aliases Complex64 to Complex for TypeCache backwards compatibility. (Shelveset: Complex64Alias;REDMOND\ddicato | SNAP CheckinId: m11373) From Shri.Borde at microsoft.com Fri Mar 12 18:56:49 2010 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 12 Mar 2010 17:56:49 +0000 Subject: [IronPython] clrtype: How to subclass ClrClass? In-Reply-To: <4B9A61F0.4080209@bakalari.cz> References: <4B6D5057.50302@bakalari.cz> <4B6D5C18.600@voidspace.org.uk> <8E45365BECA665489F3CB8878A6C1B7D0C95ABD7@TK5EX14MBXC140.redmond.corp.microsoft.com> <4B7D4083.9030607@bakalari.cz> <6459203F8B1AF641995AE49D47FA51A703D734@TK5EX14MBXC134.redmond.corp.microsoft.com> <6459203F8B1AF641995AE49D47FA51A70559E9@TK5EX14MBXC134.redmond.corp.microsoft.com> <4B8BF385.8050603@bakalari.cz> <4B9A5B6D.3050509@bakalari.cz> <4B9A61F0.4080209@bakalari.cz> Message-ID: <6459203F8B1AF641995AE49D47FA51A70B6938D5@TK5EX14MBXC137.redmond.corp.microsoft.com> Hi Lukas, the clrtype fix for http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26249 is indeed in in 2.6.1. About this Silverlight error, I am not sure. Including the mailing list in case someone else can help. error CS1685 : Warning as error : The predefined type 'System.Runtime.InteropSe rvices.DefaultParameterValueAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\IronPython_Main\Src\Runtime\Microsoft. Scripting.Core\Stubs.cs' Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.Core.csproj" (default targets) -- FAILED. From: Lukas Cenovsky [mailto:cenovsky at bakalari.cz] Sent: Friday, March 12, 2010 7:47 AM To: Shri Borde Subject: Re: [IronPython] clrtype: How to subclass ClrClass? Unfortunately I am unable to build IronPython for Silverlight. Is it currently broken or do I do something wrong? C:\IronPython_Main\Src>c:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe IronP ython.sln /p:Configuration="Silverlight Release" Microsoft (R) Build Engine Version 3.5.30729.4926 [Microsoft .NET Framework, Version 2.0.50727.4927] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 12.3.2010 16:40:57. Project "C:\IronPython_Main\Src\IronPython.sln" on node 0 (default targets). Building solution configuration "Silverlight Release|Any CPU". Project "C:\IronPython_Main\Src\IronPython.sln" (1) is building "C:\IronPython_ Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scripting.ExtensionAttribut e.csproj" (2) on node 0 (default targets). Project file contains ToolsVersion="4.0", which is not supported by this versio n of MSBuild. Treating the project as if it had ToolsVersion="3.5". PrepareForBuild: Creating directory "C:\IronPython_Main\Src\..\Bin\Silverlight Release\". CopyFilesToOutputDirectory: Copying file from "obj\Silverlight Release\Microsoft.Scripting.ExtensionAttri bute.dll" to "C:\IronPython_Main\Src\..\Bin\Silverlight Release\Microsoft.Scr ipting.ExtensionAttribute.dll". Microsoft.Scripting.ExtensionAttribute -> C:\IronPython_Main\Bin\Silverlight Release\Microsoft.Scripting.ExtensionAttribute.dll Copying file from "obj\Silverlight Release\Microsoft.Scripting.ExtensionAttri bute.pdb" to "C:\IronPython_Main\Src\..\Bin\Silverlight Release\Microsoft.Scr ipting.ExtensionAttribute.pdb". Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.ExtensionAttribute.csproj" (default targets). Project "C:\IronPython_Main\Src\IronPython.sln" (1) is building "C:\IronPython_ Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scripting.Core.csproj" (3) on node 0 (default targets). Project file contains ToolsVersion="4.0", which is not supported by this versio n of MSBuild. Treating the project as if it had ToolsVersion="3.5". Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scri pting.Core.csproj" (3) is building "C:\IronPython_Main\Src\Runtime\Microsoft.Sc ripting.Core\Microsoft.Scripting.ExtensionAttribute.csproj" (2:2) on node 0 (Ge tTargetPath target(s)). Project file contains ToolsVersion="4.0", which is not supported by this versio n of MSBuild. Treating the project as if it had ToolsVersion="3.5". Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.ExtensionAttribute.csproj" (GetTargetPath target(s)). Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scri pting.Core.csproj" (3) is building "C:\IronPython_Main\Src\Runtime\Microsoft.Sc ripting.Core\Microsoft.Scripting.ExtensionAttribute.csproj" (2:3) on node 0 (Ge tNativeManifest target(s)). Project file contains ToolsVersion="4.0", which is not supported by this versio n of MSBuild. Treating the project as if it had ToolsVersion="3.5". Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.ExtensionAttribute.csproj" (GetNativeManifest target(s)). error CS1685 : Warning as error : The predefined type 'System.Runtime.InteropSe rvices.DefaultParameterValueAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\IronPython_Main\Src\Runtime\Microsoft. Scripting.Core\Stubs.cs' Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.Core.csproj" (default targets) -- FAILED. Done Building Project "C:\IronPython_Main\Src\IronPython.sln" (default targets) -- FAILED. Build FAILED. "C:\IronPython_Main\Src\IronPython.sln" (default target) (1) -> "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scripting.Co re.csproj" (default target) (3) -> (CoreCompile target) -> error CS1685 : Warning as error : The predefined type 'System.Runtime.Interop Services.DefaultParameterValueAttribute' is defined in multiple assemblies in t he global alias; using definition from 'c:\IronPython_Main\Src\Runtime\Microsof t.Scripting.Core\Stubs.cs' 0 Warning(s) 1 Error(s) Time Elapsed 00:00:01.53 This works fine: c:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe IronPython.sln -- -- Luk?? Lukas Cenovsky wrote: Hi Shri, I have built IronPython Main (I should have known it is so easy :-) and I verified the fix works for me there. I hope it will get into 2.6.1. Thanks. -- -- Luk?? Lukas Cenovsky wrote: Hi Shri, I haven't tried to build IronPython from source yet and I do not have time to test it now (maybe it's easy - I don't know). But I saw the fix is checked in, so I wait for your next build, try it there and let you know. Thanks a lot. -- -- Luk?? Shri Borde wrote: Hi Lukas, I have attached a patch to the bug. If you build from source, you can get the fix. I will also check if we can get it into 2.6.1 or not, but I need to chat with Dino about how impactful the change is From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Shri Borde Sent: Thursday, February 18, 2010 11:51 AM To: Lukas Cenovsky; Discussion of IronPython Subject: Re: [IronPython] clrtype: How to subclass ClrClass? Sorry, I have not, and unfortunately will not be able to get to it until next week. Please vote on http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26249 if you want to see it fixed in 2.6.1. Depending on the fix, it might have to wait until after 2.6.1 From: Lukas Cenovsky [mailto:cenovsky at bakalari.cz] Sent: Thursday, February 18, 2010 5:29 AM To: Shri Borde Subject: Re: [IronPython] clrtype: How to subclass ClrClass? Hello Shri, have you had chance to look at this bug? -- -- Luk?? Shri Borde wrote: It is a know bug. I can take a look next week. -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord Sent: Saturday, February 06, 2010 4:10 AM To: Discussion of IronPython Subject: Re: [IronPython] clrtype: How to subclass ClrClass? On 06/02/2010 11:19, Lukas Cenovsky wrote: Hi all, it looks like I cannot subclass a class based on ClrClass metaclass: IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.4927 Type "help", "copyright", "credits" or "license" for more information. import clr import clrtype class Product(object): ... __metaclass__ = clrtype.ClrClass ... p = Product() print "CLR type name: %s" % p.GetType().FullName CLR type name: Product class MyProduct(Product): ... pass ... Traceback (most recent call last): File "", line 1, in KeyError: The given key was not present in the dictionary. Is it a bug or am I doing something wrong? Thanks. Hehe, I ran into this a couple of days ago on Silverlight as well. All the best, Michael -- -- 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 djlawler at aol.com Fri Mar 12 19:55:18 2010 From: djlawler at aol.com (djlawler at aol.com) Date: Fri, 12 Mar 2010 13:55:18 -0500 Subject: [IronPython] Programming a package in c# (heirarchical modules) Message-ID: <8CC902CB174CE78-2A9C-106E@webmail-m068.sysops.aol.com> I received no response from the PyCrypto folks. I've gone ahead and put the project on bitbucket. You can find it at: http://bitbucket.org/djlawler/ironpycrypto/overview/ ANY suggestions/patches etc would be great. The easiest way to install it is to build the IronPyCrypto dll using Visual Studio (express is fine) OR SharpDevelop 3. Then you can plop the dll into a directory called DLLs in C:\Program Files\IronPython 2.6 (assuming the default location for IP). Then copy the Crypto directory into C:\Program Files\IronPython 2.6\Lib\site-packages. You can also compile the python portion to Crypto.dll using SharpDevelop or (probably) pyc and put that DLL in the DLLs directory as well (then you don't need to copy the Crypto directory). After that it should work if you do something like: from Crypto.Hash import MD4. As it stands now it passes all the unit tests in PyCrypto. winrandom is a pretty bad hack...but I reasonably happy about almost everything else. Now that this is out I am hoping (very much), that someone from Microsoft can tell me if there is a better way to handle creating the modules in c#! (hint, hint) Enjoy! David From ronnie.maor at gmail.com Sat Mar 13 20:07:47 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Sat, 13 Mar 2010 21:07:47 +0200 Subject: [IronPython] result of partial is not callable Message-ID: <2fd6b9d1003131107p225f5aaby1ec7ebe5f1d7796c@mail.gmail.com> I got this problem with 2.6.0. Haven't tried on 2.6.1 from System.Threading import ThreadStart from functools import partial def foo(x): pass ThreadStart(partial(foo,3)) # TypeError: Object is not callable def mypartial(f,*bind_a,**bind_kw): def wrapped(*a,**kw): all_kw = bind_kw.copy() all_kw.update(kw) return f(*(bind_a+a),**all_kw) return wrapped ThreadStart(mypartial(foo,3)) # ok -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Mon Mar 15 16:53:26 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Mon, 15 Mar 2010 08:53:26 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <7d59af01-0a0e-4807-820b-3b61f8c6f0d6@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/64744. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/TypeInfo.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/InstanceOps.cs $/IronPython/IronPython_Main/Readme.html $/IronPython/IronPython_Main/Src/Tests/test_ipyc.py $/IronPython/IronPython_Main/Src/Tests/test_isinstance.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1676778 Date: 3/12/2010 10:10:55 PM 24083 - PythonType equality with Type. Added special case to FallbackInequalityResolver which mimics PythonType's implicit conversion to Type when == is resolved. 24509 - Issue appears to be fixed. Enabling test. (Shelveset: Net40Bugs03;REDMOND\ddicato | SNAP CheckinId: 10513) From dinov at microsoft.com Mon Mar 15 18:34:01 2010 From: dinov at microsoft.com (Dino Viehland) Date: Mon, 15 Mar 2010 17:34:01 +0000 Subject: [IronPython] result of partial is not callable In-Reply-To: <2fd6b9d1003131107p225f5aaby1ec7ebe5f1d7796c@mail.gmail.com> References: <2fd6b9d1003131107p225f5aaby1ec7ebe5f1d7796c@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD3944900E@TK5EX14MBXC118.redmond.corp.microsoft.com> Definitely a bug, and I don't think it's fixed in 2.6.1. I've opened http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26482 And there's more that needs to be done - they're not currently callable from Ruby either. Thanks for reporting this. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronnie Maor Sent: Saturday, March 13, 2010 11:08 AM To: Discussion of IronPython Subject: [IronPython] result of partial is not callable I got this problem with 2.6.0. Haven't tried on 2.6.1 from System.Threading import ThreadStart from functools import partial def foo(x): pass ThreadStart(partial(foo,3)) # TypeError: Object is not callable def mypartial(f,*bind_a,**bind_kw): def wrapped(*a,**kw): all_kw = bind_kw.copy() all_kw.update(kw) return f(*(bind_a+a),**all_kw) return wrapped ThreadStart(mypartial(foo,3)) # ok -------------- next part -------------- An HTML attachment was scrubbed... URL: From cenovsky at bakalari.cz Tue Mar 16 14:37:05 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Tue, 16 Mar 2010 14:37:05 +0100 Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6 Message-ID: <4B9F8981.90605@bakalari.cz> Hi all, one cannot use IsolatedStorage in IronPython 2.6. Calling IsolatedStorageFile.GetUserStoreForApplication() throws SystemError: Application code cannot access System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() using Reflection. It works fine in IronPython 2.0.2. I've entered a bug: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488 -- -- Luk?? From ronnie.maor at gmail.com Tue Mar 16 15:11:48 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Tue, 16 Mar 2010 16:11:48 +0200 Subject: [IronPython] minor issue with types in error messages Message-ID: <2fd6b9d1003160711v7cbf060ct3d03bfc09662b3b5@mail.gmail.com> CPython: >>> None(3) Traceback (most recent call last): File "", line 1, in TypeError: 'NoneType' object is not callable on IPy 2.6.0: >>> None(3) Traceback (most recent call last): File "", line 1, in TypeError: DynamicNull is not callable for some reason the type in the error shows up as DynamicNull instead of NoneType type(None) looks fine int behaves similarly. this doesn't affect me at all, except for scratching my head for a bit longer when I debugged my code just now, but thought you might want to know. Ronnie -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Tue Mar 16 16:53:53 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Tue, 16 Mar 2010 08:53:53 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <62a515f4-5a8d-4543-847d-a408baaa2f95@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/64769. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonDocumentationProvider.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Hosting/ParameterDoc.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/DocBuilder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/BuiltinFunction.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonTypeOps.cs $/IronPython/IronPython_Main/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_Main/Src/Tests/test_cliclass.py $/IronPython/IronPython_Main/Src/Tests/test_methoddispatch.py $/IronPython/IronPython_Main/Src/Tests/test_help.py $/IronPython/IronPython_Main/Src/Tests/test_genericmeth.py $/IronPython/IronPython_Main/Src/Tests/test_doc.py $/IronPython/IronPython_Main/Src/Tests/test_property.py $/IronPython/IronPython_Main/Tutorial/Tutorial.htm CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1679518 Date: 3/15/2010 2:13:31 PM Improves auto-doc and makes it so we can get good overload documentation for built-in functions from the DLR hosting doc APIs. Fixes our documentation of built-in functions so types are displayed in the Python 3.x annotation format. Updates tests so they expect the correct results. Also fixes hosting API documentation of delegates ? rather than documenting the underlying method we now properly document the delegate invocation signature. Adds a new Documentation property to ParameterDoc objects so you can get the individual documentation for each parameter. (Shelveset: ImproveAutoDocFinal2;REDMOND\dinov | SNAP CheckinId: 10516) From dinov at microsoft.com Tue Mar 16 17:39:10 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 16 Mar 2010 16:39:10 +0000 Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6 In-Reply-To: <4B9F8981.90605@bakalari.cz> References: <4B9F8981.90605@bakalari.cz> Message-ID: <1A472770E042064698CB5ADC83A12ACD39455908@TK5EX14MBXC118.redmond.corp.microsoft.com> A possible work around for this is: def f(): for i in xrange(200): try: return System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() except: pass After enough invocations we will no longer use reflection to call it. We just need to add IsolatedStorageFile to a black list of things that shouldn't be invoked via reflection. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky > Sent: Tuesday, March 16, 2010 6:37 AM > To: Discussion of IronPython > Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws > SystemError in IronPython 2.6 > > Hi all, > one cannot use IsolatedStorage in IronPython 2.6. > Calling IsolatedStorageFile.GetUserStoreForApplication() throws > > SystemError: Application code cannot access > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > using Reflection. > > > It works fine in IronPython 2.0.2. > > I've entered a bug: > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488 > > -- > -- Luk?? > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From dinov at microsoft.com Tue Mar 16 17:45:32 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 16 Mar 2010 16:45:32 +0000 Subject: [IronPython] minor issue with types in error messages In-Reply-To: <2fd6b9d1003160711v7cbf060ct3d03bfc09662b3b5@mail.gmail.com> References: <2fd6b9d1003160711v7cbf060ct3d03bfc09662b3b5@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD39455AAB@TK5EX14MBXC118.redmond.corp.microsoft.com> We're picking up the .NET type name (we have a .NET type to represent NoneType) not the Python type name. You can also see it with ""() where we report String is not callable. It's simple enough to fix. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronnie Maor Sent: Tuesday, March 16, 2010 7:12 AM To: Discussion of IronPython Subject: [IronPython] minor issue with types in error messages CPython: >>> None(3) Traceback (most recent call last): File "", line 1, in TypeError: 'NoneType' object is not callable on IPy 2.6.0: >>> None(3) Traceback (most recent call last): File "", line 1, in TypeError: DynamicNull is not callable for some reason the type in the error shows up as DynamicNull instead of NoneType type(None) looks fine int behaves similarly. this doesn't affect me at all, except for scratching my head for a bit longer when I debugged my code just now, but thought you might want to know. Ronnie -------------- next part -------------- An HTML attachment was scrubbed... URL: From cenovsky at bakalari.cz Tue Mar 16 19:13:01 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Tue, 16 Mar 2010 19:13:01 +0100 Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD39455908@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B9F8981.90605@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD39455908@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4B9FCA2D.1080809@bakalari.cz> You're trying 5 times :-) Thanks for the workaround. -- -- Luk?? Dino Viehland wrote: > A possible work around for this is: > > def f(): > for i in xrange(200): > try: > return System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > except: pass > > After enough invocations we will no longer use reflection to call it. > > We just need to add IsolatedStorageFile to a black list of things that shouldn't > be invoked via reflection. > > >> -----Original Message----- >> From: users-bounces at lists.ironpython.com [mailto:users- >> bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky >> Sent: Tuesday, March 16, 2010 6:37 AM >> To: Discussion of IronPython >> Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws >> SystemError in IronPython 2.6 >> >> Hi all, >> one cannot use IsolatedStorage in IronPython 2.6. >> Calling IsolatedStorageFile.GetUserStoreForApplication() throws >> >> SystemError: Application code cannot access >> System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() >> using Reflection. >> >> >> It works fine in IronPython 2.0.2. >> >> I've entered a bug: >> http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488 >> >> -- >> -- 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 fuzzyman at voidspace.org.uk Tue Mar 16 20:09:03 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Tue, 16 Mar 2010 19:09:03 +0000 Subject: [IronPython] EuroPython 2010 - Open for registration and reminder of participation Message-ID: <4B9FD74F.5050900@voidspace.org.uk> EuroPython 2010 - 17th to 24th July 2010 ---------------------------------------- EuroPython is a conference for the Python programming language community, including the Django, Zope and Plone communities. It is aimed at everyone in the Python community, of all skill levels, both users and programmers. Last year's conference was the largest open source conference in the UK and one of the largest community organised software conferences in Europe. This year EuroPython will be held from the 17th to 24th July in Birmingham, UK. It will include over 100 talks, tutorials, sprints and social events. Registration ------------ Registration is open now at: http://www.europython.eu/registration/ For the best registration rates, book as soon as you can! Extra Early Bird closes soon, after which normal Early Bird rate will apply until 10th May Talks, Activities and Events ---------------------------- Do you have something you wish to present at EuroPython? You want to give a talk, run a tutorial or sprint? Go to http://www.europython.eu/talks/cfp/ for information and advice! Go to http://wiki.europython.eu/Sprints to plan a sprint! Help Us Out ----------- EuroPython is run by volunteers, like you! We could use a hand, and any contribution is welcome. Go to http://wiki.europython.eu/Helping to join us! Go to http://www.europython.eu/contact/ to contact us directly! Sponsors -------- Sponsoring EuroPython is a unique opportunity to affiliate with this prestigious conference and to reach a large number of Python users from computing professionals to academics, from entrepreneurs to motivated and well-educated job seekers. http://www.europython.eu/sponsors/ Spread the Word --------------- We are a community-run not-for-profit conference. Please help to spread the word by distributing this announcement to colleagues, project mailing lists, friends, your blog, Web site, and through your social networking connections. Take a look at our publicity resources: http://wiki.europython.eu/Publicity General Information ------------------- For more information about the conference, please visit the official site: http://www.europython.eu/ Looking forward to see you! The EuroPython Team -- 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 Tue Mar 16 22:11:29 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 16 Mar 2010 21:11:29 +0000 Subject: [IronPython] Django, __unicode__, and #20366 In-Reply-To: References: <1A472770E042064698CB5ADC83A12ACD392D586B@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392E30FF@TK5EX14MBXC116.redmond.corp.microsoft.com> <4B752C29.6060700@voidspace.org.uk> <1A472770E042064698CB5ADC83A12ACD392FC104@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE382@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE7BF@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD39459D45@TK5EX14MBXC118.redmond.corp.microsoft.com> Jeff wrote: > On Mon, Feb 15, 2010 at 4:41 PM, Dino Viehland wrote: > > We could make % on a Unicode literal do something special much like > > we're doing for calls to unicode(...). ?Alternately we could make % > > try to invoke __unicode__ before __str__ - but that would sometimes > > be wrong. ?Probably not very often, it's hard to imagine someone > > defining __unicode__ and expecting __str__ to be returned with > > a significant difference. > > Fixing up u"..." literals is probably the lowest impact change, > especially for a point release. You never know what crazy stuff people > might do. > This change is checked in now - we'll now call __unicode__ on an object on the RHS if you do something like: u'%s' % (some_object, ) It's currently in Main but I'll integrate it over to 2.6 later this week. From ronnie.maor at gmail.com Wed Mar 17 11:03:53 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Wed, 17 Mar 2010 12:03:53 +0200 Subject: [IronPython] abstract base classes Message-ID: <2fd6b9d1003170303y5e557c08pf546891be9fd446f@mail.gmail.com> This is probably something well known, but I just tried using ABCs in IPy 2.6 for first time and saw that they don't enforce anything: from abc import ABCMeta, abstractmethod class A(object): __metaclass__ = ABCMeta @abstractmethod def foo(self, x): pass class B(A): pass # no foo method b = B() # shouldn't work, but does Do you know if/when this is planned to be fixed? thanks Ronnie -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Wed Mar 17 16:54:34 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 17 Mar 2010 08:54:34 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <367cc696-9e52-4292-aee5-344bc93b9805@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/64781. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/FunctionCode.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Exceptions/PythonExceptions.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Actions/Calls/MethodCandidate.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.Invoke.cs $/IronPython/IronPython_Main/Src/Tests/test_exceptions.py $/IronPython/IronPython_Main/Src/Tests/test_cliclass.py $/IronPython/IronPython_Main/Src/Tests/test_ipyc.py $/IronPython/IronPython_Main/Src/Tests/test_nonetype.py CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1682453 Date: 3/16/2010 3:24:30 PM 26109 incorrect handling of named parameter "args" Renames the argument so it has a name which is invalid for CPython parameter names 26196 docstrings not present in compiled dlls We just need to set the value in FunctionCode?s constructor 26488 IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6 Add IsolatedStorage to the list of restricted types Also fixing an issue where we report the wrong type name when calling None. (Shelveset: MoreFinal261BugFixes;REDMOND\dinov | SNAP CheckinId: m11398) From jdhardy at gmail.com Wed Mar 17 17:06:43 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Wed, 17 Mar 2010 10:06:43 -0600 Subject: [IronPython] Django, __unicode__, and #20366 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD39459D45@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <1A472770E042064698CB5ADC83A12ACD392E30FF@TK5EX14MBXC116.redmond.corp.microsoft.com> <4B752C29.6060700@voidspace.org.uk> <1A472770E042064698CB5ADC83A12ACD392FC104@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE382@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE7BF@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD39459D45@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: On Tue, Mar 16, 2010 at 3:11 PM, Dino Viehland wrote: > This change is checked in now - we'll now call __unicode__ on an object > on the RHS if you do something like: > > u'%s' % (some_object, ) > > It's currently in Main but I'll integrate it over to 2.6 later this week. Cool. Are you planning on doing an RC2 or just straight to RTM? - Jeff From dfugate at microsoft.com Wed Mar 17 17:16:12 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Wed, 17 Mar 2010 16:16:12 +0000 Subject: [IronPython] Django, __unicode__, and #20366 In-Reply-To: References: <1A472770E042064698CB5ADC83A12ACD392E30FF@TK5EX14MBXC116.redmond.corp.microsoft.com> <4B752C29.6060700@voidspace.org.uk> <1A472770E042064698CB5ADC83A12ACD392FC104@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE382@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE7BF@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD39459D45@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <96F8AA58D9F50A4CAFD1DCA93C99232C1BB904@TK5EX14MBXC123.redmond.corp.microsoft.com> Straight to RTM. Dave -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Wednesday, March 17, 2010 9:07 AM To: Discussion of IronPython Subject: Re: [IronPython] Django, __unicode__, and #20366 On Tue, Mar 16, 2010 at 3:11 PM, Dino Viehland wrote: > This change is checked in now - we'll now call __unicode__ on an object > on the RHS if you do something like: > > u'%s' % (some_object, ) > > It's currently in Main but I'll integrate it over to 2.6 later this week. Cool. Are you planning on doing an RC2 or just straight to RTM? - Jeff _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From jdhardy at gmail.com Wed Mar 17 17:34:10 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Wed, 17 Mar 2010 10:34:10 -0600 Subject: [IronPython] Django, __unicode__, and #20366 In-Reply-To: <96F8AA58D9F50A4CAFD1DCA93C99232C1BB904@TK5EX14MBXC123.redmond.corp.microsoft.com> References: <1A472770E042064698CB5ADC83A12ACD392FC104@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE382@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE7BF@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD39459D45@TK5EX14MBXC118.redmond.corp.microsoft.com> <96F8AA58D9F50A4CAFD1DCA93C99232C1BB904@TK5EX14MBXC123.redmond.corp.microsoft.com> Message-ID: On Wed, Mar 17, 2010 at 10:16 AM, Dave Fugate wrote: > Straight to RTM. Is there a timeline? At one point I thought it was to coincide with VS2010 RTM, but I may be thinking of something else... - Jeff From dfugate at microsoft.com Wed Mar 17 17:36:40 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Wed, 17 Mar 2010 16:36:40 +0000 Subject: [IronPython] Django, __unicode__, and #20366 In-Reply-To: References: <1A472770E042064698CB5ADC83A12ACD392FC104@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE382@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD392FE7BF@TK5EX14MBXC116.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD39459D45@TK5EX14MBXC118.redmond.corp.microsoft.com> <96F8AA58D9F50A4CAFD1DCA93C99232C1BB904@TK5EX14MBXC123.redmond.corp.microsoft.com> Message-ID: <96F8AA58D9F50A4CAFD1DCA93C99232C1BB967@TK5EX14MBXC123.redmond.corp.microsoft.com> Yes, it'll coincide with VS2010 RTM;) -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Wednesday, March 17, 2010 9:34 AM To: Discussion of IronPython Subject: Re: [IronPython] Django, __unicode__, and #20366 On Wed, Mar 17, 2010 at 10:16 AM, Dave Fugate wrote: > Straight to RTM. Is there a timeline? At one point I thought it was to coincide with VS2010 RTM, but I may be thinking of something else... - Jeff _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From cjac at colliertech.org Wed Mar 17 18:17:52 2010 From: cjac at colliertech.org (C.J. Adams-Collier) Date: Wed, 17 Mar 2010 10:17:52 -0700 Subject: [IronPython] Debian bug #516396 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD39402AD5@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <1268271324.4313.2.camel@calcifer> <1A472770E042064698CB5ADC83A12ACD39402AD5@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <1268846272.4067.545.camel@calcifer> On Thu, 2010-03-11 at 02:57 +0000, Dino Viehland wrote: > Does ^D not work at all? Does it work w/ the -X:TabCompletion option? Thanks, this mostly did it. The expected behavior would be for the REPL to quit immediately after ^D is pressed and not to wait for the enter, but this is probably good enough for now ;) > In -X:TabCompletion mode we have code specifically to check if we're on > Unix and if so we recognize Ctrl-D instead of Ctrl-Z. This code is in > SuperConsole.cs if you want to step through in case that's not working. > I hope it is though because we closed a bug on this on our side after we > put this code in! :) I'll look through that code and see if I can remove the requirement for the enter. I can make a debian-specific patch if you'd prefer to keep the current behavior. > Otherwise w/o that option we're just calling Console.In.ReadLine(). On > Windows this returns NULL when you type Ctrl-Z because it's the EOF. I > would say if this should return null when you type Ctrl-D on Linux then > Mono should support this behavior (unless there's some reason why this > doesn't make sense and then we should discuss). If you wanted to try > and step through this it's in BasicConsole.cs. I don't think I'll end up needing to do this, but I'll keep it in mind if all else fails :) Cheers, C.J. > > _______________________________________________ > 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: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From cjac at colliertech.org Wed Mar 17 18:19:13 2010 From: cjac at colliertech.org (C.J. Adams-Collier) Date: Wed, 17 Mar 2010 10:19:13 -0700 Subject: [IronPython] Debian bug #516396 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD39402B67@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <1268271324.4313.2.camel@calcifer> <1A472770E042064698CB5ADC83A12ACD39402AD5@TK5EX14MBXC118.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD39402B67@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <1268846353.4067.546.camel@calcifer> On Thu, 2010-03-11 at 03:05 +0000, Dino Viehland wrote: > Also this bug appears to be reported against Ipy 1.1.1 - the bug may not > be fixed there so it might be worth making sure it still repros w/ 2.6 if > you haven't already. We've superseded this package, so the old one is no longer supported, if I understand correctly. Cheers, C.J. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From cjac at colliertech.org Wed Mar 17 18:20:24 2010 From: cjac at colliertech.org (C.J. Adams-Collier) Date: Wed, 17 Mar 2010 10:20:24 -0700 Subject: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid In-Reply-To: References: <1268245654.4601.11.camel@calcifer> Message-ID: <1268846424.4067.547.camel@calcifer> Heya Vernon, Yeah, we're working on that. It should be in Lucid, which is due out next month. If you would like to follow the progress, subscribe over here: https://bugs.launchpad.net/ubuntu/+source/ironpython/+bug/525547 Cheers, C.J. On Wed, 2010-03-10 at 22:38 -0700, Vernon Cole wrote: > C.J.: > This in indeed great news! Can you give a hint how to get Ubuntu to > pick this up? I'm really tired of only having IPy 1.1, but I don't > know my way around Debian's APT-GET setup for new submissions. > -- > Vernon Cole > > On Wed, Mar 10, 2010 at 11:27 AM, C.J. Adams-Collier > wrote: > Hey all, > > The dlr-languages package has been accepted into Debian. It > should take > much less effort to get the next release in. > > Does anyone have a recommendation for what version we should > package > next? > > Thanks for all of your help getting this shipped! > > C.J. > > > _______________________________________________ > 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: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From dinov at microsoft.com Wed Mar 17 18:26:45 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 17 Mar 2010 17:26:45 +0000 Subject: [IronPython] abstract base classes In-Reply-To: <2fd6b9d1003170303y5e557c08pf546891be9fd446f@mail.gmail.com> References: <2fd6b9d1003170303y5e557c08pf546891be9fd446f@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD3946178B@TK5EX14MBXC118.redmond.corp.microsoft.com> I didn't even realize this is broken. Probably 2.6.2 at the earliest - it looks like we had the test case which validates this disabled due to a generic "needs to work on 2.6 bug". I've opened this more specific bug: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26499 Thanks for the report! From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronnie Maor Sent: Wednesday, March 17, 2010 3:04 AM To: Discussion of IronPython Subject: [IronPython] abstract base classes This is probably something well known, but I just tried using ABCs in IPy 2.6 for first time and saw that they don't enforce anything: from abc import ABCMeta, abstractmethod class A(object): __metaclass__ = ABCMeta @abstractmethod def foo(self, x): pass class B(A): pass # no foo method b = B() # shouldn't work, but does Do you know if/when this is planned to be fixed? thanks Ronnie -------------- next part -------------- An HTML attachment was scrubbed... URL: From vernondcole at gmail.com Wed Mar 17 19:30:12 2010 From: vernondcole at gmail.com (Vernon Cole) Date: Wed, 17 Mar 2010 12:30:12 -0600 Subject: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid In-Reply-To: <1268846424.4067.547.camel@calcifer> References: <1268245654.4601.11.camel@calcifer> <1268846424.4067.547.camel@calcifer> Message-ID: Great! I am subscribed and downloading the Lucid daily-build CD as we speak. -- Vernon On Wed, Mar 17, 2010 at 11:20 AM, C.J. Adams-Collier wrote: > Heya Vernon, > > Yeah, we're working on that. It should be in Lucid, which is due out > next month. If you would like to follow the progress, subscribe over > here: > > https://bugs.launchpad.net/ubuntu/+source/ironpython/+bug/525547 > > Cheers, > > C.J. > > > On Wed, 2010-03-10 at 22:38 -0700, Vernon Cole wrote: > > C.J.: > > This in indeed great news! Can you give a hint how to get Ubuntu to > > pick this up? I'm really tired of only having IPy 1.1, but I don't > > know my way around Debian's APT-GET setup for new submissions. > > -- > > Vernon Cole > > > > On Wed, Mar 10, 2010 at 11:27 AM, C.J. Adams-Collier > > wrote: > > Hey all, > > > > The dlr-languages package has been accepted into Debian. It > > should take > > much less effort to get the next release in. > > > > Does anyone have a recommendation for what version we should > > package > > next? > > > > Thanks for all of your help getting this shipped! > > > > C.J. > > > > > > _______________________________________________ > > 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 merllab at microsoft.com Wed Mar 17 20:09:50 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 17 Mar 2010 12:09:50 -0700 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/64785. ADDED SOURCES $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/ParameterInfoWrapper.cs $/IronPython/IronPython_2_6/Src/IronPythonTest/MemberOverloadTest.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/OverloadInfo.cs $/IronPython/IronPython_2_6/Src/Tests/encoded_files/cp20472.py $/IronPython/IronPython_2_6/Src/Tests/stress/bigimport1_test.py $/IronPython/IronPython_2_6/Src/Tests/stress/__init__.py $/IronPython/IronPython_2_6/Src/Tests/stress DELETED SOURCES $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Generation/ParameterInfoWrapper.cs MODIFIED SOURCES $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/ParameterInfoWrapper.cs $/IronPython/IronPython_2_6/Src/IronPythonTest/MemberOverloadTest.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonDocumentationProvider.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AstMethods.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/PythonConstantExpression.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/BindingTarget.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/DefaultArgBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/CandidateSet.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/Field.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/CFuncPtrType.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/_fileio.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/math.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/marshal.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/_bytesio.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/array.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/ModuleOps.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/copy_reg.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/cPickle.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonOverloadResolver.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonGetMemberBinder.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/Chiron.csproj $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Microsoft.Scripting.Silverlight/Repl.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight.csproj $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Microsoft.Scripting.Silverlight/agdlr.css $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/ArrayType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/Array.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/StructType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ctypes/PointerType.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_struct.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_random.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_codecs.cs $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Chiron/XapBuilder.cs $/IronPython/IronPython_2_6/Config/Unsigned/App.config $/IronPython/IronPython_2_6/Config/Signed/App.config $/IronPython/IronPython_2_6/Src/IronPython.Modules/cmath.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/Types/OldInstance.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/BuiltinFunction.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/TypeCache.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/FloatOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/BoolOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/StringOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Exceptions/TraceBack.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonTuple.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/ByteArray.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/List.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Converter.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/AttributesDictionaryStorage.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonTracebackListener.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/FunctionCode.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Bytes.cs $/IronPython/IronPython_2_6/Src/IronPython/Modules/Builtin.cs $/IronPython/IronPython_2_6/Src/IronPython/Modules/sys.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/TryStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/CallExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/BinaryExpression.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Parser.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Tokenizer.cs $/IronPython/IronPython_2_6/Src/IronPython/IronPython.csproj $/IronPython/IronPython_2_6/Src/IronPythonTest/Stress/Engine.cs $/IronPython/IronPython_2_6/Src/IronPythonTest/IronPythonTest.csproj $/IronPython/IronPython_2_6/Src/IronPythonTest/BindTest.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/operator.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/socket.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/IterTools.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/datetime.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/MetaOldInstance.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/BindingHelpers.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/PythonBinder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/IntOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/IntOps.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/ObjectOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/ByteOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonFile.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/BindingWarnings.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/LiteralParser.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/Node.cs $/IronPython/IronPython_2_6/Src/IronPythonConsoleAny/IronPythonConsoleAny.csproj $/IronPython/IronPython_2_6/Src/IronPythonTest/BinderTest.cs $/IronPython/IronPython_2_6/Src/IronPythonWindowAny/IronPythonWindowAny.csproj $/IronPython/IronPython_2_6/Src/IronPython.sln $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/SlotOrFunction.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/PythonType.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/NewTypeMaker.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/TypeInfo.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/LongOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/DecimalOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/ComplexOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/StringFormatter.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonModule.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/FutureBuiltins.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/SuiteStatement.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/PythonAst.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/PythonScriptCode.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/OverloadInfo.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/Instructions/InstructionFactory.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/PlatformAdaptationLayer.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/Generation/AssemblyGen.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LightLambda.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/Calls/ParamsDictArgBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.DeleteMember.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Hosting/Shell/ConsoleHost.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/HashSet.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Math/Complex64.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Math/BigIntegerV2.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/LightCompiler.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/InterpretedFrame.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Ast/ConstantExpression.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/ParameterMapping.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/TypeInferer.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/ReturnReferenceArgBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/Calls/ReferenceArgBuilder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/CallSignature.cs $/IronPython/IronPython_2_6/Src/IronPythonTest/IronMath.cs $/IronPython/IronPython_2_6/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_2_6/Src/Tests/encoded_files/cp20472.py $/IronPython/IronPython_2_6/Src/Tests/interop/net/dynamic/dynamic_regressions.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/marshal_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/io_related/codecs_test.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.GetMember.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.SetMember.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Microsoft.Dynamic.csproj $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Runtime/ScriptingRuntimeHelpers.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/ArrayUtils.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/ReflectionUtils.cs $/IronPython/IronPython_2_6/Src/Tests/compat/common.py $/IronPython/IronPython_2_6/Src/Tests/harness.py $/IronPython/IronPython_2_6/Tools/Scripts/pyc.py $/IronPython/IronPython_2_6/Src/Tests/regressions.py $/IronPython/IronPython_2_6/Src/Tests/RunAgainstCpy.py $/IronPython/IronPython_2_6/Src/Tests/test_methoddispatch.py $/IronPython/IronPython_2_6/Src/Tests/test_attrinjector.py $/IronPython/IronPython_2_6/Src/Scripts/generate_typecache.py $/IronPython/IronPython_2_6/Src/Scripts/generate_ops.py $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Debugging/TracePipeline/TracePipeline.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting.Core/Microsoft.Scripting.Core.csproj $/IronPython/IronPython_2_6/Src/Tests/test_ironmath.py $/IronPython/IronPython_2_6/Src/Tests/test_methodbinder1.py $/IronPython/IronPython_2_6/Src/Tests/Tools/baselines/_codecs.log $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/sys_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/system_related/thread_test.py $/IronPython/IronPython_2_6/Src/Tests/modules/misc/math_test.py $/IronPython/IronPython_2_6/Src/Tests/stress/bigimport1_test.py $/IronPython/IronPython_2_6/Src/Tests/stress/__init__.py From jdhardy at gmail.com Thu Mar 18 17:31:01 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Thu, 18 Mar 2010 10:31:01 -0600 Subject: [IronPython] Referencing extension modules from hosting Message-ID: When using a C# PythonModule, there seem to be two ways to load it: from script using clr.AddReference and into the console by dropping it into the DLLs folder. However, there doesn't seem to be a straightforward way to load them in a hosting scenario. The best way I've found is the following: string zlibModule = "IronPython.Zlib.dll" object addRef = engine.GetClrModule().GetVariable("AddReference"); Assembly zlib = Assembly.LoadFile(zlibFile); engine.Operations.Invoke(addRef, zlib); It's not terribly difficult to write, but it would be nice to have an extension method on ScriptEngine that did it. In a similar vein, it would be nice if the engine could scan the current AppDomain for assemblies that contain PythonModules - this would be useful when running under ASP.NET, as it references an assemblies in its bin/ folder, and having them automatically available would be handy. Finally, it would be nice to have an extension method on ScriptScope - ImportModule? - that did the equivalent of scope.SetVariable("zlib", scope.Engine.ImportModule("zlib")); If these suggestions are useful I'll create issues for them. - Jeff P.S. These are the sorts of things it would be nice to be able to contribute patches for. From dinov at microsoft.com Thu Mar 18 17:42:51 2010 From: dinov at microsoft.com (Dino Viehland) Date: Thu, 18 Mar 2010 16:42:51 +0000 Subject: [IronPython] Referencing extension modules from hosting In-Reply-To: References: Message-ID: <1A472770E042064698CB5ADC83A12ACD3946A600@TK5EX14MBXC118.redmond.corp.microsoft.com> Jeff wrote: > When using a C# PythonModule, there seem to be two ways to load it: > from script using clr.AddReference and into the console by dropping it > into the DLLs folder. However, there doesn't seem to be a > straightforward way to load them in a hosting scenario. > > The best way I've found is the following: > > string zlibModule = "IronPython.Zlib.dll" > object addRef = engine.GetClrModule().GetVariable("AddReference"); > Assembly zlib = Assembly.LoadFile(zlibFile); > engine.Operations.Invoke(addRef, zlib); > > It's not terribly difficult to write, but it would be nice to have an > extension method on ScriptEngine that did it. I think ScriptRuntime.LoadAssembly should do this as well and is simpler. > > In a similar vein, it would be nice if the engine could scan the > current AppDomain for assemblies that contain PythonModules - this > would be useful when running under ASP.NET, as it references an > assemblies in its bin/ folder, and having them automatically available > would be handy. I'm not sure this one is actually possible - I don't think there's any way to enumerate loaded assemblies. > > Finally, it would be nice to have an extension method on ScriptScope - > ImportModule? - that did the equivalent of > > scope.SetVariable("zlib", scope.Engine.ImportModule("zlib")); > > If these suggestions are useful I'll create issues for them. This one sounds like a good idea. > > - Jeff > > P.S. These are the sorts of things it would be nice to be able to > contribute patches for. I agree :( From cenovsky at bakalari.cz Thu Mar 18 17:48:58 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Thu, 18 Mar 2010 17:48:58 +0100 Subject: [IronPython] Want to write IronPython apps for Windows Mobile 7? Message-ID: <4BA2597A.7020303@bakalari.cz> Want to write IronPython apps for Windows Mobile 7? Comment here: http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/9e2c3ae7-0eba-4ca5-a920-018cc825cdfd -- -- Luk?? From ronnie.maor at gmail.com Thu Mar 18 18:27:41 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Thu, 18 Mar 2010 19:27:41 +0200 Subject: [IronPython] abstract base classes In-Reply-To: <1A472770E042064698CB5ADC83A12ACD3946178B@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <2fd6b9d1003170303y5e557c08pf546891be9fd446f@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD3946178B@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <2fd6b9d1003181027j4d2cdeean1d093b38fc18e583@mail.gmail.com> cool :-) On Wed, Mar 17, 2010 at 7:26 PM, Dino Viehland wrote: > I didn?t even realize this is broken. Probably 2.6.2 at the earliest ? > it looks like we had the test case which validates this disabled due to a > generic ?needs to work on 2.6 bug?. > > > > I?ve opened this more specific bug: > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26499 > > > > Thanks for the report! > > > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Ronnie Maor > *Sent:* Wednesday, March 17, 2010 3:04 AM > *To:* Discussion of IronPython > *Subject:* [IronPython] abstract base classes > > > > This is probably something well known, but I just tried using ABCs in IPy > 2.6 for first time and saw that they don't enforce anything: > > > > from abc import ABCMeta, abstractmethod > > class A(object): > > __metaclass__ = ABCMeta > > > > @abstractmethod > > def foo(self, x): > > pass > > > > class B(A): pass # no foo method > > > > b = B() # shouldn't work, but does > > > > > > Do you know if/when this is planned to be fixed? > > > > 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 ronnie.maor at gmail.com Thu Mar 18 18:40:26 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Thu, 18 Mar 2010 19:40:26 +0200 Subject: [IronPython] normalizing parameters from a method call Message-ID: <2fd6b9d1003181040v1310f09fn60469136a52933ed@mail.gmail.com> I'm writing a decorator that needs to identify whether the function it's wrapping contains specific variables and if so, what value was passed to them. For example if the function is foo(x,y) and it's called with foo(1,2) I want to have this information - {'x' : 1, 'y' : 2} My problem is that the caller can mix between positional and keyword arguments. If I write my decorator as accepting *a,**kw I can probably use inspect.getargspec to figure out all the information like I want it. However, it seems that this is something the language already does, so I wanted to know if I can get some access to the mechanism in python or specifically in IPy, so I don't have to write it again... Any tips would be greatly appreciated thanks Ronnie -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Thu Mar 18 18:49:24 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Thu, 18 Mar 2010 11:49:24 -0600 Subject: [IronPython] Referencing extension modules from hosting In-Reply-To: <1A472770E042064698CB5ADC83A12ACD3946A600@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <1A472770E042064698CB5ADC83A12ACD3946A600@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: On Thu, Mar 18, 2010 at 10:42 AM, Dino Viehland wrote: >> It's not terribly difficult to write, but it would be nice to have an >> extension method on ScriptEngine that did it. > > I think ScriptRuntime.LoadAssembly should do this as well and is simpler. Hence why I asked :) Didn't know about that one. > I'm not sure this one is actually possible - I don't think there's any > way to enumerate loaded assemblies. What about AppDomain.Current.GetAssemblies()? Not sure how that would play with a remoted engine, mind you. I'll create an issue for the ScriptScope extension. - Jeff From dinov at microsoft.com Thu Mar 18 18:49:51 2010 From: dinov at microsoft.com (Dino Viehland) Date: Thu, 18 Mar 2010 17:49:51 +0000 Subject: [IronPython] normalizing parameters from a method call In-Reply-To: <2fd6b9d1003181040v1310f09fn60469136a52933ed@mail.gmail.com> References: <2fd6b9d1003181040v1310f09fn60469136a52933ed@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD3946AE99@TK5EX14MBXC118.redmond.corp.microsoft.com> The code for this is in MetaPythonFunction in the FunctionBinderHelper class. In particular GetArgumentsForRule is pretty close to what you're wanting - but this is all working at the meta-level and creating expressions which will be used for the call. But you can probably use that code as a base. You could also go back to an older version of Python and look for a KwArgBinder class which may be a little more straight forward. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronnie Maor Sent: Thursday, March 18, 2010 10:40 AM To: Discussion of IronPython Subject: [IronPython] normalizing parameters from a method call I'm writing a decorator that needs to identify whether the function it's wrapping contains specific variables and if so, what value was passed to them. For example if the function is foo(x,y) and it's called with foo(1,2) I want to have this information - {'x' : 1, 'y' : 2} My problem is that the caller can mix between positional and keyword arguments. If I write my decorator as accepting *a,**kw I can probably use inspect.getargspec to figure out all the information like I want it. However, it seems that this is something the language already does, so I wanted to know if I can get some access to the mechanism in python or specifically in IPy, so I don't have to write it again... Any tips would be greatly appreciated thanks Ronnie -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronnie.maor at gmail.com Thu Mar 18 18:51:56 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Thu, 18 Mar 2010 19:51:56 +0200 Subject: [IronPython] normalizing parameters from a method call In-Reply-To: <1A472770E042064698CB5ADC83A12ACD3946AE99@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <2fd6b9d1003181040v1310f09fn60469136a52933ed@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD3946AE99@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <2fd6b9d1003181051v274c1493s5d064e9f79fbf0d4@mail.gmail.com> will try that. thanks! On Thu, Mar 18, 2010 at 7:49 PM, Dino Viehland wrote: > The code for this is in MetaPythonFunction in the FunctionBinderHelper > class. In particular GetArgumentsForRule is pretty close to what you?re > wanting ? but this is all working at the meta-level and creating expressions > which will be used for the call. But you can probably use that code as a > base. > > > > You could also go back to an older version of Python and look for a > KwArgBinder class which may be a little more straight forward. > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Ronnie Maor > *Sent:* Thursday, March 18, 2010 10:40 AM > *To:* Discussion of IronPython > *Subject:* [IronPython] normalizing parameters from a method call > > > > I'm writing a decorator that needs to identify whether the function it's > wrapping contains specific variables and if so, what value was passed to > them. > > > > For example if the function is foo(x,y) and it's called with foo(1,2) > I want to have this information - {'x' : 1, 'y' : 2} > > My problem is that the caller can mix between positional and keyword > arguments. > > > > If I write my decorator as accepting *a,**kw I can probably use > inspect.getargspec to figure out all the information like I want it. > > However, it seems that this is something the language already does, so I > wanted to know if I can get some access to the mechanism in python or > specifically in IPy, so I don't have to write it again... > > > > Any tips would be greatly appreciated > > > > 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 dinov at microsoft.com Thu Mar 18 18:53:29 2010 From: dinov at microsoft.com (Dino Viehland) Date: Thu, 18 Mar 2010 17:53:29 +0000 Subject: [IronPython] Referencing extension modules from hosting In-Reply-To: References: <1A472770E042064698CB5ADC83A12ACD3946A600@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD3946AEF1@TK5EX14MBXC118.redmond.corp.microsoft.com> Jeff wrote: > What about AppDomain.Current.GetAssemblies()? Not sure how that would > play with a remoted engine, mind you. Oh, I didn't know about that. Go ahead and open a bug for this one as well. As long as there are no bad performance problems from reflecting over every assembly this would be cool - at least as an option on the ScriptRuntime. I could see a desire for us not to always do this because you might want to have different runtimes w/ different loaded modules in the same app domain. From merllab at microsoft.com Thu Mar 18 20:08:53 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Thu, 18 Mar 2010 12:08:53 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <4a173860-fddf-434e-b7d3-a06d9ddbcd93@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/64812. MODIFIED SOURCES $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonDocumentationProvider.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Hosting/ParameterDoc.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/AstMethods.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/Actions/Calls/MethodCandidate.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Actions/DefaultBinder.Invoke.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/_ssl.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/BuiltinFunction.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/TypeCache.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/DocBuilder.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/StringOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/PythonTypeOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Exceptions/PythonExceptions.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Exceptions/PythonExceptions.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/FunctionCode.cs $/IronPython/IronPython_2_6/Src/IronPython/Lib/iptest/assert_util.py $/IronPython/IronPython_2_6/Src/IronPython/Modules/Builtin.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Modules/Builtin.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/BinaryExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/BinaryExpression.Generated.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Ast/ConstantExpression.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Parser.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Tokenizer.cs $/IronPython/IronPython_2_6/Src/IronPython/Compiler/Token.cs $/IronPython/IronPython_2_6/Src/IronPython.Modules/socket.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/OldClass.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_2_6/Src/Tests/modules/network_related/_ssl_test.py $/IronPython/IronPython_2_6/Src/Tests/compat/common.py $/IronPython/IronPython_2_6/Src/Tests/interop/com/apps/excel.py $/IronPython/IronPython_2_6/Src/Tests/test_class.py $/IronPython/IronPython_2_6/Src/Scripts/generate_ops.py $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Super.cs $/IronPython/IronPython_2_6/Src/App.config $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Binding/MetaPythonType.Members.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Types/TypeInfo.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/InstanceOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/LongOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/ComplexOps.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/StringFormatter.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_2_6/Src/Scripts/generate_exceptions.py $/IronPython/IronPython_2_6/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_2_6/Src/Tests/test_exceptions.py $/IronPython/IronPython_2_6/Src/Tests/test_cliclass.py $/IronPython/IronPython_2_6/Src/Tests/test_imp.py $/IronPython/IronPython_2_6/Src/Tests/test_ipyc.py $/IronPython/IronPython_2_6/Src/Tests/test_isinstance.py $/IronPython/IronPython_2_6/Src/Tests/test_help.py $/IronPython/IronPython_2_6/Src/Tests/test_doc.py $/IronPython/IronPython_2_6/Src/Tests/test_genericmeth.py $/IronPython/IronPython_2_6/Src/Tests/test_memory.py $/IronPython/IronPython_2_6/Src/Tests/test_property.py $/IronPython/IronPython_2_6/Src/Tests/test_nonetype.py $/IronPython/IronPython_2_6/Src/Tests/test_methoddispatch.py $/IronPython/IronPython_2_6/Src/Tests/test_traceback.py $/IronPython/IronPython_2_6/Tutorial/Tutorial.htm From jdhardy at gmail.com Thu Mar 18 20:53:20 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Thu, 18 Mar 2010 13:53:20 -0600 Subject: [IronPython] Referencing extension modules from hosting In-Reply-To: <1A472770E042064698CB5ADC83A12ACD3946AEF1@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <1A472770E042064698CB5ADC83A12ACD3946A600@TK5EX14MBXC118.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD3946AEF1@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: On Thu, Mar 18, 2010 at 11:53 AM, Dino Viehland wrote: > Oh, I didn't know about that. ?Go ahead and open a bug for this one as well. > As long as there are no bad performance problems from reflecting over every > assembly this would be cool - at least as an option on the ScriptRuntime. ?I > could see a desire for us not to always do this because you might want to have > different runtimes w/ different loaded modules in the same app domain. Hosting: Import a module on a ScriptScope http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26505 Hosting: Find any PythonModules in loaded assemblies http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26507 - Jeff From merllab at microsoft.com Fri Mar 19 16:53:53 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 19 Mar 2010 08:53:53 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <4da04083-ee13-4388-8dc9-e6c93ba2b705@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/64829. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/BinaryExpression.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Utils/ThreadLocal.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Interpreter/LightCompiler.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/PlatformAdaptationLayer.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Runtime/DlrConfiguration.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Utils/NativeMethods.cs CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1688092 Date: 3/18/2010 2:28:54 PM Fixes a performance regression affecting calls to some protocol methods. (Shelveset: 261PerfRegressions01;REDMOND\ddicato | SNAP CheckinId: m11424) From empirebuilder at gmail.com Sun Mar 21 09:49:08 2010 From: empirebuilder at gmail.com (Dody Gunawinata) Date: Sun, 21 Mar 2010 10:49:08 +0200 Subject: [IronPython] IronPython for asp.net and codefiles In-Reply-To: References: Message-ID: <8cd017b81003210149m19020d65h2d2ec108cb9c3e1c@mail.gmail.com> If you want to hide your logic from the source, move as much of the functionality to a dll, whether it is a static or ironpython dll. I don't think IronPython for ASP.Net supports compilable asp.net. On Sat, Mar 6, 2010 at 4:52 PM, Pablo Dalmazzo wrote: > Hi there, > > now I got to work the dlls and I did a small app. which turns my asp.net.py codefile into 2 pieces, a .py codefile which makes only functions calls > to a dll with the actual logic code. But I was wondering why IronPython for > asp.net was designed without having in mind to allow the .aspx files to be > tied with dlls for the sourcecode, for allowing obfuscation** just like > it's possible to make in VB.NET or C#. Or may be it just wasnt easy at all > to do that for IronPython? Is the technical explanation too complicated or > may I know about it? Is there information about this somewhere? > > Greetins, Pablo > > ------------------------------ > Tu Hotmail guarda el borrador que est?s escribiendo para que no pierdas tu > mensaje. Conoc? c?mo > > _______________________________________________ > 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 idan at cloudshare.com Sun Mar 21 15:10:52 2010 From: idan at cloudshare.com (Idan Zaltzberg) Date: Sun, 21 Mar 2010 16:10:52 +0200 Subject: [IronPython] Equals between RuntimeType and python type Message-ID: <1df6adb2cc2bde18c73bd8dc97db24ca@mail.gmail.com> Hi, I am using Ipy 2.6 (final). I tried to do the following code and got some puzzling results: from System import Int64 x = Int64() print type(x) == x.GetType() # return True print type(x) != x.GetType() # also returns True! Is this a bug or a am I missing something? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Sun Mar 21 20:18:01 2010 From: dinov at microsoft.com (Dino Viehland) Date: Sun, 21 Mar 2010 19:18:01 +0000 Subject: [IronPython] Equals between RuntimeType and python type In-Reply-To: <1df6adb2cc2bde18c73bd8dc97db24ca@mail.gmail.com> References: <1df6adb2cc2bde18c73bd8dc97db24ca@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD394806CE@TK5EX14MBXC118.redmond.corp.microsoft.com> It's a bug - It's already fixed for the final 2.6.1 release. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Idan Zaltzberg Sent: Sunday, March 21, 2010 7:11 AM To: users at lists.ironpython.com Subject: [IronPython] Equals between RuntimeType and python type Hi, I am using Ipy 2.6 (final). I tried to do the following code and got some puzzling results: from System import Int64 x = Int64() print type(x) == x.GetType() # return True print type(x) != x.GetType() # also returns True! Is this a bug or a am I missing something? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Sun Mar 21 21:33:27 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sun, 21 Mar 2010 20:33:27 +0000 Subject: [IronPython] IronPython for asp.net and codefiles In-Reply-To: <8cd017b81003210149m19020d65h2d2ec108cb9c3e1c@mail.gmail.com> References: <8cd017b81003210149m19020d65h2d2ec108cb9c3e1c@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921015067C@TK5EX14MBXC134.redmond.corp.microsoft.com> Pablo, what is the reason you are looking into obfuscation? Is it because you're concerned that people could make requests for your *.aspx.py files and see the Python source? By default any request for a *.aspx.py file should fail because that file extensions is not in the MIME type map on IIS. That should be enough for any obfuscation you need. Note that C#/VB "obfuscation" through compiling to DLLs isn't really obfuscation either; if you had access to the DLL you could get all the source code. However, IIS by default refuses access to the "bin" directory. So, the methods of hiding source code are essentially the same between static and dynamic languages; refuse access to the actual source files. Quick note on compiled modules: Microsoft.Web.Scripting.dll caches compiled Python modules, so on the first visit to an ASPX page that uses IronPython it compiles the code-behind .aspx.py file in memory, and subsequent visits reuses the compiled file. The Python file is only re-compiled if it's changed between requests. ~js From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dody Gunawinata Sent: Sunday, March 21, 2010 1:49 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython for asp.net and codefiles If you want to hide your logic from the source, move as much of the functionality to a dll, whether it is a static or ironpython dll. I don't think IronPython for ASP.Net supports compilable asp.net. On Sat, Mar 6, 2010 at 4:52 PM, Pablo Dalmazzo > wrote: Hi there, now I got to work the dlls and I did a small app. which turns my asp.net .py codefile into 2 pieces, a .py codefile which makes only functions calls to a dll with the actual logic code. But I was wondering why IronPython for asp.net was designed without having in mind to allow the .aspx files to be tied with dlls for the sourcecode, for allowing obfuscation just like it's possible to make in VB.NET or C#. Or may be it just wasnt easy at all to do that for IronPython? Is the technical explanation too complicated or may I know about it? Is there information about this somewhere? Greetins, Pablo ________________________________ Tu Hotmail guarda el borrador que est?s escribiendo para que no pierdas tu mensaje. Conoc? c?mo _______________________________________________ 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 ryan at ryanberdeen.com Sun Mar 21 22:38:38 2010 From: ryan at ryanberdeen.com (Ryan Berdeen) Date: Sun, 21 Mar 2010 17:38:38 -0400 Subject: [IronPython] IronPython exception line numbers in Gestalt Message-ID: I've just started trying to use Gestalt/dlr.js. I have a simple test script (js.py), which throws an exception, then tries to extract a line number from the exception. --------- import sys def b(): try: raise Exception() except Exception as ex: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() return exceptionTraceback.tb_frame.f_lineno def a(): return b() a() --------- When run in my browser, this fails, and displays this error: --------- IOError: [Errno 2] Error 0x1A88. Debugging resource strings are unavailable. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.50106.0&File=mscorrc.dll&Key=0x1A88 js.py Line 6: except Exception as ex: Line 7: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() Line 8: return exceptionTraceback.tb_frame.f_lineno Line 9: Line 10: def a(): IOError at b in js.py, line 8 at a in js.py, line 11 at in js.py, line 13 --------- This appears to be a message telling me that line numbers are unavailable which, paradoxically, includes all of the line numbers. Looking through the DLR source, I see it is getting the line number from a DynamicStackFrame (http://dlr.codeplex.com/sourcecontrol/network/Show?projectName=dlr&changeSetId=45843#580636), but I don't see how to get this information from Python. I've tried setting DLR.settings.debug to true, without any effect. What is the correct way to enable resource strings so that they are are accessible from Python, or what else could I do to access them? Thanks, Ryan From paul.eric.felix at gmail.com Mon Mar 22 01:53:37 2010 From: paul.eric.felix at gmail.com (Paul Felix) Date: Sun, 21 Mar 2010 20:53:37 -0400 Subject: [IronPython] CodeContext went from language-independent to IronPython-specific Message-ID: Hi, I am embedding IronPython in an application for scripting. I'm also making some C# classes "dynamic" by implementing the special DLR methods like GetBoundMember. My signatures for those special methods include the code context: [System.Runtime. CompilerServices.SpecialName] public object GetBoundMember(CodeContext codeContext, string name) { . . . } I make use of the code context to get access to an object that essentially represents an application-defined context. I like the idea of being able to support other dynamic languages like IronRuby in the future, and I was bolstered by the fact that I could implement the special DLR methods with Microsoft.Scripting namespaces only (no IronPython namespaces). But in the newer versions of IronPython, the CodeContext type has been moved to an IronPython namespace, thus locking me in to IronPython. To remain independent of any dynamic language, am I going to have to implement the special DLR methods without the code context and find some other way to get at my app object? Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Mar 22 03:47:28 2010 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 22 Mar 2010 02:47:28 +0000 Subject: [IronPython] CodeContext went from language-independent to IronPython-specific In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C4373EE76@TK5EX14MBXC129.redmond.corp.microsoft.com> Could you be specific about your scenario? What exactly is an "application-defined context" and the classes that would need an access such object? Tomas From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Paul Felix Sent: Sunday, March 21, 2010 5:54 PM To: users at lists.ironpython.com Subject: [IronPython] CodeContext went from language-independent to IronPython-specific Hi, I am embedding IronPython in an application for scripting. I'm also making some C# classes "dynamic" by implementing the special DLR methods like GetBoundMember. My signatures for those special methods include the code context: [System.Runtime. CompilerServices.SpecialName] public object GetBoundMember(CodeContext codeContext, string name) { . . . } I make use of the code context to get access to an object that essentially represents an application-defined context. I like the idea of being able to support other dynamic languages like IronRuby in the future, and I was bolstered by the fact that I could implement the special DLR methods with Microsoft.Scripting namespaces only (no IronPython namespaces). But in the newer versions of IronPython, the CodeContext type has been moved to an IronPython namespace, thus locking me in to IronPython. To remain independent of any dynamic language, am I going to have to implement the special DLR methods without the code context and find some other way to get at my app object? Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From curt at hagenlocher.org Mon Mar 22 04:47:24 2010 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Sun, 21 Mar 2010 20:47:24 -0700 Subject: [IronPython] CodeContext went from language-independent to IronPython-specific In-Reply-To: References: Message-ID: The proper "DLRish" way to make a C# class "dynamic" is to implement IDynamicMetaObjectProvider. The easiest way to do so for most purposes is to derive from DynamicObject. GetBoundMember is purely an IronPython mechanism. Indeed, anything that uses CodeContext is purely IronPython and will not give you dynamic behavior with any other DLR-based language. On Sun, Mar 21, 2010 at 5:53 PM, Paul Felix wrote: > Hi, > > I am embedding IronPython in an application for scripting. I'm also making > some C# classes "dynamic" by implementing the special DLR methods like > GetBoundMember. My signatures for those special methods include the code > context: > > [System.Runtime. > CompilerServices.SpecialName] > public object GetBoundMember(CodeContext codeContext, string name) > { > . . . > } > > I make use of the code context to get access to an object that essentially > represents an application-defined context. I like the idea of being able to > support other dynamic languages like IronRuby in the future, and I was > bolstered by the fact that I could implement the special DLR methods with > Microsoft.Scripting namespaces only (no IronPython namespaces). > > But in the newer versions of IronPython, the CodeContext type has been > moved to an IronPython namespace, thus locking me in to IronPython. To > remain independent of any dynamic language, am I going to have to implement > the special DLR methods without the code context and find some other way to > get at my app object? > > Thanks, > Paul > > > _______________________________________________ > 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 idan at cloudshare.com Mon Mar 22 08:13:12 2010 From: idan at cloudshare.com (Idan Zaltzberg) Date: Mon, 22 Mar 2010 09:13:12 +0200 Subject: [IronPython] pickling python types Message-ID: Hi, I tried running the following code and got an exception (Ipy 2.6 final): import clr from System import Int64 pickle.dumps(clr.GetPythonType(Int64)) *throws:* Traceback (most recent call last): File "", line 1, in File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 1366, in dumps File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 224, in dump File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 286, in save File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 746, in save_global pickle.PicklingError: Can't pickle : it's not found as System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Int64 Is this a bug? Currently my workaround is to pickle the CS type and convert it to a python type after unpickling, please tell me if there is a better way. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronnie.maor at gmail.com Mon Mar 22 12:53:25 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Mon, 22 Mar 2010 13:53:25 +0200 Subject: [IronPython] pickling python types In-Reply-To: References: Message-ID: <2fd6b9d1003220453l1453ed32ne7d35cb22f1be1fa@mail.gmail.com> Just a clarification - the GetPythonType below is superfluous pickle.dumps(Int64) fails the same way seems that all python types that aren't native (i.e. shadow an existing CLR type) fail that way. Pickling the CLR type (RuntimeType) actually works. On Mon, Mar 22, 2010 at 9:13 AM, Idan Zaltzberg wrote: > Hi, > > I tried running the following code and got an exception (Ipy 2.6 final): > > > > import clr > > from System import Int64 > > pickle.dumps(clr.GetPythonType(Int64)) > > > > *throws:* > > Traceback (most recent call last): > > File "", line 1, in > > File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 1366, in > dumps > > File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 224, in > dump > > File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 286, in > save > > File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 746, in > save_global > > pickle.PicklingError: Can't pickle : it's not found as System > in mscorlib, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089.Int64 > > > > Is this a bug? > > Currently my workaround is to pickle the CS type and convert it to a python > type after unpickling, please tell me if there is a better way. > > Thanks. > > _______________________________________________ > 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 paul.eric.felix at gmail.com Mon Mar 22 15:08:55 2010 From: paul.eric.felix at gmail.com (Paul Felix) Date: Mon, 22 Mar 2010 10:08:55 -0400 Subject: [IronPython] CodeContext went from language-independent to IronPython-specific In-Reply-To: References: Message-ID: Thanks, Tomas and Curt. I see your blogs on this topic. Let's say I wanted to use the DynamicObject approach, and I have a dynamic C# object with a runtime member called SomeMember. Let's say SomeMember is a .NET List, but I want the object to return a calling-language-specific list type. How could I perform a language-specific conversion? In other words, with my scriptable application, I might want to better support the scriptwriter's language by returning language-specific types. If a scriptwriter is using Python, it would be nice to return a Python list for SomeMember. If the scriptwriter is using Ruby, it would be nice to return a Ruby list. If there was some way to get access to a type converter based on the "calling context", this might be doable. Does that make sense? On Sun, Mar 21, 2010 at 8:53 PM, Paul Felix wrote: > Hi, > > I am embedding IronPython in an application for scripting. I'm also making > some C# classes "dynamic" by implementing the special DLR methods like > GetBoundMember. My signatures for those special methods include the code > context: > > [System.Runtime. > CompilerServices.SpecialName] > public object GetBoundMember(CodeContext codeContext, string name) > { > . . . > } > > I make use of the code context to get access to an object that essentially > represents an application-defined context. I like the idea of being able to > support other dynamic languages like IronRuby in the future, and I was > bolstered by the fact that I could implement the special DLR methods with > Microsoft.Scripting namespaces only (no IronPython namespaces). > > But in the newer versions of IronPython, the CodeContext type has been > moved to an IronPython namespace, thus locking me in to IronPython. To > remain independent of any dynamic language, am I going to have to implement > the special DLR methods without the code context and find some other way to > get at my app object? > > Thanks, > Paul > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From curt at hagenlocher.org Mon Mar 22 17:33:12 2010 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Mon, 22 Mar 2010 09:33:12 -0700 Subject: [IronPython] CodeContext went from language-independent to IronPython-specific In-Reply-To: References: Message-ID: The only shared type system that exists in DLRland is the CLR type system. Individual DLR-based languages are free to define their types with the semantics similar to "list" (or "dictionary" or any other type). I think the most general thing you can do in a case like this is to make sure that the object you return implements both IList and IList. The natural candidate is List. On Mon, Mar 22, 2010 at 7:08 AM, Paul Felix wrote: > Thanks, Tomas and Curt. I see your blogs on this topic. > > Let's say I wanted to use the DynamicObject approach, and I have a dynamic > C# object with a runtime member called SomeMember. Let's say SomeMember is a > .NET List, but I want the object to return a calling-language-specific list > type. How could I perform a language-specific conversion? > > In other words, with my scriptable application, I might want to better > support the scriptwriter's language by returning language-specific types. If > a scriptwriter is using Python, it would be nice to return a Python list for > SomeMember. If the scriptwriter is using Ruby, it would be nice to return a > Ruby list. > > If there was some way to get access to a type converter based on the > "calling context", this might be doable. > > Does that make sense? > > > On Sun, Mar 21, 2010 at 8:53 PM, Paul Felix wrote: > >> Hi, >> >> I am embedding IronPython in an application for scripting. I'm also making >> some C# classes "dynamic" by implementing the special DLR methods like >> GetBoundMember. My signatures for those special methods include the code >> context: >> >> [System.Runtime. >> CompilerServices.SpecialName] >> public object GetBoundMember(CodeContext codeContext, string name) >> { >> . . . >> } >> >> I make use of the code context to get access to an object that essentially >> represents an application-defined context. I like the idea of being able to >> support other dynamic languages like IronRuby in the future, and I was >> bolstered by the fact that I could implement the special DLR methods with >> Microsoft.Scripting namespaces only (no IronPython namespaces). >> >> But in the newer versions of IronPython, the CodeContext type has been >> moved to an IronPython namespace, thus locking me in to IronPython. To >> remain independent of any dynamic language, am I going to have to implement >> the special DLR methods without the code context and find some other way to >> get at my app object? >> >> Thanks, >> Paul >> >> > > _______________________________________________ > 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 Mar 22 20:09:00 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Mon, 22 Mar 2010 12:09:00 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <9dc2b411-eff0-42df-a95c-267ebd7f123e@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/64896. MODIFIED SOURCES $/IronPython/IronPython_2_6/Config/Unsigned/App.config $/IronPython/IronPython_2_6/Config/Signed/App.config $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/PlatformAdaptationLayer.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Utils/ThreadLocal.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Dynamic/Interpreter/LightCompiler.cs $/IronPython/IronPython_2_6/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Runtime/DlrConfiguration.cs $/IronPython/IronPython_2_6/Src/Runtime/Microsoft.Scripting/Utils/NativeMethods.cs From dfugate at microsoft.com Mon Mar 22 22:32:05 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Mon, 22 Mar 2010 21:32:05 +0000 Subject: [IronPython] Failed to install IronPython 2.6.1 rc1 for .NET 4.0 RC1 In-Reply-To: <3fea10111003080930l6f16c2fdn1d9092671ae9707d@mail.gmail.com> References: <3fea10111003080930l6f16c2fdn1d9092671ae9707d@mail.gmail.com> Message-ID: <96F8AA58D9F50A4CAFD1DCA93C99232C1ECDBC@TK5EX14MBXC123.redmond.corp.microsoft.com> The short story here is Windows XP does not come with .NET 2.0 preinstalled on it, and IronPython.msi requires the .NET 2.0 version of the CLR's 'ngen.exe' utility to install IronPython assemblies. The full story is that we use an older version of the Wix toolset to generate IronPython.msi. This version of Wix doesn't allow us to select which version of ngen we run regardless of which .NET frameworks are installed ==> it's hardcoded to choose the .NET 2.0 flavor of ngen.exe. I suspect we'll be upgrading to a newer version of Wix with IronPython 2.7, and we'll be able to handle this scenario correctly. In the meantime, I checked in a fix which will at least report this as being the underlying issue before trying to install anything. Thanks for reporting this, Dave From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Zhichao Hong Sent: Monday, March 08, 2010 9:30 AM To: users at lists.ironpython.com Subject: Re: [IronPython] Failed to install IronPython 2.6.1 rc1 for .NET 4.0 RC1 You're running Windows XP, right? Thanks, Dave Yes, it is a XP SP3 clean install. -Zhichao -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Tue Mar 23 16:53:05 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Tue, 23 Mar 2010 08:53:05 -0700 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/64911. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Tests/interop/net/dynamic/dynamic_regressions.py From cenovsky at bakalari.cz Wed Mar 24 01:41:43 2010 From: cenovsky at bakalari.cz (Lukas Cenovsky) Date: Wed, 24 Mar 2010 01:41:43 +0100 Subject: [IronPython] AddReference to Silverlight toolkit assemblies Message-ID: <4BA95FC7.4040607@bakalari.cz> An HTML attachment was scrubbed... URL: From loocas at duber.cz Wed Mar 24 11:46:00 2010 From: loocas at duber.cz (=?UTF-8?B?THVrw6HFoSBEdWLEm2Rh?=) Date: Wed, 24 Mar 2010 11:46:00 +0100 Subject: [IronPython] Job offer: freelance IronPython developer In-Reply-To: References: Message-ID: <4BA9ED68.9090502@duber.cz> I know this probably isn't the best place to ask, but since I'm not a programmer I don't know too many people who do this for a living and since my company is looking for a freelance IronPython developer (Python languege), I don't really know where to look. So, if there's anybody, preferrably from the Czech Republic, best if from Prague, interested in developing custom scripts to tie together our in-house software applications via IronPython (and obviously dotNET), please drop me a line at the mail below or call my cell directly. This is a paid offer, of course, NOT a free project or anything like that. P.s. sorry everybody else for spamming these mailing lists. If you know of a better place to look for IronPython devs., please, I'll appretiate your comments. Thank you in advance, cheers, Luk?? Dub?da Director [T] +420 602 444 164 duber studio(tm) [M] info at duber.cz [W] http://www.duber.cz [A] R.A.Dvorsk?ho 601, Praha 10 [A] 10900, Czech Republic, Europe From Georg.Eichhorn at philips.com Wed Mar 24 12:01:05 2010 From: Georg.Eichhorn at philips.com (Eichhorn, Georg) Date: Wed, 24 Mar 2010 12:01:05 +0100 Subject: [IronPython] unsubscribe Message-ID: <14B852A5C6341946B80C2B53B8BF511530181AA4F4@NLCLUEXM11.connect1.local> ________________________________ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Georg.Eichhorn at philips.com Wed Mar 24 12:03:21 2010 From: Georg.Eichhorn at philips.com (Eichhorn, Georg) Date: Wed, 24 Mar 2010 12:03:21 +0100 Subject: [IronPython] Sorry... Message-ID: <14B852A5C6341946B80C2B53B8BF511530181AA4F9@NLCLUEXM11.connect1.local> Hi, sorry for this message... Cheers, Georg Eichhorn ________________________________ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From merllab at microsoft.com Wed Mar 24 16:53:56 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 24 Mar 2010 08:53:56 -0700 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/64949. ADDED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/ConstantDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/EmptyDictionaryStorage.cs MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/ConstantDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/AstMethods.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/AttributesDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/CustomDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/BuiltinsDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/CommonDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/DictionaryOps.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/thread.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/TupleExpression.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/Expression.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/DictionaryExpression.cs $/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/ConstantExpression.cs $/IronPython/IronPython_Main/Src/IronPython/IronPython.csproj $/IronPython/IronPython_Main/Src/IronPython/Runtime/EmptyDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/StringDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/ModuleDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonDictionary.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/ScopeDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/DictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonOps.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/ObjectAttributesAdapter.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/CustomInstanceDictionaryStorage.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/OldClass.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/WrapperDictionary.cs $/IronPython/IronPython_Main/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_Main/Src/IronPythonTest/StringDictionaryStorage.cs $/IronPython/IronPython_Main/Tutorial/Tutorial.htm CHECKIN COMMENTS -------------------------------------------------------------------------------- Changeset Id: 1695947 Date: 3/23/2010 10:57:21 AM Optimize dictionaries for size which also slightly improves throughput. Switches to using open addressing instead of chaining buckets. We now store an array of Bucket[] structs. Also moves the storage for the null key into its own object rather than storing it with the rest of the values. Because Bucket is now a struct we can no longer have a special DeserializationBucket ? instead we now have a special DeserializationNullValue. The net result is that each bucket is now half the size (3 fields vs. 4 fields + vtable + sync header). But we also now need to keep the table below a load factor of .7. But the end result is a net win on size overall and better cache locality. Also optimizes the storage of empty dictionaries ? we change the API on DictionaryStorage so that it passes in the address of where the storage lives. If the current storage wants to change its type it can update the reference passed in so that we switch storages. This is currently done with the empty dictionary storage and the constant dictionary storage. When we create a new empty dictionary it shares a common instance of EmptyDictionaryStorage. Any attempts to mutate it result in the creation of a new CommonDictionaryStorage which contains the new values. Likewise there?s also a ConstantDictionaryStorage which does a similar thing. Long term this can be used for other optimizations ? for example we can implement StringDictionaryStorage and IntDictionaryStorage this way so that we don?t need to do a delegate invocation to hash the keys, instead it can all be in-lined. It also might open up the possibility to storing value types in a non-boxed fashion down the line but I think there are more issues which need to be dealt with for that to perform well. Also added some tests to make sure we get the thread safety right of switching between EmptyDictionaryStorage and ConstantDictionaryStorage. (Shelveset: dinov1_0;REDMOND\dinov | SNAP CheckinId: 10570) From ronnie.maor at gmail.com Wed Mar 24 19:19:40 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Wed, 24 Mar 2010 20:19:40 +0200 Subject: [IronPython] pickling python types In-Reply-To: <2fd6b9d1003220453l1453ed32ne7d35cb22f1be1fa@mail.gmail.com> References: <2fd6b9d1003220453l1453ed32ne7d35cb22f1be1fa@mail.gmail.com> Message-ID: <2fd6b9d1003241119g35577207k5a1774cde109bb35@mail.gmail.com> Don't mean to nag, but it seems the original email was somehow overlooked. We think it's a bug in 2.6.0 On Mon, Mar 22, 2010 at 1:53 PM, Ronnie Maor wrote: > Just a clarification - the GetPythonType below is superfluous > pickle.dumps(Int64) fails the same way > > seems that all python types that aren't native (i.e. shadow an existing CLR > type) fail that way. > Pickling the CLR type (RuntimeType) actually works. > > On Mon, Mar 22, 2010 at 9:13 AM, Idan Zaltzberg wrote: > >> Hi, >> >> I tried running the following code and got an exception (Ipy 2.6 final): >> >> >> >> import clr >> >> from System import Int64 >> >> pickle.dumps(clr.GetPythonType(Int64)) >> >> >> >> *throws:* >> >> Traceback (most recent call last): >> >> File "", line 1, in >> >> File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 1366, in >> dumps >> >> File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 224, in >> dump >> >> File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 286, in >> save >> >> File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 746, in >> save_global >> >> pickle.PicklingError: Can't pickle : it's not found as >> System in mscorlib, Version=2.0.0.0, Culture=neutral, >> PublicKeyToken=b77a5c561934e089.Int64 >> >> >> >> Is this a bug? >> >> Currently my workaround is to pickle the CS type and convert it to a >> python type after unpickling, please tell me if there is a better way. >> >> Thanks. >> >> _______________________________________________ >> 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 Mar 24 19:29:27 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 24 Mar 2010 18:29:27 +0000 Subject: [IronPython] pickling python types In-Reply-To: <2fd6b9d1003241119g35577207k5a1774cde109bb35@mail.gmail.com> References: <2fd6b9d1003220453l1453ed32ne7d35cb22f1be1fa@mail.gmail.com> <2fd6b9d1003241119g35577207k5a1774cde109bb35@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD394973BA@TK5EX14MBXC118.redmond.corp.microsoft.com> Yeah sorry for missing this and thanks for making sure we don't drop it. I would agree that this is a bug. I guess Int64.__module__ should really just be "System" and in general we shouldn't include the assembly name in the __module__ for built-in types. That makes it slightly less useful to read but more useful for programmatic use. Maybe we could add a new __assembly__ attribute to be more friendly to people. If you don't open a bug on CodePlex I will. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronnie Maor Sent: Wednesday, March 24, 2010 11:20 AM To: Discussion of IronPython Subject: Re: [IronPython] pickling python types Don't mean to nag, but it seems the original email was somehow overlooked. We think it's a bug in 2.6.0 On Mon, Mar 22, 2010 at 1:53 PM, Ronnie Maor > wrote: Just a clarification - the GetPythonType below is superfluous pickle.dumps(Int64) fails the same way seems that all python types that aren't native (i.e. shadow an existing CLR type) fail that way. Pickling the CLR type (RuntimeType) actually works. On Mon, Mar 22, 2010 at 9:13 AM, Idan Zaltzberg > wrote: Hi, I tried running the following code and got an exception (Ipy 2.6 final): import clr from System import Int64 pickle.dumps(clr.GetPythonType(Int64)) throws: Traceback (most recent call last): File "", line 1, in File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 1366, in dumps File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 224, in dump File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 286, in save File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 746, in save_global pickle.PicklingError: Can't pickle : it's not found as System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Int64 Is this a bug? Currently my workaround is to pickle the CS type and convert it to a python type after unpickling, please tell me if there is a better way. Thanks. _______________________________________________ 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 empirebuilder at gmail.com Wed Mar 24 21:09:23 2010 From: empirebuilder at gmail.com (Dody Gunawinata) Date: Wed, 24 Mar 2010 22:09:23 +0200 Subject: [IronPython] IronPython for asp.net and codefiles In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC921015067C@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <8cd017b81003210149m19020d65h2d2ec108cb9c3e1c@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC921015067C@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: <8cd017b81003241309x7c035087kd7f3c9d2cd4e7d94@mail.gmail.com> Is there any way to control the when IP for ASP.Net does the caching? I have been using VirtualPathProvider to serve IP ascx/aspx code on demand but I have to disable the caching completely via public override CacheDependency GetCacheDependency because I need to server different codes depending on authentication. On Sun, Mar 21, 2010 at 10:33 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Pablo, what is the reason you are looking into obfuscation? Is it because > you?re concerned that people could make requests for your *.aspx.py files > and see the Python source? By default any request for a *.aspx.py file > should fail because that file extensions is not in the MIME type map on IIS. > That should be enough for any obfuscation you need. > > > > Note that C#/VB ?obfuscation? through compiling to DLLs isn?t really > obfuscation either; if you had access to the DLL you could get all the > source code. However, IIS by default refuses access to the ?bin? directory. > So, the methods of hiding source code are essentially the same between > static and dynamic languages; refuse access to the actual source files. > > > > Quick note on compiled modules: Microsoft.Web.Scripting.dll caches compiled > Python modules, so on the first visit to an ASPX page that uses IronPython > it compiles the code-behind .aspx.py file in memory, and subsequent visits > reuses the compiled file. The Python file is only re-compiled if it?s > changed between requests. > > > > ~js > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Dody Gunawinata > *Sent:* Sunday, March 21, 2010 1:49 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] IronPython for asp.net and codefiles > > > > If you want to hide your logic from the source, move as much of the > functionality to a dll, whether it is a static or ironpython dll. I don't > think IronPython for ASP.Net supports compilable asp.net. > > On Sat, Mar 6, 2010 at 4:52 PM, Pablo Dalmazzo > wrote: > > Hi there, > > now I got to work the dlls and I did a small app. which turns my asp.net.py codefile into 2 pieces, a .py codefile which makes only functions calls > to a dll with the actual logic code. But I was wondering why IronPython for > asp.net was designed without having in mind to allow the .aspx files to be > tied with dlls for the sourcecode, for allowing obfuscation just like it's > possible to make in VB.NET or C#. Or may be it just wasnt easy at all to > do that for IronPython? Is the technical explanation too complicated or may > I know about it? Is there information about this somewhere? > > Greetins, Pablo > > > ------------------------------ > > Tu Hotmail guarda el borrador que est?s escribiendo para que no pierdas tu > mensaje. Conoc? c?mo > > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > -- > nomadlife.org > -- nomadlife.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronnie.maor at gmail.com Wed Mar 24 21:10:31 2010 From: ronnie.maor at gmail.com (Ronnie Maor) Date: Wed, 24 Mar 2010 22:10:31 +0200 Subject: [IronPython] pickling python types In-Reply-To: <1A472770E042064698CB5ADC83A12ACD394973BA@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <2fd6b9d1003220453l1453ed32ne7d35cb22f1be1fa@mail.gmail.com> <2fd6b9d1003241119g35577207k5a1774cde109bb35@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD394973BA@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <2fd6b9d1003241310u5b0a2d66y54b1491a87429fcb@mail.gmail.com> CodePlex - I'll let you do the honors :-) thanks again - you're doing amazing work. On Wed, Mar 24, 2010 at 8:29 PM, Dino Viehland wrote: > Yeah sorry for missing this and thanks for making sure we don?t drop it. > I would agree that this is a bug. I guess Int64.__module__ should really > just be ?System? and in general we shouldn?t include the assembly name in > the __module__ for built-in types. That makes it slightly less useful to > read but more useful for programmatic use. Maybe we could add a new > __assembly__ attribute to be more friendly to people. > > > > If you don?t open a bug on CodePlex I will. > > > > *From:* users-bounces at lists.ironpython.com [mailto: > users-bounces at lists.ironpython.com] *On Behalf Of *Ronnie Maor > *Sent:* Wednesday, March 24, 2010 11:20 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] pickling python types > > > > Don't mean to nag, but it seems the original email was somehow overlooked. > > We think it's a bug in 2.6.0 > > On Mon, Mar 22, 2010 at 1:53 PM, Ronnie Maor > wrote: > > Just a clarification - the GetPythonType below is superfluous > > pickle.dumps(Int64) fails the same way > > > > seems that all python types that aren't native (i.e. shadow an existing CLR > type) fail that way. > > Pickling the CLR type (RuntimeType) actually works. > > On Mon, Mar 22, 2010 at 9:13 AM, Idan Zaltzberg > wrote: > > Hi, > > I tried running the following code and got an exception (Ipy 2.6 final): > > > > import clr > > from System import Int64 > > pickle.dumps(clr.GetPythonType(Int64)) > > > > *throws:* > > Traceback (most recent call last): > > File "", line 1, in > > File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 1366, in > dumps > > File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 224, in > dump > > File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 286, in > save > > File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 746, in > save_global > > pickle.PicklingError: Can't pickle : it's not found as System > in mscorlib, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089.Int64 > > > > Is this a bug? > > Currently my workaround is to pickle the CS type and convert it to a python > type after unpickling, please tell me if there is a better way. > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at voidspace.org.uk Wed Mar 24 21:22:59 2010 From: michael at voidspace.org.uk (Michael Foord) Date: Wed, 24 Mar 2010 20:22:59 +0000 Subject: [IronPython] signal module Message-ID: <4BAA74A3.8080508@voidspace.org.uk> Hello guys, Would it be possible to provide at least partial support for the signal module in IronPython - in particular for SIGINT (control-C). I know Windows doesn't have full signal support, but this does work with CPython on windows and it would be very useful for unittest2... :-) All the best, Michael -- 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 Wed Mar 24 21:48:49 2010 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 24 Mar 2010 20:48:49 +0000 Subject: [IronPython] pickling python types In-Reply-To: <2fd6b9d1003241310u5b0a2d66y54b1491a87429fcb@mail.gmail.com> References: <2fd6b9d1003220453l1453ed32ne7d35cb22f1be1fa@mail.gmail.com> <2fd6b9d1003241119g35577207k5a1774cde109bb35@mail.gmail.com> <1A472770E042064698CB5ADC83A12ACD394973BA@TK5EX14MBXC118.redmond.corp.microsoft.com> <2fd6b9d1003241310u5b0a2d66y54b1491a87429fcb@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD39497E23@TK5EX14MBXC118.redmond.corp.microsoft.com> Filed as http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26569 From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronnie Maor Sent: Wednesday, March 24, 2010 1:11 PM To: Discussion of IronPython Subject: Re: [IronPython] pickling python types CodePlex - I'll let you do the honors :-) thanks again - you're doing amazing work. On Wed, Mar 24, 2010 at 8:29 PM, Dino Viehland > wrote: Yeah sorry for missing this and thanks for making sure we don't drop it. I would agree that this is a bug. I guess Int64.__module__ should really just be "System" and in general we shouldn't include the assembly name in the __module__ for built-in types. That makes it slightly less useful to read but more useful for programmatic use. Maybe we could add a new __assembly__ attribute to be more friendly to people. If you don't open a bug on CodePlex I will. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronnie Maor Sent: Wednesday, March 24, 2010 11:20 AM To: Discussion of IronPython Subject: Re: [IronPython] pickling python types Don't mean to nag, but it seems the original email was somehow overlooked. We think it's a bug in 2.6.0 On Mon, Mar 22, 2010 at 1:53 PM, Ronnie Maor > wrote: Just a clarification - the GetPythonType below is superfluous pickle.dumps(Int64) fails the same way seems that all python types that aren't native (i.e. shadow an existing CLR type) fail that way. Pickling the CLR type (RuntimeType) actually works. On Mon, Mar 22, 2010 at 9:13 AM, Idan Zaltzberg > wrote: Hi, I tried running the following code and got an exception (Ipy 2.6 final): import clr from System import Int64 pickle.dumps(clr.GetPythonType(Int64)) throws: Traceback (most recent call last): File "", line 1, in File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 1366, in dumps File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 224, in dump File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 286, in save File "C:\systems\3rd_party\IronPython\2.6\Lib\pickle.py", line 746, in save_global pickle.PicklingError: Can't pickle : it's not found as System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Int64 Is this a bug? Currently my workaround is to pickle the CS type and convert it to a python type after unpickling, please tell me if there is a better way. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfugate at microsoft.com Wed Mar 24 21:48:50 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Wed, 24 Mar 2010 20:48:50 +0000 Subject: [IronPython] signal module In-Reply-To: <4BAA74A3.8080508@voidspace.org.uk> References: <4BAA74A3.8080508@voidspace.org.uk> Message-ID: <96F8AA58D9F50A4CAFD1DCA93C99232C1F089B@TK5EX14MBXC123.redmond.corp.microsoft.com> Actually I've had this 95% implemented as of two weeks ago; just haven't checked it into the Main branch yet;) Dave -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord Sent: Wednesday, March 24, 2010 1:23 PM To: Discussion of IronPython Subject: [IronPython] signal module Hello guys, Would it be possible to provide at least partial support for the signal module in IronPython - in particular for SIGINT (control-C). I know Windows doesn't have full signal support, but this does work with CPython on windows and it would be very useful for unittest2... :-) All the best, Michael -- 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 drken567 at gmail.com Wed Mar 24 21:54:05 2010 From: drken567 at gmail.com (Ken MacDonald) Date: Wed, 24 Mar 2010 16:54:05 -0400 Subject: [IronPython] focus and selecting text in a TextBox with IronPython Message-ID: <3468cae11003241354l60bd213ejd449aa23921bf990@mail.gmail.com> I'm trying to capture the event of focus being shifted into a text box via mouse click, and would like to highlight the existing text, so that if I start typing the selected text will disappear. i.e. the the box initially contains "", I click into the box, "" is highlighted, and if I type "fred" the initial text will disappear, leaving only "fred". I can capture the focus with: textbox.GotKeyboardFocus += name_keyboard_focus but this handler is doing something wrong: def name_keyboard_focus(self, sender, args): #alert("got focus!") textbox = self.control("NewName") textbox.Focus() textbox.SelectAll() If I add: textbox.Cut() or: alert(textbox.SelectedText) at the end, it's obvious that the SelectAll() has worked, but the text is NOT highlighted, and if I type "fred" I get "fred" appended to the original text, "fred". Any clues appreciated. Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Wed Mar 24 23:49:12 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 24 Mar 2010 22:49:12 +0000 Subject: [IronPython] signal module In-Reply-To: <96F8AA58D9F50A4CAFD1DCA93C99232C1F089B@TK5EX14MBXC123.redmond.corp.microsoft.com> References: <4BAA74A3.8080508@voidspace.org.uk> <96F8AA58D9F50A4CAFD1DCA93C99232C1F089B@TK5EX14MBXC123.redmond.corp.microsoft.com> Message-ID: <4BAA96E8.2090906@voidspace.org.uk> On 24/03/2010 20:48, Dave Fugate wrote: > Actually I've had this 95% implemented as of two weeks ago; just haven't checked it into the Main branch yet;) > That's great news! Michael > Dave > > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord > Sent: Wednesday, March 24, 2010 1:23 PM > To: Discussion of IronPython > Subject: [IronPython] signal module > > Hello guys, > > Would it be possible to provide at least partial support for the signal > module in IronPython - in particular for SIGINT (control-C). I know > Windows doesn't have full signal support, but this does work with > CPython on windows and it would be very useful for unittest2... :-) > > All the best, > > Michael > > -- 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 fuzzyman at voidspace.org.uk Wed Mar 24 23:50:19 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 24 Mar 2010 22:50:19 +0000 Subject: [IronPython] focus and selecting text in a TextBox with IronPython In-Reply-To: <3468cae11003241354l60bd213ejd449aa23921bf990@mail.gmail.com> References: <3468cae11003241354l60bd213ejd449aa23921bf990@mail.gmail.com> Message-ID: <4BAA972B.508@voidspace.org.uk> Hello Ken, You don't say whether you are using WPF, Windows Forms or Silverlight. When I've written code similar to your with windows forms and always used SelectionStart and SelectionLength. All the best, Michael On 24/03/2010 20:54, Ken MacDonald wrote: > I'm trying to capture the event of focus being shifted into a text box > via mouse click, and would like to highlight the existing text, so > that if I start typing the selected text will disappear. i.e. the the > box initially contains "", I click into the box, " Name>" is highlighted, and if I type "fred" the initial text will > disappear, leaving only "fred". I can capture the focus with: > > textbox.GotKeyboardFocus += name_keyboard_focus > > but this handler is doing something wrong: > > def name_keyboard_focus(self, sender, args): > #alert("got focus!") > textbox = self.control("NewName") > textbox.Focus() > textbox.SelectAll() > > If I add: > > textbox.Cut() > > or: > alert(textbox.SelectedText) > > at the end, it's obvious that the SelectAll() has worked, but the text > is NOT highlighted, and if I type "fred" I get "fred" appended to the > original text, "fred". > > Any clues appreciated. > Ken > > > _______________________________________________ > 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 drken567 at gmail.com Thu Mar 25 00:27:43 2010 From: drken567 at gmail.com (Ken MacDonald) Date: Wed, 24 Mar 2010 19:27:43 -0400 Subject: [IronPython] focus and selecting text in a TextBox with IronPython In-Reply-To: <4BAA972B.508@voidspace.org.uk> References: <3468cae11003241354l60bd213ejd449aa23921bf990@mail.gmail.com> <4BAA972B.508@voidspace.org.uk> Message-ID: <3468cae11003241627m4d290f26tb8b12504945e0820@mail.gmail.com> Hi, Using WPF. I'll give the Start/Length a try.... Ken On Wed, Mar 24, 2010 at 6:50 PM, Michael Foord wrote: > Hello Ken, > > You don't say whether you are using WPF, Windows Forms or Silverlight. When > I've written code similar to your with windows forms and always used > SelectionStart and SelectionLength. > > All the best, > > Michael > > > On 24/03/2010 20:54, Ken MacDonald wrote: > > I'm trying to capture the event of focus being shifted into a text box via > mouse click, and would like to highlight the existing text, so that if I > start typing the selected text will disappear. i.e. the the box initially > contains "", I click into the box, "" is > highlighted, and if I type "fred" the initial text will disappear, leaving > only "fred". I can capture the focus with: > > textbox.GotKeyboardFocus += name_keyboard_focus > > but this handler is doing something wrong: > > def name_keyboard_focus(self, sender, args): > #alert("got focus!") > textbox = self.control("NewName") > textbox.Focus() > textbox.SelectAll() > > If I add: > > textbox.Cut() > > or: > alert(textbox.SelectedText) > > at the end, it's obvious that the SelectAll() has worked, but the text is > NOT highlighted, and if I type "fred" I get "fred" appended to the original > text, "fred". > > Any clues appreciated. > Ken > > > _______________________________________________ > 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 avinhan at gmail.com Thu Mar 25 08:08:05 2010 From: avinhan at gmail.com (Aravin) Date: Thu, 25 Mar 2010 15:08:05 +0800 Subject: [IronPython] pyFlakes pySmell Message-ID: Hello everyone, Im trying to get pyFlakes and pySmell to work with IronPython without needing to install CPython. Has anyone done this? Im trying to provide intellisense for an editor im working on. Is there any better way of getting intellisense than using pysmell? Thanks, Aravin -------------- next part -------------- An HTML attachment was scrubbed... URL: From wmrj76 at motorola.com Thu Mar 25 09:27:49 2010 From: wmrj76 at motorola.com (Evan WANG) Date: Thu, 25 Mar 2010 16:27:49 +0800 Subject: [IronPython] Update from IronPython v1.0 to IronPython v2.6 Message-ID: <002101cacbf5$0e9c49b0$5d42c20a@ds.mot.com> Hi IronPython experts, I am a newcomers in the IronPython, I am working on update the IronPython engine in our c# project. After studied some days from all of your articles, I still have one question can't be fixed. In IronPython v1.0, we use the below code to call a function in the .py file this.pythonEngine = new PythonEngine(); // Load the script this.pythonEngine.ExecuteFile(@filePath); string address; address = this.pythonEngine.Evaluate("GetScriptInfo").ToString(); How can I implement this in the IronPython v2.6? I write some code in c# as below, ScriptEngine engine = Python.CreateEngine(); ScriptScope pyScope = engine.CreateScope(); ScriptSource ss; ss = engine.CreateScriptSourceFromFile("D:\\test.py"); ss.Execute(); ScriptSource execute the whole python file now, how can I call the specific function(for example, the GetScriptInfo() function)? test.py file: def GetScriptInfo (): sXML='' return sXML def GetBodyInfo (): sXML='' return sXML Thanks a lot! Best Regards, Evan Wang -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Thu Mar 25 12:10:13 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 25 Mar 2010 11:10:13 +0000 Subject: [IronPython] pyFlakes pySmell In-Reply-To: References: Message-ID: <4BAB4495.1050206@voidspace.org.uk> On 25/03/2010 07:08, Aravin wrote: > Hello everyone, > Im trying to get pyFlakes and pySmell to work with IronPython without > needing to install CPython. They almost certainly use the compiler / ast modules that aren't available for IronPython. You can ship CPython as part of your application though, without needing it to be installed. Michael > Has anyone done this? Im trying to provide intellisense for an editor > im working on. Is there any better way of getting intellisense than > using pysmell? > Thanks, > Aravin > > > _______________________________________________ > 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 jdhardy at gmail.com Thu Mar 25 14:44:27 2010 From: jdhardy at gmail.com (Jeff Hardy) Date: Thu, 25 Mar 2010 07:44:27 -0600 Subject: [IronPython] pyFlakes pySmell In-Reply-To: <4BAB4495.1050206@voidspace.org.uk> References: <4BAB4495.1050206@voidspace.org.uk> Message-ID: On Thu, Mar 25, 2010 at 5:10 AM, Michael Foord wrote: > They almost certainly use the compiler / ast modules that aren't available > for IronPython. You can ship CPython as part of your application though, > without needing it to be installed. http://bitbucket.org/jdhardy/_ast/ There's one compiler error under 2.6 (a function is missing/renamed); I just haven't had a chance to figure it out. That said, if pyflakes/pysmell use 'compiler' instead of 'ast', you're probably hooped. Compiler is unlikely to ever be supported. - Jeff From fuzzyman at voidspace.org.uk Thu Mar 25 14:52:53 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 25 Mar 2010 13:52:53 +0000 Subject: [IronPython] pyFlakes pySmell In-Reply-To: References: <4BAB4495.1050206@voidspace.org.uk> Message-ID: <4BAB6AB5.1090205@voidspace.org.uk> On 25/03/2010 13:44, Jeff Hardy wrote: > On Thu, Mar 25, 2010 at 5:10 AM, Michael Foord > wrote: > >> They almost certainly use the compiler / ast modules that aren't available >> for IronPython. You can ship CPython as part of your application though, >> without needing it to be installed. >> > http://bitbucket.org/jdhardy/_ast/ > > There's one compiler error under 2.6 (a function is missing/renamed); > I just haven't had a chance to figure it out. > > That said, if pyflakes/pysmell use 'compiler' instead of 'ast', you're > probably hooped. Compiler is unlikely to ever be supported. > I think FePy used to have support for the compiler module, but I'm having a hard time figuring out where that was implemented. All the best, Michael > - Jeff > _______________________________________________ > 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 curt at hagenlocher.org Thu Mar 25 15:05:58 2010 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Thu, 25 Mar 2010 07:05:58 -0700 Subject: [IronPython] Update from IronPython v1.0 to IronPython v2.6 In-Reply-To: <002101cacbf5$0e9c49b0$5d42c20a@ds.mot.com> References: <002101cacbf5$0e9c49b0$5d42c20a@ds.mot.com> Message-ID: One option is this: ScriptEngine engine = Python.CreateEngine(); ScriptScope pyScope = engine.CreateScope(); ScriptSource ss = engine.CreateScriptSourceFromFile("test.py"); ss.Execute(pyScope); string address = engine.Operations.InvokeMember(pyScope, "GetScriptInfo").ToString(); On Thu, Mar 25, 2010 at 1:27 AM, Evan WANG wrote: > Hi IronPython experts, > I am a newcomers in the IronPython, I am working on update the IronPython > engine in our c# project. > After studied some days from all of your articles, I still have one > question can't be fixed. > In IronPython v1.0, we use the below code to call a function in the .py > file > this.pythonEngine = new PythonEngine(); > // Load the script > this.pythonEngine.ExecuteFile(@filePath); > string address; > address = this.pythonEngine.Evaluate("GetScriptInfo").ToString(); > > How can I implement this in the IronPython v2.6? > I write some code in c# as below, > > ScriptEngine engine = Python.CreateEngine(); > ScriptScope pyScope = engine.CreateScope(); > ScriptSource ss; > ss = engine.CreateScriptSourceFromFile("D:\\test.py"); > ss.Execute(); > ScriptSource execute the whole python file now, how can I call the specific > function(for example, the GetScriptInfo() function)? > > test.py file: > def GetScriptInfo (): > sXML='' > return sXML > > def GetBodyInfo (): > sXML='' > return sXML > > Thanks a lot! > > Best Regards, > Evan Wang > > > _______________________________________________ > 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 Thu Mar 25 16:53:06 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Thu, 25 Mar 2010 08:53:06 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <0c6f5837-1375-4a7f-adb0-dda95dd54d6f@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/64980. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Hosting/Shell/BasicConsole.cs From drken567 at gmail.com Thu Mar 25 20:33:58 2010 From: drken567 at gmail.com (Ken MacDonald) Date: Thu, 25 Mar 2010 15:33:58 -0400 Subject: [IronPython] focus and selecting text in a TextBox with IronPython In-Reply-To: <3468cae11003241627m4d290f26tb8b12504945e0820@mail.gmail.com> References: <3468cae11003241354l60bd213ejd449aa23921bf990@mail.gmail.com> <4BAA972B.508@voidspace.org.uk> <3468cae11003241627m4d290f26tb8b12504945e0820@mail.gmail.com> Message-ID: <3468cae11003251233s3fc8d422md30b2a6f2ba72248@mail.gmail.com> On Wed, Mar 24, 2010 at 7:27 PM, Ken MacDonald wrote: > Hi, > Using WPF. I'll give the Start/Length a try.... > Ken > > OK, I tried that in various flavors, still not working. The selection itself appears to be working; if I un-comment the "Cut()" at the end, I click into the box and the existing text disappears. Without the Cut(), if I click into the box, the caret appears at the end of the existing text, the text is NOT highlighted (as in Ctrl-A, which works fine), and typing just appends to the existing text. Any clues appreciated. I've been trying to get this working for several days now, and everything I've found seems to indicate this should work. Ken > def guest_name_keyboard_focus(self, sender, args): > print("got focus!") > textbox = self.control("NewGuestName") > #textbox.SelectAll() > textbox.Focus() > textbox.SelectionStart = 0 > textbox.SelectionLength = len(textbox.Text) > > #textbox.Cut() <=== works if un-commented > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Thu Mar 25 20:44:09 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 25 Mar 2010 19:44:09 +0000 Subject: [IronPython] focus and selecting text in a TextBox with IronPython In-Reply-To: <3468cae11003251233s3fc8d422md30b2a6f2ba72248@mail.gmail.com> References: <3468cae11003241354l60bd213ejd449aa23921bf990@mail.gmail.com> <4BAA972B.508@voidspace.org.uk> <3468cae11003241627m4d290f26tb8b12504945e0820@mail.gmail.com> <3468cae11003251233s3fc8d422md30b2a6f2ba72248@mail.gmail.com> Message-ID: <4BABBD09.6080208@voidspace.org.uk> On 25/03/2010 19:33, Ken MacDonald wrote: > On Wed, Mar 24, 2010 at 7:27 PM, Ken MacDonald > wrote: > > Hi, > Using WPF. I'll give the Start/Length a try.... > Ken > > OK, I tried that in various flavors, still not working. The selection > itself appears to be working; if I un-comment the "Cut()" at the end, > I click into the box and the existing text disappears. Without the > Cut(), if I click into the box, the caret appears at the end of the > existing text, the text is NOT highlighted (as in Ctrl-A, which works > fine), and typing just appends to the existing text. Any clues > appreciated. I've been trying to get this working for several days > now, and everything I've found seems to indicate this should work. Hi Ken, Can you repeat your requirements, I'll try to suggest some code. Michael > Ken > > def guest_name_keyboard_focus(self, sender, args): > print("got focus!") > textbox = self.control("NewGuestName") > #textbox.SelectAll() > textbox.Focus() > textbox.SelectionStart = 0 > textbox.SelectionLength = len(textbox.Text) > > #textbox.Cut() <=== works if un-commented > > > _______________________________________________ > 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 drken567 at gmail.com Thu Mar 25 20:59:38 2010 From: drken567 at gmail.com (Ken MacDonald) Date: Thu, 25 Mar 2010 15:59:38 -0400 Subject: [IronPython] focus and selecting text in a TextBox with IronPython In-Reply-To: <4BABBD09.6080208@voidspace.org.uk> References: <3468cae11003241354l60bd213ejd449aa23921bf990@mail.gmail.com> <4BAA972B.508@voidspace.org.uk> <3468cae11003241627m4d290f26tb8b12504945e0820@mail.gmail.com> <3468cae11003251233s3fc8d422md30b2a6f2ba72248@mail.gmail.com> <4BABBD09.6080208@voidspace.org.uk> Message-ID: <3468cae11003251259p4717bc48oa988977c3a7b7df4@mail.gmail.com> Hi Michael, I have a (WPF) TextBox on a popup window. The textbox is supposed to allow the user to enter a guest's name before clicking one of the buttons on the popup. When the popup first appears, I want to have some dummy text in the textbox indicating that they should put in a name, e.g. "". When the user clicks into the textbox, I want to select/highlight all of the text in the textbox, and set the text-caret at the end, so that typing anything will cause the dummy text to disappear and leave, say, "fred". This is a behavior I've seen on hundreds of applications, websites, etc. but it doesn't seem to want to play with ipy. Thanks, Ken On Thu, Mar 25, 2010 at 3:44 PM, Michael Foord wrote: > On 25/03/2010 19:33, Ken MacDonald wrote: > > On Wed, Mar 24, 2010 at 7:27 PM, Ken MacDonald wrote: > >> Hi, >> Using WPF. I'll give the Start/Length a try.... >> Ken >> >> OK, I tried that in various flavors, still not working. The selection > itself appears to be working; if I un-comment the "Cut()" at the end, I > click into the box and the existing text disappears. Without the Cut(), if I > click into the box, the caret appears at the end of the existing text, the > text is NOT highlighted (as in Ctrl-A, which works fine), and typing just > appends to the existing text. Any clues appreciated. I've been trying to get > this working for several days now, and everything I've found seems to > indicate this should work. > > > Hi Ken, > > Can you repeat your requirements, I'll try to suggest some code. > > Michael > > Ken > > >> def guest_name_keyboard_focus(self, sender, args): >> print("got focus!") >> textbox = self.control("NewGuestName") >> #textbox.SelectAll() >> textbox.Focus() >> textbox.SelectionStart = 0 >> textbox.SelectionLength = len(textbox.Text) >> > > >> #textbox.Cut() <=== works if un-commented >> >> > _______________________________________________ > Users mailing list > Users 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 fuzzyman at voidspace.org.uk Thu Mar 25 21:28:00 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 25 Mar 2010 20:28:00 +0000 Subject: [IronPython] focus and selecting text in a TextBox with IronPython In-Reply-To: <3468cae11003251259p4717bc48oa988977c3a7b7df4@mail.gmail.com> References: <3468cae11003241354l60bd213ejd449aa23921bf990@mail.gmail.com> <4BAA972B.508@voidspace.org.uk> <3468cae11003241627m4d290f26tb8b12504945e0820@mail.gmail.com> <3468cae11003251233s3fc8d422md30b2a6f2ba72248@mail.gmail.com> <4BABBD09.6080208@voidspace.org.uk> <3468cae11003251259p4717bc48oa988977c3a7b7df4@mail.gmail.com> Message-ID: <4BABC750.9000406@voidspace.org.uk> On 25/03/2010 19:59, Ken MacDonald wrote: > Hi Michael, > I have a (WPF) TextBox on a popup window. The textbox is supposed to > allow the user to enter a guest's name before clicking one of the > buttons on the popup. When the popup first appears, I want to have > some dummy text in the textbox indicating that they should put in a > name, e.g. "". When the user clicks into the textbox, > I want to select/highlight all of the text in the textbox, and set the > text-caret at the end, so that typing anything will cause the dummy > text to disappear and leave, say, "fred". This is a behavior I've seen > on hundreds of applications, websites, etc. but it doesn't seem to > want to play with ipy. Well, it certainly won't be a problem with IronPython. Actually in my experience the more common behaviour is that the pre-existing text disappears on focus not when you start typing. I do see the same behavior as you - although I see the selection 'flash' when the method is executed. The code is being executed, the problem is that the standard event handling for the focus event is to unset the selection and put the caret at the end of the textbox. Even setting 'Handled' to true on the GotFocus event doesn't override this default behavior. Why not just clear the textbox on focus instead? If the textbox is still empty on LostFocus you can restore the dummy text. Michael > Thanks, > Ken > > On Thu, Mar 25, 2010 at 3:44 PM, Michael Foord > > wrote: > > On 25/03/2010 19:33, Ken MacDonald wrote: >> On Wed, Mar 24, 2010 at 7:27 PM, Ken MacDonald >> > wrote: >> >> Hi, >> Using WPF. I'll give the Start/Length a try.... >> Ken >> >> OK, I tried that in various flavors, still not working. The >> selection itself appears to be working; if I un-comment the >> "Cut()" at the end, I click into the box and the existing text >> disappears. Without the Cut(), if I click into the box, the caret >> appears at the end of the existing text, the text is NOT >> highlighted (as in Ctrl-A, which works fine), and typing just >> appends to the existing text. Any clues appreciated. I've been >> trying to get this working for several days now, and everything >> I've found seems to indicate this should work. > > Hi Ken, > > Can you repeat your requirements, I'll try to suggest some code. > > Michael > >> Ken >> >> def guest_name_keyboard_focus(self, sender, args): >> print("got focus!") >> textbox = self.control("NewGuestName") >> #textbox.SelectAll() >> textbox.Focus() >> textbox.SelectionStart = 0 >> textbox.SelectionLength = len(textbox.Text) >> >> #textbox.Cut() <=== works if un-commented >> >> >> _______________________________________________ >> 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Mar 26 02:16:23 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 26 Mar 2010 01:16:23 +0000 Subject: [IronPython] autocompletion, silverlight 2 In-Reply-To: <4B7E9D68.5090900@voidspace.org.uk> References: <075oBsNDl5502S01.1266584677@cmsweb01.cms.usa.net> <4B7E9D68.5090900@voidspace.org.uk> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921730E749@TK5EX14MBXC136.redmond.corp.microsoft.com> What features does Silvershell have over the console that is provided in the browser already? I'm wondering if it'd be useful to merge some of that stuff in ... > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Michael Foord > Sent: Friday, February 19, 2010 6:17 AM > To: Discussion of IronPython > Cc: David Jensen > Subject: Re: [IronPython] autocompletion, silverlight 2 > > On 19/02/2010 08:04, David Jensen wrote: > > I just ran into silvershell, and I have not tried it yet. I looks like it > has > > all the autocompletion that Idle has. I am wondering why no work has been > done > > on it for one year. It is a tremendous idea. Google has a browser shell for > > app engine, but it does not have autocompletion, as far as I know. Also, > the > > interpreter should reside in memory. Many applications will suffer from > trips > > to the server. I am hoping Silverlight/ironpython is the answer to people > who > > wanted to do browser scripting in python, not javascript. Apparently, > > Silverlight is now installed on 50 percent of computers. I would try to > help > > with silvershell, but I am somewhat busy. > > > > > > The reason that Silvershell hasn't been worked on is because all the > people interested are somewhat busy... :-) > > Michael > > > > _______________________________________________ > > Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > > > -- > http://www.ironpythoninaction.com/ > > _______________________________________________ > Users mailing list > Users at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From wmrj76 at motorola.com Fri Mar 26 03:30:43 2010 From: wmrj76 at motorola.com (Evan WANG) Date: Fri, 26 Mar 2010 10:30:43 +0800 Subject: [IronPython] Update from IronPython v1.0 to IronPython v2.6 In-Reply-To: References: <002101cacbf5$0e9c49b0$5d42c20a@ds.mot.com> Message-ID: <003d01cacc8c$5592c410$5d42c20a@ds.mot.com> Hi Curt, Thanks a lot for your instruction:) Another option I tried yesterday like this: ScriptEngine engine = Python.CreateEngine(); ScriptScope Scope = engine.CreateScope(); ScriptSource source; source = engine.CreateScriptSourceFromFile("D:\\test.py"); source.Execute(Scope); ObjectOperations operations = engine.Operations; object function = Scope.GetVariable("GetScriptInfo"); int result = (int)operations.Call(function); It works as well, but your option is better. Best Regards, Evan Wang ------------------------------ *From:* users-bounces at lists.ironpython.com [mailto: users-bounces at lists.ironpython.com] *On Behalf Of *Curt Hagenlocher *Sent:* Thursday, March 25, 2010 10:06 PM *To:* Discussion of IronPython *Subject:* Re: [IronPython] Update from IronPython v1.0 to IronPython v2.6 One option is this: ScriptEngine engine = Python.CreateEngine(); ScriptScope pyScope = engine.CreateScope(); ScriptSource ss = engine.CreateScriptSourceFromFile("test.py"); ss.Execute(pyScope); string address = engine.Operations.InvokeMember(pyScope, "GetScriptInfo").ToString(); On Thu, Mar 25, 2010 at 1:27 AM, Evan WANG wrote: > Hi IronPython experts, > I am a newcomers in the IronPython, I am working on update the IronPython > engine in our c# project. > After studied some days from all of your articles, I still have one > question can't be fixed. > In IronPython v1.0, we use the below code to call a function in the .py > file > this.pythonEngine = new PythonEngine(); > // Load the script > this.pythonEngine.ExecuteFile(@filePath); > string address; > address = this.pythonEngine.Evaluate("GetScriptInfo").ToString(); > > How can I implement this in the IronPython v2.6? > I write some code in c# as below, > > ScriptEngine engine = Python.CreateEngine(); > ScriptScope pyScope = engine.CreateScope(); > ScriptSource ss; > ss = engine.CreateScriptSourceFromFile("D:\\test.py"); > ss.Execute(); > ScriptSource execute the whole python file now, how can I call the specific > function(for example, the GetScriptInfo() function)? > > test.py file: > def GetScriptInfo (): > sXML='' > return sXML > > def GetBodyInfo (): > sXML='' > return sXML > > Thanks a lot! > > Best Regards, > Evan Wang > > > _______________________________________________ > 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 Mar 26 05:33:01 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 26 Mar 2010 04:33:01 +0000 Subject: [IronPython] clr.CompileModules(.) "couldn't find member CompileModules" In-Reply-To: References: , , <1A472770E042064698CB5ADC83A12ACD39399B9A@TK5EX14MBXC118.redmond.corp.microsoft.com>, , <1A472770E042064698CB5ADC83A12ACD39399E9D@TK5EX14MBXC118.redmond.corp.microsoft.com>, <1B42307CD4AADD438CDDA2FE1121CC920F6152A6@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921730E948@TK5EX14MBXC136.redmond.corp.microsoft.com> Pablo, Try opening the examples provided in the download I gave previously, and let me know if those work for you. Then, can you send me a small repro of what is going wrong in your app? ~Jimmy From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Pablo Dalmazzo Sent: Friday, February 26, 2010 5:19 AM To: IronPython Mailing list Subject: Re: [IronPython] clr.CompileModules(.) "couldn't find member CompileModules" Thanks Jimmy, the problem is, there is no "Open Website" option in IronPython Studio, and to be honest, I have no clue how to open it without it :) . Now I've found your blog and I've seen you explain how to do it in Visual Studio, and it seems to me you arent involved in the developing of IronPython Studio, but just in the case you know how to enable that, or opening the website without it, or to point me in some direction, please let me know :) Greetings, Pablo ________________________________ From: Jimmy.Schementi at microsoft.com To: dinov at microsoft.com; users at lists.ironpython.com Date: Thu, 25 Feb 2010 19:32:10 +0000 Subject: Re: [IronPython] clr.CompileModules(.) "couldn't find member CompileModules" Pablo, to write ASP.NET apps in IronPython, download this: http://ironpython.net/download/aspnet-201001 It should be open-able from within IronPython Studio, since the binaries are in the project. Note: the IronPython binaries are 2.6 RTM; if you want to use 2.6.1 RC, just try replacing them in the above download. It will probably require some tweaking of version numbers in the web.config, but there weren't any breaking changes in the hosting APIs between versions, so the Microsoft.Web.Scripting.dll binary should still be good. Dino, that mail was about open-sourcing the ASP.NET integration, which has seen very little progress. But, it's something I've resumed pushing on, as I've taken over Harry's lawyer-interaction roles. ~js From: Dino Viehland Sent: Thursday, February 25, 2010 11:09 AM To: Discussion of IronPython; Jimmy Schementi Subject: RE: [IronPython] clr.CompileModules(.) "couldn't find member CompileModules" Oh, sorry, I was apparently confused. It looks like we still need to update the binaries for ASP.NET (see http://lists.ironpython.com/pipermail/users-ironpython.com/2010-February/012149.html). Jimmy, any idea on how this is progressing? From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Pablo Dalmazzo Sent: Thursday, February 25, 2010 10:53 AM To: IronPython Mailing list Subject: Re: [IronPython] clr.CompileModules(.) "couldn't find member CompileModules" Thank you Dino, did you mean IronPython Studio or Visual Studio? I'm using Visual Studio. I'm not sure, but I thought it wasnt possible to create an asp.net website in IronPython Studio (I think I've read that) and I've seen only Window applications and WPF projects in IronPython Studio ________________________________ From: dinov at microsoft.com To: users at lists.ironpython.com Date: Thu, 25 Feb 2010 18:03:35 +0000 Subject: Re: [IronPython] clr.CompileModules(.) "couldn't find member CompileModules" I think this is just because it's an old version of IronPython - that's the same issue with your later issue as well. It might be possible to replace the older binaries w/ newer 2.6 binaries but my guess is that it'd break things in IronPython Studio it's self. This is one of the mail problems w/ IronPython Studio: it's not kept up to date :( From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Pablo Dalmazzo Sent: Thursday, February 25, 2010 7:40 AM To: IronPython Mailing list Subject: [IronPython] clr.CompileModules(...) "couldn't find member CompileModules" Hi there, Im getting the following error Visual Studio 2008 Professional SP1 installed, asp.net ironpython website import clr #ok clr.AddReference('System') #ok but clr.CompileModules(...) "couldn't find member CompileModules" Anyone got this once? ________________________________ Windows Live Hotmail es m?s seguro con el control de suplantaci?n de identidad. M?s info aqu? ________________________________ Internet Explorer 8 es m?s seguro -?Probalo gratis! Hac? clic aqu? ________________________________ Internet Explorer 8 es m?s seguro -?Probalo gratis! Hac? clic aqu? -------------- next part -------------- An HTML attachment was scrubbed... URL: From wmrj76 at motorola.com Fri Mar 26 11:28:34 2010 From: wmrj76 at motorola.com (Evan WANG) Date: Fri, 26 Mar 2010 18:28:34 +0800 Subject: [IronPython] Update from IronPython v1.0 to IronPython v2.6 References: <002101cacbf5$0e9c49b0$5d42c20a@ds.mot.com> Message-ID: <000901cacccf$17830700$5d42c20a@ds.mot.com> Hi Curt, I noticed the Microsoft.Scripting.Hosting.ObjectOperations.Call(object, params object[])' is obsolete, you are correct, we should use Invoke instead. Is there any api to check whether specific function exists before call it in the .py file? because if C# code call a nonexistent function in the .py file, it will occurs runtime error. Thank you. Best Regards, Evan Wang ------------------------------ *From:* Evan WANG [mailto:wmrj76 at motorola.com] *Sent:* Friday, March 26, 2010 10:31 AM *To:* 'Discussion of IronPython' *Subject:* RE: [IronPython] Update from IronPython v1.0 to IronPython v2.6 Hi Curt, Thanks a lot for your instruction:) Another option I tried yesterday like this: ScriptEngine engine = Python.CreateEngine(); ScriptScope Scope = engine.CreateScope(); ScriptSource source; source = engine.CreateScriptSourceFromFile("D:\\test.py"); source.Execute(Scope); ObjectOperations operations = engine.Operations; object function = Scope.GetVariable("GetScriptInfo"); int result = (int)operations.Call(function); It works as well, but your option is better. Best Regards, Evan Wang ------------------------------ *From:* users-bounces at lists.ironpython.com [mailto: users-bounces at lists.ironpython.com] *On Behalf Of *Curt Hagenlocher *Sent:* Thursday, March 25, 2010 10:06 PM *To:* Discussion of IronPython *Subject:* Re: [IronPython] Update from IronPython v1.0 to IronPython v2.6 One option is this: ScriptEngine engine = Python.CreateEngine(); ScriptScope pyScope = engine.CreateScope(); ScriptSource ss = engine.CreateScriptSourceFromFile("test.py"); ss.Execute(pyScope); string address = engine.Operations.InvokeMember(pyScope, "GetScriptInfo").ToString(); On Thu, Mar 25, 2010 at 1:27 AM, Evan WANG wrote: > Hi IronPython experts, > I am a newcomers in the IronPython, I am working on update the IronPython > engine in our c# project. > After studied some days from all of your articles, I still have one > question can't be fixed. > In IronPython v1.0, we use the below code to call a function in the .py > file > this.pythonEngine = new PythonEngine(); > // Load the script > this.pythonEngine.ExecuteFile(@filePath); > string address; > address = this.pythonEngine.Evaluate("GetScriptInfo").ToString(); > > How can I implement this in the IronPython v2.6? > I write some code in c# as below, > > ScriptEngine engine = Python.CreateEngine(); > ScriptScope pyScope = engine.CreateScope(); > ScriptSource ss; > ss = engine.CreateScriptSourceFromFile("D:\\test.py"); > ss.Execute(); > ScriptSource execute the whole python file now, how can I call the specific > function(for example, the GetScriptInfo() function)? > > test.py file: > def GetScriptInfo (): > sXML='' > return sXML > > def GetBodyInfo (): > sXML='' > return sXML > > Thanks a lot! > > Best Regards, > Evan Wang > > > _______________________________________________ > 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 davidjensen at usa.net Fri Mar 26 12:22:00 2010 From: davidjensen at usa.net (David Jensen) Date: Fri, 26 Mar 2010 07:22:00 -0400 Subject: [IronPython] cpython library Message-ID: <907ocZLVa2526S08.1269602520@cmsweb08.cms.usa.net> Someone who worked with a person who was heavily using AI related technologies for stock trading (possibly neural networks and related(genetic)) claimed this person said IronPython could not use the AI stuff because it was written in Cpython. However, my impression is that the very large majority of python libraries are python source code and not compiled C, etc. programs (dll, etc.). Furthermore, those "C" libraries may also have "C" source. Silverlight will be very powerful when it catches on. I would assume the vast majority of Cpython would run in it. David Jensen davidjensen at usa.net From curt at hagenlocher.org Fri Mar 26 13:08:00 2010 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Fri, 26 Mar 2010 05:08:00 -0700 Subject: [IronPython] cpython library In-Reply-To: <907ocZLVa2526S08.1269602520@cmsweb08.cms.usa.net> References: <907ocZLVa2526S08.1269602520@cmsweb08.cms.usa.net> Message-ID: I think your impression is right. But if there are C-based Python extensions in use (these would have a ".pyd" file extension under Windows), you might have some difficulty making them work. For desktop use, there's a project called IronClad (http://code.google.com/p/ironclad/) that provides pretty good support for the use of C extensions from within IronPython. But this won't help for Silverlight, where you can't run native code in the sandbox. You'd need to rewrite the C extensions in a managed language like C# (or IronPython :). On Fri, Mar 26, 2010 at 4:22 AM, David Jensen wrote: > Someone who worked with a person who was heavily using AI related > technologies > for stock trading (possibly neural networks and related(genetic)) claimed > this > person said IronPython could not use the AI stuff because it was written in > Cpython. However, my impression is that the very large majority of python > libraries are python source code and not compiled C, etc. programs (dll, > etc.). Furthermore, those "C" libraries may also have "C" source. > > Silverlight will be very powerful when it catches on. I would assume the > vast > majority of Cpython would run in it. > > > David Jensen > davidjensen at usa.net > > > > > _______________________________________________ > 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 Fri Mar 26 16:52:58 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Fri, 26 Mar 2010 08:52:58 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <7046badf-378d-41d6-b1f2-22af9645a4cf@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/65018. ADDED SOURCES $/IronPython/IronPython_Main/Src/IronPython.Modules/NativeSignal.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/signal.cs $/IronPython/IronPython_Main/Src/Tests/modules/system_related/signal_test.py MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython.Modules/NativeSignal.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/signal.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/nt.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/IronPython.Modules.csproj $/IronPython/IronPython_Main/Src/Tests/modules/system_related/signal_test.py $/IronPython/IronPython_Main/Src/IronPython/Modules/sys.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_Main/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_Main/Src/Tests/Tools/baselines/nt.log $/IronPython/IronPython_Main/Src/Tests/Tools/logmodule.py From fuzzyman at voidspace.org.uk Fri Mar 26 16:54:41 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Fri, 26 Mar 2010 15:54:41 +0000 Subject: [IronPython] IronPython 2.6 CodePlex Source Update In-Reply-To: <7046badf-378d-41d6-b1f2-22af9645a4cf@tk5-exsmh-c101.redmond.corp.microsoft.com> References: <7046badf-378d-41d6-b1f2-22af9645a4cf@tk5-exsmh-c101.redmond.corp.microsoft.com> Message-ID: <4BACD8C1.9000506@voidspace.org.uk> Do I spot the signal module appearing here? :-) Michael On 26/03/2010 15:52, merllab at microsoft.com 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/65018. > > ADDED SOURCES > $/IronPython/IronPython_Main/Src/IronPython.Modules/NativeSignal.cs > $/IronPython/IronPython_Main/Src/IronPython.Modules/signal.cs > $/IronPython/IronPython_Main/Src/Tests/modules/system_related/signal_test.py > > MODIFIED SOURCES > $/IronPython/IronPython_Main/Src/IronPython.Modules/NativeSignal.cs > $/IronPython/IronPython_Main/Src/IronPython.Modules/signal.cs > $/IronPython/IronPython_Main/Src/IronPython.Modules/nt.cs > $/IronPython/IronPython_Main/Src/IronPython.Modules/IronPython.Modules.csproj > $/IronPython/IronPython_Main/Src/Tests/modules/system_related/signal_test.py > $/IronPython/IronPython_Main/Src/IronPython/Modules/sys.cs > $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs > $/IronPython/IronPython_Main/Src/IronPythonTest/EngineTest.cs > $/IronPython/IronPython_Main/Src/Tests/Tools/baselines/nt.log > $/IronPython/IronPython_Main/Src/Tests/Tools/logmodule.py > > > > _______________________________________________ > 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 curt at hagenlocher.org Fri Mar 26 17:01:18 2010 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Fri, 26 Mar 2010 09:01:18 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update In-Reply-To: <4BACD8C1.9000506@voidspace.org.uk> References: <7046badf-378d-41d6-b1f2-22af9645a4cf@tk5-exsmh-c101.redmond.corp.microsoft.com> <4BACD8C1.9000506@voidspace.org.uk> Message-ID: Oh, the irony -- that the person who implemented the "codeplex comment" convention didn't actually use it :P On Fri, Mar 26, 2010 at 8:54 AM, Michael Foord wrote: > Do I spot the signal module appearing here? > > :-) > > Michael > > > On 26/03/2010 15:52, merllab at microsoft.com 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/65018. >> >> ADDED SOURCES >> $/IronPython/IronPython_Main/Src/IronPython.Modules/NativeSignal.cs >> $/IronPython/IronPython_Main/Src/IronPython.Modules/signal.cs >> >> $/IronPython/IronPython_Main/Src/Tests/modules/system_related/signal_test.py >> >> MODIFIED SOURCES >> $/IronPython/IronPython_Main/Src/IronPython.Modules/NativeSignal.cs >> $/IronPython/IronPython_Main/Src/IronPython.Modules/signal.cs >> $/IronPython/IronPython_Main/Src/IronPython.Modules/nt.cs >> >> $/IronPython/IronPython_Main/Src/IronPython.Modules/IronPython.Modules.csproj >> >> $/IronPython/IronPython_Main/Src/Tests/modules/system_related/signal_test.py >> $/IronPython/IronPython_Main/Src/IronPython/Modules/sys.cs >> >> $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs >> $/IronPython/IronPython_Main/Src/IronPythonTest/EngineTest.cs >> $/IronPython/IronPython_Main/Src/Tests/Tools/baselines/nt.log >> $/IronPython/IronPython_Main/Src/Tests/Tools/logmodule.py >> >> >> >> _______________________________________________ >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfugate at microsoft.com Fri Mar 26 17:23:51 2010 From: dfugate at microsoft.com (Dave Fugate) Date: Fri, 26 Mar 2010 16:23:51 +0000 Subject: [IronPython] IronPython 2.6 CodePlex Source Update In-Reply-To: References: <7046badf-378d-41d6-b1f2-22af9645a4cf@tk5-exsmh-c101.redmond.corp.microsoft.com> <4BACD8C1.9000506@voidspace.org.uk> Message-ID: <96F8AA58D9F50A4CAFD1DCA93C99232C1F51FC@TK5EX14MBXC123.redmond.corp.microsoft.com> Hehe...yeah I noticed I forgot that as soon as the check-in went through. The check-in comments consisted of something similar to: - nt.cs: implemented nt.kill. Please note that CPython doesn't implement this on Windows - sys.cs: I've added another _getframeImpl signature. This one additionally accepts a FunctionStack as input which PythonContext now provides... - PythonContext.cs: each PythonContext now keeps track of its FunctionStack. This is necessary as the signal module pushes the current frame into signal handlers when -X:Frames is utilized - signal.cs and NativeSignal.cs: *nearly* complete implementation of CPython's signal module. Needs better testing though (CPython's test_signal.py is completely disabled under Windows and our own test isn't finished) From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Curt Hagenlocher Sent: Friday, March 26, 2010 9:01 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython 2.6 CodePlex Source Update Oh, the irony -- that the person who implemented the "codeplex comment" convention didn't actually use it :P On Fri, Mar 26, 2010 at 8:54 AM, Michael Foord > wrote: Do I spot the signal module appearing here? :-) Michael On 26/03/2010 15:52, merllab at microsoft.com 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/65018. ADDED SOURCES $/IronPython/IronPython_Main/Src/IronPython.Modules/NativeSignal.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/signal.cs $/IronPython/IronPython_Main/Src/Tests/modules/system_related/signal_test.py MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython.Modules/NativeSignal.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/signal.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/nt.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/IronPython.Modules.csproj $/IronPython/IronPython_Main/Src/Tests/modules/system_related/signal_test.py $/IronPython/IronPython_Main/Src/IronPython/Modules/sys.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs $/IronPython/IronPython_Main/Src/IronPythonTest/EngineTest.cs $/IronPython/IronPython_Main/Src/Tests/Tools/baselines/nt.log $/IronPython/IronPython_Main/Src/Tests/Tools/logmodule.py _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mustaq2001 at gmail.com Tue Mar 30 05:13:08 2010 From: mustaq2001 at gmail.com (mohammad mustaq) Date: Tue, 30 Mar 2010 08:43:08 +0530 Subject: [IronPython] IronPython.Runtime.Types.PythonType Is not marked as Serializable Exception Message-ID: <1b9598291003292013x64ae07a3j9bb9290a058f9d98@mail.gmail.com> Hi, I have IronPython embedded in my C# application. I face issues while creating the python engine in a different appdomain. It is imposed that every class in IronPython inherit the .NET base class say ClassA. ClassA is derived from MarshalByRefObj as I need to pass an instance of this class to a new appdomain. I create a new appdomain and pass the instance of ClassA to this Appdomain. While calling a method in python class through the instance of ClassA I get an exception mentioning that "Type 'IronPython.Runtime.Types.PythonTyp e' in Assembly 'IronPython, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable". How do I Serialize this PythonType. One way that i know is to modify the IronPython source and mark the required types as Serializable (but i do not know where it will lead to and its consequences). Could you please suggest a way to perform the required operation. Should you need more details let me know. thanks, Mustaq P.S. I have used both IronPython 2.0 and 2.6. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Tue Mar 30 18:42:27 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 30 Mar 2010 16:42:27 +0000 Subject: [IronPython] IronPython.Runtime.Types.PythonType Is not marked as Serializable Exception In-Reply-To: <1b9598291003292013x64ae07a3j9bb9290a058f9d98@mail.gmail.com> References: <1b9598291003292013x64ae07a3j9bb9290a058f9d98@mail.gmail.com> Message-ID: <1A472770E042064698CB5ADC83A12ACD394D33AA@TK5EX14MBXC118.redmond.corp.microsoft.com> This works for me w/ 2.6. I've included my simple repro below which creates a new script engine in a remote app domain, loads my assembly in, runs some code which subclasses the MBRO base class, instantiates an instance of this class, and then calls it from a remote app domain. The key thing here is that when an MBRO is involved a PythonType should not need to be serialized - the type should live in the remote app domain and all execution of that code should also happen in the remote app domain where we have access to the local PythonType object. Are you also subclassing types which don't derive from MBRO? It might help to run IronPython w/ -X:ExceptionDetail if the exception is propagating through IronPython - that'll give a better stack trace to understand what's going on. Or if you can tweak the simple repro below to match the behavior you're seeing that'd be helpful as well. using System; using Microsoft.Scripting; using IronPython.Hosting; class Foo { public static void Main(string[] args) { AppDomain ad = AppDomain.CreateDomain("foo"); var engine = Python.CreateEngine(ad); engine.Runtime.LoadAssembly(typeof(MbrBase).Assembly); var code = engine.CreateScriptSourceFromString(@" import MbrBase class C(MbrBase): pass a = C() ", SourceCodeKind.Statements); var scope = engine.CreateScope(); code.Execute(scope); Console.WriteLine("Trying to do it... {0}", AppDomain.CurrentDomain.Id); MbrBase mbr = (MbrBase)scope.GetVariable("a"); mbr.DoItVirtually(); mbr.DoIt(); } } public class MbrBase : MarshalByRefObject { public virtual void DoItVirtually() { Console.WriteLine("Did it virtually {0}", AppDomain.CurrentDomain.Id); } public void DoIt() { Console.WriteLine("Did it {0}", AppDomain.CurrentDomain.Id); } } From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of mohammad mustaq Sent: Monday, March 29, 2010 8:13 PM To: users at lists.ironpython.com Subject: [IronPython] IronPython.Runtime.Types.PythonType Is not marked as Serializable Exception Hi, I have IronPython embedded in my C# application. I face issues while creating the python engine in a different appdomain. It is imposed that every class in IronPython inherit the .NET base class say ClassA. ClassA is derived from MarshalByRefObj as I need to pass an instance of this class to a new appdomain. I create a new appdomain and pass the instance of ClassA to this Appdomain. While calling a method in python class through the instance of ClassA I get an exception mentioning that "Type 'IronPython.Runtime.Types.PythonTyp e' in Assembly 'IronPython, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable". How do I Serialize this PythonType. One way that i know is to modify the IronPython source and mark the required types as Serializable (but i do not know where it will lead to and its consequences). Could you please suggest a way to perform the required operation. Should you need more details let me know. thanks, Mustaq P.S. I have used both IronPython 2.0 and 2.6. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Wed Mar 31 01:37:18 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 31 Mar 2010 00:37:18 +0100 Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD39455908@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B9F8981.90605@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD39455908@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <6f4025011003301637y3cb2cafaq1b77959c1cf68082@mail.gmail.com> For what it's worth I've just hit this problem too, but with GetUserStoreForApplication. Michael 2010/3/16 Dino Viehland > A possible work around for this is: > > def f(): > for i in xrange(200): > try: > return > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > except: pass > > After enough invocations we will no longer use reflection to call it. > > We just need to add IsolatedStorageFile to a black list of things that > shouldn't > be invoked via reflection. > > > -----Original Message----- > > From: users-bounces at lists.ironpython.com [mailto:users- > > bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky > > Sent: Tuesday, March 16, 2010 6:37 AM > > To: Discussion of IronPython > > Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws > > SystemError in IronPython 2.6 > > > > Hi all, > > one cannot use IsolatedStorage in IronPython 2.6. > > Calling IsolatedStorageFile.GetUserStoreForApplication() throws > > > > SystemError: Application code cannot access > > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > > using Reflection. > > > > > > It works fine in IronPython 2.0.2. > > > > I've entered a bug: > > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488 > > > > -- > > -- 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 > -- http://www.ironpythoninaction.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Wed Mar 31 01:41:11 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 31 Mar 2010 00:41:11 +0100 Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6 In-Reply-To: <6f4025011003301637y3cb2cafaq1b77959c1cf68082@mail.gmail.com> References: <4B9F8981.90605@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD39455908@TK5EX14MBXC118.redmond.corp.microsoft.com> <6f4025011003301637y3cb2cafaq1b77959c1cf68082@mail.gmail.com> Message-ID: <4BB28C17.5070402@voidspace.org.uk> On 31/03/2010 00:37, Michael Foord wrote: > For what it's worth I've just hit this problem too, but with > GetUserStoreForApplication. > Bah, and store.FileExists(...). Probably all methods in that api. :-( Any chance of fixing this for 2.6.1? Michael > Michael > > 2010/3/16 Dino Viehland > > > A possible work around for this is: > > def f(): > for i in xrange(200): > try: > return > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > except: pass > > After enough invocations we will no longer use reflection to call it. > > We just need to add IsolatedStorageFile to a black list of things > that shouldn't > be invoked via reflection. > > > -----Original Message----- > > From: users-bounces at lists.ironpython.com > [mailto:users- > > > bounces at lists.ironpython.com > ] On Behalf Of Lukas Cenovsky > > Sent: Tuesday, March 16, 2010 6:37 AM > > To: Discussion of IronPython > > Subject: [IronPython] IsolateStorage.GetUserStoreForApplication > throws > > SystemError in IronPython 2.6 > > > > Hi all, > > one cannot use IsolatedStorage in IronPython 2.6. > > Calling IsolatedStorageFile.GetUserStoreForApplication() throws > > > > SystemError: Application code cannot access > > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > > using Reflection. > > > > > > It works fine in IronPython 2.0.2. > > > > I've entered a bug: > > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488 > > > > -- > > -- 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 > > > > > -- > http://www.ironpythoninaction.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 Mar 31 01:48:48 2010 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 30 Mar 2010 23:48:48 +0000 Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6 In-Reply-To: <4BB28C17.5070402@voidspace.org.uk> References: <4B9F8981.90605@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD39455908@TK5EX14MBXC118.redmond.corp.microsoft.com> <6f4025011003301637y3cb2cafaq1b77959c1cf68082@mail.gmail.com> <4BB28C17.5070402@voidspace.org.uk> Message-ID: <1A472770E042064698CB5ADC83A12ACD394D622C@TK5EX14MBXC118.redmond.corp.microsoft.com> Absolutely - the fix already made it in for 2.6.1 and it does cover all methods on IsolatedStorageFile - so this should just work. From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord Sent: Tuesday, March 30, 2010 4:41 PM To: Discussion of IronPython Subject: Re: [IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6 On 31/03/2010 00:37, Michael Foord wrote: For what it's worth I've just hit this problem too, but with GetUserStoreForApplication. Bah, and store.FileExists(...). Probably all methods in that api. :-( Any chance of fixing this for 2.6.1? Michael Michael 2010/3/16 Dino Viehland > A possible work around for this is: def f(): for i in xrange(200): try: return System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() except: pass After enough invocations we will no longer use reflection to call it. We just need to add IsolatedStorageFile to a black list of things that shouldn't be invoked via reflection. > -----Original Message----- > From: users-bounces at lists.ironpython.com [mailto:users- > bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky > Sent: Tuesday, March 16, 2010 6:37 AM > To: Discussion of IronPython > Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws > SystemError in IronPython 2.6 > > Hi all, > one cannot use IsolatedStorage in IronPython 2.6. > Calling IsolatedStorageFile.GetUserStoreForApplication() throws > > SystemError: Application code cannot access > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > using Reflection. > > > It works fine in IronPython 2.0.2. > > I've entered a bug: > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488 > > -- > -- 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 -- http://www.ironpythoninaction.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 fuzzyman at voidspace.org.uk Wed Mar 31 01:49:52 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 31 Mar 2010 00:49:52 +0100 Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD394D622C@TK5EX14MBXC118.redmond.corp.microsoft.com> References: <4B9F8981.90605@bakalari.cz> <1A472770E042064698CB5ADC83A12ACD39455908@TK5EX14MBXC118.redmond.corp.microsoft.com> <6f4025011003301637y3cb2cafaq1b77959c1cf68082@mail.gmail.com> <4BB28C17.5070402@voidspace.org.uk> <1A472770E042064698CB5ADC83A12ACD394D622C@TK5EX14MBXC118.redmond.corp.microsoft.com> Message-ID: <4BB28E20.3010407@voidspace.org.uk> On 31/03/2010 00:48, Dino Viehland wrote: > > Absolutely -- the fix already made it in for 2.6.1 and it does cover > all methods on IsolatedStorageFile -- so this should just work. > Cool - thanks. :-) Michael > > *From:* users-bounces at lists.ironpython.com > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Michael Foord > *Sent:* Tuesday, March 30, 2010 4:41 PM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] IsolateStorage.GetUserStoreForApplication > throws SystemError in IronPython 2.6 > > On 31/03/2010 00:37, Michael Foord wrote: > > For what it's worth I've just hit this problem too, but with > GetUserStoreForApplication. > > > Bah, and store.FileExists(...). Probably all methods in that api. :-( > > Any chance of fixing this for 2.6.1? > > Michael > > > Michael > > 2010/3/16 Dino Viehland > > > A possible work around for this is: > > def f(): > for i in xrange(200): > try: > return > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > except: pass > > After enough invocations we will no longer use reflection to call it. > > We just need to add IsolatedStorageFile to a black list of things that > shouldn't > be invoked via reflection. > > > > -----Original Message----- > > From: users-bounces at lists.ironpython.com > [mailto:users- > > bounces at lists.ironpython.com ] > On Behalf Of Lukas Cenovsky > > Sent: Tuesday, March 16, 2010 6:37 AM > > To: Discussion of IronPython > > Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws > > SystemError in IronPython 2.6 > > > > Hi all, > > one cannot use IsolatedStorage in IronPython 2.6. > > Calling IsolatedStorageFile.GetUserStoreForApplication() throws > > > > SystemError: Application code cannot access > > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > > using Reflection. > > > > > > It works fine in IronPython 2.0.2. > > > > I've entered a bug: > > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488 > > > > -- > > -- 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 > > > > > -- > http://www.ironpythoninaction.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 michael at voidspace.org.uk Wed Mar 31 02:03:41 2010 From: michael at voidspace.org.uk (Michael Foord) Date: Wed, 31 Mar 2010 01:03:41 +0100 Subject: [IronPython] Gestalt, IronPython in Silverlight and embedded xaml Message-ID: <4BB2915D.6050309@voidspace.org.uk> Hello guys, I'm getting to grips with 'gestalt', the new way of embedding IronPython in Silverlight: http://ironpython.net/browser/docs.html It seems ok so far, I still need to package my app into a zip file and serve it locally (doesn't work from the filesystem) so you don't gain much in terms of workflow but it does seem a better way to structure Silverlight apps (keeping the runtime separate from the application). It doesn't seem to me that embedded xaml is working. An html file with pretty much nothing but the following content doesn't show a Silverlight control (Firefox and IE on Windows 7): When I attempt to use embedded xaml to create the Silverlight control and add a Python script for the application I was hoping to use the following to access the Silverlight UI: root = Application.Current.RootVisual root here is None and the Silverlight control is not displayed. Any ideas? Thanks, Michael -- 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 Jimmy.Schementi at microsoft.com Wed Mar 31 04:06:58 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 31 Mar 2010 02:06:58 +0000 Subject: [IronPython] Gestalt, IronPython in Silverlight and embedded xaml In-Reply-To: <4BB2915D.6050309@voidspace.org.uk> References: <4BB2915D.6050309@voidspace.org.uk> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92173128F2@TK5EX14MBXC136.redmond.corp.microsoft.com> > I still need to package my app into a zip file and serve it locally (doesn't work from the filesystem) Michael, what do you exactly mean by this? You need your app to run out of browser? > It doesn't seem to me that embedded xaml is working First of all, docs/spec issue: the current online bits only support application/xml+xaml, and the docs have application/xaml+xml. The release that will be online in a few days supports both. After correcting that you will get a SL control created on the page; here's the exact HTML (with a Text attribute added to the TextBlock to make it obvious that it worked): Then, if you add the following Python script-tag after the XAML script tag, it will update the text: Note the *class="inlineXAML"* attribute; if you did not include this, the code would run against a different Silverlight control than the one created by your *id="inlineXAML"* tag. In fact, it would run against a SL control that is essentially hidden, so app.RootVisual would be None. In short, giving a XAML script-tag an ID lets you pick the Python script-tags that will run against it by setting their class attribute to the same value. I'll update the docs accordingly... ~Jimmy From Jimmy.Schementi at microsoft.com Wed Mar 31 04:56:40 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 31 Mar 2010 02:56:40 +0000 Subject: [IronPython] Being unable to import module after succesfully adding reference, in asp.net IronPython In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217312EFF@TK5EX14MBXC136.redmond.corp.microsoft.com> Let me see if understand your question: You have funciones.dll and your trying to use it in IronPython like this: import clr clr.AddReferenceToFile('funciones.dll') from funciones import * First off, I'm not sure the contents of funciones.dll. You mentioned "conexiones" as the namespace, but I'm not sure if that was part of the question. Anyway, when doing "import foo", "foo" represents some top-level name that IronPython can find, be it a file on disk, a Python module, or a top-level name in a .NET DLL you have added a reference to. The actual DLL file name is not related to the name you use when using import. For example, IF funciones.dll was compiled from this C# code: public static class MyFunctions { public static void Function1() {} public static void Function2() {} } You would do the following to use it: import clr clr.AddReferenceToFile('funciones.dll') import MyFunctions MyFunctions.Function1() MyFunctions.Function2() Make sense? ~Jimmy From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Pablo Dalmazzo Sent: Monday, February 22, 2010 4:51 AM To: users at lists.ironpython.com Subject: [IronPython] Being unable to import module after succesfully adding reference, in asp.net IronPython Hi there, I'm adding a reference to a funciones.dll file using clr.AddReferenceToFileAndPath() because I couldnt get it to work other way with this file and it succesfully does it. The file is named funciones.dll , it only contains function definitions and it's in the bin folder. But when I do from funciones import * I get "no module named funciones" since the funciones.dll file it's a funciones.py file compiled, shouldnt the module name only be named funciones and no any other name? isnt the name the problem and it's another? I dont know what other info could be relevant here but if there is any let me know. BTW, in the VS 2008 object explorer, this assembly is listed differently than assemblies made from VB.NET or C# code files. A dll file made from a VB.NET code file named "conexiones" with a explicity declared "conexiones" namespace is listed as {}conexiones : "Namespace conexiones, member of conexiones". The IronPython assembly funciones is listed as DLRCachedCode[funciones]: "public class DLRCachedCode, member of funciones" My question is , what do I have to do for the function definitions from funciones.dll to be available from an asp.net ironpython aspx.py codefile ? Greetings, Pablo Dalmazzo ________________________________ Hotmail es confiable. Con autenticaci?n de remitentes y filtros Anti-Spam mejorados un 80% . Ver m?s. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Mar 31 07:01:32 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 31 Mar 2010 05:01:32 +0000 Subject: [IronPython] Is it possible to associate an IronPython asp.net webform to a dll file? In-Reply-To: <8cd017b81002220927g66f882dj774dc3f4f143589a@mail.gmail.com> References: <8cd017b81002220927g66f882dj774dc3f4f143589a@mail.gmail.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921731300A@TK5EX14MBXC136.redmond.corp.microsoft.com> Pablo/Dody, we don't support pre-compiled files currently in ASP.NET; the integration managed that. ~js From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dody Gunawinata Sent: Monday, February 22, 2010 9:28 AM To: Discussion of IronPython Subject: Re: [IronPython] Is it possible to associate an IronPython asp.net webform to a dll file? hmm..there's nothing that I am aware of. The only thing that I found working is setting up a single custom class to be inherited by all the aspx.py file. On Mon, Feb 22, 2010 at 2:58 PM, Pablo Dalmazzo > wrote: Hi there, In ASP.NET with the normal ASP model you could have the codefile of the aspx file in a dll by inheriting the class inside the dll. In IronPython you have another model and the only option in the aspx page is "codefile" and there is no "inherits". My question is, is there any way to associate an aspx file to a source file which is not directly viewable such as a dll or a pyc file? Greetings, Pablo Dalmazzo ________________________________ Windows Live Hotmail es m?s seguro con filtro Anti Spam mejorado un 80%. ?M?s info aqu?! _______________________________________________ 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 Wed Mar 31 07:16:57 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 31 Mar 2010 05:16:57 +0000 Subject: [IronPython] vb.net webform in asp.net website problem reloaded In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921731304A@TK5EX14MBXC136.redmond.corp.microsoft.com> I'd advise keeping them in separate projects/websites, but it shouldn't be a requirement if you're just using ASPX/VB files. But, once you need to compile those files to a DLL, you need different projects (1 DLL per project). From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Pablo Dalmazzo Sent: Tuesday, March 02, 2010 4:07 AM To: IronPython Mailing list Subject: [IronPython] vb.net webform in asp.net website problem reloaded Hi there, So, I finally got the dlls files made with IronPython to work in asp.net by updating to the last version of IronPython and compiling them with clr.CompileModules() . So I thought, there is nothing now to stop me from using IronPython for comercial projects. Now I work with other people who might keep using VB.NET in the projects for a while. So in IronPython 2.0 I found a trick to have both .vb and .py files in the same website, by creating an ironpython website and placing the .vb files in the App_Folder . But this doesnt work anymore with IronPython 2.6 and its web.config example , so now I can have modules imported from dlls made in IronPython but I cant have both .vb and .py files in the same website. Any workaround for this? Any idea? We could create 2 different projects (one in VB.NET and one in IronPython) , and when we want to unify them we convert the .vb and .py to dlls files, but the problem with this is we cant use Visual Source Safe and if I edit some of my co-workers files there is no control of version at all Greetings, Pablo. ________________________________ Tu Hotmail guarda el borrador que est?s escribiendo para que no pierdas tu mensaje. Conoc? c?mo -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Mar 31 08:06:42 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 31 Mar 2010 06:06:42 +0000 Subject: [IronPython] IronPython exception line numbers in Gestalt In-Reply-To: References: Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92173130E8@TK5EX14MBXC136.redmond.corp.microsoft.com> Ryan, The reason you're seeing that weird error message is that consumer versions of Silverlight omit exception strings (note the error says "debugging string" are unavailable, not line numbers =P). The developer version of Silverlight has full exception strings. Now I can get the line number from sys.exc_info()[2].tb_lineno: >>> try: ... raise Exception() ... except Exception as ex: ... t, v, b = sys.exc_info() ... >>> b >>> dir(b) ['Equals', 'GetHashCode', 'GetType', 'MemberwiseClone', 'ReferenceEquals', 'ToString', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'tb_frame', 'tb_lasti', 'tb_lineno', 'tb_next'] >>> b.tb_lineno 2 But calling frame.tb_frame.f_lineno does throw a valid exception: >>> b.tb_frame >>> dir(b.tb_frame) ['Equals', 'GetHashCode', 'GetType', 'MemberwiseClone', 'ReferenceEquals', 'ToString', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'f_back', 'f_builtins', 'f_code', 'f_exc_traceback', 'f_exc_type', 'f_globals', 'f_lineno', 'f_locals', 'f_restricted', 'f_trace'] >>> b.tb_frame.f_lineno Traceback (most recent call last): at in , line 0 IOError: [Errno 2] Could not load file or assembly 'Microsoft.Scripting.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Yup, that assembly isn't included in the dlr.xap file today; but it should be. However, on the desktop CLR, it doesn't look accurate: >>> b.tb_frame.f_lineno 1 Dino, thoughts on this? ~js -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ryan Berdeen Sent: Sunday, March 21, 2010 2:39 PM To: users at lists.ironpython.com Subject: [IronPython] IronPython exception line numbers in Gestalt I've just started trying to use Gestalt/dlr.js. I have a simple test script (js.py), which throws an exception, then tries to extract a line number from the exception. --------- import sys def b(): try: raise Exception() except Exception as ex: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() return exceptionTraceback.tb_frame.f_lineno def a(): return b() a() --------- When run in my browser, this fails, and displays this error: --------- IOError: [Errno 2] Error 0x1A88. Debugging resource strings are unavailable. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.50106.0&File=mscorrc.dll&Key=0x1A88 js.py Line 6: except Exception as ex: Line 7: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() Line 8: return exceptionTraceback.tb_frame.f_lineno Line 9: Line 10: def a(): IOError at b in js.py, line 8 at a in js.py, line 11 at in js.py, line 13 --------- This appears to be a message telling me that line numbers are unavailable which, paradoxically, includes all of the line numbers. Looking through the DLR source, I see it is getting the line number from a DynamicStackFrame (http://dlr.codeplex.com/sourcecontrol/network/Show?projectName=dlr&changeSetId=45843#580636), but I don't see how to get this information from Python. I've tried setting DLR.settings.debug to true, without any effect. What is the correct way to enable resource strings so that they are are accessible from Python, or what else could I do to access them? Thanks, Ryan _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From Jimmy.Schementi at microsoft.com Wed Mar 31 08:29:17 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 31 Mar 2010 06:29:17 +0000 Subject: [IronPython] AddReference to Silverlight toolkit assemblies In-Reply-To: <4BA95FC7.4040607@bakalari.cz> References: <4BA95FC7.4040607@bakalari.cz> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC921731311E@TK5EX14MBXC136.redmond.corp.microsoft.com> Lukas, When you use ExtensionPart, it calls Assembly.Load on each file in the zip file referenced, so you don't need to do clr.Addreference. System.Windows.Data.dll and System.Windows.Controls.Data.dll are not DLLs in Silverlight; they are in the Silverlight SDK. So you'll have to package them up into a separate zip file which you include in your AppManfest, just like you did with the SLToolkit.zip. ~js From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Tuesday, March 23, 2010 5:42 PM To: users at lists.ironpython.com Subject: [IronPython] AddReference to Silverlight toolkit assemblies Hi all, I use Silverlight toolkit in my IronPython Silverlight app. To lower bandwidth, I put all necessary Silverlight toolkit .dlls into separate file called SLToolkit.zip which I reference in AppManifest.xaml: This works nicely if I don't need to reference assembly already existing in Silverlight - e.g. I do clr.AddReference('System.Windows.Controls.Data') and use DataGrid. Unfortunately, when I need to reference PagedCollectionView from System.Windows.Data, this approach does not work. Trying from System.Windows.Data import PagedCollectionView fails on ImportError: Cannot import name PagedCollectionView. Doing import System.Windows.Data System.Windows.Data.PagedCollectionView(some_data) fails with AttributeError: attribute 'PagedCollectionView' of 'namespace#' object is read-only. When I try to add clr.AddReference('System.Windows.Data') if fails with: IOError: [Errno 2] could not find assembly: System.Windows.Data (check the Web server). The only way how to make this work is to put System.Windows.Data.dll into .xap file and reference it with clr.AddReferenceToFile('System.Windows.Data.dll') from System.Windows.Data import PagedCollectionView Is there a way to make it work when System.Windows.Data.dll is in the separate file? Or should I use another approach? Thanks, -- -- Luk?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Mar 31 08:33:52 2010 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 31 Mar 2010 06:33:52 +0000 Subject: [IronPython] Compiling .py to .dll to use with Silverlight In-Reply-To: <4B878C5E.70402@bakalari.cz> 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> <4B878C5E.70402@bakalari.cz> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC9217313145@TK5EX14MBXC136.redmond.corp.microsoft.com> I must confess I never got around to experimenting with it =( But thanks for bringing attention to it, and I'm sure this will get back on my plate as the IronPython team triages these issues for the next version. Have you tried importing on a background thread to speed things up? That would be a useful sample to have out there, and I know Michael has done this successfully (and SilverShell had a way of toggling this). From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Friday, February 26, 2010 12:55 AM To: Discussion of IronPython Subject: Re: [IronPython] Compiling .py to .dll to use with Silverlight Hi Jimmy, PyCon's over, I checked your talk there (cool things!) but no mention about IronPython .dlls and Silverlight. Any progress on this issue? All who need speed up IronPython Silverlight applications please vote: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25680 -- -- 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 fuzzyman at voidspace.org.uk Wed Mar 31 14:20:52 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 31 Mar 2010 13:20:52 +0100 Subject: [IronPython] Compiling .py to .dll to use with Silverlight In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC9217313145@TK5EX14MBXC136.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> <4B878C5E.70402@bakalari.cz> <1B42307CD4AADD438CDDA2FE1121CC9217313145@TK5EX14MBXC136.redmond.corp.microsoft.com> Message-ID: <4BB33E24.3020209@voidspace.org.uk> On 31/03/2010 07:33, Jimmy Schementi wrote: > > I must confess I never got around to experimenting with it =( But > thanks for bringing attention to it, and I'm sure this will get back > on my plate as the IronPython team triages these issues for the next > version. > Having compiled modules would *further* increase import performance, even with background importing. There are also other reasons to want to ship dlls, so a solution to this problem would be *much* appreciated. :-) Thanks Michael > Have you tried importing on a background thread to speed things up? > That would be a useful sample to have out there, and I know Michael > has done this successfully (and SilverShell had a way of toggling this). > > *From:* users-bounces at lists.ironpython.com > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Lukas Cenovsky > *Sent:* Friday, February 26, 2010 12:55 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] Compiling .py to .dll to use with Silverlight > > Hi Jimmy, > PyCon's over, I checked your talk there (cool things!) but no mention > about IronPython .dlls and Silverlight. Any progress on this issue? > > All who need speed up IronPython Silverlight applications please vote: > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=25680 > > -- > -- 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 > > > > > > _______________________________________________ > 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 Mar 31 21:08:23 2010 From: merllab at microsoft.com (merllab at microsoft.com) Date: Wed, 31 Mar 2010 12:08:23 -0700 Subject: [IronPython] IronPython 2.6 CodePlex Source Update Message-ID: <29deef56-b00b-4b6b-bfad-76aecde1a202@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/65156. MODIFIED SOURCES $/IronPython/IronPython_2_6/Src/Hosts/SilverLight/Microsoft.Scripting.Silverlight/BrowserVirtualFilesystem.cs