Partially pyrolized gas-separation membranes made from blends of copolyetherimides and polyimides