On 10/02/2010 20:36, pyt...@bdurham.com wrote:
def picture(s, pic, placeholder='@'): nextchar=iter(s).next return ''.join(nextchar() if i == placeholder else i for i in pic)
Hell's teeth - even I understood that! Amazing solution.
\d -- Fonty Python and Things! -- http://otherwise.relics.co.za/wiki/Software -- http://mail.python.org/mailman/listinfo/python-list