The present invention deals with a process for treating a polyimide
comprising exposing said polyimide to a compound selected from the group
consisting of dendrimers, hyperbranched polymers and mixtures thereof.
The polyimide may be in the form of a membrane and the membrane, after
treatment according to the process of the invention, may be suitable for
use in a membrane-based separation technique, for example gas separation,
filtration, microfiltration, ultrafiltration, reverse osmosis or
pervaporation. The membrane may for example be suitable for separation of
gas and hydrocarbon mixtures including mixtures of H.sub.2/N.sub.2,
H.sub.2/CO.sub.2, He/N.sub.2, CO.sub.2/CH.sub.4, and C2 C4 hydrocarbon
mixtures.