Hi,
 
I'm slighty confused with python's string formatting operators.
 
Why is it that this prints as a string:
 
channel, info = server.accept()
print "Connection from", info
 
And this doesn't?
 
channel, info = server.accept()
print "Connection from %s" % info
 
Also, anyone knows how do I pass arguments to a logger?

logger.debug("Connection from:", args)
 
thanks and chrs
j.
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to