> On Nov 28, 2019, at 9:35 AM, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: > > Channeling ancient FORTRAN, I'd interpret it as > > 1X Skip one space > A7 Seven character alpha > I3 Three digit integer > A27 27 character alpha > > and it is rather painful when the arguments are literals of those sizes. > Makes more sense if the arguments are strings of various widths yet column > alignment is required. > > Since I still favor string interpolation for formatting, I'd probably > just end up with > > print(" Column %3d of product matrix A*AINV:") > > {Odd that the original uses a 1X format, when the literals have white space > at the adjoining ends... Why not " Column " with A8 format?}
Still channeling Fortran, 1X ensured a blank in column 1, which was used strictly for carriage control on a line printer. A8 may, or may not leave a blank in column 1, which could have caused erroneous carriage controls. Bev in TX -- https://mail.python.org/mailman/listinfo/python-list