|
Slick.
From: [EMAIL PROTECTED] On Behalf Of Shawn Farkas Sent: Monday, October 31, 2005 12:27 PM To: Discussion of IronPython Subject: Re: [IronPython] Need help in learning. Pretty easily done with a quick script:
import sys sys.LoadAssemblyByName("System") from System import String from System.Diagnostics import Process
def msdn(query): if query.GetType() == String.Empty.GetType(): Process.Start("http://search.microsoft.com/search/results.aspx?View=msdn&st=b&c=4&s=1&swc=4&qu=" + query) else: msdn(query.GetType().FullName)
Will launch the MSDN help page in the user’s default browser. I’m not sure if there’s a nicer way to determine if the parameter is a string or not, and this also relies on the fact that the browser will normalize the query string (if it contains a space for instance) … but will break if you query contains the & character. However, for debugging purposes, if you throw that in your site.py you’re all set J
-Shawn
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peli de Halleux (PELI)
Following up the improving the experience for new .Net users, IronPython could provide specialized commands to search msdn and pop up a internet window. For example something like msdn "System.Security.Cryptography.SignedXml.ComputeSignature" // search based on literal msdn foo // search based on the object type
________________________________________ From: [EMAIL PROTECTED] On Behalf Of Shawn Farkas Sent: Monday, October 31, 2005 11:11 AM To: Discussion of IronPython Subject: Re: [IronPython] Need help in learning. Sure -- you just have to go to the MSDN docs for the class you're using. For instance, if you want to use the System.Security.Cryptography.SignedXml.ComputeSignature() method, you would go to the MSDN documentation for "SignedXml Class" (http://msdn.microsoft.com/library/default.asp?url="">) and then at the bottom of the page, in the requirements section is: Assembly: System.Security (in System.Security.dll) -Shawn -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mayfield, Weatherby Sent: Monday, October 31, 2005 11:06 AM To: Discussion of IronPython Subject: Re: [IronPython] Need help in learning. I am in a similar boat with regard to knowing some Python but very little .NET. I'm very intrigued by the ability to access the .NET framework from Python, but I know so little about .NET I'm not even sure what question(s) to ask. >From what I have seen in the examples and archives, it looks like there are two basic ways to get at the .NET code: LoadAssemblyByName and LoadAssemblyFromFile. My problem is that I don't know how to correlate between the assembly names or file names and the .NET APIs I read about. Is there somewhere I can look on MSDN or in a manual or in Visual Studio that will tell me if I want to access 'X' .NET feature then the assembly name is 'Y' or the file name is 'Z'? I think I must be searching for the wrong terms or something. Thanks, Web Mayfield -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of S.Rajesh Sent: Thursday, October 13, 2005 5:47 AM Subject: [IronPython] Need help in learning. Hi, I am familiar with python but not with .NET. I also do not know other programming languages like VB or C# so it is not that easy to follow tutorials. What should be my first step to learn to use ironpython? Thank You. _______________________________________________ users mailing list _______________________________________________ users mailing list _______________________________________________ users mailing list |
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
