Home Е-Mail
Home | E-Mail
Addition

Advertising

Program philosophy

The python is a programming language of a multiparadigm. It means, that instead of forcing programmers to accept specific style of programming, he resolves some styles: the oriented object and the structured programming completely is supported, and there are many language features which support functional programming and programming oriented to aspect. Many other paradigms are supported, using extensions, such as pyDBC and Contracts for the Python which allow the Project according to the Contract. The python uses dynamic printing and a combination of count of the link and a cycle, detecting garbage collector for a memory management. The important feature of the Python - dynamic solution of the name which links a method and names of the variable program in execution time (also known as the last fixing).



Other purpose of the project of language - ease of expandability instead of building in all a language kernel. The new built in units are easily written in C or C ++. The python can be used also as language of the extension for existing units and statements which require the programmed interface. This project of small main language with the big common library and easily expanded translator has been developed Rossum from the beginning, because of its disorders with ABC which supported opposite thinking.


The project of sentences of the Python has limited support to functional programming in tradition of Lisping. However, there are essential parallels between philosophy of the Python and that from languages of the Family of lisping of the adherent of minimalism, such as the Circuit. The library has two units (itertools and functools) which carry out the proved functional tools borrowed from Haskell and Standard ML.


Offering a choice in methodology coding, the philosophy of the Python rejects plentiful syntax, such as in Perl, in favour of more rare, less encumbered. As well as in Perl, developers of the Python obviously advance specific "culture" or the ideology grounded on what they want that language was, approving language forms which they see as "beautiful", "obvious" and "simple".


The python avoids premature optimisation, and besides, rejects sites to noncritical parts CPython which would offer extreme increase in speed at the expense of clearness. It is sometimes described as ' slow '. However, for the majority of problems speed and as computer hardware continue to become on an exhibitor faster is not important, languages really have more resources of hardware in stock. When speed - a problem, programmers of the Python tend to try to optimise bottlenecks in refinements of algorithm or modify structures of data, at usage of the compiler of the COIN In FIVE CENTS, such as Psyco, or copying urgent functions "languages, such as C are closer on metal".


© 2008 by Stas_oN. All Rights Reserved