[IronPython] Need help in learning.

Keith J. Farmer kfarmer at thuban.org
Tue Nov 1 02:24:53 CET 2005


Of course, it precludes searching by object, if the object's type is
string.  ;)

 

I'd have stuck to msdn(Type), myself, but that doesn't detract from any
intrinsic coolness..

 

-----

Keith J. Farmer

kfarmer at thuban.org

________________________________

From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Peli de Halleux
(PELI)
Sent: Monday, 31 October 2005 13:36
To: Discussion of IronPython
Subject: Re: [IronPython] Need help in learning.

 

Slick.

 

________________________________

From: users-bounces at lists.ironpython.com 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 :-)

 

-Shawn

 

________________________________

From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Peli de Halleux
(PELI)
Sent: Monday, October 31, 2005 11:48 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Need help in learning.

 

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: users-bounces at lists.ironpython.com 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=/library/en-us/cpref/
html/frlrfsystemsecuritycryptographyxmlsignedxmlclasstopic.asp) and then
at the bottom of the page, in the requirements section is:

Assembly: System.Security (in System.Security.dll)

-Shawn

-----Original Message-----

From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] 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: users-bounces at lists.ironpython.com

[mailto:users-bounces at lists.ironpython.com] On Behalf Of S.Rajesh

Sent: Thursday, October 13, 2005 5:47 AM

To: users at lists.ironpython.com

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 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: <http://mail.python.org/pipermail/ironpython-users/attachments/20051031/ac1bded7/attachment.html>


More information about the Ironpython-users mailing list