From jvm_cop at spamcop.net Thu Jun 2 17:54:36 2005 From: jvm_cop at spamcop.net (J. Merrill) Date: Thu, 02 Jun 2005 11:54:36 -0400 Subject: [IronPython] Any have one good reason to use .NET Framework v2.0 with IronPython In-Reply-To: Message-ID: <4.3.2.7.2.20050602114826.05c5ef68@mail.comcast.net> At 03:26 PM 5/31/2005, Luis Carrillo wrote >Why I need to update the .NET Framework v2.0 with revisions 50215, >knowing that this version is BETA!!, I work with v1.2, and I don't >need one upgrade yet. >Why not work it?? with early versions of .NET or give more options to >downloads, like IronPython 0.7.5 to .NET Fram.. v.1.0 or v.1.2, >Thanks 4 your time when u reply me... Version 1.2 ?? It's even more BETA than 2.0 See http://weblogs.asp.net/kdente/archive/2003/06/12/8627.aspx Why do you think 1.2 (which most people think is in essence 2.0 with a different version number), instead of the very recently released 2.0 beta 2, is superior? J. Merrill / Analytical Software Corp From jvm_cop at spamcop.net Thu Jun 2 17:56:22 2005 From: jvm_cop at spamcop.net (J. Merrill) Date: Thu, 02 Jun 2005 11:56:22 -0400 Subject: [IronPython] Any have one good reason to use .NET Framework v2.0 with IronPython Message-ID: <4.3.2.7.2.20050602115616.05dce0a8@mail.comcast.net> One other point I forgot to make -- MS works terribly hard to make it so that you can have as many different versions of .NET on your machine as you want, and they will all work as if the others weren't there. Why not take advantage of that? At 03:26 PM 5/31/2005, Luis Carrillo wrote >Why I need to update the .NET Framework v2.0 with revisions 50215, >knowing that this version is BETA!!, I work with v1.2, and I don't >need one upgrade yet. J. Merrill / Analytical Software Corp From kfarmer at thuban.org Thu Jun 2 20:01:52 2005 From: kfarmer at thuban.org (Keith J. Farmer) Date: Thu, 2 Jun 2005 11:01:52 -0700 Subject: [IronPython] Any have one good reason to use .NETFramework v2.0 with IronPython Message-ID: Last I checked, the betas don't work side-by-side? ________________________________ From: users-ironpython.com-bounces at lists.ironpython.com on behalf of J. Merrill Sent: Thu 6/2/2005 8:56 AM One other point I forgot to make -- MS works terribly hard to make it so that you can have as many different versions of .NET on your machine as you want, and they will all work as if the others weren't there. Why not take advantage of that? From jvm_cop at spamcop.net Fri Jun 3 04:45:15 2005 From: jvm_cop at spamcop.net (J. Merrill) Date: Thu, 02 Jun 2005 22:45:15 -0400 Subject: [IronPython] Any have one good reason to use .NETFramework v2.0 with IronPython Message-ID: <4.3.2.7.2.20050602224511.05e3da88@mail.comcast.net> The Visual Studio betas don't, but my impression is that the framework betas do. Am I wrong? (Maybe the newer beta installers remove the older betas, which is why I've not seen any "uninstall the previous beta before you install this one" messages.) At 02:01 PM 6/2/2005, Keith J. Farmer wrote >Last I checked, the betas don't work side-by-side? > >________________________________ > >From: users-ironpython.com-bounces at lists.ironpython.com on behalf of J. Merrill >Sent: Thu 6/2/2005 8:56 AM > >One other point I forgot to make -- MS works terribly hard to make it so that you can have as many different versions of .NET on your machine as you want, and they will all work as if the others weren't there. Why not take advantage of that? J. Merrill / Analytical Software Corp From darrin at massena.com Tue Jun 7 07:58:09 2005 From: darrin at massena.com (Darrin Massena) Date: Mon, 6 Jun 2005 22:58:09 -0700 Subject: [IronPython] IronPython and Visual Studio Message-ID: <974EA9BC82209644AFDF5EE79C883476219409@HAPPY.home.massena.com> Hello fine folks. A question: what has been done, or is being done, to integrate IronPython with Visual Studio (2005, presumably)? Any editor, debugger, project integration or other support? If nothing has been pursued yet, is this interesting to anybody? Darrin Massena > -----Original Message----- > From: users-ironpython.com-bounces at lists.ironpython.com [mailto:users- > ironpython.com-bounces at lists.ironpython.com] On Behalf Of J. Merrill > Sent: Thursday, June 02, 2005 7:45 PM > To: Discussion of IronPython > Subject: RE: [IronPython] Any have one good reason to use > .NETFrameworkv2.0 with IronPython > > The Visual Studio betas don't, but my impression is that the framework > betas do. Am I wrong? (Maybe the newer beta installers remove the older > betas, which is why I've not seen any "uninstall the previous beta before > you install this one" messages.) > > At 02:01 PM 6/2/2005, Keith J. Farmer wrote > >Last I checked, the betas don't work side-by-side? > > > >________________________________ > > > >From: users-ironpython.com-bounces at lists.ironpython.com on behalf of J. > Merrill > >Sent: Thu 6/2/2005 8:56 AM > > > >One other point I forgot to make -- MS works terribly hard to make it so > that you can have as many different versions of .NET on your machine as > you want, and they will all work as if the others weren't there. Why not > take advantage of that? > > > J. Merrill / Analytical Software Corp > > _______________________________________________ > users-ironpython.com mailing list > users-ironpython.com at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > From hank at prosysplus.com Tue Jun 7 18:35:40 2005 From: hank at prosysplus.com (Hank Fay) Date: Tue, 7 Jun 2005 12:35:40 -0400 Subject: [IronPython] IronPython and Visual Studio -- In-Reply-To: <974EA9BC82209644AFDF5EE79C883476219409@HAPPY.home.massena.com> Message-ID: <9A3216C2135B40FAA6757636F3A1A.MAI@prosysplus.com> An area where IronPython could be especially useful, I think, would be in making dynamic working with the IDE. In Visual Foxpro, with a dialog open, from the Command Window I can issue: Aselobj(aArray) loForm = aArray[1] loForm.height = loForm.height + 50 && makes it 50 pixels higher, etc. Making Python the scripting language for the IDE, so that it became dynamic, would put Python in front of many more .Net developers that simply hoping they adopt it because it's a great language (which of course it is ). Ken Levy, who is on the VSData team, actually created a whole system of builders for VFP: he would be a great resource for this project. Hank Fay From andrea.sansottera at fastwebnet.it Tue Jun 7 18:51:24 2005 From: andrea.sansottera at fastwebnet.it (andrea.sansottera at fastwebnet.it) Date: Tue, 7 Jun 2005 18:51:24 +0200 Subject: =?iso-8859-1?Q?Re=3A=20=5BIronPython=5D=20Any=20have=20one=20good=20reason=20to=20use=20=2ENET=20Framework=20v2=2E0=09with=20IronPython?= In-Reply-To: <429CBB2D.4060609@botanicus.net> Message-ID: <429435EC00010717@ms004msg.mail.fw> >-- Original Message -- >Date: Tue, 31 May 2005 20:29:49 +0100 >From: David Wilson >To: Luis Carrillo , > Discussion of IronPython >Subject: Re: [IronPython] Any have one good reason to use .NET Framework >v2.0 > with IronPython >Cc: >Reply-To: Discussion of IronPython > > >Luis Carrillo wrote: > >> Why I need to update the .NET Framework v2.0 with revisions 50215, >> knowing that this version is BETA!!, I work with v1.2, and I don't >> need one upgrade yet. > >> Why not work it?? with early versions of .NET or give more options to >> downloads, like IronPython 0.7.5 to .NET Fram.. v.1.0 or v.1.2, >> Thanks 4 your time when u reply me... > >Hi there, > > From my understanding of the situation, a number of enhancements to >.NET 2.0 are specifically geared for implementing languages such as >IronPython. That's right. Quote from the FAQ page on the documentation section of the workspace: A: There are a lot of features in .NET 2.0 that we wanted to use in IronPython. These include generics, DynamicMethods, new kinds of delegates, and more. We could have supported these new features using #ifdefs to keep a version of the code base that ran on 1.1. I decided that backwards compatibility wasnt worth complicating the code base and development of IronPython at this time. I expect that when we start working on adding support for new .NET 3.0 features to IronPython that well do them in the #ifdef or similar way so that IronPython will continue to run on .NET 2.0 for the foreseeable future. From greg.lindstrom at novasyshealth.com Tue Jun 7 19:04:03 2005 From: greg.lindstrom at novasyshealth.com (Greg Lindstrom) Date: Tue, 07 Jun 2005 12:04:03 -0500 Subject: [IronPython] Some Iron Python PR Message-ID: <42A5D383.9010504@novasyshealth.com> Hello- I have volunteered to write an article for International Developer Magazine giving a high-level look at Python; the history and motivation behind the language as well as future direction. The article is not too long (1850 words), but I would like to include a little bit on Iron Python as well at Jython, Zope, and other applications. Though I heard the Iron Python presentation at PyCon earlier this year, would one of you be kind enough to summarize what you are trying to accomplish and give an expected date for release? Also, who is/are leading the development? Is it fair to say Microsoft is supporting your efforts? Enthusiastically? The deadline for submission is next Wednesday and I have committed to having a draft out for review by Sunday. I know it's short, but can anyone here help me out with the above information? Thanks, --greg -- Greg Lindstrom 501 975.4859 (office) Senior Programmer 501 219-4455 (fax) NovaSys Health greg.lindstrom at novasyshealth.com Little Rock, Arkansas "We are the music makers, and we are the dreamers of dreams." W.W. From martmaly at exchange.microsoft.com Tue Jun 7 20:40:27 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Tue, 7 Jun 2005 11:40:27 -0700 Subject: [IronPython] Readlines Message-ID: <1DFB396200705E46B5338CA4B2E25BDE175B26@DF-BANDIT-MSG.exchange.corp.microsoft.com> Yes. It is a bug. Thanks for reporting it! Martin > Jon Cosby Wrote: > > I see IronPython does not have the CPython readlines method. > Is this an oversight? > > > Jon Cosby From martmaly at exchange.microsoft.com Tue Jun 7 23:50:58 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Tue, 7 Jun 2005 14:50:58 -0700 Subject: [IronPython] Cannot run executable Message-ID: <1DFB396200705E46B5338CA4B2E25BDE175C0E@DF-BANDIT-MSG.exchange.corp.microsoft.com> The reason you get the error message is that we do not set an entry point on the generated assemblies. This was recently removed as part of the reload() implementation. We are going to add it back in 0.7.6 as a short-term solution. The long term solution - a full-fledged compilation of python sources into .Net executables - is something we are looking into for the future. Martin > S. Hessam Moosavi Mehr Wrote: > > When I try to run any .exe generated by IronPython, I get the following error: > [application name here] is not a valid Win32 application. > > I have IronPython 0.7.5 and .net Framework 2.0.50215 > > How can I fix this problem? > > Thanks From kfarmer at thuban.org Fri Jun 10 10:35:00 2005 From: kfarmer at thuban.org (Keith J. Farmer) Date: Fri, 10 Jun 2005 01:35:00 -0700 Subject: [IronPython] 0.7.6 changes Message-ID: Is there a list of changes for 0.7.6 yet? From martmaly at exchange.microsoft.com Fri Jun 10 23:54:09 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Fri, 10 Jun 2005 14:54:09 -0700 Subject: [IronPython] 0.7.6 changes Message-ID: <1DFB396200705E46B5338CA4B2E25BDE1ED278@DF-BANDIT-MSG.exchange.corp.microsoft.com> Hi Keith, The list of changes for 0.7.6 is not finalized yet. Jim and I are still working on the 0.7.6 release which was delayed a bit due to my recent vacation. We are planning to release 0.7.6 in the coming days (my personal hope is Monday or Tuesday at the latest). Martin > -----Original Message----- > From: users-ironpython.com-bounces at lists.ironpython.com > [mailto:users-ironpython.com-bounces at lists.ironpython.com] On > Behalf Of Keith J. Farmer > Sent: Friday, June 10, 2005 1:35 AM > To: Discussion of IronPython > Subject: [IronPython] 0.7.6 changes > > Is there a list of changes for 0.7.6 yet? > > _______________________________________________ > users-ironpython.com mailing list > users-ironpython.com at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > From kfarmer at thuban.org Sat Jun 11 00:40:03 2005 From: kfarmer at thuban.org (Keith J. Farmer) Date: Fri, 10 Jun 2005 15:40:03 -0700 Subject: [IronPython] 0.7.6 changes Message-ID: No worries.. vacations are Good Things. -----Original Message----- From: users-ironpython.com-bounces at lists.ironpython.com [mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of Martin Maly The list of changes for 0.7.6 is not finalized yet. Jim and I are still working on the 0.7.6 release which was delayed a bit due to my recent vacation. We are planning to release 0.7.6 in the coming days (my personal hope is Monday or Tuesday at the latest). From martmaly at exchange.microsoft.com Tue Jun 14 18:57:57 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Tue, 14 Jun 2005 09:57:57 -0700 Subject: [IronPython] IronPython 0.7.6 released Message-ID: <1DFB396200705E46B5338CA4B2E25BDE1ED6B2@DF-BANDIT-MSG.exchange.corp.microsoft.com> Hello IronPython community, We have just released the version 0.7.6 of IronPython. The most important changes that this release contains are: * Filtering of exception call stacks - by default, we filter the call stack to only show the relevant stack frames. - the property PythonEngine.ExceptionDetail was added to toggle the behavior * Function attributes * Handling of loops in lists and dictionaries - e.g.: x = [] x.append(x) * __doc__ is now implemented for modules and classes * Added support for System.Single (float) data type * Double-import of module whose import raises exception is now fixed The following members of the community contributed to this release by reporting bugs, and providing valuable feedback. We extend our thanks to: Nicholas Jacobson Anthony Tarlano Don Box Keith Farmer John Doty Michael Taylor S. Hessam Moosavi Mehr Chu Kevin Kirk Olynyk Jon Cosby The list of all bugs fixed for the 0.7.6 release: * On exception, don't show confusing .Net callstacks * Cannot assign to arbitrary slot on the function * Assigning function attributes fails. * Stack overflow exception when globals() is followed by _.values() * open() reads in "\r\n" * re.escape() works on some symbols but not others * missing __doc__ at startup * Can't raise a complex number to an exponent * Can't raise an int to a float power * // and divmod give wrong answer with two floats * Calling int() on a non-int throws wrong Exception * Add support for System.Single (float) data type * Only dump snippets.dll in engine-debug mode * sys.exit() fails * __bases__ in OldClass is not settable * Double import bug * x.extend(x) * readlines not implemented on file * Executing Python generated assemblies error: "not valid executable" * PIA ComObject Operations * Doesn't return infinity * (a==b)==(b==a) parsed incorrectly Thanks and keep in touch The IronPython team http://workspaces.gotdotnet.com/ironpython http://lists.ironpython.com/listinfo.cgi/users-ironpython.com http://www.microsoft.com/downloads/details.aspx?FamilyID=de819b1c-d3d9-4 d14-a5d1-7206769a7178&displaylang=en From firemoth at gmail.com Tue Jun 14 19:35:15 2005 From: firemoth at gmail.com (Timothy Fitz) Date: Tue, 14 Jun 2005 13:35:15 -0400 Subject: [IronPython] IronPython 0.7.6 released In-Reply-To: <1DFB396200705E46B5338CA4B2E25BDE1ED6B2@DF-BANDIT-MSG.exchange.corp.microsoft.com> References: <1DFB396200705E46B5338CA4B2E25BDE1ED6B2@DF-BANDIT-MSG.exchange.corp.microsoft.com> Message-ID: <972ec5bd0506141035ec07293@mail.gmail.com> I know this is a pretty minor issue, but the GotDotNet community e-mail that has this information is not properly formatted. The e-mail is formatted as both HTML and Text, and the HTML version does not have line breaks (
) where there are newlines (\n), so your text-bulleted list runs together. (The text version still works). On 6/14/05, Martin Maly wrote: > Hello IronPython community, > > We have just released the version 0.7.6 of IronPython. > > The most important changes that this release contains are: > > * Filtering of exception call stacks > - by default, we filter the call stack to only show the relevant > stack frames. > - the property PythonEngine.ExceptionDetail was added to toggle the > behavior > * Function attributes > * Handling of loops in lists and dictionaries > - e.g.: x = [] > x.append(x) > * __doc__ is now implemented for modules and classes > * Added support for System.Single (float) data type > * Double-import of module whose import raises exception is now fixed > > The following members of the community contributed to this release by > reporting bugs, and providing valuable feedback. We extend our thanks > to: > > Nicholas Jacobson > Anthony Tarlano > Don Box > Keith Farmer > John Doty > Michael Taylor > S. Hessam Moosavi Mehr > Chu Kevin > Kirk Olynyk > Jon Cosby > > The list of all bugs fixed for the 0.7.6 release: > > * On exception, don't show confusing .Net callstacks > * Cannot assign to arbitrary slot on the function > * Assigning function attributes fails. > * Stack overflow exception when globals() is followed by _.values() > * open() reads in "\r\n" > * re.escape() works on some symbols but not others > * missing __doc__ at startup > * Can't raise a complex number to an exponent > * Can't raise an int to a float power > * // and divmod give wrong answer with two floats > * Calling int() on a non-int throws wrong Exception > * Add support for System.Single (float) data type > * Only dump snippets.dll in engine-debug mode > * sys.exit() fails > * __bases__ in OldClass is not settable > * Double import bug > * x.extend(x) > * readlines not implemented on file > * Executing Python generated assemblies error: "not valid executable" > * PIA ComObject Operations > * Doesn't return infinity > * (a==b)==(b==a) parsed incorrectly > > Thanks and keep in touch > The IronPython team > > http://workspaces.gotdotnet.com/ironpython > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > http://www.microsoft.com/downloads/details.aspx?FamilyID=de819b1c-d3d9-4 > d14-a5d1-7206769a7178&displaylang=en > > _______________________________________________ > users-ironpython.com mailing list > users-ironpython.com at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > From kfarmer at thuban.org Tue Jun 14 23:31:02 2005 From: kfarmer at thuban.org (Keith J. Farmer) Date: Tue, 14 Jun 2005 14:31:02 -0700 Subject: [IronPython] IronPython 0.7.6 released Message-ID: Out of curiosity, how are __doc__ strings being compiled? As a member, or perhaps as an attribute in the same vein as XML comments in C#? -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3035 bytes Desc: not available URL: From martmaly at exchange.microsoft.com Tue Jun 14 21:59:51 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Tue, 14 Jun 2005 12:59:51 -0700 Subject: [IronPython] IronPython future plans Message-ID: <1DFB396200705E46B5338CA4B2E25BDE1ED7C9@DF-BANDIT-MSG.exchange.corp.microsoft.com> Hello IronPython community Now that we have shipped the 0.7.6 release of IronPython we want to share our plans for the future releases, how we get from here to the 0.8 release. There are two areas in which we want to make broader changes between now and 0.8. They both relate to the way IronPython relates to the rest of the .Net world. These areas are: 1) Inheritance and method overriding 2) Overloaded method resolution and type conversions The inheritance and method overriding changes will enable inheriting Python classes from any .Net classes (including built-in classes such as list, tuple, int, str ...) and will also address how .Net and Python paradigms exist and work together. For example .Net constructors and Python __init__ methods, .Net ToString() and Python __str__ method or .Net finalizers/destructors and Python's __del__ method. The overloaded method resolution and type conversions are closely related. Together they will address how IronPython determines what method is the best match for the given parameter list. Current implementation fails to find the correct match in some cases, which results in calling the method that is not the best match, or in failing the call altogether. The completion of these major changes will mark the 0.8 milestone. We do believe that 0.8 will be the next release following the 0.7.6, barring any unexpected surprises during the course of the work. Our current best estimate is to make the 0.8 available in early July 2005. The big work items between 0.8 and 1.0 will be: Python completeness, Python 2.4 compatibility, running Python regression test suite, optional static compilation and general finishing touches. Thanks and keep in touch The IronPython team From redmoon17 at gmail.com Wed Jun 15 03:22:15 2005 From: redmoon17 at gmail.com (Chu Kevin) Date: Wed, 15 Jun 2005 09:22:15 +0800 Subject: [IronPython] IronPython future plans In-Reply-To: <1DFB396200705E46B5338CA4B2E25BDE1ED7C9@DF-BANDIT-MSG.exchange.corp.microsoft.com> References: <1DFB396200705E46B5338CA4B2E25BDE1ED7C9@DF-BANDIT-MSG.exchange.corp.microsoft.com> Message-ID: <41d7f4a905061418221d9431b7@mail.gmail.com> What any plan for support VS 2005? 2005/6/15, Martin Maly : > Hello IronPython community > > Now that we have shipped the 0.7.6 release of IronPython we want to > share our plans for the future releases, how we get from here to the 0.8 > release. > > There are two areas in which we want to make broader changes between now > and 0.8. They both relate to the way IronPython relates to the rest of > the .Net world. These areas are: > > 1) Inheritance and method overriding > 2) Overloaded method resolution and type conversions > > The inheritance and method overriding changes will enable inheriting > Python classes from any .Net classes (including built-in classes such as > list, tuple, int, str ...) and will also address how .Net and Python > paradigms exist and work together. For example .Net constructors and > Python __init__ methods, .Net ToString() and Python __str__ method or > .Net finalizers/destructors and Python's __del__ method. > > The overloaded method resolution and type conversions are closely > related. Together they will address how IronPython determines what > method is the best match for the given parameter list. Current > implementation fails to find the correct match in some cases, which > results in calling the method that is not the best match, or in failing > the call altogether. > > The completion of these major changes will mark the 0.8 milestone. We do > believe that 0.8 will be the next release following the 0.7.6, barring > any unexpected surprises during the course of the work. Our current best > estimate is to make the 0.8 available in early July 2005. > > The big work items between 0.8 and 1.0 will be: Python completeness, > Python 2.4 compatibility, running Python regression test suite, optional > static compilation and general finishing touches. > > Thanks and keep in touch > The IronPython team > > _______________________________________________ > users-ironpython.com mailing list > users-ironpython.com at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > From dan.v at ieee.org Wed Jun 15 04:53:01 2005 From: dan.v at ieee.org (Dan V.) Date: Wed, 15 Jun 2005 10:53:01 +0800 Subject: [IronPython] .NET build used for IronPython Message-ID: <42AF980D.3060304@ieee.org> Hi. I'm not sure if you can help me with this because I don't think it's an IronPython exclusive problem, but it is the only thing that comes up broken. I am running VS2005 build 8.0.50110.28 with .NET build 2.0.50110. Last night I tried upgrading to .NET build 2.0.50215, downloaded from the MSDN pages, by uninstalling the old one before installing the new package. Once I did this my VS2005 would crash when I opened a project, so I reverted to 2.0.50110 and rebuilt everything. Now any time I try to run an IronPython console I get the trace given below. The only thing I haven't tried yet is a complete reinstall of VS. Any ideas? Unhandled Exception: System.TypeInitializationException: The type initializer fo r 'IronPython.AST.SnippetMaker' threw an exception. ---> System.IO.FileLoadExcep tion: A procedure imported by 'ISymWrapper, Version=2.0.0.0, Culture=neutral, Pu blicKeyToken=b03f5f7f11d50a3a' could not be loaded. File name: 'ISymWrapper, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f 7f11d50a3a' ---> System.Runtime.InteropServices.COMException (0x8007007F): The s pecified procedure could not be found. (Exception from HRESULT: 0x8007007F) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, E vidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Bool ean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as semblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at System.Reflection.Emit.AssemblyBuilder.LoadISymWrapper() at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModuleInternalNoLock(S tring name, String fileName, Boolean emitSymbolInfo, StackCrawlMark& stackMark) at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModuleInternal(String name, String fileName, Boolean emitSymbolInfo, StackCrawlMark& stackMark) at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule(String name, St ring fileName, Boolean emitSymbolInfo) at IronPython.AST.AssemblyGen..ctor(String sourceFileName, String moduleName, String outDir, String outFile) in C:\code\IronPython-0.7.6\IronPython\AST\Assem blyGen.cs:line 84 at IronPython.AST.AssemblyGen..ctor(String source, String module, String outp ut) in C:\code\IronPython-0.7.6\IronPython\AST\AssemblyGen.cs:line 40 at IronPython.AST.SnippetMaker..cctor() in C:\code\IronPython-0.7.6\IronPytho n\AST\SnippetMaker.cs:line 27 --- End of inner exception stack trace --- at IronPython.Hosting.PythonEngine..ctor() in C:\code\IronPython-0.7.6\IronPy thon\Hosting\PythonEngine.cs:line 59 at IronPython.Hosting.PythonEngine..ctor(ArrayList args) in C:\code\IronPytho n-0.7.6\IronPython\Hosting\PythonEngine.cs:line 70 at IronPythonConsole.PythonCommandLine.Main(String[] rawArgs) in C:\code\Iron Python-0.7.6\IronPythonConsole\PythonCommandLine.cs:line 34 Cheers, Dan. From martmaly at exchange.microsoft.com Wed Jun 15 06:52:45 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Tue, 14 Jun 2005 21:52:45 -0700 Subject: [IronPython] IronPython 0.7.6 released Message-ID: <1DFB396200705E46B5338CA4B2E25BDE1ED97B@DF-BANDIT-MSG.exchange.corp.microsoft.com> They are implemented as members. Since the __doc__ behaves like any other member, The implementation just uses the member semantics. Consider for example: >>> class c: ... "doc 1" ... print __doc__ ... __doc__ = "doc 2" ... print __doc__ ... doc 1 doc 2 >>> I hope this answers your question. Martin > Keith J. Farmer Wrote: > > Out of curiosity, how are __doc__ strings being compiled? > As a member, or perhaps as an attribute in the same vein as XML comments in C#? ? From ironpython at bobs.org Wed Jun 15 09:03:30 2005 From: ironpython at bobs.org (Bob Arnson) Date: Wed, 15 Jun 2005 00:03:30 -0700 Subject: [IronPython] .NET build used for IronPython In-Reply-To: <42AF980D.3060304@ieee.org> Message-ID: <20050615070330.D38E117511A@merry.dreamhost.com> > I'm not sure if you can help me with this because I don't > think it's an > IronPython exclusive problem, but it is the only thing that comes up > broken. I am running VS2005 build 8.0.50110.28 with .NET build > 2.0.50110. Last night I tried upgrading to .NET build 2.0.50215, > downloaded from the MSDN pages, by uninstalling the old one before > installing the new package. Once I did this my VS2005 would > crash when > I opened a project, so I reverted to 2.0.50110 and rebuilt everything. > > Now any time I try to run an IronPython console I get the trace given > below. The only thing I haven't tried yet is a complete reinstall of > VS. Any ideas? Recent builds of IronPython require .NET 2.0 beta 2. You should consider upgrading to VS beta 2, so both VS and IronPython are using the same (known) build of .NET. sig://boB http://bobs.org From dan.v at ieee.org Wed Jun 15 09:10:11 2005 From: dan.v at ieee.org (Dan V.) Date: Wed, 15 Jun 2005 15:10:11 +0800 Subject: [IronPython] .NET build used for IronPython In-Reply-To: <20050615070330.D38E117511A@merry.dreamhost.com> References: <20050615070330.D38E117511A@merry.dreamhost.com> Message-ID: <42AFD453.6050907@ieee.org> I am running .NET beta 2 with VS2005 beta 2. I have tested running my build on another computer with a clean install of 2.0.50110 and it runs fine, so it looks like my .NET install has been broken somewhere. I'll do a clean reinstall tonight. I would be interested to know what build Jim & Martin are using at the moment. Also (unrelated) has hex string formatting been fixed in 0.7.6? e.g. print "%x"%16 Cheers, Dan. Bob Arnson wrote: >>I'm not sure if you can help me with this because I don't >>think it's an >>IronPython exclusive problem, but it is the only thing that comes up >>broken. I am running VS2005 build 8.0.50110.28 with .NET build >>2.0.50110. Last night I tried upgrading to .NET build 2.0.50215, >>downloaded from the MSDN pages, by uninstalling the old one before >>installing the new package. Once I did this my VS2005 would >>crash when >>I opened a project, so I reverted to 2.0.50110 and rebuilt everything. >> >>Now any time I try to run an IronPython console I get the trace given >>below. The only thing I haven't tried yet is a complete reinstall of >>VS. Any ideas? >> >> > >Recent builds of IronPython require .NET 2.0 beta 2. You should consider >upgrading to VS beta 2, so both VS and IronPython are using the same (known) >build of .NET. > >sig://boB >http://bobs.org > >_______________________________________________ >users-ironpython.com mailing list >users-ironpython.com at lists.ironpython.com >http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > From martmaly at exchange.microsoft.com Wed Jun 15 20:58:25 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Wed, 15 Jun 2005 11:58:25 -0700 Subject: [IronPython] .NET build used for IronPython Message-ID: <1DFB396200705E46B5338CA4B2E25BDE1EDAC7@DF-BANDIT-MSG.exchange.corp.microsoft.com> Hi Dan, For development, I use Visual Studio 2005 Beta 2, build 8.0.50215.44. The computer that builds the IronPython distribution and runs the tests has .Net Framework 2.0 Beta 2 2.0.50215.44 and the Beta 2 SDK (also 2.0.50215.44). For this machine I actually downloaded the .Net Beta 2 packages from Microsoft public web so that what we use to produce the build and run the tests is exactly the same build of .Net that we recommend everyone to use IronPython with. Also note that this computer doesn't even have Visual Studio and only uses publicly available .Net SDK to build the product. The formatting bug has not been fixed yet. I definitely plan to fix it, however I wasn't assigning it very high priority. If you like to see the fix soon, let me know and I will try to get to it sooner than I probably normally would. The workaround that may do until then is: >>> hex(16) '0x10' >>> I hope this helps and good luck with your reinstallation. Martin > Dan V. Wrote: > > I am running .NET beta 2 with VS2005 beta 2. I have tested running my > build on another computer with a clean install of 2.0.50110 and it runs > fine, so it looks like my .NET install has been broken somewhere. I'll > do a clean reinstall tonight. > > I would be interested to know what build Jim & Martin are using at the > moment. > > Also (unrelated) has hex string formatting been fixed in 0.7.6? > > e.g. > > print "%x"%16 > > > Cheers, > > Dan. From dan.v at ieee.org Thu Jun 16 02:25:52 2005 From: dan.v at ieee.org (Dan V.) Date: Thu, 16 Jun 2005 08:25:52 +0800 Subject: [IronPython] .NET build used for IronPython In-Reply-To: <1DFB396200705E46B5338CA4B2E25BDE1EDAC7@DF-BANDIT-MSG.exchange.corp.microsoft.com> References: <1DFB396200705E46B5338CA4B2E25BDE1EDAC7@DF-BANDIT-MSG.exchange.corp.microsoft.com> Message-ID: <42B0C710.8050501@ieee.org> Hi Martin. The hex formatting is not urgent for me, just something I noticed when running the console. I can use the workaround for now. Cheers, Dan. Martin Maly wrote: >Hi Dan, > >For development, I use Visual Studio 2005 Beta 2, build 8.0.50215.44. > >The computer that builds the IronPython distribution and runs the tests >has >.Net Framework 2.0 Beta 2 2.0.50215.44 and the Beta 2 SDK (also >2.0.50215.44). For this machine I actually downloaded the .Net Beta 2 >packages from Microsoft public web so that what we use to produce the >build and run the tests is exactly the same build of .Net that we >recommend everyone to use IronPython with. Also note that this computer >doesn't even have Visual Studio and only uses publicly available .Net >SDK to build the product. > >The formatting bug has not been fixed yet. I definitely plan to fix it, >however I wasn't assigning it very high priority. If you like to see the >fix soon, let me know and I will try to get to it sooner than I probably >normally would. The workaround that may do until then is: > > > >>>>hex(16) >>>> >>>> >'0x10' > > > >I hope this helps and good luck with your reinstallation. >Martin > > > > >>Dan V. Wrote: >> >>I am running .NET beta 2 with VS2005 beta 2. I have tested running my >>build on another computer with a clean install of 2.0.50110 and it >> >> >runs > > >>fine, so it looks like my .NET install has been broken somewhere. >> >> >I'll > > >>do a clean reinstall tonight. >> >>I would be interested to know what build Jim & Martin are using at the >>moment. >> >>Also (unrelated) has hex string formatting been fixed in 0.7.6? >> >>e.g. >> >>print "%x"%16 >> >> >>Cheers, >> >>Dan. >> >> >_______________________________________________ >users-ironpython.com mailing list >users-ironpython.com at lists.ironpython.com >http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > From Jon.Bills at xansa.com Thu Jun 16 18:43:08 2005 From: Jon.Bills at xansa.com (Jon.Bills at xansa.com) Date: Thu, 16 Jun 2005 17:43:08 +0100 Subject: [IronPython] Jon Bills is out of the office. Message-ID: I will be out of the office starting 16/06/2005 and will not return until 21/06/2005. I will respond to your message when I return. Whilst this email has been checked for all known viruses, recipients should undertake their own virus checking as Xansa will not accept any liability whatsoever. This email and any files transmitted with it are confidential and protected by client privilege. It is solely for the use of the intended recipient. Please delete it and notify the sender if you have received it in error. Unauthorised use is prohibited. Any opinions expressed in this email are those of the individual and not necessarily the organisation. Xansa, Registered Office: 420 Thames Valley Park Drive, Thames Valley Park, Reading, RG6 1PU, UK. Registered in England No.1000954. t +44 (0)8702 416181 w www.xansa.com From miguel at ximian.com Fri Jun 17 21:17:48 2005 From: miguel at ximian.com (Miguel de Icaza) Date: Fri, 17 Jun 2005 15:17:48 -0400 Subject: [IronPython] IronPython 0.7.6 released In-Reply-To: <1DFB396200705E46B5338CA4B2E25BDE1ED6B2@DF-BANDIT-MSG.exchange.corp.microsoft.com> References: <1DFB396200705E46B5338CA4B2E25BDE1ED6B2@DF-BANDIT-MSG.exchange.corp.microsoft.com> Message-ID: <1119035868.6521.1398.camel@linux.site> Hello, > We have just released the version 0.7.6 of IronPython. Do you have any regression test suites to check on the progress of IronPython? We would like to run these tests on IronPython in Mono to ensure that we are not missing anything. Miguel. From martmaly at exchange.microsoft.com Fri Jun 17 21:41:32 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Fri, 17 Jun 2005 12:41:32 -0700 Subject: [IronPython] IronPython 0.7.6 released Message-ID: <1DFB396200705E46B5338CA4B2E25BDE2695C0@DF-BANDIT-MSG.exchange.corp.microsoft.com> Yes, we do have a regression test suite that we keep extending as the development moves forward. We are going to make it part of the distribution package starting with the next release. Apparently, this is something we should have done earlier. Please accept our apologies. Martin > Miguel de Icaza Wrote: > > Hello, > > > We have just released the version 0.7.6 of IronPython. > > Do you have any regression test suites to check on the progress of > IronPython? We would like to run these tests on IronPython > in Mono to > ensure that we are not missing anything. > > Miguel. From curtin1060 at comcast.net Fri Jun 17 00:15:29 2005 From: curtin1060 at comcast.net (curtin@computer.org) Date: Thu, 16 Jun 2005 22:15:29 +0000 Subject: [IronPython] .asmx WebService wrapping python code Message-ID: <061620052215.2272.42B1FA0100046F21000008E02200734076CFC0CFCE02079B9D9A0C@comcast.net> Hi, Does anyone have an example of using IronPy to create a .NET WebService... Essentially creating an asmx wrapper converting some pure python code into a server side WebService? Is there a better pure python way to do this? I dug into the listserv archives and didn't see much about how to do this. Any pointers appreciated! Craig From kfarmer at thuban.org Fri Jun 17 22:21:48 2005 From: kfarmer at thuban.org (Keith J. Farmer) Date: Fri, 17 Jun 2005 13:21:48 -0700 Subject: [IronPython] IronPython future plans Message-ID: Thoughts on when .NET attributes will appear, and what form they may take? This would have some bearing on Craig's asmx work, as well as serialization in general. You could write NUnit tests for IronPython using IronPython -- that would be slick. This is all great work. Thanks for letting us watch :) -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2985 bytes Desc: not available URL: From miguel at ximian.com Fri Jun 17 22:51:56 2005 From: miguel at ximian.com (Miguel de Icaza) Date: Fri, 17 Jun 2005 16:51:56 -0400 Subject: [IronPython] IronPython 0.7.6 released In-Reply-To: <1DFB396200705E46B5338CA4B2E25BDE2695C0@DF-BANDIT-MSG.exchange.corp.microsoft.com> References: <1DFB396200705E46B5338CA4B2E25BDE2695C0@DF-BANDIT-MSG.exchange.corp.microsoft.com> Message-ID: <1119041516.6521.1420.camel@linux.site> Hey! > Yes, we do have a regression test suite that we keep extending as the > development moves forward. We are going to make it part of the > distribution package starting with the next release. This is very very good news! Thanks a million! From kfarmer at thuban.org Sat Jun 18 00:10:17 2005 From: kfarmer at thuban.org (Keith J. Farmer) Date: Fri, 17 Jun 2005 15:10:17 -0700 Subject: [IronPython] [OT] Miguel... Message-ID: Sorry for the off-topic nature of this post... Miguel -- do you happen to know if anybody's managed to get Monad (now released in Beta1) running under Mono, or if it's even possible. If not, does Mono/Novell have plans in this regard? (Perhaps adding the nifty feature of IronPython/etc scripting support?) Feel free to respond directly... -- Keith J. Farmer, kfarmer at thuban.org From coreyhaines at gmail.com Sat Jun 18 00:47:57 2005 From: coreyhaines at gmail.com (Corey Haines) Date: Fri, 17 Jun 2005 18:47:57 -0400 Subject: [IronPython] Embedding Iron Python in Other Apps Message-ID: <6bdacb705061715479379cfb@mail.gmail.com> I'm working on a new program at work (internal tool use, not for resale) and was wondering if there were any restrictions on embedding Iron Python as a scripting/extensibility console in it. I was thinking of taking the IronPythonConsole, abstracting the parsing and running out of it into a separate component and throwing a new little UI on it. From martmaly at exchange.microsoft.com Sat Jun 18 02:44:57 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Fri, 17 Jun 2005 17:44:57 -0700 Subject: [IronPython] IronPython at O'Reilly Open Source Convention Message-ID: <1DFB396200705E46B5338CA4B2E25BDE2696A9@DF-BANDIT-MSG.exchange.corp.microsoft.com> Hello IronPython community, The O'Reilly Open Source Convention that takes place August 1-5, 2005 in Portland, OR will host two IronPython events. On Tuesday, August 2nd, 2005, Jim and Martin will be presenting a three hour long tutorial on IronPython, see here for details: http://conferences.oreillynet.com/cs/os2005/view/e_sess/6864 On Thursday, August 4th, 2005, Jim will be giving a talk on IronPython, see here for details: http://conferences.oreillynet.com/cs/os2005/view/e_sess/6862 We hope to see you in Portland Thanks and keep in touch The IronPython Team From kfarmer at thuban.org Sat Jun 18 04:02:48 2005 From: kfarmer at thuban.org (Keith J. Farmer) Date: Fri, 17 Jun 2005 19:02:48 -0700 Subject: [IronPython] IronPython at O'Reilly Open Source Convention Message-ID: "1.0 release" ? ________________________________ From: users-ironpython.com-bounces at lists.ironpython.com on behalf of Martin Maly Sent: Fri 6/17/2005 5:44 PM On Thursday, August 4th, 2005, Jim will be giving a talk on IronPython, see here for details: http://conferences.oreillynet.com/cs/os2005/view/e_sess/6862 -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3579 bytes Desc: not available URL: From firemoth at gmail.com Sat Jun 18 05:22:02 2005 From: firemoth at gmail.com (Timothy Fitz) Date: Fri, 17 Jun 2005 20:22:02 -0700 Subject: [IronPython] IronPython at O'Reilly Open Source Convention In-Reply-To: <1DFB396200705E46B5338CA4B2E25BDE2696A9@DF-BANDIT-MSG.exchange.corp.microsoft.com> References: <1DFB396200705E46B5338CA4B2E25BDE2696A9@DF-BANDIT-MSG.exchange.corp.microsoft.com> Message-ID: <972ec5bd05061720226122fb6b@mail.gmail.com> On 6/17/05, Martin Maly wrote: > Hello IronPython community, > > The O'Reilly Open Source Convention that takes place August 1-5, 2005 in > Portland, OR will host two IronPython events. Any chance of a web broadcast or recording? From mtaylor at alias.com Sat Jun 18 20:42:54 2005 From: mtaylor at alias.com (Michael Taylor) Date: Sat, 18 Jun 2005 14:42:54 -0400 Subject: [IronPython] IronPythons and Mono Monkeys Message-ID: <2CBCE3DB-036A-4454-9BEC-98DB08E6C393@alias.com> I just tried Miguel de Icaza's Mono 1.1.8 drop for Mac OS X with the IronPython 0.7.6 release and was rewarded with this beautiful sight: > mono IronPythonConsole.exe IronPython 0.7.6 on .NET 2.0.50215.16 Copyright (c) Microsoft Corporation. All rights reserved. >>> import sys >>> sys.stderr.write("Hello\n") Hello >>> Not a heavy stress test, but it's IronPython on a Mac:-) Many thanks to Miguel and to Zoltan who added the missing Dictionary functionality only hours after I logged the bug. Cheers! -- Mike Taylor Software Architect Alias | www.alias.com From kbond at free.fr Sun Jun 19 20:13:17 2005 From: kbond at free.fr (kbond) Date: Sun, 19 Jun 2005 20:13:17 +0200 Subject: [IronPython] Word Automation In-Reply-To: <20050603190836.B5CD585408@che.dreamhost.com> References: <20050603190836.B5CD585408@che.dreamhost.com> Message-ID: <42B5B5BD.7070909@free.fr> Hello, Congratulation, for this new release correcting some bugs around the "PIA ComObject Operations". I spent the last hours playing around with this great feature of ironpython and I would like to share with you a couple of things. Some are working fine some seems strange to me but it might be because I am missing something and some that are not working. Scenario 1 IronPython 0.7.6 on .NET 2.0.50215.44 Copyright (c) Microsoft Corporation. All rights reserved. >>>>>> import sys >>>>>> sys.LoadAssemblyByName("Microsoft.Office.Interop.Word") >>>>>> import Microsoft.Office.Interop.Word as wordApp >>>>>> mApp= wordApp.ApplicationClass() >>>>>> mApp.visible >>> >>> False >>>>>> mApp.visible = True >>>>>> mApp.Documents.Open("c:\tmp\Doc1.doc") >>> >>> System.Runtime.InteropServices.COMException: The document name or path is not va lid. Try one or more of the following: * Check the path to make sure it was typed correctly. (c: mp\Doc1.doc)click Open. Search for the file using this dialog box. at input_6.Run(Frame frame) >>>>>> >>> >>> ####### I do not undertstand why this is not working however a slightly modified statement is working well########## >>>>>> doc1 = mApp.Documents.Open(r'c:\tmp\Doc1.doc') >>>>>> doc1.Save() >>>>>> doc1.Close() >>> >>> Scenario 2 >>>>>> doc1 = mApp.Documents.Open(r'c:\tmp\Doc1.doc') >>>>>> doc2 = mApp.Documents.Add() >>>>>> doc2.SaveAs(r"c:\tmp\Doc2.doc") >>>>>> for i in mApp.Documents: >>> >>> ... print i.Name ... System.Runtime.InteropServices.COMException: Unknown name. (Exception from HRESU LT: 0x80020006 (DISP_E_UNKNOWNNAME)) at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Bi nder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers , CultureInfo culture, String[] namedParams) at input_24.Run(Frame frame) ###### I do not understand why I cannot iterate in the collection of Documents###### ###### May be this is not supposed to work but it would be amazingly efficient######## >>>>>> mApp.Documents("Doc1.doc").Activate() >>> >>> System.Runtime.InteropServices.COMException: Unknown name. (Exception from HRESU LT: 0x80020006 (DISP_E_UNKNOWNNAME)) at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Bi nder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers , CultureInfo culture, String[] namedParams) at input_29.Run(Frame frame) ##### Another problem when working with a collection of documents ##### ##### I cannot select a given document using its Name ##### Scenario 3 ##### I would like to translate the following vb statement in python###### #vb#### Documents.Open FileName:="C:\Files\Doc.doc", ReadOnly:=True#### >>> doc3 = mApp.Documents.Open(FileName='c:\tmp\Doc1.doc', ReadOnly= True) System.Exception: this object is not callable with keyword parameters at input_32.Run(Frame frame) #### Obviously, my guess was wrong but I do not have any idea on how to do such thing any advise would be more than welcome###### Could you please help me to positionned win32com and IronPython? Would it be possible to do the same things with IronPython than with win32com? Thank you very much for your answers, I hope that will help you ..... Regards From riltim at gmail.com Sun Jun 19 21:33:10 2005 From: riltim at gmail.com (Tim Riley) Date: Sun, 19 Jun 2005 15:33:10 -0400 Subject: [IronPython] Word Automation In-Reply-To: <42B5B5BD.7070909@free.fr> References: <20050603190836.B5CD585408@che.dreamhost.com> <42B5B5BD.7070909@free.fr> Message-ID: > >>>>>> mApp.Documents.Open("c:\tmp\Doc1.doc") > >>> > >>> > System.Runtime.InteropServices.COMException: The document name or path is not va > lid. > Try one or more of the following: > * Check the path to make sure it was typed correctly. > (c: mp\Doc1.doc)click Open. Search for the file using this dialog box. > at input_6.Run(Frame frame) You need to escape the backslashes. Should have been "c:\\tmp\\Doc1.doc". Also \t translate to a tab which is shown in the error. Tim Riley On 6/19/05, kbond wrote: > Hello, > > Congratulation, for this new release correcting some bugs around the > "PIA ComObject Operations". > I spent the last hours playing around with this great feature of ironpython and I would like to share with you a couple > of things. > Some are working fine some seems strange to me but it > might be because I am missing something and some that are not working. > > > > Scenario 1 > > IronPython 0.7.6 on .NET 2.0.50215.44 > Copyright (c) Microsoft Corporation. All rights reserved. > > >>>>>> import sys > >>>>>> sys.LoadAssemblyByName("Microsoft.Office.Interop.Word") > >>>>>> import Microsoft.Office.Interop.Word as wordApp > >>>>>> mApp= wordApp.ApplicationClass() > >>>>>> mApp.visible > >>> > >>> > False > > >>>>>> mApp.visible = True > >>>>>> mApp.Documents.Open("c:\tmp\Doc1.doc") > >>> > >>> > System.Runtime.InteropServices.COMException: The document name or path is not va > lid. > Try one or more of the following: > * Check the path to make sure it was typed correctly. > (c: mp\Doc1.doc)click Open. Search for the file using this dialog box. > at input_6.Run(Frame frame) > > >>>>>> > >>> > >>> > ####### I do not undertstand why this is not working however a > slightly modified statement is working well########## > > > >>>>>> doc1 = mApp.Documents.Open(r'c:\tmp\Doc1.doc') > >>>>>> doc1.Save() > >>>>>> doc1.Close() > >>> > >>> > > > Scenario 2 > > >>>>>> doc1 = mApp.Documents.Open(r'c:\tmp\Doc1.doc') > >>>>>> doc2 = mApp.Documents.Add() > >>>>>> doc2.SaveAs(r"c:\tmp\Doc2.doc") > >>>>>> for i in mApp.Documents: > >>> > >>> > ... print i.Name > ... > System.Runtime.InteropServices.COMException: Unknown name. (Exception from HRESU > LT: 0x80020006 (DISP_E_UNKNOWNNAME)) > at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, > Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] > namedParameters) > at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Bi > nder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers > , CultureInfo culture, String[] namedParams) > at input_24.Run(Frame frame) > > ###### I do not understand why I cannot iterate in the collection of > Documents###### > ###### May be this is not supposed to work but it would be amazingly > efficient######## > > > >>>>>> mApp.Documents("Doc1.doc").Activate() > >>> > >>> > System.Runtime.InteropServices.COMException: Unknown name. (Exception from HRESU > LT: 0x80020006 (DISP_E_UNKNOWNNAME)) > at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, > Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] > namedParameters) > at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Bi > nder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers > , CultureInfo culture, String[] namedParams) > at input_29.Run(Frame frame) > > ##### Another problem when working with a collection of documents ##### > ##### I cannot select a given document using its Name ##### > > Scenario 3 > ##### I would like to translate the following vb statement in python###### > #vb#### Documents.Open FileName:="C:\Files\Doc.doc", ReadOnly:=True#### > >>> doc3 = mApp.Documents.Open(FileName='c:\tmp\Doc1.doc', ReadOnly= True) > > System.Exception: this object is not callable with keyword parameters > at input_32.Run(Frame frame) > > #### Obviously, my guess was wrong but I do not have any idea on how > to do such thing any advise would be more than welcome###### > > > Could you please help me to positionned win32com and IronPython? > Would it be possible to do the same things with IronPython than with win32com? > Thank you very much for your answers, I hope that will help you ..... > > Regards > > > _______________________________________________ > users-ironpython.com mailing list > users-ironpython.com at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > From kfarmer at thuban.org Sun Jun 19 23:18:12 2005 From: kfarmer at thuban.org (Keith J. Farmer) Date: Sun, 19 Jun 2005 14:18:12 -0700 Subject: [IronPython] IronPython 0.7.6 released Message-ID: I was just running IronPython from the Monad command line, when a friend suggested an interesting idea. Given the object nature of Monad, it's a shame that you can't simply pass an object to an external program. But what if IronPython offered an alternative to the standard Main function, which could accept objects, rather than strings, at startup. Then one could either use that directly from Monad, or if necessary create a cmdlet proxy. Of course, one would then want to pass an object back to Monad. From martmaly at exchange.microsoft.com Mon Jun 20 07:34:39 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Sun, 19 Jun 2005 22:34:39 -0700 Subject: [IronPython] Word Automation Message-ID: <1DFB396200705E46B5338CA4B2E25BDE269767@DF-BANDIT-MSG.exchange.corp.microsoft.com> Hi, Tim already answered the first problem you faced, let's see if I can help with the others. >> I do not understand why I cannot iterate in the collection of Documents While the collection you get back may (and I am not sure whether it does or not) inherit from IEnumerable, the code I put in IronPython doesn't detect it yet so we cannot iterate it the tradiional Pythonic way. Anthony Tarlano and I played with this already and we have been successful using methods Count and Item on the collection (the collection we enumerated was collection of spelling correction hints): >>> import sys >>> sys.LoadAssemblyByName('Microsoft.Office.Interop.Word') >>> import Microsoft.Office.Interop.Word as Word >>> wapp = Word.ApplicationClass() >>> wapp.Documents.Add() >>> s = wapp.GetSpellingSuggestions('tonny') >>> for i in xrange(s.Count): ... print s.Item(i + 1).Name ... tinny Tony tiny sonny tone >>> Same goes for collection of documents: >>> import sys >>> sys.LoadAssemblyByName("Microsoft.Office.Interop.Word") >>> import Microsoft.Office.Interop.Word as wordApp >>> mApp = wordApp.ApplicationClass() >>> mApp.Visible=True >>> mApp.Documents.Open("D:\\a.doc") >>> mApp.Documents.Add() >>> for i in xrange(mApp.Documents.Count): ... print mApp.Documents.Item(i + 1).Name ... Document1 a.doc >>> >> I cannot select a given document using its Name I was able to access the document by name using slightly modified code: >>> print mApp.Documents.Item("X.doc").Name x.doc >> I would like to translate the following vb statement in python >> Documents.Open FileName:="C:\Files\Doc.doc", ReadOnly:=True >>> doc3 = mApp.Documents.Open(FileName='c:\tmp\Doc1.doc', ReadOnly= True) Passing parameters by name to COM objects is not implemented in IronPython. To open document read only, you can do following: mApp.Documents.Open("D:\\x.doc", False, True) The 3rd parameter is "Read Only". The rest of the parameters have default values, which IronPython will add. The COM support in IronPython is going to be extended to get the best possible experience. Currently the support is only very simple. I hope this helps a little. Martin From miuler at gmail.com Fri Jun 24 06:08:26 2005 From: miuler at gmail.com (Hector Miuler Malpica Gallegos) Date: Thu, 23 Jun 2005 23:08:26 -0500 Subject: [IronPython] error 0.7.6 with mono Message-ID: <1119586106.2119.19.camel@localhost> Hello friends, Ironpython 0.7.x already works with monkey (1.1.8) :D, with the version 0,7,5 everything works well apparently, but with version 0,7,6 it has problems, some idea? IronPython 0.7.5 miuler at miuler:/home/share/Instaladores-Linux/python/mono/IronPython-0.7.5/bin$ ls IronMath.dll IronPythonConsole.exe IronPythonConsole.exe.config IronPython.dll Lib miuler at miuler:/home/share/Instaladores-Linux/python/mono/IronPython-0.7.5/bin$ ./IronPythonConsole.exe IronPython 0.7.5 on .NET 2.0.50215.16 Copyright (c) Microsoft Corporation. All rights reserved. >>> import sys >>> import System >>> IronPython 0.7.6 miuler at miuler:/home/share/Instaladores-Linux/python/mono/IronPython-0.7.6/bin$ ls IronMath.dll IronPythonConsole.exe IronPythonConsole.exe.config IronPython.dll Lib miuler at miuler:/home/share/Instaladores-Linux/python/mono/IronPython-0.7.6/bin$ ./IronPythonConsole.exe IronPython 0.7.6 on .NET 2.0.50215.16 Copyright (c) Microsoft Corporation. All rights reserved. >>> import sys >>> import System ** (./IronPythonConsole.exe:3572): WARNING **: Missing method get_IsGenericType in assembly /home/share/Instaladores-Linux/python/mono/IronPython-0.7.6/bin/IronPython.dll, type Type ** (./IronPythonConsole.exe:3572): WARNING **: The class System.StringSplitOptions could not be loaded, used in /home/share/Instaladores-Linux/python/mono/IronPython-0.7.6/bin/IronPython.dll (token 0x01000083) ** (./IronPythonConsole.exe:3572): WARNING **: Missing method Split in assembly /home/share/Instaladores-Linux/python/mono/IronPython-0.7.6/bin/IronPython.dll, type String Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object in <0x00000> in <0x000ab> IronPython.Hosting.PythonEngine:RunInteractive () in <0x00065> IronPythonConsole.PythonCommandLine:RunInteractive (IronPython.Hosting.PythonEngine engine) in <0x000a5> IronPythonConsole.PythonCommandLine:Main (System.String[] rawArgs) miuler at miuler:/home/share/Instaladores-Linux/python/mono/IronPython-0.7.6/bin$ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smiley-1.png Type: image/png Size: 798 bytes Desc: not available URL: From hys545 at dreamwiz.com Sat Jun 25 02:39:54 2005 From: hys545 at dreamwiz.com (=?EUC-KR?B?yLLAsby6?=) Date: Sat, 25 Jun 2005 09:39:54 +0900 (KST) Subject: [IronPython] error 0.7.6 with mono In-Reply-To: <1119586106.2119.19.camel@localhost> References: <1119586106.2119.19.camel@localhost> Message-ID: <20050625003954.000092AA01F20253@mail6.dreamwiz.com> An HTML attachment was scrubbed... URL: From miguel at ximian.com Thu Jun 30 06:25:42 2005 From: miguel at ximian.com (Miguel de Icaza) Date: Thu, 30 Jun 2005 00:25:42 -0400 Subject: [IronPython] error 0.7.6 with mono In-Reply-To: <1119586106.2119.19.camel@localhost> References: <1119586106.2119.19.camel@localhost> Message-ID: <1120105542.6595.709.camel@linux.site> Hello, > Hello friends, Ironpython 0.7.x already works with monkey (1.1.8) :D, > with the version 0,7,5 everything works well apparently, but with > version 0,7,6 it has problems, some idea? 0.7.6 uses some features from the .NET 2.x framework that have not been implemented yet in Mono. We are working to complete the 2.x features, these are a good way of prioritizing the features that are needed. From ironpython at xhaus.com Thu Jun 30 14:30:15 2005 From: ironpython at xhaus.com (Alan Kennedy) Date: Thu, 30 Jun 2005 13:30:15 +0100 Subject: [IronPython] Embedding. Message-ID: <42C3E5D7.6040105@xhaus.com> Greetings all, I've worked a lot with jython in the past, and have often made use of it by embedding it in java servers. I'd like to try the same thing with Ironpython. Is there any documentation on how to go about this? I'm specifically interested in writing ironpython "servlets", i.e. servicing web requests with ironpython code. Under jython, the interpreter has to be initialised before scripts can be executed. Is a similar initialisation necessary under ironpython? Thanks in advance, Regards, Alan. From zanesdad at bellsouth.net Thu Jun 30 16:44:08 2005 From: zanesdad at bellsouth.net (Jeremy Jones) Date: Thu, 30 Jun 2005 10:44:08 -0400 Subject: [IronPython] error 0.7.6 with mono In-Reply-To: <1120105542.6595.709.camel@linux.site> References: <1119586106.2119.19.camel@localhost> <1120105542.6595.709.camel@linux.site> Message-ID: <42C40538.8020601@bellsouth.net> Miguel de Icaza wrote: >Hello, > > > >>Hello friends, Ironpython 0.7.x already works with monkey (1.1.8) :D, >>with the version 0,7,5 everything works well apparently, but with >>version 0,7,6 it has problems, some idea? >> >> > >0.7.6 uses some features from the .NET 2.x framework that have not been >implemented yet in Mono. > >We are working to complete the 2.x features, these are a good way of >prioritizing the features that are needed. > >_______________________________________________ >users-ironpython.com mailing list >users-ironpython.com at lists.ironpython.com >http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > Does anyone know which (recent) versions of mono work with which (recent) versions of FePy? I'm trying a proof of concept to see how FePy can use assemblies created from C# code. So far, of mono (1.1.8.1 and 1.1.7) and FePy (0.6, 0.7.1, 0.7.5, 0.7.6), only mono (1.1.7 and 1.1.8.1) and FePy 0.6 are doing what I'd expect. I'm at least able to get the FePyConsole in FePy 0.7.1 and both of mono 1.1.7 and 1.1.8, but can't load the assembly. Everything else is crapping out. This is the type of error I'm getting just trying to bring up the FePyConsole (this one from mono 1.1.8 and FePy 0.7.5): jmjones at qiwi 10:34AM mono % mono1.1.8 /usr/local/apps/IronPython-0.7.5/bin/IronPythonConsole.exe ** (/usr/local/apps/IronPython-0.7.5/bin/IronPythonConsole.exe:14030): WARNING **: The class System.Collections.Generic.IDictionary`2 could not be loaded, used in /usr/local/apps/IronPython-0.7.5/bin/IronPython.dll (token 0x01000006) Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object in <0x00000> in <0x0008a> IronPythonConsole.PythonCommandLine:Main (System.String[] rawArgs) Jeremy Jones -------------- next part -------------- An HTML attachment was scrubbed... URL: From zanesdad at bellsouth.net Thu Jun 30 17:07:46 2005 From: zanesdad at bellsouth.net (Jeremy Jones) Date: Thu, 30 Jun 2005 11:07:46 -0400 Subject: [IronPython] error 0.7.6 with mono In-Reply-To: <42C40538.8020601@bellsouth.net> References: <1119586106.2119.19.camel@localhost> <1120105542.6595.709.camel@linux.site> <42C40538.8020601@bellsouth.net> Message-ID: <42C40AC2.1010800@bellsouth.net> Forgot to mention I'm running Linux (Ubuntu Hoary). JJ Jeremy Jones wrote: > Miguel de Icaza wrote: > >>Hello, >> >> >> >>>Hello friends, Ironpython 0.7.x already works with monkey (1.1.8) :D, >>>with the version 0,7,5 everything works well apparently, but with >>>version 0,7,6 it has problems, some idea? >>> >>> >> >>0.7.6 uses some features from the .NET 2.x framework that have not been >>implemented yet in Mono. >> >>We are working to complete the 2.x features, these are a good way of >>prioritizing the features that are needed. >> >>_______________________________________________ >>users-ironpython.com mailing list >>users-ironpython.com at lists.ironpython.com >>http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> >> >> > Does anyone know which (recent) versions of mono work with which > (recent) versions of FePy? > > I'm trying a proof of concept to see how FePy can use assemblies > created from C# code. So far, of mono (1.1.8.1 and 1.1.7) and FePy > (0.6, 0.7.1, 0.7.5, 0.7.6), only mono (1.1.7 and 1.1.8.1) and FePy 0.6 > are doing what I'd expect. I'm at least able to get the FePyConsole > in FePy 0.7.1 and both of mono 1.1.7 and 1.1.8, but can't load the > assembly. Everything else is crapping out. > > > This is the type of error I'm getting just trying to bring up the > FePyConsole (this one from mono 1.1.8 and FePy 0.7.5): > > jmjones at qiwi 10:34AM mono % mono1.1.8 > /usr/local/apps/IronPython-0.7.5/bin/IronPythonConsole.exe > > ** (/usr/local/apps/IronPython-0.7.5/bin/IronPythonConsole.exe:14030): > WARNING **: The class System.Collections.Generic.IDictionary`2 could > not be loaded, used in > /usr/local/apps/IronPython-0.7.5/bin/IronPython.dll (token 0x01000006) > > Unhandled Exception: System.NullReferenceException: Object reference > not set to an instance of an object > in <0x00000> > in <0x0008a> IronPythonConsole.PythonCommandLine:Main (System.String[] > rawArgs) > > > Jeremy Jones > >------------------------------------------------------------------------ > >_______________________________________________ >users-ironpython.com mailing list >users-ironpython.com at lists.ironpython.com >http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kbond at free.fr Thu Jun 30 21:49:30 2005 From: kbond at free.fr (kbond) Date: Thu, 30 Jun 2005 21:49:30 +0200 Subject: [IronPython] PowerPoint Automation Message-ID: <42C44CCA.1070203@free.fr> Hello, I am still playing aound with the office Automation the last I try was PowerPoint and I was disapointed since I was willing to migrate a macro I have done a long time ago. This macro create a TOC to a ppt file. >>>>>>Import sys >>>>>> sys.LoadAssemblyByName("Microsoft.Office.Interop.PowerPoint") >>>>>> import Microsoft.Office.Interop.PowerPoint as msPPT >>>>>> pptApp = msPPT.ApplicationClass() >>>>>> pptApp.Visible >>> >>> -1 ###### The value of this attribute is strange since for word it is a boulean############"" >>>>>> pptApp.Visible = True # is working fine >>>>>> pptApp.Visible = False >>> >>> System.Runtime.InteropServices.COMException: Application.Visible : Invalid reque st. Hiding the application window is not allowed. at input_12.Run(Frame frame) #### I am know inable to hide the PowerPoint application ######## >>>>>> >>> >>> pptApp.Presentations.Open(r"C:\tmp\testAutomation\tocPowerpoint\testMerge.ppt") >>>>>> listOfSlide=[1,4] >>>>>> pptApp.Presentations.Item("testMerge.ppt").Slides.Range(listOfSlide) >>> >>> System.ArgumentException: Slides.Range : Illegal value for ^0. Bad type: expecte d 1D array of Variants, Integers, Longs, or Strings at input_31.Run(Frame frame) #### In order to specify a range I would expect to be able to give a list intead of an Array, am I wrong?###### Could you please advise on how I can select a range of slides? Is it possible to import a pure COM application with ironPython? Like I am doing using win32com.client. Thank you again for ironPython. From luismg at gmx.net Thu Jun 30 23:25:17 2005 From: luismg at gmx.net (Luis M. Gonzalez) Date: Thu, 30 Jun 2005 18:25:17 -0300 Subject: [IronPython] bug? Message-ID: <000601c57dba$39151840$1302a8c0@luis> Hi all, I post this here because I don't know how to describe it in the bug tracker. This simple code reads a text file and removes all the dots, parenthesis and signs from each word, which then is printed in the screen: >>> f = open('c:/documents and settings/usuario1/escritorio/sw3.txt') >>> for line in f: for word in line.split(): st=[] for i in word: if i not in ['.','(',')','?']: st.append(i) print ''.join(st) It works in Cpython, but in Ironpython it just prints empty spaces intead of words. Any hint? Regards, Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: From martmaly at exchange.microsoft.com Thu Jun 30 23:28:20 2005 From: martmaly at exchange.microsoft.com (Martin Maly) Date: Thu, 30 Jun 2005 14:28:20 -0700 Subject: [IronPython] PowerPoint Automation Message-ID: <1DFB396200705E46B5338CA4B2E25BDE368741@DF-BANDIT-MSG.exchange.corp.microsoft.com> Hi, As for the "Visible" property. Reflecting on the Office Primary Interop Assemblies shows that PowerPoint's Visible property has different type than Word's one. Word is Boolean whereas PowerPoint has MsoTriState enum as type. It also seems that hiding the application window once visible is not possible, as you have discovered. This seems to be limitation of PowerPoint itself. I tried both setting the Visible to False, and also Toggle (another value from the MsoTriState enum) but I failed on all accounts. To work with slide ranges, using Python list won't work. Unfortunatelly, there is no default conversion from the Python list data type to .NET array type(s). However, you can use the .NET arrays directly. The modified code would look as follows: >>> import sys >>> sys.LoadAssemblyByName("Microsoft.Office.Interop.PowerPoint") >>> import Microsoft.Office.Interop.PowerPoint as Ppt >>> app = Ppt.ApplicationClass() >>> app.Visible = True >>> app.Presentations.Open(r"C:\Documents and Settings\martmaly\My Documents\IronPython.ppt") >>> r=System.Array.CreateInstance(System.Int32, 5) >>> r[0]=1 >>> r[1]=4 >>> r[2]=7 >>> r[3]=9 >>> r[4]=12 >>> range = app.Presentations.Item("IronPython.ppt").Slides.Range(r) >>> range.Count 5 Using pure COM application from IronPython is possible, but to get .NET interop to work, you will need to produce the .NET type information for the COM library (provided the COM binary contains type library). You can use "tlbimp" tool which is part of .NET SDK distribution to convert the COM type library into .NET assembly. Hope this helps Martin > kbond Wrote: > > Hello, > > I am still playing aound with the office Automation the last > I try was PowerPoint and I was disapointed since I was > willing to migrate a macro I have done a long time ago. This > macro create a TOC to a ppt file. > > > > >>>>>>Import sys > >>>>>> sys.LoadAssemblyByName("Microsoft.Office.Interop.PowerPoint") > >>>>>> import Microsoft.Office.Interop.PowerPoint as msPPT pptApp = > >>>>>>msPPT.ApplicationClass() pptApp.Visible > >>> > >>> > -1 > > ###### The value of this attribute is strange since for word > it is a boulean############"" > > > >>>>>> pptApp.Visible = True # is working fine pptApp.Visible = False > >>> > >>> > System.Runtime.InteropServices.COMException: > Application.Visible : Invalid reque st. Hiding the > application window is not allowed. > at input_12.Run(Frame frame) > #### I am know inable to hide the PowerPoint application ######## > > >>>>>> > >>> > >>> > pptApp.Presentations.Open(r"C:\tmp\testAutomation\tocPowerpoin > t\testMerge.ppt") > > > >>>>>> listOfSlide=[1,4] > >>>>>> > pptApp.Presentations.Item("testMerge.ppt").Slides.Range(listOfSli > >>>>>> de) > >>> > >>> > System.ArgumentException: Slides.Range : Illegal value for > ^0. Bad type: expecte d 1D array of Variants, Integers, > Longs, or Strings > at input_31.Run(Frame frame) > #### In order to specify a range I would expect to be able to > give a list intead of an Array, am I wrong?###### Could you > please advise on how I can select a range of slides? > > Is it possible to import a pure COM application with ironPython? > Like I am doing using win32com.client. > > Thank you again for ironPython.