Newbie questions

Paul Rubin phr-n2001d at nightsong.com
Thu Nov 15 09:44:10 EST 2001


"David Grenier" <grenieda at hotmail.com> writes:
Change this:
>       while type(champ)=='instance':

to:
        while isinstance(champ, cons):

The problem is that type(champ) doesn't return a string, so your test
always is false.  



More information about the Python-list mailing list