A base (1, 21) for an electric lamp, comprising: - a tubular enclosure (2, 22) extending along an axial direction between a first and a second end portion (2a, 2b) of the enclosure, - an insulator (4, 4', 24) attached to the first end portion of the enclosure such that a rotation of the insulator relative to the enclosure about the axial direction is prevented, the insulator having an inner portion facing towards an inner space of the enclosure, an outer portion facing away from said inner space, at least one channel for receiving an electrically conducting contact pin (5, 25a, 25b), the channel extending from the outer portion, through the insulator and leading into said inner space, - a housing (3, 3', 23) for accommodating electrical circuitry for operating the electric lamp, and - a resilient attachment member forming part of one of the insulator and the housing, said resilient attachment member extending towards the other one of the insulator and the housing and being arranged to connect the insulator (4, 4', 24) and the housing (3, 3', 23) to each other, said resilient attachment member further comprising a lateral projection providing an engagement surface and/or a lateral recess, wherein the housing is arranged to be received in the tubular enclosure (2,22) from the open end of the enclosure at the second end portion thereof and attached to the inner portion of the insulator such that a rotation of the housing relative to the insulator about the axial direction is prevented, wherein a rotation of the housing relative to the enclosure is prevented and wherein a separation between the insulator and the housing is prevented by said attachment member in at least said axial direction. - a tubular enclosure (2, 22) extending along an axial direction between a first and a second end portion (2a, 2b) of the enclosure, - an insulator (4, 4', 24) attached to the first end portion of the enclosure such that a rotation of the insulator relative to the enclosure about the axial direction is prevented, the insulator having an inner portion facing towards an inner space of the enclosure, an outer portion facing away from said inner space, at least one channel for receiving an electrically conducting contact pin (5, 25a, 25b), the channel extending from the outer portion, through the insulator and leading into said inner space, - a housing (3, 3', 23) for accommodating electrical circuitry for operating the electric lamp, and - a resilient attachment member forming part of one of the insulator and the housing, said resilient attachment member extending towards the other one of the insulator and the housing and being arranged to connect the insulator (4, 4', 24) and the housing (3, 3', 23) to each other, said resilient attachment member further comprising a lateral projection providing an engagement surface and/or a lateral recess, wherein the housing is arranged to be received in the tubular enclosure (2,22) from the open end of the enclosure at the second end portion thereof and attached to the inner portion of the insulator such that a rotation of the housing relative to the insulator about the axial direction is prevented, wherein a rotation of the housing relative to the enclosure is prevented and wherein a separation between the insulator and the housing is prevented by said attachment member in at least said axial direction.