[Q] Printing color strings on stdout without using escape sequences ?
Walter Dörwald
walter at livinglogic.de
Mon Nov 19 12:15:21 EST 2001
Ivan DUTKA-MALEN wrote:
> Walter Dörwald wrote:
>
>
>>
>> You might want to take a look at ANSIStyle:
>> http://www.livinglogic.de/Python/ansistyle/
>>
>> HTH,
>> Walter Dörwald
>>
>>
>
> Yes this package does exactly what I want. Moreover, it is very simple
> to use.
Thanks!
> But it doesn't work on 'old' version of Python (I mean 1.5.2). I tried
> to make some change in the source code (not too dificult to understand)
> but I've stopped on some internal Python functions (PyObject_DEL or
> PyUnicode_check) I think they're only valid in recent release of Python.
> I must say that I've never made any C extension to Python
The simplest solution would be to upgrade to a newer version
of Python. I'm not planning to maintain a 1.5.2 compatible version of
ANSIStyle. In fact in the near future ANSIStyle might be ported to Python2.2
and use new style classes.
> Do you think it would be a challenge to make it work on version 1.5.2 ?
I have a patch that makes it work with Python 1.5.2. Unfortunately your
emails bounce (dutka at edf.fr: User unknown) and I don't want to send the
patch
to the newsgroup. Give me a valid email address and I'll send you the patch.
Bye,
Walter Dörwald
More information about the Python-list
mailing list