more information about python

Thread Solved

Join Date: Aug 2005
Posts: 148
Reputation: Micko is on a distinguished road 
Solved Threads: 6
Micko Micko is offline Offline
Junior Poster

more information about python

 
0
  #1
Aug 15th, 2005
Hello, I've just read thread why I should lear python and I must admit that I'm very interestwed to learn oppython myself. i have experience with C and C++ programming language. If I understood corectly Python is an interpreted language. What is advantage of interepreted languages (if there are any)? For example I write C++ code compile it, link it and then I can give or sell complete program (exe file). How to distribute interpreted language? Does that mean that I must share source code or what? I really don't have any experience with any interpreted language so, plase, do not consider this question a dumb one.
One more question: I know how hard (and platform dependent) is to write GUI interface in C/C++, does Python have better support for graphics?


Thank you very much
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 215
Reputation: shanenin is an unknown quantity at this point 
Solved Threads: 16
shanenin shanenin is offline Offline
Posting Whiz in Training

Re: more information about python

 
0
  #2
Aug 15th, 2005
What is advantage of interepreted languages
you can test your code immediatley, to see how something will work. Being a beginning programmer I find that very useful.
In a perfect world exceptions would not be needed.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,009
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 928
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: more information about python

 
0
  #3
Aug 15th, 2005
Python is actually compiled to a byte code and then interpreted. If you want to hide your source file, you can send these byte code files (extension .pyc) along with a version of Python called movable Python that does not have to be installed.

An alternate solution is a program called Py2Exe that binds everything needed, including the interpreter, into an executable file.

Python is a high level, very modular object oriented language. The syntax reads like prototyping. The interpreter is much more interactive than the endless compile and link routine of the traditional languages. This makes development of a program along with the required experimentation/testing easier.

Python's modules are imported as you need them. The ones that come with the language are highly optimized and many modules are written in C++.

You have quite a choice of modules for GUI development. Tkinter comes with the normal distribution of Python. It is very easy to learn and you can use it for simple stuff. Two of the other choices are wxPython and pyGTK. All of those are portable between Windows, Linux/Unix and the Mac OS-X.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC