[python-win32] C# Vs Python
bgailer at alum.rpi.edu
Mon Apr 2 21:32:00 CEST 2007
James Matthews wrote:
> I am not asking for a very detailed comparison that i know no one will
> give i am just wondering for windows development which language would
> be better? What i mean is GUI apps, interfacing with excel,word and
> outlook etc..
Well, for one, Python requires a lot less code to accomplish the same task:
The following is a very simple C# program, a version of the classic
"Hello, world!" example:
static void Main()
Th Python equivalent is:
print "Hello, world!"
With the assistance of Mark Hammond's excellent pywin package, COM
interfacing is at least as easy as in other languages:
xl = win32com.client.Dispatch("excel.application")
xl.visible = True
wb = xl.WorkBooks.Open(filename)
sh = wb.Sheets(1)
There are various GUI toolkits available. I've not done much with them.
More information about the Python-win32