1.

What is the use of %s? What is 0x%x? def __repr__(self): return "" % (type(self).__name__, repr(self.id), repr(self.vsys), id(self))​

Answer»

This is string formatting using old C style FORMAT option.%s is a placeholder for string0x%x is a placeholder f or HEX VALUE. 0x is just prefixing the hex value, without that hex value will look like 800bd001, with 0x it will be 0x800bd001each of those placeholder will be filled using the values supplied after "%" (LAST) symbol, in the written order



Discussion

No Comment Found