Raknarg wrote:
Right, I was thinking something along that, maybe it was a built in function that returns true
Not a function, its an object of type bool.The object has a value of True in expressions but as Tony says it has a string representation (what you see when you print it) of 'True'.
You can see this
Python: |
>>> int(True)
1
>>> type(True)
<type 'bool'>
>>> type(True.__repr__())
<type 'str'>
>>> True.__repr__()
'True'
|
EDIT: Interesting note, True = False is illegal in python 3 (at least in my version). It seems that they are now keywords.