Senin, 15 Desember 2008

Python 3.0 Released Stronger


Programming language Python 3.0 has now been present. A founder of this project, Python, Guido van Rossum, Python version 3.0, revealing the compatibility has been open, more focused on the improvement in detail and the elimination of the codes that have expired. "Python language version is the same as before, but many details, such as how to build objects, including dictionary, and ways of working string, has been changed, and many features have been removed bad. In addition, the library has also organized a standard return in some places. "Rossum said.

Python, beginning from the letter 'P', such as PHP and Perl, the same software running on LAMP, the representative of Linux, Apache and MySQL, which is used in many Web 2.0 Companies such as YouTube, Flickr, Digg, and deli.cio . us architecture as open source. According to Rossum, Python 3.0 runs 10 percent slower than Python 2.5. Meanwhile, in version 2.6 provides a migration path to introduce the features of Python 3.0, with no automatic legalization translate the code such as Python in Python 3.0.

There is a new mechanism for print formats and string in Python 3.0. Statement print has been replaced by a new feature that is more consistent. In Python traditional string functions are still using the service '%', while in Python using the new version of the service string '% s'. This is to specify the value. Format string also contains integer index numeric string form of the existing format of the parameters in the string. Syntax also support string with the name of the parameter, the object attributes, and items.

Python 3.0 to provide improvised new model of the object to the new class and style. Some improvised OOP (Object-Oriented Programming) was introduced in the prior version 2.6, including support for the abstract base class and class decorator. Some of the features removed, including support service, such as' <> 'has been replaced by the operator'? = 'In all cases. Changes compatibility is not easy for the popular programming language, but the fact is the development of large-scale project, Python, although it may be difficult in the enterprise Linux distributions.

Tidak ada komentar: