Do you want your possessions identified?
"Do you want your possessions identified?" (commonly abbreviated as DYWYPI?) is the message displayed upon the game's end through death, ascension, escaping the dungeon, or quitting. It is frequently used to suggest a character's death, often when due to a stupid mistake.
Accepting with y shows you your inventory. It is common for this to reveal one or more items that would have prevented your death. It often provides helpful information for new and unspoiled players to take into future games.
If you are killed in a shop, or by a shopkeeper you will get an alternative message: "Do you want to see what you had before you died?", since the shopkeeper will gratefully inherit your possessions if peaceful, or take your inventory as compensation if he was angry.
As the DYWYPI check counts as item identification, it exercises wisdom.