The primary election required by this chapter shall be construed to be an election by the members of various political parties for the purpose of placing in nomination candidates for public office.