"<!" in SGMLParser - an error ?

Amit Weisman weismann at netvision.net.il
Sat Nov 10 09:34:51 EST 2001


I don't know what comes after the "<" . It's not "<!" - Those are processed
by handke_comment .
How can I parse (or even better - ignore) the "<" ??

TIA
Amit

----- Original Message -----
From: "Martin von Loewis" <loewis at informatik.hu-berlin.de>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Saturday, November 10, 2001 3:22 PM
Subject: Re: "<!" in SGMLParser - an error ?


> Amit Weisman <weismann at netvision.net.il> writes:
>
> > SGMLParseError: unexpected char in declaration: '<'
> >
> > I can only guess The parser met a "< " and not a "<!" - But I don't know
> > enough to be sure .
> > What should I do to avoid it ?
> > What is it ?
>
> Hard to tell, since you never cared to report what data are following
> the <!. Is it something like
>
> <!$^&$^>
>
> or is it rather
>
> <!thisisfunny>
>
> ??? Python expects a name after the <!, or else it will report an
> error.
>
> Regards,
> Martin
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>





More information about the Python-list mailing list