I have a ndb model class
class foo(ndb.Model): abc = ndb.StringProperty()
Now that I have used abc as follows:
if foo.abc == "a": print "I'm in!"
It falls into the if block and prints I'm in!
How is this possible?
I also tried to print foo.abc , it returned StringProperty('abc')
python google-app-engine app-engine-ndb
Kautilya bhardwaj
source share