Pickle in your pocket

Is that a pickle in your pocket, or are you just glad to see me? Did I say this first........Mae West


I can't find the film she's supposed to have said it in, but I'm pretty sure it's a gun, not a pickle.

According to amusingquotes.com:

Is that a gun in your pocket or are you just pleased to see me?
-- (Myra Breckinridge, 1970)

I've heard "is that a banana in your pocket...". Any idea who used the banana variation first?