POP

POPs represent groups of people with common interests and qualities. It's one of the few entities that do not have their own Id (they have one but it's locally bound to the Province they're in). Most POPs are treated as bulk-data and processed in batch instead of individually modifying each one; for performance reasons.

Lua Scripting
Since 2.9.8 it is possible to modify POPs using the Lua API. Which enables lots of events to manipulate more directly the behaviour on the World.

Obtaining POPs of a province
Supposing we want to obtain the POPs of Rhode island and change these for something "better": Notes:
 * Modifying a POPs Ideology approval does not require a explicit synchronization, however it is recommended as the API may change in the future
 * update_pops needs to be called if any POPs are modified