On 16 Aug 2006, Peter Hardy <[EMAIL PROTECTED]> wrote: > Now. Why is python so easy going that it lets me always specify strings > there, when the elements of params are clearly integers?
The format acts as a cast to str(), and integers do that by returning their decimal representation. If you passed objects, it would call their __str__ method. If you use %d it'll fail if they're not integers (or convertable to integers). -- Martin _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders