Former NYPD Commissioner Bill Bratton hinted Wednesday he wants to serve a second tour as the city's top cop.

"Apart from being an optimist, I guess I'm a glutton for punishment," he said when asked why he'd want the job.

advertisement | advertise on newsday

Bratton, who served under Mayor Rudy Giuliani from 1994 to 1996, is said to be on the short list of Democratic mayoral candidate Bill de Blasio, a harsh critic of the NYPD's stop-and-frisk practices.

A federal judge has ordered the NYPD to curb what she ruled was unconstitutional racial profiling under the policy. Bratton said he doesn't know enough about the case to say whether he agrees with the judge and de Blasio.

But he defended de Blasio from Giuliani, who earlier this week said the Democrat has an "anti-police ideology."

"I don't detect any anti-police feeling or bias in my exposure to Mr. de Blasio or quite frankly in his public statements," said Bratton, who met with Democratic primary candidates, including de Blasio.

Republican mayoral candidate Joe Lhota, who served as a Giuliani deputy mayor, has said he would like to keep Ray Kelly as commissioner.