A pair of air conditioning technicians have had the shock of their careers after finding a python curled up inside the circuitry of a unit they were disassembling in Sydney's inner-west.

The animal, almost two metres in length, unfortunately didn't survive his adventure inside the air-conditioning unit of the Earlwood home and had likely been electrocuted a few weeks ago, said resident David Marchant.

The snake was found in air conditioning unit in Sydney's inner-west. Credit:David Marchant

Mr Marchant, 47, said he'd noticed a smell coming from the unit but thought it might have been a nearby rat until the unit was opened up.

He was home to oversee the installation of the new unit on Thursday afternoon, after the old one gave up the ghost a few weeks back, and he was informed it wasn't worth fixing. He now suspects the python may have been involved.