The San Pedro police have been cracking down on drunk driving and being drunk in public. That is very different from drinking in public.
A while back the Town issued an ordinance against drinking from beer bottles on the beach and streets. Reason - bottle easily became weapons. Conscientious establishments will offer you a plastic cup if you want to leave and take your beer with you.