Python (programming language)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Python
Official Python logo
Paradigm(s) multi-paradigm: object-oriented, imperative, functional, procedural, reflective
Appeared in 1991
Designed by Guido van Rossum
Developer Python Software Foundation
Stable release 3.3.0 /
29 September 2012; 3 months ago (2012-09-29)
2.7.3 /
11 April 2012; 9 months ago (2012-04-11)
Typing discipline duck, dynamic, strong
Major implementations CPython, PyPy, IronPython, Jython
Dialects Cython, RPython, Stackless Python
Influenced by ABC,[1] ALGOL 68,[2] C,[3] C++,[4] Dylan,[5] Haskell,[6] Icon,[7] Java,[8] Lisp,[9] Modula-3,[4] Perl
Influenced Boo, Cobra, D, Falcon, Groovy, JavaScript, F#, Ruby[10]
OS Cross-platform
License Python Software Foundation License
Usual filename extensions .py, .pyw, .pyc, .pyo, .pyd
Website python.org
Wikibooks logo Python Programming at Wikibooks

Python is a general-purpose, interpreted high-level programming language[11] whose design philosophy emphasizes code readability. Its syntax is said to be clear[12][13] and expressive.[14] Python has a large and comprehensive standard library.[15]

Python supports multiple programming paradigms, including object-oriented, imperative and functional programming styles. It features a fully dynamic type system and automatic memory management, similar to that of Scheme, Ruby, Perl, and Tcl. Like other dynamic languages, Python is often used as a scripting language, but is also used in a wide range of non-scripting contexts. Using third-party tools, Python code can be packaged into standalone executable programs. Python interpreters are available for many operating systems.

CPython, the reference implementation of Python, is free and open source software and has a community-based development model, as do nearly all of its alternative implementations. CPython is managed by the non-profit Python Software Foundation.

Contents

[edit] History

Guido van Rossum, the creator of Python

Python was conceived in the late 1980s[16] and its implementation was started in December 1989[17] by Guido van Rossum at CWI in the Netherlands as a successor to the ABC language (itself inspired by SETL)[18] capable of exception handling and interfacing with the Amoeba operating system.[1] Van Rossum is Python's principal author, and his continuing central role in deciding the direction of Python is reflected in the title given to him by the Python community, Benevolent Dictator for Life (BDFL).

Python 2.0 was released on 16 October 2000, with many major new features including a full garbage collector and support for Unicode. However, the most important change was to the development process itself, with a shift to a more transparent and community-backed process.[19]

Python 3.0 (also called Python 3000 or py3k), a major, backwards-incompatible release, was released on 3 December 2008[20] after a long period of testing. Many of its major features have been backported to the backwards-compatible Python 2.6 and 2.7.[21]

Python has been awarded a TIOBE Programming Language of the Year award twice (in 2007 and 2010), which is given to the language with the greatest growth in popularity over the course of a year, as measured by the TIOBE index.[22]

[edit] Features

Python is a multi-paradigm programming language: object-oriented programming and structured programming are fully supported, and there are a number of language features which support functional programming and aspect-oriented programming (including by metaprogramming[23] and by magic methods).[24] Many other paradigms are supported using extensions, including design by contract[25][26] and logic programming.[27]

Python uses dynamic typing and a combination of reference counting and a cycle-detecting garbage collector for memory management. An important feature of Python is dynamic name resolution (late binding), which binds method and variable names during program execution.

The design of Python offers only limited support for functional programming in the Lisp tradition. The language has map(), reduce() and filter() functions, comprehensions for lists, dictionaries, and sets, as well as generator expressions. The standard library has two modules (itertools and functools) that implement functional tools borrowed from Haskell and Standard ML.[28]

[edit] Programming philosophy

The core philosophy of the language is summarized by the document "PEP 20 (The Zen of Python)", which includes aphorisms such as:[29]

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Readability counts.

Rather than requiring all desired functionality to be built into the language's core, Python was designed to be highly extensible. Python can also be embedded in existing applications that need a programmable interface (Embedding and extending). This design of a small core language with a large standard library and an easily extensible interpreter was intended by Van Rossum from the very start because of his frustrations with ABC (which espoused the opposite mindset).[16]

While offering choice in coding methodology, the Python philosophy rejects exuberant syntax, such as in Perl, in favor of a sparser, less-cluttered grammar. As Alex Martelli put it: "To describe something as clever is NOT considered a compliment in the Python culture."[30] Python's philosophy rejects the Perl "there is more than one way to do it" approach to language design in favor of "there should be one—and preferably only one—obvious way to do it".[29]

Python's developers strive to avoid premature optimization, and moreover, reject patches to non-critical parts of CPython which would offer a marginal increase in speed at the cost of clarity.[31] When speed is important, Python programmers use PyPy, a just-in-time compiler, or move time-critical functions to extension modules written in "closer to the metal" languages such as C.

[edit] Community-led development

Python's development is conducted largely through the Python Enhancement Proposal (PEP) process. The PEP process is the primary mechanism for proposing major new features, for collecting community input on an issue, and for documenting the design decisions that have gone into Python.[32] Outstanding PEPs are reviewed and commented upon by the Python community and by Van Rossum, the Python project's Benevolent Dictator for Life (leader / language architect).[32]

Enhancement of the language goes along with development of the CPython reference implementation. The mailing list python-dev is the primary forum for discussion about the language's development; specific issues are discussed in the Roundup bug tracker maintained at python.org.[33] Development takes place at the self-hosted hg.python.org.

CPython's public releases come in three types, distinguished by which part of the version number is incremented:

  • backwards-incompatible versions, where code is expected to break and must be manually ported. The first part of the version number is incremented. These releases happen infrequently—for example, version 3.0 was released 8 years after 2.0.
  • major or "feature" releases, which are largely compatible but introduce new features. The second part of the version number is incremented. These releases are scheduled to occur roughly every 18 months, and each major version is supported by bugfixes for several years after its release.[34]
  • bugfix releases, which introduce no new features but fix bugs. The third and final part of the version number is incremented. These releases are made whenever a sufficient number of bugs have been fixed upstream since the last release, or roughly every 3 months. Security vulnerabilities are also patched in bugfix releases.[35]

A number of alpha, beta, and release-candidates are also released as previews and for testing before the final release is made. Although there is a rough schedule for each release, this is often pushed back if the code is not ready. The development team monitor the state of the code by running the large unit test suite during development, and using the BuildBot continuous integration system.[36]

The community of Python developers has also contributed over 25,000 software modules to the Python Package Index (called pypi), the official repository of third-party libraries for python.

The major academic conference on Python is named PyCon. There are special mentoring programmes like the Pyladies.

[edit] Name and neologisms

An important goal of the Python developers is making Python fun to use. This is reflected in the origin of the name (derived from the television series Monty Python's Flying Circus),[37] in the common practice of using Monty Python references in example code, and in an occasionally playful approach to tutorials and reference materials.[38][39] For example, the metasyntactic variables often used in Python literature are spam and eggs,[38][40] instead of the traditional foo and bar.

A common neologism in the Python community is pythonic, which can have a wide range of meanings related to program style. To say that code is pythonic is to say that it uses Python idioms well, that it is natural or shows fluency in the language, that it conforms with Python's minimalist philosophy and emphasis on readability. In contrast, code that is difficult to understand or reads like a rough transcription from another programming language is called unpythonic.

Users and admirers of Python—most especially those considered knowledgeable or experienced—are often referred to as Pythonists, Pythonistas, and Pythoneers.[41]

The prefix Py- is used to show that something is related to Python. Examples of the use of this prefix in names of Python applications or libraries include Pygame, a binding of SDL to Python (commonly used to create games); PyS60, an implementation for the Symbian S60 operating system; PyQt and PyGTK, which bind Qt and GTK, respectively, to Python; and PyPy, a Python implementation written in Python.

[edit] Usage

As of October 2012, Python ranks at position 8 in the TIOBE Programming Community Index.[42] Large organizations that make use of Python include Google,[43] Yahoo!,[44] CERN,[45] NASA,[46] ILM,[47] and ITA.[48]

Python is used as a scripting language for web applications, e.g. via mod_wsgi for the Apache web server.[49] With Web Server Gateway Interface, a standard API has been developed to facilitate these applications. Web application frameworks like Django, Pylons, Pyramid, TurboGears, web2py, Tornado, Flask and Zope support developers in the design and maintenance of complex applications. Pyjamas and IronPython[50] can be used to develop the client-side of Ajax-based applications. SQLAlchemy can be used as data mapper to a relational database. Twisted is a framework to program communications between computers, and is used for example by Dropbox.

Libraries like NumPy, SciPy and Matplotlib allow Python to be used effectively in scientific computing. Sage is a mathematical software with a "notebook" programmable in python : its library covers many aspects of mathematics, including algebra, combinatorics, numerical mathematics, number theory, and calculus. PiCloud provides supercomputing processing capacity on the cloud, using a Python interface.[51]

Python has been successfully embedded in a number of software products as a scripting language, including in finite element method software such as Abaqus, 3D animation packages such as Blender, Cinema 4D, Lightwave, Houdini, Maya, modo, MotionBuilder, Softimage, the visual effects compositor Nuke, and 2D imaging programs like GIMP, Inkscape, Scribus and Paint Shop Pro.[52] GNU GDB uses Python as a pretty printer to show complex structures such as C++ containers. ESRI is now promoting Python as the best choice for writing scripts in ArcGIS.[53] It has even been used in several video games,[54][55] and has been adopted as first of the three available programming languages in Google App Engine, the other two being Java and Go.[56]

Python has also been used in Artificial Intelligence tasks.[57][58][59][60] Thanks to being a scripting language with module architecture, syntax simplicity and rich text processing tools, Python is often used for Natural language processing tasks.[61]

For many operating systems, Python is a standard component; it ships with most Linux distributions, FreeBSD, NetBSD, OpenBSD and with OS X and can be used from the terminal. A number of Linux distributions use installers written in Python: Ubuntu uses the Ubiquity installer, while Red Hat Linux and Fedora use the Anaconda installer. Gentoo Linux uses Python in its package management system, Portage and the standard tool to access it, emerge. Pardus uses it for administration and during system boot.[62]

Python has also seen extensive use in the information security industry, including exploit development.[63][64]

Most of the Sugar software for the One Laptop per Child XO, now developed at Sugar Labs, is written in Python.[65]

The Raspberry Pi single-board computer project has adopted Python as its principal user programming language.

[edit] Syntax and semantics

Syntax-highlighted Python 2.x code.

Python is intended to be a highly readable language. It is designed to have an uncluttered visual layout, frequently using English keywords where other languages use punctuation. Programmers using Python and similar scripting languages are usually more productive than those using C, C++ and Java.[66] Furthermore Python has a smaller number of syntactic exceptions and special cases than C or Pascal.[67]

For a detailed description of the differences between 2.x and 3.x versions, see History of Python.

The simplicity of Python is demonstrated by its version of the classic "Hello world" program:

print("Hello world")

[edit] Indentation

Python uses whitespace indentation, rather than curly braces or keywords, to delimit blocks; a feature also termed the off-side rule. An increase in indentation comes after certain statements; a decrease in indentation signifies the end of the current block.[68] While some consider this significantly enhances readability, others have criticized it.[69]

[edit] Statements and control flow

Python's statements include (among others):

  • The if statement, which conditionally executes a block of code, along with else and elif (a contraction of else-if).
  • The for statement, which iterates over an iterable object, capturing each element to a local variable for use by the attached block.
  • The while statement, which executes a block of code as long as its condition is true.
  • The try statement, which allows exceptions raised in its attached code block to be caught and handled by except clauses; it also ensures that clean-up code in a finally block will always be run regardless of how the block exits.
  • The class statement, which executes a block of code and attaches its local namespace to a class, for use in object-oriented programming.
  • The def statement, which defines a function or method.
  • The with statement (from Python 2.5), which encloses a code block within a context manager (for example, acquiring a lock before the block of code is run, and releasing the lock afterwards).
  • The pass statement, which serves as a NOP. It is syntactically needed to create an empty code block.
  • The assert statement, used during debugging to check for conditions that ought to apply.
  • The yield statement, which returns a value from a generator function. (From Python 2.5, yield is also an operator. This form is used to implement coroutines – see below.)
  • The import statement, which is used to import modules whose functions or variables can be used in the current program.

Python does not support tail-call optimization nor first-class continuations, and, according to Guido van Rossum, it never will.[70][71] However, better support for coroutine-like functionality is provided in 2.5, by extending Python's generators.[72] Prior to 2.5, generators were lazy iterators; information was passed unidirectionally out of the generator. As of Python 2.5, it is possible to pass information back into a generator function, and as of Python 3.3, the information can be passed through multiple stack levels.[73]

[edit] Expressions

Python expressions are similar to languages such as C and Java.

  • In Python 2, the / operator on integers does integer division; it truncates the result to an integer. Floating-point division on integers can be achieved by converting one of the integers to a float (e.g. float(x) / y). In Python 3, the result of / is always a floating-point value. This behaviour can be enabled in Python 2.2+ using from __future__ import division. In both Python 2.2+ and Python 3, // can be used to do integer division.
  • In Python, == compares by value, in contrast to Java, where it compares by reference. (Value comparisons in Java use the equals() method.) Python's is operator may be used to compare object identities (comparison by reference). Comparisons may be chained, for example a <= b <= c.
  • Python uses the words and, or, not for its boolean operators rather than the symbolic &&, ||, ! used in Java and C.
  • Python has a type of expression termed a list comprehension. Python 2.4 extended list comprehensions into a more general expression termed a generator expression.[74]
  • Anonymous functions are implemented using lambda expressions; however, these are limited in that the body can only be a single expression.
  • Conditional expressions in Python are written as x if c else y[75] (different in order of operands from the ?: operator common to many other languages).
  • Python makes a distinction between lists and tuples. Lists are written as [1, 2, 3], are mutable, and cannot be used as the keys of dictionaries (dictionary keys must be immutable in Python). Tuples are written as (1, 2, 3), are immutable and thus can be used as the keys of dictionaries, provided all elements of the tuple are immutable. The parentheses around the tuple are optional in some contexts. Tuples can appear on the left side of an equal sign; hence a statement like x, y = y, x can be used to swap two variables.
  • Python 2 has a "string format" operator %. This functions analogous to printf format strings in C, e.g. "foo=%s bar=%d" % ("blah", 2) evaluates to "foo=blah bar=2". In Python 3, this was supplemented by the format() method of the str class, e.g. "foo={0} bar={1}".format("blah", 2).
  • Python has various kinds of string literals:
    • Strings delimited by single or double quotation marks. Unlike in Unix shells, Perl and Perl-influenced languages, single quotation marks and double quotation marks function similarly. Both kinds of string use the backslash (\) as an escape character and there is no implicit string interpolation such as "$foo".
    • Triple-quoted strings, which begin and end with a series of three single or double quotation marks. They may span multiple lines and function like here documents in shells, Perl and Ruby.
    • Raw string varieties, denoted by prefixing the string literal with an r. No escape sequences are interpreted; hence raw strings are useful where literal backslashes are common, such as regular expressions and Windows-style paths. Compare "@-quoting" in C#.
  • Python has index and slice expressions on lists, denoted as a[key], a[start:stop] or a[start:stop:step]. Indexes are zero-based, and negative indexes are relative to the end. Slices take elements from the start index up to, but not including, the stop index. The third slice parameter, called step or stride, allows elements to be skipped and reversed. Slice indexes may be omitted, for example a[:] returns a copy of the entire list. Each element of a slice is a shallow copy.

In Python, a distinction between expressions and statements is rigidly enforced, in contrast to languages such as Common Lisp, Scheme, or Ruby. This leads to some duplication of functionality, e.g.

  • list comprehensions vs. for-loops
  • conditional expressions vs. if blocks
  • The eval() vs. exec() built-in functions (in Python 2, exec is a statement); the former is for expressions, the latter is for statements.

Statements cannot be a part of an expression and so list and other comprehensions or lambda expressions, all being expressions, cannot contain statements. A particular case of this is that an assignment statement such as a = 1 cannot form part of the conditional expression of a conditional statement. This has the advantage of avoiding a classic C error of mistaking an assignment operator = for an equality operator == in conditions: if (c = 1) { ... } is valid C code but if c = 1: ... causes a syntax error in Python.

[edit] Methods

Methods on objects are functions attached to the object's class; the syntax instance.method(argument) is, for normal methods and functions, syntactic sugar for Class.method(instance, argument). Python methods have an explicit self parameter to access instance data, in contrast to the implicit self in some other object-oriented programming languages (for example, Java, C++ or Ruby).[76]

[edit] Typing

Python uses duck typing and has typed objects but untyped variable names. Type constraints are not checked at compile time; rather, operations on an object may fail, signifying that the given object is not of a suitable type. Despite being dynamically typed, Python is strongly typed, forbidding operations that are not well-defined (for example, adding a number to a string) rather than silently attempting to make sense of them.

Python allows programmers to define their own types using classes, which are most often used for object-oriented programming. New instances of classes are constructed by calling the class (for example, SpamClass() or EggsClass()), and the classes themselves are instances of the metaclass type (itself an instance of itself), allowing metaprogramming and reflection.

Prior to version 3.0, Python had two kinds of classes: "old-style" and "new-style".[77] Old-style classes were eliminated in Python 3.0, making all classes new-style. In versions between 2.2 and 3.0, both kinds of classes could be used. The syntax of both styles is the same, the difference being whether the class object is inherited from, directly or indirectly (all new-style classes inherit from object and are instances of type).

Here is a summary of Python 3's built-in types:

Type Description Syntax example
str A character string: an immutable sequence of Unicode codepoints. 'Wikipedia'
"Wikipedia"
"""Spanning
multiple
lines"""
bytearray A mutable sequence of bytes. bytearray(b'Some ASCII')
bytearray(b"Some ASCII")
bytearray([119, 105, 107, 105])
bytes An immutable sequence of bytes. b'Some ASCII'
b"Some ASCII"
bytes([119, 105, 107, 105])
list Mutable list, can contain mixed types. [4.0, 'string', True]
tuple Immutable, can contain mixed types. (4.0, 'string', True)
set, frozenset Unordered set, contains no duplicates. A frozenset is immutable. {4.0, 'string', True}
frozenset([4.0, 'string', True])
dict A mutable associative array of key and value pairs. {'key1': 1.0, 3: False}
int An immutable integer of unlimited magnitude.[78] 42
float An immutable floating point number (system-defined precision). 3.1415927
complex An immutable complex number with real and imaginary parts. 3+2.7j
bool An immutable truth value. True
False

[edit] Mathematics

In contrast with some programming languages, integer division is defined to round towards minus infinity. Therefore 7 // 3 is 2, but (−7) // 3 is −3. This is uniform and consistent: for instance, it means that the equation (a+b) // b == a // b + 1 is always true, whereas in languages such as C, (-6+7) / 7 == -6 / 7. It also means that the equation b * (a // b) + a % b == a is valid for both positive and negative values of a. However, maintaining the validity of this equation means that while the result of a % b is, as expected, in the half-open interval [0,b), where b is a positive integer, it has to lie in the interval (b,0] when b is negative.[79]

Python provides a round function for rounding floats to integers. Versions before 3 use round-away-from-zero: round(0.5) is 1.0, round(-0.5) is −1.0.[80] Python 3 uses round-to-even: round(1.5) is 2.0, round(2.5) is 2.0.[81] The Decimal type/class in module decimal (since version 2.4) provides exact numerical representation and several rounding modes.

Python allows boolean expressions with multiple equality relations in a manner that is consistent with general usage in mathematics. For example, the expression a < b < c tests whether a is less than b and b is less than c. C-derived languages interpret this expression differently: in C, the expression would first evaluate a < b, resulting in 0 or 1, and that result would then be compared with c.[82][page needed]

[edit] Implementations

[edit] Interpreters

The main Python implementation, named CPython, is written in C meeting the C89 standard.[83] It compiles Python programs into intermediate bytecode,[84] which is executed by the virtual machine.[85] CPython is distributed with a large standard library written in a mixture of C and Python. It is available in versions for many platforms, including Microsoft Windows and most modern Unix-like systems. CPython was intended from almost its very conception to be cross-platform.[86]

PyPy is a fast, compliant[87] interpreter of Python 2.7. Its just-in-time compiler brings a significant speed improvement over CPython.[88] A version taking advantage of multi-core processors using software transactional memory is in the works.[89]

Stackless Python is a significant fork of CPython that implements microthreads; it does not use the C memory stack, thus allowing massively concurrent programs. PyPy also has a stackless version.[90]

Other just-in-time compilers have been developed in the past, but are now unsupported:

  • Google started a project called Unladen Swallow in 2009 with the aims of increasing the speed of the Python interpreter by 5 times by using the LLVM and improving its multithreading ability to scale to thousands of cores.[91] Later the project lost Google's backing and its main developers. As of 1 February 2012 (2012 -02-01), the project hasn't achieved its goal; the modified interpreter is only about 2 times faster.[citation needed]
  • Psyco is a specialising just in time compiler that integrates with CPython and transforms bytecode to machine code at runtime. The produced code is specialised for certain data types and is faster than standard Python code.

[edit] Cross-compilers

There are several compilers to high-level object languages, with either unrestricted Python, a restricted subset of Python, or a language similar to Python as the source language:

  • Jython compiles into Java byte code, which can then be executed by every Java Virtual Machine implementation. This also enables the use of Java class library functions from the Python program.
  • IronPython follows a similar approach in order to run Python programs on the .NET Common Language Runtime.
  • The RPython language can be compiled to C, Java bytecode or Common Intermediate Language, and is used to build the PyPy interpreter of Python;
  • Pyjamas compiles Python to JavaScript;
  • Shed Skin compiles Python to C++;
  • Cython and Pyrex compile to C.
  • Nuitka is an ahead of time compiler for Python 2.[92] It compiles the python code to C++0x that utilizes libpython. The C++ code is later compiled with gcc to machine code. Nuitka claims to be feature complete and fully compatible to CPython, but support for Python 3 is limited [93]
  • mypy is a Python variant where dynamic and static typing can be mixed. As of Dec 2012, it compiles to CPython. Cross-compiling to C is in the works.[94]

[edit] Platform-specific implementations

In 2005 Nokia released a Python interpreter for the Series 60 mobile phones called PyS60. It includes many of the modules from the CPython implementations and some additional modules for integration with the Symbian operating system. This project has been kept up to date to run on all variants of the S60 platform and there are several third party modules available. The Nokia N900 also supports Python with GTK widget libraries, with the feature that programs can be both written and run on the device itself. There is also a Python interpreter for Windows CE devices (including Pocket PC). It is called PythonCE.[95] There are additional tools available for easy application and GUI development.

The PyMite virtual machine began in 2000 and made its first public appearance at PyCon 2003.[96] PyMite was folded into Python-on-a-Chip in 2009.[97] Python-on-a-Chip (p14p) is a project to develop a reduced Python virtual machine (codenamed PyMite) that runs a significant subset of the Python language on microcontrollers without an OS in as little as 4KB of RAM.[98]

Around 2004,[citation needed] the Pyastra project created a specialized translator and assembler that targets resource-constrained microcontrollers.

Python is available on Android as an option as part of the Android Scripting Environment.[99] or via the Python-for-android project, which produce native apk for android.[100]

Python is available on iOS through the Kivy-ios project, allowing to build cross-platform OpenGL ES 2.0 Python applications.[101]

[edit] Python shells and integrated development environments

Most Python implementations (including CPython) can function as a command line interpreter, for which the user enters statements sequentially and receives the results immediately. In short, Python acts as a shell.

Other shells add capabilities beyond those in the basic interpreter, including IDLE and IPython. While generally following the visual style of the Python shell, they implement features like auto-completion, retention of session state, and syntax highlighting.

In addition to standard desktop Python IDEs (integrated development environments), there are also browser-based IDEs, Sage, (intended for developing science and math-related Python programs), and a hosted IDE, pythonAnywhere.[102]

[edit] Libraries

[edit] Python standard library

Python has a large standard library, commonly cited as one of Python's greatest strengths,[103] providing tools suited to many tasks. This is deliberate and has been described as a "batteries included"[104] Python philosophy. For internet-facing applications, a large number of standard formats and protocols (such as MIME and HTTP) are supported. Modules for creating graphical user interfaces, connecting to relational databases, arithmetic with arbitrary precision decimals, manipulating regular expressions, and doing unit testing are also included.[105] For software testing, the standard library provides the unittest and doctest modules.

Some parts of the standard library are covered by specifications (for example, the WSGI implementation wsgiref follows PEP 333[106]), but the majority of the modules are not. They are specified by their code, internal documentation, and test suite (if supplied). However, because most of the standard library is cross-platform Python code, there are only a few modules that must be altered or completely rewritten by alternative implementations.

The standard library is not essential to run Python or embed Python within an application. Blender 2.49 for instance omits most of the standard library.

[edit] Third party libraries

The Python Package Index, which is the official repository of third-party software for Python, contains over 25,000 "packages" covering a wide range of functionality, including :

  • graphical user interface, web framework, multimedia, databases, networking and communications
  • test frameworks, documentation tools, system administration
  • scientific computing, text processing, image processing

[edit] Embedding and extending Python

Python can be embedded in C programs, and it can be extended by modules written in C, C++, or Cython.

Embedding Python: A C program including Python.h, and linked with the library libpython.so, can use the Python API to provide scripting capabilities. Extending Python: A Python program can import a shared object libraries as a module.

Embedding Python adds scripting capabilities to existing applications. If the application is written in C (or a related language), the statement

 #include <Python.h>

makes the Python API available.[107] After compilation, the code must be linked with libpython.

Extending Python means providing Python with additional functionality coded in C, C++, or Cython. Cython is a compiled language, developed specifically to support writing Python extension modules. It is a superset of Python with syntax extensions for C and C++.

Extensions written in C or C++ are compiled and linked as a shared library, say 'extensions.so'. This library can then be imported as a module into Python,

 import extensions

To make this work, all function arguments must be valid Python types. This is usually achieved by Python-specific wrappers. Exporting entire classes from C++ is a relatively difficult exercise. Writing the necessary wrappers directly in C or C++ results in rather lengthy and tedious bookkeeping code. Therefore, different tool suites have been developed. SWIG (Simplified Wrapper and Interface Generator) supports Python among many other scripting languages. In contrast, the Boost library has a module Boost.Python to specifically enable interoperability between C++ and Python; it is used in conjuction with the Py++ code generator.

[edit] Deployment of modules

Two different Python programs may need 2 different versions of the same module or extension. To allow this, the extensions can be installed in virtual python environments, using "virtualenv".[108] Alternatively, self-contained executables can be built from Python source, using third-party tools and/or windows installers.[109][110]

[edit] Influence on other languages

Python's design and philosophy have influenced several programming languages, including:

  • Boo uses indentation, a similar syntax, and a similar object model. However, Boo uses static typing and is closely integrated with the .NET Framework.[111]
  • Cobra uses indentation and a similar syntax. Cobra's "Acknowledgements" document lists Python first among languages that influenced it.[112] However, Cobra directly supports design-by-contract, unit tests and optional static typing.[113]
  • ECMAScript borrowed iterators, generators, and list comprehensions from Python.[114]
  • Go is described as incorporating the "development speed of working in a dynamic language like Python".[115]
  • Groovy was motivated by the desire to bring the Python design philosophy to Java.[116]
  • OCaml has an optional syntax, called twt (The Whitespace Thing), inspired by Python and Haskell.[117]
  • Ruby's creator, Yukihiro Matsumoto, has said: "I wanted a scripting language that was more powerful than Perl, and more object-oriented than Python. That's why I decided to design my own language."[118]
  • Alore, a new language with optional typing with Python syntax.[119] (Development in hiatus)
  • Mypy (in development), derived from Alore, but mypy will be mostly compatible with Python to make it easier to adopt.[120]

Python's development practices have also been emulated by other languages. The practice of requiring a document describing the rationale for, and issues surrounding, a change to the language (in Python's case, a PEP) is also used in Tcl[121] and Erlang[122] because of Python's influence.

[edit] See also

[edit] References

  1. ^ a b "Why was Python created in the first place?". General Python FAQ. Python Software Foundation. http://docs.python.org/faq/general.html#why-was-python-created-in-the-first-place. Retrieved 22 March 2007.
  2. ^ Kuchling, Andrew M. (22 December 2006). "Interview with Guido van Rossum (July 1998)". amk.ca. http://www.amk.ca/python/writing/gvr-interview. Retrieved 12 March 2012.
  3. ^ van Rossum, Guido (1993). "An Introduction to Python for UNIX/C Programmers". Proceedings of the NLUUG najaarsconferentie (Dutch UNIX users group). http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.38.2023. "even though the design of C is far from ideal, its influence on Python is considerable."
  4. ^ a b "Classes". The Python Tutorial. Python Software Foundation. http://docs.python.org/tutorial/classes.html. Retrieved 20 February 2012. "It is a mixture of the class mechanisms found in C++ and Modula-3"
  5. ^ Simionato, Michele. "The Python 2.3 Method Resolution Order". Python Software Foundation. http://www.python.org/download/releases/2.3/mro/. "The C3 method itself has nothing to do with Python, since it was invented by people working on Dylan and it is described in a paper intended for lispers"
  6. ^ Kuchling, A. M.. "Functional Programming HOWTO". Python v2.7.2 documentation. Python Software Foundation. http://docs.python.org/howto/functional.html. Retrieved 9 February 2012.
  7. ^ Schemenauer, Neil; Peters, Tim; Hetland, Magnus Lie (18 May 2001). "PEP 255 – Simple Generators". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0255/. Retrieved 9 February 2012.
  8. ^ Smith, Kevin D.; Jewett, Jim J.; Montanaro, Skip; Baxter, Anthony (2 September 2004). "PEP 318 – Decorators for Functions and Methods". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0318/#why. Retrieved 24 February 2012.
  9. ^ "More Control Flow Tools". Python 3 documentation. Python Software Foundation. http://docs.python.org/py3k/tutorial/controlflow.html#lambda-forms. Retrieved 5 August 2012.
  10. ^ Bini, Ola (2007). Practical JRuby on Rails Web 2.0 Projects: bringing Ruby on Rails to the Java platform. Berkeley: APress. p. 3. ISBN 978-1-59059-881-8.
  11. ^ Dave Kuhlman. "A Python Book: Beginning Python, Advanced Python, and Python Exercises". http://cutter.rexx.com/~dkuhlman/python_book_01.html. "Python is a high-level general purpose programming language"
  12. ^ Mark Summerfield. Rapid GUI Programming with Python and Qt. "If you are new to Python: Welcome! You are about to discover a language that is clear to read and write, and that is concise without being cryptic."
  13. ^ "The Python Wiki". http://wiki.python.org/moin/. Retrieved 12 September 2012."Python combines remarkable power with very clear syntax."
  14. ^ Mark Summerfield. Rapid GUI Programming with Python and Qt. "Python is a very expressive language, which means that we can usually write far fewer lines of Python code than would be required for an equivalent application written in, say, C++ or Java."
  15. ^ "About Python". Python Software Foundation. http://www.python.org/about. Retrieved 24 April 2012., second section "Fans of Python use the phrase "batteries included" to describe the standard library, which covers everything from asynchronous processing to zip files."
  16. ^ a b Venners, Bill (13 January 2003). "The Making of Python". Artima Developer. Artima. http://www.artima.com/intv/pythonP.html. Retrieved 22 March 2007.
  17. ^ van Rossum, Guido (20 January 2009). "A Brief Timeline of Python". The History of Python. Google. http://python-history.blogspot.com/2009/01/brief-timeline-of-python.html. Retrieved 20 January 2009.
  18. ^ van Rossum, Guido (29 August 2000). "SETL (was: Lukewarm about range literals)". Python-Dev mailing list. http://mail.python.org/pipermail/python-dev/2000-August/008881.html. Retrieved 13 March 2011.
  19. ^ Kuchling, A. M.; Zadka, Moshe (16 October 2000). "What's New in Python 2.0". Python Software Foundation. http://docs.python.org/whatsnew/2.0.html. Retrieved 11 February 2012.
  20. ^ "Python 3.0 Release". Python Software Foundation. http://python.org/download/releases/3.0/. Retrieved 8 July 2009.
  21. ^ van Rossum, Guido (5 April 2006). "PEP 3000 – Python 3000". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-3000/. Retrieved 27 June 2009.
  22. ^ "TIOBE Programming Community Index for March 2012". TIOBE Software. March 2012. http://www.tiobe.com/index.php/content/paperinfo/tpci/. Retrieved 25 March 2012.
  23. ^ The Cain Gang Ltd.. "Python Metaclasses: Who? Why? When?" (PDF). Archived from the original on 10 December 2009. http://www.webcitation.org/5lubkaJRc. Retrieved 27 June 2009.
  24. ^ "3.3. Special method names". The Python Language Reference. Python Software Foundation. http://docs.python.org/3.0/reference/datamodel.html#special-method-names. Retrieved 27 June 2009.
  25. ^ "PyDBC: method preconditions, method postconditions and class invariants for Python". http://www.nongnu.org/pydbc/. Retrieved 24 September 2011.
  26. ^ "Contracts for Python". http://www.wayforward.net/pycontract/. Retrieved 24 September 2011.
  27. ^ "PyDatalog". https://sites.google.com/site/pydatalog/. Retrieved 22 July 2012.
  28. ^ "6.5 itertools – Functions creating iterators for efficient looping". Docs.python.org. http://docs.python.org/lib/module-itertools.html. Retrieved 24 November 2008.
  29. ^ a b Peters, Tim (19 August 2004). "PEP 20 – The Zen of Python". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0020/. Retrieved 24 November 2008.
  30. ^ Alex Martelli: Python Cookbook (2nd ed., p. 230)
  31. ^ Python Culture[dead link]
  32. ^ a b Warsaw, Barry; Hylton, Jeremy; Goodger, David (13 June 2000). "PEP 1 – PEP Purpose and Guidelines". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0001/. Retrieved 19 April 2011.
  33. ^ Cannon, Brett. "Guido, Some Guys, and a Mailing List: How Python is Developed". python.org. Python Software Foundation. http://classic-web.archive.org/web/20080229153753/http://www.python.org/dev/intro/. Retrieved 27 June 2009.
  34. ^ Norwitz, Neal (8 April 2002). "[Python-Dev] Release Schedules (was Stability & change)". http://mail.python.org/pipermail/python-dev/2002-April/022739.html. Retrieved 27 June 2009.
  35. ^ Aahz; Baxter, Anthony (15 March 2001). "PEP 6 – Bug Fix Releases". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0006/. Retrieved 27 June 2009.
  36. ^ "Python Buildbot". Python Developer’s Guide. Python Software Foundation. http://python.org/dev/buildbot/. Retrieved 24 September 2011.
  37. ^ "General Python FAQ — Python v2.7.3 documentation". Docs.python.org. http://docs.python.org/2/faq/general.html#why-is-it-called-python. Retrieved 2012-12-03.
  38. ^ a b "Whetting Your Appetite". The Python Tutorial. Python Software Foundation. http://docs.python.org/tutorial/appetite.html. Retrieved 20 February 2012.
  39. ^ Shaw, Zed A.. "Learn Python the Hard Way". learnpythonthehardway.org. http://learnpythonthehardway.org. Retrieved 20 February 2012.
  40. ^ "In Python, should I use else after a return in an if block?". Stack Overflow. Stack Exchange. 17 February 2011. http://stackoverflow.com/questions/5033906/in-python-should-i-use-else-after-a-return-in-an-if-block. Retrieved 6 May 2011.
  41. ^ David Goodger. "Code Like a Pythonista: Idiomatic Python". http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html.; "How to think like a Pythonista". http://python.net/crew/mwh/hacks/objectthink.html.
  42. ^ TIOBE Software Index (2012). "TIOBE Programming Community Index Python". http://www.tiobe.com/index.php/paperinfo/tpci/Python.html. Retrieved 15 October 2012.
  43. ^ "Quotes about Python". Python Software Foundation. http://www.python.org/about/quotes/. Retrieved 8 January 2012.
  44. ^ "Organizations Using Python". Python Software Foundation. http://wiki.python.org/moin/OrganizationsUsingPython. Retrieved 15 January 2009.
  45. ^ "Python : the holy grail of programming". CERN Bulletin (CERN Publications) (31/2006). 31 July 2006. http://cdsweb.cern.ch/journal/CERNBulletin/2006/31/News%20Articles/974627?ln=en. Retrieved 11 February 2012.
  46. ^ Shafer, Daniel G. (17 January 2003). "Python Streamlines Space Shuttle Mission Design". Python Software Foundation. http://www.python.org/about/success/usa/. Retrieved 24 November 2008.
  47. ^ Fortenberry, Tim (17 January 2003). "Industrial Light & Magic Runs on Python". Python Software Foundation. http://www.python.org/about/success/ilm/. Retrieved 11 February 2012.
  48. ^ Taft, Darryl K. (5 March 2007). "Python Slithers into Systems". eWeek.com. Ziff Davis Holdings. http://www.eweek.com/c/a/Application-Development/Python-Slithers-into-Systems/. Retrieved 24 September 2011.
  49. ^ "Usage statistics and market share of Python for websites". 2012. http://w3techs.com/technologies/details/pl-python/all/all. Retrieved 2012-12-18.
  50. ^ Write browser applications in Python
  51. ^ "PiCloud". PiCloud. http://www.picloud.com/. Retrieved 2012-12-03.
  52. ^ Documentation of the PSP Scripting API can be found at JASC Paint Shop Pro 9: Additional Download Resources
  53. ^ "About getting started with writing geoprocessing scripts". ArcGIS Desktop Help 9.2. Environmental Systems Research Institute. 17 November 2006. http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=About_getting_started_with_writing_geoprocessing_scripts. Retrieved 11 February 2012.
  54. ^ porkbelly (23 July 2007). "Stackless Python 2.5". Eve Insider Dev Blog. CCP Games. Archived from the original on 10 August 2010. http://www.webcitation.org/5ru5w3vSR. "As you may well know, your favorite space-game owes its existence to the programming language Python"
  55. ^ Caudill, Barry (20 September 2005). "Modding Sid Meier's Civilization IV". Sid Meier's Civilization IV Developer Blog. Firaxis Games. Archived from the original on 10 August 2010. http://www.webcitation.org/5ru5VItfv. "we created three levels of tools ... The next level offers Python and XML support, letting modders with more experience manipulate the game world and everything in it."
  56. ^ "Python Language Guide (v1.0)". Google Documents List Data API v1.0. Google. Archived from the original on 10 August 2010. http://www.webcitation.org/5ru5FHxfV.
  57. ^ "Python for Artificial Intelligence". Wiki.python.org. 2012-07-19. http://wiki.python.org/moin/PythonForArtificialIntelligence. Retrieved 2012-12-03.[dead link]
  58. ^ Paine, Jocelyn, ed. (August 2005). "AI in Python". AI Expert Newsletter (Amzi!). http://www.ainewsletter.com/newsletters/aix_0508.htm#python_ai_ai. Retrieved 11 February 2012.
  59. ^ Stratton, Cort. "PyAIML 0.8.5 – An interpreter package for AIML, the Artificial Intelligence Markup Language". Python Software Foundation. http://pypi.python.org/pypi/PyAIML. Retrieved 11 February 2012.
  60. ^ Russell, Stuart J. & Norvig, Peter (2009). Artificial Intelligence: A Modern Approach (3rd ed.). Upper Saddle River, NJ: Prentice Hall. p. 1062. ISBN 978-0-13-604259-4. http://aima.cs.berkeley.edu/. Retrieved 11 February 2012.
  61. ^ "Natural Language Toolkit". http://www.nltk.org. Retrieved 31 July 2012.
  62. ^ "Pardus: TÜBİTAK/UEKAE". pardus.org.tr. http://www.pardus.org.tr/eng/projects/comar/PythonInPardus.html. Retrieved 24 November 2008.[dead link]
  63. ^ "Welcome to Immunity Debugger". Immunity. http://www.immunitysec.com/products-immdbg.shtml. Retrieved 24 November 2008.
    "CORE Security Technologies' open source software repository". Core Security Technologies. http://oss.coresecurity.com/. Retrieved 11 February 2012.
  64. ^ Surribas, Nicolas. "Wapiti – Web application vulnerability scanner / security auditor". SourceForge. http://wapiti.sourceforge.net/. Retrieved 24 November 2008.
  65. ^ "What is Sugar?". Sugar Labs. http://sugarlabs.org/go/Sugar. Retrieved 11 February 2012.
  66. ^ An empirical comparison of C, C++, Java, Perl, Python, Rexx, and Tcl
  67. ^ "Is Python a good language for beginning programmers?". General Python FAQ. Python Software Foundation. http://docs.python.org/faq/general.html#is-python-a-good-language-for-beginning-programmers. Retrieved 21 March 2007.
  68. ^ "Myths about indentation in Python". Secnetix.de. http://www.secnetix.de/~olli/Python/block_indentation.hawk. Retrieved 19 April 2011.
  69. ^ "White Space Discussion". http://c2.com/cgi/wiki?PythonWhiteSpaceDiscussion. Retrieved 1 January 2013.
  70. ^ Guido van Rossum (2009-04-22). "Tail Recursion Elimination". Neopythonic.blogspot.be. http://neopythonic.blogspot.be/2009/04/tail-recursion-elimination.html. Retrieved 2012-12-03.
  71. ^ van Rossum, Guido (9 February 2006). "Language Design Is Not Just Solving Puzzles". Artima forums. Artima. http://www.artima.com/weblogs/viewpost.jsp?thread=147358. Retrieved 21 March 2007.
  72. ^ van Rossum, Guido; Eby, Phillip J. (10 May 2005). "PEP 342 – Coroutines via Enhanced Generators". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0342/. Retrieved 19 February 2012.
  73. ^ "PEP 380". Python.org. http://www.python.org/dev/peps/pep-0380/. Retrieved 2012-12-03.
  74. ^ Hettinger, Raymond (30 January 2002). "PEP 289 – Generator Expressions". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0289/. Retrieved 19 February 2012.
  75. ^ van Rossum, Guido; Hettinger, Raymond (7 February 2003). "PEP 308 – Conditional Expressions". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0308/. Retrieved 13 July 2011.
  76. ^ "Why must 'self' be used explicitly in method definitions and calls?". Design and History FAQ. Python Software Foundation. http://docs.python.org/faq/design.html#why-must-self-be-used-explicitly-in-method-definitions-and-calls. Retrieved 19 February 2012.
  77. ^ "The Python Language Reference, section 3.3. New-style and classic classes, for release 2.7.1". http://docs.python.org/reference/datamodel.html#new-style-and-classic-classes. Retrieved 12 January 2011.
  78. ^ Zadka, Moshe; van Rossum, Guido (11 March 2001). "PEP 237 – Unifying Long Integers and Integers". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0237/. Retrieved 24 September 2011.
  79. ^ "Why Python's Integer Division Floors". http://python-history.blogspot.com/2010/08/why-pythons-integer-division-floors.html. Retrieved 25 August 2010.
  80. ^ "round", The Python standard library, release 2.7, §2: Built-in functions, http://docs.python.org/library/functions.html#round, retrieved 14 August 2011
  81. ^ "round", The Python standard library, release 3.2, §2: Built-in functions, http://docs.python.org/py3k/library/functions.html#round, retrieved 14 August 2011
  82. ^ Python Essential Reference, David M Beazley
  83. ^ van Rossum, Guido (5 June 2001). "PEP 7 – Style Guide for C Code". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0007/. Retrieved 24 November 2008.
  84. ^ "CPython byte code". Docs.python.org. http://docs.python.org/lib/bytecodes.html. Retrieved 19 April 2011.
  85. ^ "Python 2.5 internals" (PDF). http://www.troeger.eu/teaching/pythonvm08.pdf. Retrieved 19 April 2011.
  86. ^ "O'Reilly – An Interview with Guido van Rossum". Oreilly.com. http://www.oreilly.com/pub/a/oreilly/frank/rossum_1099.html. Retrieved 24 November 2008.
  87. ^ "PyPy compatibility". Pypy.org. http://pypy.org/compat.html. Retrieved 2012-12-03.
  88. ^ "speed comparison between CPython and Pypy". Speed.pypy.org. http://speed.pypy.org/. Retrieved 2012-12-03.
  89. ^ "STM with threads". Morepypy.blogspot.be. 2012-06-10. http://morepypy.blogspot.be/2012/06/stm-with-threads.html. Retrieved 2012-12-03.
  90. ^ Application-level Stackless features
  91. ^ "Plans for optimizing Python". Google Project Hosting. Google. 15 December 2009. http://code.google.com/p/unladen-swallow/wiki/ProjectPlan. Retrieved 24 September 2011.
  92. ^ Kay Hayen. "nuitka.net". nuitka.net. http://nuitka.net/. Retrieved 2012-12-03.
  93. ^ "Nuitka Release 0.3.24". http://nuitka.net/posts/nuitka-release-0324.html. Retrieved 10 October 2012.
  94. ^ Mypy Roadmap
  95. ^ "PythonCE". Pythonce.sourceforge.net. http://pythonce.sourceforge.net/. Retrieved 19 April 2011.
  96. ^ "PyMite: Python-on-a-chip". Wiki.python.org. 19 April 2009. http://wiki.python.org/moin/PyMite. Retrieved 19 April 2011.
  97. ^ "PyMite". Deanandara.com. http://deanandara.com/PyMite/2010-State.html. Retrieved 19 April 2011.
  98. ^ "PyMite". Python-on-a-Chip. http://pythononachip.org/. Retrieved 19 April 2011.
  99. ^ "android-scripting – Scripting Layer for Android brings scripting languages to Android". Google Project Hosting. Google. http://code.google.com/p/android-scripting/. Retrieved 24 September 2011.
  100. ^ "python-for-android - A framework allowing to produce Python applications for android, provide a GUI interface (Kivy)". Github. http://github.com/kivy/python-for-android/. Retrieved 26 July 2012.
  101. ^ "kivy-ios - iOS port of Kivy, allowing to create python applications on iOS". Github. http://github.com/kivy/kivy-ios. Retrieved 26 July 2012.
  102. ^ PythonAnywhere LLP. "pythonanywhere". pythonanywhere. https://www.pythonanywhere.com/. Retrieved 2012-12-03.
  103. ^ Piotrowski, Przemyslaw (July 2006). "Build a Rapid Web Development Environment for Python Server Pages and Oracle". Oracle Technology Network. Oracle. http://www.oracle.com/technetwork/articles/piotrowski-pythoncore-084049.html. Retrieved 12 March 2012.
  104. ^ "About Python". python.org. Python Software Foundation. http://www.python.org/about/. Retrieved 27 June 2009.
  105. ^ Batista, Facundo (17 October 2003). "PEP 327 – Decimal Data Type". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0327/. Retrieved 24 November 2008.
  106. ^ Eby, Phillip J. (7 December 2003). "PEP 333 – Python Web Server Gateway Interface v1.0". Python Enhancement Proposals. Python Software Foundation. http://www.python.org/dev/peps/pep-0333/. Retrieved 19 February 2012.
  107. ^ Python/C API Reference Manual
  108. ^ virtualenv
  109. ^ Executable python app
  110. ^ How do I distribute python applications on windows
  111. ^ "Gotchas for Python Users". boo.codehaus.org. Codehaus Foundation. http://boo.codehaus.org/Gotchas+for+Python+Users. Retrieved 24 November 2008.
  112. ^ Esterbrook, Charles. "Acknowledgements". cobra-language.com. Cobra Language. http://cobra-language.com/docs/acknowledgements/. Retrieved 7 April 2010.
  113. ^ Esterbrook, Charles. "Comparison to Python". cobra-language.com. Cobra Language. http://cobra-language.com/docs/python/. Retrieved 7 April 2010.
  114. ^ "Proposals: iterators and generators [ES4 Wiki]". wiki.ecmascript.org. http://wiki.ecmascript.org/doku.php?id=proposals:iterators_and_generators. Retrieved 24 November 2008.
  115. ^ Kincaid, Jason (10 November 2009). "Google’s Go: A New Programming Language That’s Python Meets C++". TechCrunch. http://www.techcrunch.com/2009/11/10/google-go-language/. Retrieved 29 January 2010.
  116. ^ James Strachan (29 August 2003). "Groovy – the birth of a new dynamic language for the Java platform". http://radio.weblogs.com/0112098/2003/08/29.html.
  117. ^ Lin, Mike. ""The Whitespace Thing" for OCaml". Massachusetts Institute of Technology. http://people.csail.mit.edu/mikelin/ocaml+twt/. Retrieved 12 April 2009.
  118. ^ "An Interview with the Creator of Ruby". Linuxdevcenter.com. http://www.linuxdevcenter.com/pub/a/linux/2001/11/29/ruby.html. Retrieved 2012-12-03.
  119. ^ "Alore programming language web site". Alorelang.org. http://www.alorelang.org/. Retrieved 2012-12-03.
  120. ^ "mypy language web site". Mypy-lang.org. http://www.mypy-lang.org/. Retrieved 2012-12-03.
  121. ^ Kupries, Andreas; Fellows, Donal K. (14 September 2000). "TIP #3: TIP Format". tcl.tk. Tcl Developer Xchange. http://www.tcl.tk/cgi-bin/tct/tip/3.html. Retrieved 24 November 2008.
  122. ^ Gustafsson, Per; Niskanen, Raimo (29 January 2007). "EEP 1: EEP Purpose and Guidelines". erlang.org. http://www.erlang.org/eeps/eep-0001.html. Retrieved 19 April 2011.

[edit] Further reading

[edit] External links