Sunday, February 15, 2009

PYTHON

Its not about python, the reptile but a very high level programming language Python :)

http://www.python.org/ says
Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days. Many Python programmers report substantial productivity gains and feel the language encourages the development of higher quality, more maintainable code

What is dynamic object oriented programming language?

As per the publication http://jeffsutherland.com/papers/Rans/OOlanguages.pdf it is :
A project commenced at Xerox PARC in the early 70z with the aim of creating the quintessential dynamic object oriented language. This is one which allows new classes, objects and behaviouf to be appended on the fly by representing the class hierarchy, objects and methods of a program as meta-data at run-time.
Also,
dynamic programming language
Refers to a language that requires less rigid coding on the part of the programmer. It typically features "dynamic typing," which gives the programmer more freedom to pass parameters at runtime without having to define them beforehand. A dynamic language may also perform some amount of self checking at runtime, which would normally be done ahead of time in a compilation stage. Although a dynamic language offers runtime flexibility and is generally easier to program, it does not eliminate the programmer's responsibility for understanding the interactions that will take place.

Convert to Machine Code at Runtime
The term may also refer to interpreted languages in general, which convert source code or bytecode to machine language at runtime, as well as to just-in-time compilation, the process of compiling the program the moment before it is executed.

Dynamic and Non-Dynamic Examples
Numerous languages fall into the dynamic category, including JavaScript, VBScript, Lisp, Perl, PHP, Python, Ruby and Smalltalk. Examples of languages that are not dynamic are C/C++, Java, COBOL and FORTRAN. See dynamic, interpreter and JIT compiler.


Nice one is http://visualwikipedia.com/en/Object-oriented_programming_language

Some useful sites for python which I found useful as I start to learn python are:

http://code.activestate.com/recipes/146847/
http://koichitamura.blogspot.com/2008/06/various-ways-to-integrate-python-and-c.html
http://svn.python.org/projects/ctypes/tags/ctypes-1.0.2/
http://snippets.dzone.com/tag/python
http://starship.python.net/crew/theller/ctypes/

No comments: