In a saucepan, combine sugar and flour. Gradually stir in milk; bring to a boil over medium heat, stirring constantly. Cook and stir 2 minutes. Stir a small amount into eggs; return to pan and mix well. cook and stir over medium heat for 2-4 minutes. Remove from the heat; add butter, vanilla, bananas and peanuts. Pour into dishes. Chill.