943,983 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 3908
  • Python RSS
Aug 15th, 2005
0

more information about python

Expand Post »
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
Similar Threads
Reputation Points: 55
Solved Threads: 6
Junior Poster
Micko is offline Offline
148 posts
since Aug 2005
Aug 15th, 2005
0

Re: more information about python

Quote ...
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.
Reputation Points: 10
Solved Threads: 17
Posting Whiz in Training
shanenin is offline Offline
217 posts
since May 2005
Aug 15th, 2005
0

Re: more information about python

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.
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: I have a problem with python....help
Next Thread in Python Forum Timeline: Musical Beeps (Python)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC