View Single Post
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#51
Originally Posted by daperl View Post
That's clean. But I'm still confused why the variable substitution operator (%) doesn't recognize a list as a sequence. That doesn't make sense to me. Does that make sense to you? And if so, why? Thanks.
I'm too much of a down-to-earth, pragmatic and occasional programmer to worry about philosophical issues - and Python has few of them (see the 'Zen of Python'), which is why I like it :-)

The question is intriguing though, and while I haven't (yet) found a definitive answer, I did find the discussion on this page quite enlightening:

http://jtauber.com/blog/2006/04/15/p...onstant_lists/
 

The Following User Says Thank You to fpp For This Useful Post: