Penal Code section 171b does not ban every object at every government-adjacent place. It applies when someone brings or possesses one of its listed weapons within a qualifying state or local public building, or at a meeting covered by the statute’s open-meeting provisions. The item, the precise location and any applicable statutory exception must be checked before treating an arrest label as the complete answer. (Penal Code § 171b.)
Match the object to the statutory list
Section 171b(a) lists firearms; specified prohibited weapons, including those cross-referenced in sections 17235 and 16590; certain fixed or fixable knives with blades over four inches; unauthorized tear-gas weapons; tasers and stun guns; and specified air-pressure, spring, paint and similar projectile devices. A metal object, small tool or pocketknife is not automatically within one of these categories. The knife’s actual blade, whether it can be fixed in the described position and the statutory classification of another device can matter.
Do not assume the name an officer used is the statutory element. Preserve the inventory description, photographs, measurements, any examination of the object and the exact count charged. For a firearm or other item covered by another California law, section 171b may be only one of the issues counsel must assess.
Determine whether the place qualifies
Section 171b(c)(1) describes a public building in part as “a building or part of a building owned or leased by the state or local government” where public employees are regularly present for official duties. The statute excludes places assigned to several other specific weapons-location provisions and residential use by state or local employees. Its meeting branch covers meetings required to be open to the public under the cited state and local open-meeting laws. An address near a courthouse, a public parking lot or a government event is not enough by itself to establish the charged location.
For a separate location-specific rule, see the guide to Penal Code 171c Capitol weapons allegations. Each location provision requires its own analysis.
Compare the charging document with the building entrance, the part of the property involved, signs, floor plan and whether the alleged possession occurred at a qualifying meeting. A courthouse can be a public building under this section, but the case still requires the correct item and place evidence. Screening practices vary; no universal permission or exception follows from having reached a security checkpoint.
Review exceptions without assuming a license is enough
Subdivision (b) includes weapons used as evidence in court, specified officers acting within its terms, and written permission from an authorized official in charge of building security. It also has particular rules for a licensed judicial officer in a court building, lawful possession of privately held building portions, and authorized gun-show activity. These are fact-specific categories. A generic concealed-carry license is not written security permission and is not a general courthouse pass.
The statute expressly qualifies the officer exception for a person who is a party in a pending court action and brings a listed weapon inside a courtroom. That detail illustrates why job status, license status and the exact part of the building should not be collapsed into a single yes-or-no answer. If an exception is raised, retain the actual authorization, duty record or evidence-handling paperwork rather than relying on an oral recollection.
Section 171b permits punishment by county jail or state prison, subject to the actual charge and sentencing law (§ 171b(a)); an arrest does not settle those questions. Bring counsel the complaint, item records, site details and any claimed authorization before a plea or hearing. The criminal defense overview describes the firm’s general work. For a case-specific review, contact the Law Offices of David S. Chesley or call (800) 755-5174.
