background preloader

Python 1

Facebook Twitter

PyQt4

Pygame. Pysize's homepage. JPype - Java to Python integration. Understanding Python’s ‘super’ « Modern Programming World. When I started programming with Python (a switch I would urge any casual utility programmer to make), I learned basic syntax.

Understanding Python’s ‘super’ « Modern Programming World

I very very quickly learned that if you’re ever wondering if there’s the proverbial “better way” to do something, then there is probably already a utility built into Python to accomplish the task. Consider the ‘super’ functionality in Python: when I first encountered this, I had no idea what it was or what it meant. Furthermore, the documentation on it is very obscure and doesn’t seem to clarify anything about what it does. I Google’d it (of course) and instantly found results with titles like “Python’s Super Considered Harmful” and “Problems with the new super()“. Inmersión en Python/Tipos de datos nativos/Presentación de las tuplas.

11.13. sqlite3 — DB-API 2.0 interface for SQLite databases — Python v2.7 documentation. New in version 2.5.

11.13. sqlite3 — DB-API 2.0 interface for SQLite databases — Python v2.7 documentation

SQLite is a C library that provides a lightweight disk-based database that doesn’t require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language. Some applications can use SQLite for internal data storage. It’s also possible to prototype an application using SQLite and then port the code to a larger database such as PostgreSQL or Oracle. The sqlite3 module was written by Gerhard Häring. It provides a SQL interface compliant with the DB-API 2.0 specification described by PEP 249. To use the module, you must first create a Connection object that represents the database. Vim as a Python IDE. This project converts vim in full Python/Django editor.

Vim as a Python IDE

I have included the plugins I like best to adapt vim/gvim to my daily Python and Django project editing. In the actual configuration I have removed pylint as compiler and it uses Pyflakes. [Python-es] Saludos y Pregunta. (Django vs Web2py) Web2Py para todos. Conjuntos en Python. Revista PET: Python Entre Todos. Efficient String Concatenation in Python. There is a Russian translation of this article, kindly provided by Artyom Scorecky (tonnzor).

Efficient String Concatenation in Python

An assessment of the performance of several methods Introduction Building long strings in the Python progamming language can sometimes result in very slow running code. In this article I investigate the computational performance of various string concatenation methods. In Python the string object is immutable - each time a string is assigned to a variable a new object is created in memory to represent the new value.

What other methods are available and how does their performance compare? For this comparison I required a test problem that calls for the construction of very long strings out of a large number of segments. Bienvenido a Sushi, huh? descargador de paquetes para sistemas GNU/Linux sin conexion a internet. LamsonProject: Lamson The Python Mail Server. UserGuide - JythonWiki. Intro For a look at the Jython internal API see the generated JavaDoc documentation.

UserGuide - JythonWiki

WhyJython - JythonWiki. Jython, lest you do not know of it, is the most compelling weapon the Java platform has for its survival into the 21st century - SeanMcGrath Why Jython There are numerous alternative languages implemented for the Java VM.

WhyJython - JythonWiki

JythonFaq/GeneralInfo - JythonWiki. JythonFaq What is Jython?

JythonFaq/GeneralInfo - JythonWiki

Jython is the successor to JPython. The Jython project was created in accordance with the CNRI JPython 1.1.x license, in order to ensure the continued existence and development of this important piece of Python software. The intent is to manage this project with the same open policies that are serving CPython so well. Mailing lists, Subversion and all current information on the Jython project is available at SourceForge, at Note that the project is migrating over to using Mercurial and will be soon available at hg.python.org What is JPython? JPython is an implementation of the Python programming language which is designed to run on the Java(tm) Platform.

The name had to be changed to something other than JPython, because of paragraph 4 in the JPython-1.1 license: 4. Hidden features of Python. 36 libros Python. Popular Python recipes. Python - Notes. Package Index : Isomyr 0.1. A Python Isometric Game Engine.

Package Index : Isomyr 0.1

<><> I S O M Y R <> A Python Isometric Game Engine i-so-myr: (n) Any of one or more scenes with the same measurements in foreground and background, that have different properties and can exist in any of several game worlds for a measurable period of time. Isomyr is an isometric game engine based on Pygame, and written in Python. A fork of the Isotope game engine, it provides the framework for constructing an isometric graphics game with actors who can pick up and drop objects, jump onto plaforms, and move about in projected 3d isometric environments.

Actors: used for player and monster game objects. Development If you want to develop for txSpore or use the latest code we're working on, you can install from the sources. ENTRADA DE DATOS EN PYTHON. Que seria de un progama sin la interaccion con los usuarios :) pues no servirian de a mucho, bueno sin tanto rodeos veamos: def main():____n = int(input("Digite:"))____print (n*2) if __name__=="__main__":main() En Python 2.x tenemos input() para capturar enteros y float y raw_input() para cadenas pero desde python3.x solo existe input() y el valor que capture es siempre una cadena asi que si queremos que sea entero lo covertimos con la funcion int() y si queremos un float con la funcion float() convertimos el dato capturado a float asi:

ENTRADA DE DATOS EN PYTHON

Singleton? We don't need no stinkin' singleton: the Borg design pattern. The 'Singleton' DP is all about ensuring that just one instance of a certain class is ever created.

Singleton? We don't need no stinkin' singleton: the Borg design pattern

It has a catchy name and is thus enormously popular, but it's NOT a good idea -- it displays different sorts of problems in different object-models. What we should really WANT, typically, is to let as many instances be created as necessary, BUT all with shared state. 1. Introducción — Tutorial de Python v2.6.2 documentation. Python en:Exceptions - Notes. You have seen how you can reuse code in your program by defining functions once. What if you wanted to reuse a number of functions in other programs that you write? As you might have guessed, the answer is modules. There are various methods of writing modules, but the simplest way is to create a file with a .py extension that contains functions and variables. Another method is to write the modules in the native language in which the Python interpreter itself was written.

For example, you can write modules in the C programming language and when compiled, they can be used from your Python code when using the standard Python interpreter. A module can be imported by another program to make use of its functionality. Example (save as module_using_sys.py): import sys print('The command line arguments are:')for i in sys.argv: print i print '\n\nThe PYTHONPATH is', sys.path, '\n' How It Works First, we import the sys module using the import statement.

Eric4 web browser tutorial. The purpose of this tutorial is to show, step by step, how to use eric4 to implement a little web browser with eric4, Python and Qt4's QWebKit. Qt designer is used to arrange three widgets in main window: a QLineEdit which will be used to type urls into a QPushButton to start the navigation to the url typed, and a QWebView which will render the html content. The tutorial shows how a web browser can be implemented with Python, PyQt and Qt typing just a very small amount of code. Eric4 will do all the rest of the job!

The purpose of this tutorial is to quickly explain how to: ENTRADA DE DATOS EN PYTHON. Guía de la privacidad. Comunidad de usuarios de Qt. The PyCon 2007 podcast. FAQ de Python ES: Preguntas frecuentes de Python-ES. The lalita IRC bot in Launchpad. Panda Cloud Antivirus GRATIS – El primer antivirus gratuito en la nube contra virus, spyware, rootkits y adware. Tutorial de wxPython - paso a paso. Ejercicios Python. Los siguientes son algunos ejercicios simples para resolver en Python 3, más o menos ordenados con la misma estructura que el curso. El resultado a cada ejercicio está enlazado desde el número de cada ejercicio. La idea es que revisen la solución luego de resolverlo por ustedes mismos, o al menos de intentar (pensando) varias veces cómo resolverlo.