The role of Shyam was originally to be played by Guru Dutt's real life friend, Johny Walker but was then assigned to one of Guru Dutt's assistant directors.
It is also surmised that the story is based on the life of film's lyricist Sahir Ludhianvi who had failed affair with poet and writer Amrita Pritam .