Why did Quora choose Python for its development?

Roy Smith roy at panix.com
Sat May 28 08:37:11 EDT 2011


In article 
<fbd69b90-b709-48ed-a247-af943ddbccef at glegroupsg2000goo.googlegroups.com
>,
 Carl Banks <pavlovevidence at gmail.com> wrote:

> On Friday, May 27, 2011 6:47:21 AM UTC-7, Roy Smith wrote:

> > One of the truly awesome things about the Python re library is that it 
> > lets you write complex regexes like this:
> > 
> > pattern = r"""\b                     # beginning of line
> >               (?P<word>\w+)          # a word
> >               \s+                    # some whitespace
> >               (?P=word)(?!\w)        # the same word again
> >            """
> 
> Perl has the X flag as well, in fact I'm pretty sure Perl originated it.  
> Just saying.

Heh.  Didn't know that.  I wish people would use it more.



More information about the Python-list mailing list