python3 raw strings and \u escapes

rurpy at yahoo.com rurpy at yahoo.com
Fri Jun 1 00:31:10 CEST 2012


On 05/31/2012 03:10 PM, Chris Angelico wrote:
> On Fri, Jun 1, 2012 at 6:28 AM, rurpy at yahoo.com <rurpy at yahoo.com> wrote:
>> ... a lexer module that is structured as many
>> dozens of little functions, each with a docstring that is
>> a regex string.
>
> This may be a good opportunity to take a step back and ask yourself:
> Why so many functions, each with a regular expression in its
> docstring?

Because that's the way David Beazley designed Ply?
 http://dabeaz.com/ply/

Personally, I think it's an abuse of docstrings but
he never asked me for my opinion...



More information about the Python-list mailing list