Python/lang-pt: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
 
Line 2: Line 2:


* O principal componente do OLPC Python Environment
* O principal componente do OLPC Python Environment
* Um trabalho a ser feito como parte do OLPC Summer of Code será escrito em Python
* The main component of the OLPC Python Environment
* O site oficial do Python é http://www.python.org
* The work that is being done on the user stack as part of the OLPC Google Summer of Code will be written in Python
* The main site for Python is http://www.python.org
* O site de Python brasileiro é http://www.pythonbrasil.com.br


* You can download nicely packaged Python called ActivePython. They proclaim themselves as the All-in-one Python distribution for AIX, HP-UX, Linux, Mac OS X, Solaris, and Windows.
* You can download nicely packaged Python called ActivePython. They proclaim themselves as the All-in-one Python distribution for AIX, HP-UX, Linux, Mac OS X, Solaris, and Windows.
Line 15: Line 15:


The premier graphing tool for Python which puts graphing calculators to shame is Matplotlib. It does support output to GTK and to SVG which are both supported on the OLPC. However, there is another Python charting app called PyChart which is probably more suitable to being stripped down (remove Postscript) into a tool for the OLPC.
The premier graphing tool for Python which puts graphing calculators to shame is Matplotlib. It does support output to GTK and to SVG which are both supported on the OLPC. However, there is another Python charting app called PyChart which is probably more suitable to being stripped down (remove Postscript) into a tool for the OLPC.

== O portável Python ==

== Aprendendo Python ==

== Recomendações para desenvolvimento ==

Algumas coisas a considerar no desenvolvimento em Python:

* [http://www.pythonbrasil.com.br/moin.cgi/GuiaDeEstilo PEP 8] é o guia de Estilo Python. On many issues the style guide suggests but does not require a particular style. Generally you should stick to the style guide, unless there is good reason not to. For instance, if you are interacting with a library (internal or external) that uses a different convention, don't try to translate the convention.

* [[Python Unicode_pt]]

* [[Python Style Guide_pt]]

Revision as of 13:49, 3 May 2007

Introdução

   * O principal componente do OLPC Python Environment
   * Um trabalho a ser feito como parte do OLPC Summer of Code será escrito em Python
   * O site oficial do Python é http://www.python.org 
   * O site de Python brasileiro é http://www.pythonbrasil.com.br
   * You can download nicely packaged Python called ActivePython. They proclaim themselves as the All-in-one Python distribution for AIX, HP-UX, Linux, Mac OS X, Solaris, and Windows. 
   * Another package of Python that includes graphical modules including 3D is called Visual Python. It is available for Windows, Mac, Linux and UNIX. 
   * There is also a scientific distribution of Python called SciPy. This also supports Windows, Mac and Linux. 

PyGTK is the Python interface to the GTK GUI library used in the OLPC. This library is notable for a component named Pango which simplifies the use of multiple scripts and languages. In addition, it's basic drawing library, Cairo, has some of the best support of SVG rendering which is also a major component of the OLPC.

The premier graphing tool for Python which puts graphing calculators to shame is Matplotlib. It does support output to GTK and to SVG which are both supported on the OLPC. However, there is another Python charting app called PyChart which is probably more suitable to being stripped down (remove Postscript) into a tool for the OLPC.

O portável Python

Aprendendo Python

Recomendações para desenvolvimento

Algumas coisas a considerar no desenvolvimento em Python:

   * PEP 8 é o guia de Estilo Python. On many issues the style guide suggests but does not require a particular style. Generally you should stick to the style guide, unless there is good reason not to. For instance, if you are interacting with a library (internal or external) that uses a different convention, don't try to translate the convention. 
   * Python Unicode_pt  
   * Python Style Guide_pt