[8] The Thorpe–Ziegler reaction is the intramolecular modification with a dinitrile as a reactant and a cyclic ketone after acid hydrolysis.In the Guareschi-Thorpe condensation cyanoacetamide reacts with a 1,3-diketone to a 2-pyridone.