Archive for the ‘Python’ Category

Multiproceso con Python

Wednesday, March 25th, 2009

Nos mandan un artículo de como utilizar aplicaciones de Python aprovechando las arquitecturas multi-core actuales:

Learn to scale your UNIX Python applications to multiple cores by using the multiprocessing module which is built into Python 2.6. Multiprocessing mimics parts of the threading API in Python to give the developer a high level of control over flocks of processes, but also incorporates many additional features unique to processes.

Duda con python pack y unpack

Sunday, February 22nd, 2009

hola, estoy tratando de construir una aplicación que requiere enviar
flotantes a través de la capa de red
por eso necesito obtener la representación hexadecimal para enviar
byte por byte.

Pero al usar pack
>>> struct.pack(“>f”,0.8)
‘?L\xcc\xcd’
deberían ser 4 bytes no?

Algo como esto :
>>> struct.unpack(“>f”, “\x3f\x4c\xcc\xcd”)
(0.80000001192092896,)

Sin embargo python parece saber como interpretar el resultado previo:

>>> struct.unpack(“>f”, “?L\xcc\xcd”)
(0.80000001192092896,)

!!!!

Python 3 Metaclasses y otras extrañas creaturas

Tuesday, February 3rd, 2009

Nos mandan un artículo sobre las cosas nuevas en Python 3:

Python 3 is the latest version of Guido van Rossum’s powerful general-purpose programming language. It breaks backwards compatibility with the 2.x line but has cleaned up some syntax issues. This second article builds on the previous article, which focused on changes that affect the language and backwards compatibility issues. In Part 2 of this two-part series, discover more new Python features and details on more advanced topics such as changes in abstract base classes, metaclasses, and decorators.

Screencast: Creando una extension de OpenOffice.org

Saturday, January 3rd, 2009

EuroOfficeDaniel Darabos de EuroOffice nos envia un screencast de su platica sobre creacion de extensiones de OpenOffice.org en 20 minutos.
(more…)

Cambios en el lenguaje de Python en su versión 3

Monday, December 22nd, 2008

Nos mandan de IBM un artículo que muestra las diferencias de las versiones anteriores de Python con la nueva versión 3:

Python 3 is the latest version of Guido van Rossum’s powerful general-purpose programming language. Whether the Python community will accept version 3 is anyone’s guess. The breaking of backwards compatibility will mean supporting two different versions in parallel. This article covers changes to input/output (I/O), the new bytes data type, changes to strings and string formatting, and finally, changes to the built-in dict type.