Skip to main content

Pen. Code, § 1238 · Chapter 1. Appeals, When Allowed and How Taken, and the Effect Thereof

Pen. Code, § 1238

Verbatim from the official edition

Text — As published in the Legislative Counsel's database, tables dated October 18, 2026 (pubinfo_2025.zip)

(a) An appeal may be taken by the people from any of the following:

(1) An order setting aside all or any portion of the indictment, information, or complaint.

(2) An order sustaining a demurrer to all or any portion of the indictment, accusation, or information.

(3) An order granting a new trial.

(4) An order arresting judgment.

(5) An order made after judgment, affecting the substantial rights of the people.

(6) An order modifying the verdict or finding by reducing the degree of the offense or the punishment imposed or modifying the offense to a lesser offense.

(7) An order dismissing a case prior to trial made upon motion of the court pursuant to Section 1385 whenever such order is based upon an order granting the defendant’s motion to return or suppress property or evidence made at a special hearing as provided in this code.

(8) An order or judgment dismissing or otherwise terminating all or any portion of the action including such an order or judgment after a verdict or finding of guilty or an order or judgment entered before the defendant has been placed in jeopardy or where the defendant has waived jeopardy.

(9) An order denying the motion of the people to reinstate the complaint or a portion thereof pursuant to Section 871.5.

(10) The imposition of an unlawful sentence, whether or not the court suspends the execution of the sentence, except that portion of a sentence imposing a prison term which is based upon a court’s choice that a term of imprisonment (A) be the upper, middle, or lower term, unless the term selected is not set forth in an applicable statute, or (B) be consecutive or concurrent to another term of imprisonment, unless an applicable statute requires that the term be consecutive. As used in this paragraph, “unlawful sentence” means the imposition of a sentence not authorized by law or the imposition of a sentence based upon an unlawful order of the court which strikes or otherwise modifies the effect of an enhancement or prior conviction.

(11) An order recusing the district attorney pursuant to Section 1424.

(b) If, pursuant to paragraph (8) of subdivision (a), the people prosecute an appeal to decision, or any review of such decision, it shall be binding upon them and they shall be prohibited from refiling the case which was appealed.

(c) When an appeal is taken pursuant to paragraph (7) of subdivision (a), the court may review the order granting the defendant’s motion to return or suppress property or evidence made at a special hearing as provided in this code.

(d) Nothing contained in this section shall be construed to authorize an appeal from an order granting probation. Instead, the people may seek appellate review of any grant of probation, whether or not the court imposes sentence, by means of a petition for a writ of mandate or prohibition which is filed within 60 days after probation is granted. The review of any grant of probation shall include review of any order underlying the grant of probation.

Notes and commentary — not statutory text

History

Amended by Stats. 1999, Ch. 344, Sec. 25. Effective September 7, 1999.

Source of truth

Edition
As published in the Legislative Counsel's database, tables dated October 18, 2026 (pubinfo_2025.zip)
Official file
https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=PEN&sectionNum=1238.
Text hash
sha256 966be2c9535d8e93f3d6d2822d89e444e94f20986dc9ff3eb899a04c832654eb
Composed by
compose_ca.py 2026-10-22: the Legislative Counsel's CAML content files read by a tokenizer (caml_readers.reader_a); an independent xml.etree reading (caml_readers.reader_b) agrees on every section

This section cites

Provisions in this library that the text above cites, as it prints each citation. A range cited as “ss. 61.13-61.16” links its first and last provisions.

Cited by 4 provisions

Provisions in this library whose text cites Pen. Code, § 1238. Each shows the citation as that text prints it.

Procedural information only. Not legal advice and not a substitute for the advice of an attorney. Confirm the current text with the official publisher before relying on it.