Thursday, June 19, 2008

Features of Python

Here in this Post I am giving Features of Python that help us to understand why Python is mentioned in big languages lik C/C++, Java or PERL.

FEATURES OF PYTHON:-
  1. Free and Open Source - Just like C++ Python is free and Open Source. It means you need not to pay to get its interpreted fully functional. And read it's source code, make changes to it, use pieces of it in new free programs, and that you know you can do these things. This is one of the reasons why Python is so good - it has been created and is constantly improved by a community who just want to see a better Python.
  2. Simple and Easy to Learn - Reading a good Python program feels almost like reading English, although very strict English! This pseudo-code nature of Python is one of its greatest strengths. It allows you to concentrate on the solution to the problem rather than the language itself. As you will see, Python is extremely easy to get started with. Python has an extraordinarily simple syntax, as already mentioned.
  3. High Level Language - When you write program in Python you need not to bother about Low level details such as memory management used by Python program.
  4. Portable - Due to its Open Source nature, Python has been ported to many platforms. All your Python programs can work on any of these platforms without requiring any changes at all if you are careful enough to avoid any system-dependent features.
    You can use Python on Linux, Windows, FreeBSD, Macintosh, Solaris, OS/2, Amiga, AROS, AS/400, BeOS, OS/390, z/OS, Palm OS, QNX, VMS, Psion, Acorn RISC OS, VxWorks, PlayStation, Sharp Zaurus, Windows CE and even PocketPC !
  5. Interpreted - This requires bit explanation if you are not a expert like stuff...
    A software written in compiled language like C/C++, After compilation code converted to the source code the language you can say spoken by computer. When you run run program Linker/Loader copy Source code from hard disk to main memory and start running it.
    On other hand, Pythonh need not to compile to binary. You just run the program from your Source Code. Internally Python convert the Source Code to intermediate forn called Bytecode the translate it into native language of your computer and then run it; all at lightning speed. This make Python easier since you need not to worry about compiling the program, make sure proper libraries are linked and loaded, etc, etc, etc.This also make you Python program more portable.
  6. Object Oriented - Here with Python you got both options to code your program Object Oriented and Subject Oriented or Procedure Oriented. Subject Oriented or Procedure Oriented programs are made around procedure or function that are nothing but reusable bunch of code. But in Object Oriented language, the program is built around objects which combine data and functionality. Python has a very powerful but simplistic way of doing OOP, especially when compaired to big languages like C++ or Java.
  7. Embeddable - We can embed Python within your C/C++ programs to give 'scripting' capabilities for you program's users.
  8. Extensive Libraries - The Python Standard Library is huge indeed. It can help you do various operations involving regular expressions, documentation generation, unit testing, threading, databases, web browsers, CGI, FTP, email, XML, HTML, WAV Files, Cryptography, GUI, tk, and other system dependent stuff.all this available wherever Python is installed. This is called "Batteries Include" philosophy of Python.
    Besides, the Standard libraries, there are various other high-quality library such as wxPython [http://www.wxpython.org], Twisted [http://www.twistedmatrix.com/products/twisted], Python Imaging library [http://www.pythonware.com/products/pil/index.htm] and many more.
So, Python is indeed an exciting and powerful language. It has the right combination of performance and features that make writing programs in Python both fun and easy.

No comments: