Reputation: 63299
When I print out a value it has a u
in front of it, I think it is some type notation, what is it? Where I can find a list of such notations?
Upvotes: 2
Views: 350
Reputation: 371
That's creating a unicode string. I'd recommend this section from Dive into Python on the topic
There are many advantages to explicitly using unicode, the most common reason for doing so is to force integrity when working with a database.
Upvotes: 2
Reputation: 262919
It meant UNICODE string literal before Python 3.
Documentation about all these literal adornments can be found there.
Upvotes: 7