sprintf behaviour
Björn Lindberg
d95-bli at nada.kth.se
Sat Feb 22 19:30:20 EST 2003
Carl Banks <imbosol-1045956358 at aerojockey.com> writes:
> Bj?rn Lindberg wrote:
> > Carl Banks <imbosol-1045931606 at aerojockey.com> writes:
> >
> >> Also, the 1$ thing in the printf is nonstandard. I guess it works
> >> with GCC, but I doubt it works with other C compilers. Even if Python
> >> did try to duplicate printf exactly, it wouldn't be a bug to leave out
> >> a nonstandard feature.
> >
> > AFAIK, it is included in POSIX, so it should work on any
> > POSIX-compatible system.
>
> I was speaking of ISO C, of course. Python runs on many non-POSIX
> systems, so it can't include every little POSIXism.
Yes, when I said it should work on any POSIX system I didn't mean
in Python, I meant in C. I now know that the same mechanism but with
different syntax is available in ython as well.
Björn
More information about the Python-list
mailing list