Is Python as capable as Perl for sysadmin work?

Marc Huffnagle mhuffnagle at knowtechnology.net
Tue Feb 8 13:18:13 EST 2005


Jeff Epler wrote:
> 
> There's another little-known fact about Python:  No string is permitted
> to end with a backslash!  You might think that variations like
>     r'\'
> or
>     """"""\\\\\""""""
> would allow you to create this elusive value, but you'd mistaken!
> Now, this may not bother Unix sysadmins, but the honest truth is that
> you'll be administrating Windows systems, too, anywhere you work!

 >>> a = "\\"
 >>> print a
\

Marc



More information about the Python-list mailing list