ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: Text Formating in Python
by Joonas Paalasmaa other posts by this author
Aug 26 2001 8:59PM messages near this date
Re: Question about indentation and bugs | Re: bsddb for simple database [very basic]
Lee Hulbert wrote:
>  
>  Is there a simple way to format a text string before printing to the
>  screen?
>  
>  Specifically, I have a list of 80 numbers, and I want to print the
>  list, with each number a different color if it is positive, negative,
>  or 0.

curses module can do the job.
http://www.python.org/doc/current/lib/module-curses.html
-- 
http://mail.python.org/mailman/listinfo/python-list

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved