||All the men of his city shall then pelt him to death with stones, so that you will rid yourself of the evil in your midst. When all Israel hears about it, they will fear.
Uregamuhu kol-anshey iro va'avanim vamet uvi'arta hara mikirbecha vechol-Yisra'el yishme'u veyira'u.
When a man is legally sentenced to death and executed, you must then hang him on a gallows.
Vechi-yiheyeh ve'ish chet mishpat-mavet vehumat vetalita oto al-ets.
But not a woman (Sifri). Hanging is imposed only in the case of a blasphemer (Leviticus 24:16) and an idolator (Yad, Sanhedrin 15:6). Some say that it is true of all who incur the penalty of stoning (Rashi). Both opinions are found in the Talmud (Sanhedrin 45b).
After he is put to death, he is hung up by his hands. He is hung up just before sunset and immediately taken down again (Yad, Sanhedrin 15:7).
(Targum; Saadia). Cf. Esther 5:14 (Chizzkuni). The gallows consisted of a pole sunk into the ground, with a beam projecting from its side (Sanhedrin 47a,b).