John Bokma wrote:
Xah Lee wrote:
Perl is a language of syntactical variegations. Python on the other
hand, does not even allow changes in code's indentation, but its
efficiency and power in expression, with respect to semantics (i.e.
algorithms), showcases Perl's poverty in specification.
Clarify
> He (XL) is a troll and admits it. If only he would include that
> information up-front in his (IMO worthless) [perl-python] posts, it would
> save a lot of effort.
He does - all of his posts start with [perl-python]. Now the big question is
which community comes up with a better/nicer/shorter/w
"John Bokma" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Xah Lee wrote:
>
> > Perl is a language of syntactical variegations. Python on the other
> > hand, does not even allow changes in code's indentation, but its
> > efficiency and power in expression, with respect to semantics
Xah Lee wrote:
> Perl is a language of syntactical variegations. Python on the other
> hand, does not even allow changes in code's indentation, but its
> efficiency and power in expression, with respect to semantics (i.e.
> algorithms), showcases Perl's poverty in specification.
Clarify :-D.
--
20050207 text pattern matching
# -*- coding: utf-8 -*-
# Python
# suppose you want to replace all strings of the form
#
# to
#
# in your html files.
# you can use the "re" module.
import re
text = r'''
blab blab
look at this pict
and this one , both are
beautiful, but also look: , and sequ