Simple question - end a raw string with a single backslash ?

Mladen Gogala mgogala at yahoo.com
Sun Oct 18 13:07:13 EDT 2020


On Sun, 18 Oct 2020 16:13:16 +0200, Peter J. Holzer wrote:

> 
> Ah, I see, that the sillyness of Perl's grammar-altering modules (which
> let you write Perl in Latin (with proper declensions and conjugations,
> of course) or Chinese) has found its way to Python 
>

To tell the truth, I only installed it to test whether it works. I am an
old Perl hack forced to learn Python by the market forces. I learned Perl 
in 1994 which means that it is my first love of a sort. The fundamental 
difference between the two languages is that Perl is procedural while 
Python is a fully OO language. Discussion of Perl vs Python necessarily
devolves into the discussion of procedural vs OO paradigms. And that has 
been decided long time ago, with the advent of Java over COBOL. Market
has spoken and I had to learn Python. So, I stopped worrying and learned 
to love Python. Any resemblance to the subtitle of "Dr. Strangelove" is 
purely accidental.
BTW, Visual Studio Code uses pylint to evaluate my adherence to PEP8 and
there is a "kite" extension with autocompletion. Nothing like that was ever
available for Perl. It certainly is easier to write Python scripts than to
write Perl scripts. I do sort of miss $_, @_ and $!. Python's argparse 
is supreme and much better than Getopt::Long.



-- 
Mladen Gogala
Database Consultant
http://mgogala.byethost5.com


More information about the Python-list mailing list