re.compile question
Mikael Olofsson
mikael at isy.liu.se
Wed Mar 1 02:16:43 EST 2000
On 29-Feb-00 Gregoire Welraeds wrote:
> Ok but what if I run re.compile in a CGI script and since it always return
> an object.
> can I do
> >>> import re
> >>> try:
> ... x = re.compile("(")
> ... except:
> ... [generate a beautifull error page]
>
> ?
Most certainly!
/Mikael
-----------------------------------------------------------------------
E-Mail: Mikael Olofsson <mikael at isy.liu.se>
WWW: http://www.dtr.isy.liu.se/dtr/staff/mikael
Phone: +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date: 01-Mar-00
Time: 08:16:00
This message was sent by XF-Mail.
-----------------------------------------------------------------------
More information about the Python-list
mailing list