[Python-Dev] PEP 30XZ: Simplified Parsing (original) (raw)

Fred L. Drake, Jr. fdrake at acm.org
Wed May 2 20:57:38 CEST 2007


On Wednesday 02 May 2007, Trent Mick wrote:

 raise MakeError("extracting '%s' in '%s' did not create the "
                 "directory that the Python build will expect: "
                 "'%s'" % (src_pkg, dst_dir, dst))

I use this kind of thing frequently. Don't know if others consider it bad style.

I do this too; this is a good way to have a simple human-readable message without doing weird things to about extraneous newlines or strange indentation.

-1 on removing implicit string catenation.

-Fred

-- Fred L. Drake, Jr.



More information about the Python-Dev mailing list