Preparation and function of poly(acrylic acid)s modified by supramolecular complex composed of porphinatoiron and a cyclodextrin dimer that bind diatomic molecules (O2 and CO) in aqueous solution.