. . . Whoever, except as provided by law, carries on his person, or carries on his person or under his control in a vehicle, a pistol or revolver, loaded or unloaded, or possesses a machine gun as defined in section one hundred and twenty-one of chapter one hundred and forty… or whoever so carries any stiletto, dagger, dirk knife, slung shot, metallic knuckles or sawed off shotgun, or whoever, when arrested upon a warrant for an alleged crime or when arrested while committing a crime or a breach or disturbance of the public peace, is armed with, or has on his person, or has on his person or under his control in a vehicle, a billy or dangerous weapon other than those herein mentioned, shall be punished by imprisonment for not less than six months nor more than two and a half years in a jail . .