[pyar] Tengo una idea, tengo una idea??

Martin Cerdeira martincerdeira en gmail.com
Sab Ene 19 00:05:20 ART 2013


2013/1/19 Joaquín Sorianello <listas en joac.com.ar>

> Probaste de usar StringIO[1]?
>
> Yo lo usé hace un tiempo para laburar con una lib de pdf que recibia
> file-like-objects y quedo bastante bueno[2]
>
>
> [1] http://docs.python.org/2/library/stringio.html
> [2] https://github.com/gcoop-libre/RecibosCoop/blob/master/pdf/pdf.py
> (lineas 36 y 38)
>
>
Mmmmm no, lo uso para obtener la imagen original desde la url:

    url = img_url[1:]
    file = cStringIO.StringIO(urllib.urlopen(url).read())
    img = Image.open(file)

pero no se me ocurrió usarlo para esto, pero es buena idea! Probaré por ese
lado.

Gracias!

-------------------------------------
Martín Cerdeira - Software Developer
At the end of the day, ship the fucking thing! It’s great to rewrite your
code and make it cleaner and by the third time it’ll actually be pretty.
But that’s not the point—you’re not here to write code; you’re here to ship
products. - Jamie Zawinski
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20130119/6ea4198e/attachment.html>


More information about the pyar mailing list