Bug in % string formatting?
Janko Hauser
jhauser at ifm.uni-kiel.de
Thu Dec 20 15:54:00 EST 2001
Fernando Pérez <fperez528 at yahoo.com> writes:
> print 'Explicit list construction:'
> print format_string % names['John'][:] + names['Jane'][:]
>
Operator precedence :-), change it to
>>> print format_string % (names['John'][:] + names['Jane'][:] )
HTH,
__Janko
--
Institut fuer Meereskunde phone: 49-431-597 3989
Dept. Theoretical Oceanography fax : 49-431-565876
Duesternbrooker Weg 20 email: jhauser at ifm.uni-kiel.de
24105 Kiel, Germany
More information about the Python-list
mailing list