This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kaizhu
Recipients benjamin.peterson, georg.brandl, kaizhu, theller, vstinner
Date 2009-08-22.07:20:04
SpamBayes Score 3.6904733e-09
Marked as misclassified No
Message-id <1250925609.49.0.813798806834.issue6239@psf.upfronthosting.co.za>
In-reply-to
Content
wrote an extension application which relies on the patch (works after 
applying patch to python 3.1.1).

it converts png images to colorized ascii-art on ansi-compatible 
terminal.  requires the patch b/c a ctype function returns a c-string w/ 
ansi-escape characters.

>>> import ctypes
>>> lib = ctypes.cdll.LoadLibrary("_asciiporn.so")
>>> lib.img_read(b"foo.png") // load png image
>>> lib.asc_itp(4, 16)       // ascii-rize algorithm
>>> lib.asc_str.restype = ctypes.c_char_p
>>> print( lib.asc_str() )   // prints out ansi-colorized ascii-art

hopefully, this is more motivation to commit the patch to trunk
History
Date User Action Args
2009-08-22 07:20:09kaizhusetrecipients: + kaizhu, theller, georg.brandl, vstinner, benjamin.peterson
2009-08-22 07:20:09kaizhusetmessageid: <1250925609.49.0.813798806834.issue6239@psf.upfronthosting.co.za>
2009-08-22 07:20:07kaizhulinkissue6239 messages
2009-08-22 07:20:07kaizhucreate