My understanding from what I've read and been told is the following...
Snakes have tiny brains driven mostly through instinct. Certain traits live aggressiveness can show up to varying degrees, just as they can in other animals. Some can also form certain levels of comfort with being handled and such if done on a regular basis.
But truth be told snakes will never form an emotional bond to you. If you kept your snake for 10 years and then passed it along to someone else, so long as its care was maintained, it would continue to be statisfied in its life.
They can form some levels of association though, I believe... Example being if the only time you ever open their enclosure is to feed them, they will know it's feeding time.
That's about as good an answer as I can give.
Just don't go associating human or even mammal responses and emotions with your snake. They don't apply.