|
28 | 28 | "---------------\n", |
29 | 29 | "Python has a clear and concise syntax, which favors the readability of source code, and makes the language more productive.\n", |
30 | 30 | "\n", |
31 | | - "The language includes several high-level structures (lists, dictionaries, date / time, complex numbers and others) and a vast collection of modules ready for use, plus third-party frameworks that can be added. It also has features found in other modern languages, such as generators, introspection, persistence, metaclasses and unity tests. Multiparadigm, the language supports modular, functional, and object-oriented programming. Even the basic types in Python are objects. The language is interpreted through bytecode by the Python virtual machine, making the code portable. This makes it possible to build applications on one platform and run on other systems or run direct from the source.\n", |
| 31 | + "The language includes several high-level structures (lists, dictionaries, date / time, complex numbers and others) and a vast collection of modules ready for use, plus third-party frameworks that can be added. It also has features found in other modern languages, such as generators, introspection, persistence, metaclasses and unity tests. Multiparadigm, the language supports modular, functional, and object-oriented programming. Even the basic types in Python are objects. The language is interpreted through bytecode by the Python virtual machine, making the code portable. This makes it possible to build applications on one platform and run them on other systems or direct from the source.\n", |
32 | 32 | "\n", |
33 | | - "Python is an open source software (with license compatible with the *General Public License (GPL)*, but less restrictive, allowing Python to be even incorporated into proprietary products). The language specification is maintained by [Python Software Foundation](http://www.python.org/psf/) (PSF).\n", |
| 33 | + "Python is open source software (with license compatible with the *General Public License (GPL)*, but less restrictive, allowing Python to be even incorporated into proprietary products). The language specification is maintained by the [Python Software Foundation](http://www.python.org/psf/) (PSF).\n", |
34 | 34 | "\n", |
35 | | - "Besides being used as the main language in the development of systems, Python is also used as a *script* language in various software, enabling you to automate tasks and add new features, among them: LibreOffice.org, PostgreSQL, Blender, GIMP and Inkscape.\n", |
| 35 | + "Besides being used as the main language in the development of systems, Python is also used as a *scripting* language in various pieces of software, enabling you to automate tasks and add new features, among them: LibreOffice.org, PostgreSQL, Blender, GIMP and Inkscape.\n", |
36 | 36 | "\n", |
37 | | - "It is possible to integrate Python with other languages such as C and Fortran languages. In general terms, the language has many similarities with other dynamic languages such as Perl and Ruby.\n", |
| 37 | + "It is possible to integrate Python with other languages such as C and Fortran. In general terms, the language has many similarities with other dynamic languages such as Perl and Ruby.\n", |
38 | 38 | "\n", |
39 | 39 | "History\n", |
40 | 40 | "---------\n", |
|
102 | 102 | "\n", |
103 | 103 | "`python apl.py`\n", |
104 | 104 | "\n", |
105 | | - "Thus `apl.py` will run. On Windows, the file extensions\u00a0\".py\", \". pyw\", \". pyc\" and \". pyo\" are associated with the Python automatically during installation, then just click on the file to run. The \". pyw\" files run with an alternate version of the interpreter that does not open the console window.\n", |
| 105 | + "Thus `apl.py` will run. On Windows, the file extensions\u00a0\".py\", \". pyw\", \". pyc\" and \". pyo\" are associated with Python automatically during installation, so just click a the file to run it. The \". pyw\" files run with an alternate version of the interpreter that does not open the console window.\n", |
106 | 106 | "\n", |
107 | 107 | "Dynamic Typing\n", |
108 | 108 | "----------------\n", |
|
116 | 116 | "\n", |
117 | 117 | "\n", |
118 | 118 | "\n", |
119 | | - "By default, the parser compiles the code and stores the bytecode on disk, so the next time you run it, there is no need to recompile the program, reducing the load time on execution. If the source files are changed, the interpreter will be responsible for regenerating the bytecode automatically, even using the *interactive shell*. When a program or a module is invoked, the interpreter performs the analysis of the code, converting to symbols, compiles (if there is no updated bytecode on disk) and runs it on Python virtual machine.\n", |
| 119 | + "By default, the parser compiles the code and stores the bytecode on disk, so the next time you run it, there is no need to recompile the program, reducing the load time of execution. If the source files are changed, the interpreter will be responsible for regenerating the bytecode automatically, even using the *interactive shell*. When a program or a module is invoked, the interpreter performs the analysis of the code, converts to symbols, compiles (if there is no updated bytecode on disk) and runs it in the Python virtual machine.\n", |
120 | 120 | "\n", |
121 | | - "The bytecode is stored in files with extension \". pyc\" (normal bytecode) or \". pyo\" (optimized bytecode). The bytecode can also be packaged along with an executable interpreter, to facilitate the distribution of the application, eliminating the need to install Python on each computer.\n", |
| 121 | + "The bytecode is stored in files with the extension \". pyc\" (normal bytecode) or \". pyo\" (optimized bytecode). The bytecode can also be packaged along with an executable interpreter, to facilitate the distribution of the application, eliminating the need to install Python on each computer.\n", |
122 | 122 | "\n", |
123 | 123 | "Interactive Mode\n", |
124 | 124 | "----------------\n", |
|
135 | 135 | "\n", |
136 | 136 | "On Windows, the interactive mode is also available via the icon \"Python (command line)\".\n", |
137 | 137 | "\n", |
138 | | - "The interactive mode is a distinguishing feature of the language, as it is possible to test and modify code snippets code before inclusion in programs, to extract and convert data or even analyze the state of the objects in memory, among other possibilities.\n", |
| 138 | + "The interactive mode is a distinguishing feature of the language, as it is possible to test and modify code snippets before inclusion in programs, to extract and convert data or even analyze the state of the objects in memory, among other possibilities.\n", |
139 | 139 | "\n", |
140 | | - "Besides traditional interactive mode of Python, there are other programs that act as alternatives to more sophisticated interfaces (such as <span class=\"note\" title=\"PyCrust is part of wxPython project (http://www.wxpython.org/\">PyCrust</span>):\n", |
| 140 | + "Besides the traditional interactive mode of Python, there are other programs that act as alternatives to more sophisticated interfaces (such as <span class=\"note\" title=\"PyCrust is part of wxPython project (http://www.wxpython.org/\">PyCrust</span>):\n", |
141 | 141 | "\n", |
142 | 142 | "\n", |
143 | 143 | "Tools\n", |
144 | 144 | "-----------\n", |
145 | 145 | "There are many development tools for Python, such as IDEs, editors and shells (that take advantage of the interactive capabilities of Python).\n", |
146 | 146 | "\n", |
147 | | - "*Integrated Development Environments* (IDEs) are software packages that integrate various development tools in an environment consistent with the goal of increasing developer productivity. Generally, IDEs include such features as syntax highlight (colorized source code according to the syntax of the language), source browsers, integrated shell and *code completion* (the editor presents possible ways to complete the text it can identify while typing).\n", |
| 147 | + "*Integrated Development Environments* (IDEs) are software packages that integrate various development tools in an environment consistent with the goal of increasing developer productivity. Generally, IDEs include such features as syntax highlighting (colorized source code according to the syntax of the language), source browsers, integrated shell and *code completion* (the editor presents possible ways to complete the text it can identify while typing).\n", |
148 | 148 | "Among Python IDEs, there are:\n", |
149 | 149 | "\n", |
150 | 150 | "+ [PyScripter](http://code.google.com/p/pyscripter/)\n", |
|
156 | 156 | "\n", |
157 | 157 | "There are also text editors specialized in programming code, which have features like syntax colorization, export to other formats and convert text encoding.\n", |
158 | 158 | "\n", |
159 | | - "These editors support multiple programming languages\u200b\u200b, among them Python:\n", |
| 159 | + "These editors support multiple programming languages\u200b\u200b, Python among them:\n", |
160 | 160 | "\n", |
161 | 161 | "+ [SciTE](http://www.scintilla.org/SciTE.html)\n", |
162 | 162 | "+ [Notepad++](http://notepad-plus.sourceforge.net/br/site.htm)\n", |
163 | 163 | "\n", |
164 | 164 | "*Shell* is the name given to interactive environments for executing commands that can be used to test small pieces of code and for activities like data crunching (extraction of information of interest in masses of data and subsequent translation to other formats).\n", |
165 | 165 | "\n", |
166 | | - "Beyond standard Python *Shell*, there are others available:\n", |
| 166 | + "Beyond the standard Python *Shell*, there are others available:\n", |
167 | 167 | "\n", |
168 | 168 | "+ PyCrust \n", |
169 | 169 | "+ IPython \n", |
|
177 | 177 | "\n", |
178 | 178 | "*Frameworks* are collections of software components (libraries, utilities and others) that have been designed to be used by other systems.\n", |
179 | 179 | "\n", |
180 | | - "Some of the most known *frameworks* availbles:\n", |
| 180 | + "Some of the most known *frameworks* availble are:\n", |
181 | 181 | "\n", |
182 | 182 | "+ Web: Django, TurboGears, Zope and web2py.\n", |
183 | 183 | "+ Graphic interface: wxPython, PyGTK and PyQt.\n", |
|
189 | 189 | "\n", |
190 | 190 | "Culture\n", |
191 | 191 | "-------\n", |
192 | | - "The name Python was taken by Guido van Rossum from british TV program *Monty Python Flying Circus*, and there are many references to the show in language documentation. For instance, Python oficial package repository was called Cheese Shop, the name of one of the frames of the programa. Currently, the repository name is [Python Package Index](http://pypi.python.org/pypi) (PYPI).\n", |
| 192 | + "The name Python was taken by Guido van Rossum from british TV program *Monty Python's Flying Circus*, and there are many references to the show in its documentation. For instance, Python's oficial package repository was called Cheese Shop, the name of one of the frames of the program. Currently, the repository name is [Python Package Index](http://pypi.python.org/pypi) (PYPI).\n", |
193 | 193 | "\n", |
194 | | - "The goals of the project were summarized by Tim Peters in a text called *Zen of Python* , which is available in Python itself using the command:" |
| 194 | + "The goals of the project was summarized by Tim Peters in a text called *Zen of Python*, which is available in Python itself using the command:" |
195 | 195 | ] |
196 | 196 | }, |
197 | 197 | { |
|
241 | 241 | "\n", |
242 | 242 | "Proposals for improving the language are called PEPs *(Python Enhancement Proposals)*, which also serve as a reference for new features to be implemented in the language.\n", |
243 | 243 | "\n", |
244 | | - "In addition to the official website, other good source of information about language is: [Python Cookbook](http://aspn.activestate.com/ASPN/Python/Cookbook/) site that stores \"recipes\": small portions of code to accomplish specific tasks." |
| 244 | + "In addition to the official website, other good source of information about the language are: [Python Cookbook](http://aspn.activestate.com/ASPN/Python/Cookbook/) site that stores \"recipes\": small portions of code to accomplish specific tasks." |
245 | 245 | ] |
246 | 246 | }, |
247 | 247 | { |
|
0 commit comments