A homogeneous polymer composition comprising 35-98% by weight of said polymer composition of at least one thermoplastic polyetherimide, at least one epoxy resin partially reacted with at least one aromatic polyamine, the epoxy resin being formed from at least one polyepoxide containing at least 2 epoxy groups, and the aromatic polyamine containing at least two primary amine groups, the mole ratio of polyamine to epoxy compound being such that each amine group corresponds to 1.6 to 2.6 epoxy groups, at least one further polymer comprising a polyphenylene ether, said polymer composition having been produced by mixing the thermoplastic polyetherimide, the polyphenylene ether, the epoxy resin and the aromatic polyamine in the molten state without a solvent at a temperature of about 10° to 25° C.