Rotating electric machine for a motor vehicle comprising - a rotor, - a stator coupled to said rotor and comprising a plurality of phases, - a rear bearing supporting said stator, - a fan situated close to the rear bearing, said fan drawing in air to cool said machine, and - an electronic assembly, said electronic assembly comprising: - blocks (100, 300) of electronic components, the blocks (100, 300) having different heat dissipation needs, the blocks (100, 300) comprising a power block and a control block, the power block of said electronic assembly being designed to be connected to the phases of said stator; - a cooling device for cooling said blocks (100, 300), said cooling device comprising a protective cap designed to cover the power and control blocks (100, 300), said protective cap comprising a first set of apertures that are designed to be positioned facing a first cooling element that is coupled to the power block in order to cool the latter; the first cooling element being a first heat sink provided with a base and with a plurality of fins, the apertures of the first set of apertures of the protective cap are disposed to match with the first heat sink and are designed to be positioned facing the fins of the first heat sink; said rotating electric machine being characterized in that said first set of apertures is designed to be positioned facing the control block; in that the apertures of the first set of apertures of the protective cap are lateral; in that said base protrudes with respect to the power block so as to produce a first cooling air stream, radial with respect to the axis of the rotor of said rotating electric machine, for said power block and a second cooling air stream, radial with respect to the axis of the rotor of said rotating electric machine, for said control block; in that said air is drawn in laterally via said first set of apertures of the protective cap and thus flows towards and through said first set of apertures, said radial first cooling air stream and said radial second cooling air stream being created from this drawn-in air, and in that the control block is disposed on a first plane that is parallel to a second plane on which said power block is mounted so as to allow said radial second cooling air stream to pass between the control block and the power block. - a rotor, - a stator coupled to said rotor and comprising a plurality of phases, - a rear bearing supporting said stator, - a fan situated close to the rear bearing, said fan drawing in air to cool said machine, and - an electronic assembly, said electronic assembly comprising: - blocks (100, 300) of electronic components, the blocks (100, 300) having different heat dissipation needs, the blocks (100, 300) comprising a power block and a control block, the power block of said electronic assembly being designed to be connected to the phases of said stator; - a cooling device for cooling said blocks (100, 300), said cooling device comprising a protective cap designed to cover the power and control blocks (100, 300), said protective cap comprising a first set of apertures that are designed to be positioned facing a first cooling element that is coupled to the power block in order to cool the latter; said rotating electric machine being characterized in that said first set of apertures is designed to be positioned facing the control block; in that the apertures of the first set of apertures of the protective cap are lateral; in that said base protrudes with respect to the power block so as to produce a first cooling air stream, radial with respect to the axis of the rotor of said rotating electric machine, for said power block and a second cooling air stream, radial with respect to the axis of the rotor of said rotating electric machine, for said control block; in that said air is drawn in laterally via said first set of apertures of the protective cap and thus flows towards and through said first set of apertures, said radial first cooling air stream and said radial second cooling air stream being created from this drawn-in air, and in that the control block is disposed on a first plane that is parallel to a second plane on which said power block is mounted so as to allow said radial second cooling air stream to pass between the control block and the power block.