A powertrain comprising a transmission , a first electric motor and a second electric motor , wherein - the transmission comprises an input shaft to which a source of mechanical power may be connected, an output shaft and a gear assembly providing at least two different gear ratios that may be selected for transfer of mechanical power from the input shaft to the output shaft , - the first electric motor is connected to the input shaft via a first gear (i x ), such that torque and rotation may be transferred between the first electric motor and the input shaft, and - the second electric motor is connected to the input shaft via a first clutch and the first gear (i x ), such that torque and rotation may be transferred between the second electric motor and the input shaft , and connected to the output shaft via a second clutch and a second gear (i y ), such that torque and rotation may be transferred between the second electric motor and the output shaft , wherein the first electric motor is connected to the second electric motor via the first clutch , and the first clutch and the second clutch are friction clutches which may operate with a torque level controllable between zero and a maximum torque level, and the first electric motor , the second electric motor , the first clutch and the second clutch form parts of a torque transfer path bypassing the at least two different gear ratios, the torque transfer path arranged to transfer torque from the input shaft to the output shaft during a gearshift. - the transmission comprises an input shaft to which a source of mechanical power may be connected, an output shaft and a gear assembly providing at least two different gear ratios that may be selected for transfer of mechanical power from the input shaft to the output shaft , - the first electric motor is connected to the input shaft via a first gear (i x ), such that torque and rotation may be transferred between the first electric motor and the input shaft, and - the second electric motor is connected to the input shaft via a first clutch and the first gear (i x ), such that torque and rotation may be transferred between the second electric motor and the input shaft , and connected to the output shaft via a second clutch and a second gear (i y ), such that torque and rotation may be transferred between the second electric motor and the output shaft , wherein the first electric motor is connected to the second electric motor via the first clutch , and the first clutch and the second clutch are friction clutches which may operate with a torque level controllable between zero and a maximum torque level, and the first electric motor , the second electric motor , the first clutch and the second clutch form parts of a torque transfer path bypassing the at least two different gear ratios, the torque transfer path arranged to transfer torque from the input shaft to the output shaft during a gearshift. the first electric motor is connected to the second electric motor via the first clutch , and the first clutch and the second clutch are friction clutches which may operate with a torque level controllable between zero and a maximum torque level, and the first electric motor , the second electric motor , the first clutch and the second clutch form parts of a torque transfer path bypassing the at least two different gear ratios, the torque transfer path arranged to transfer torque from the input shaft to the output shaft during a gearshift. <EOS>