First, don't buy new.
Find a good, used S&W 659, 5906, 639, 645, or 4506—and you'll make out like a bandit. Don't know what people mean when they say pistols or revolvers. Some of the best pistols I ever had were revolvers!
If you went out today to buy a .357 mag revolver, you'd pay $500+ for a really decent one. But if you bought a good used (pristine) .357, you could get it for about $300. Autos are the same. Today's prices are outrageous when one considers what can be had on the used market.
Back in the 1980s, and before, there wasn't much difference between a new and used handgun if they were in great shape. And you could shoot a gun for a year or two and often sell it for more than you paid, depending on the demand.
Bersa has always made pistols that were a good value, but I'd rather have my S&W 645 auto than many of the $1K 1911s on the market. It's certainly more reliable than most 1911s out of the box.
I'd keep an eye out for a good 9mm or .45 auto. You can check Auctionarms.com, Gunbroker.com, GunsAmerica.com or just your local gun store. Many of the Internet auction outlets include a listing of licensed gun dealers in your area and the price they'd charge for transferring the gun (usually $25 or so). At a gun store, you're likely to pay a premium, but sometimes you can get a real bargain, especially if the dealer stands behind the guns they sell. Uh...figuratively speaking that is.