Re: .format vs. %

2011-12-31 Thread davidfx
Thanks for your response.  I know the following code is not going to be correct 
but I want to show you what I was thinking.

formatter = "%r %r %r %r"

print formatter % (1, 2, 3, 4)

What is the .format version of this concept?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Error Importing MySQLdb

2012-01-08 Thread davidfx
I am not sure what file you mean.  Where should I look for the file you are 
talking about?  By the way MySQL works fine within MAMP.

Thanks for your suggestions.
-- 
http://mail.python.org/mailman/listinfo/python-list