Banner
logo
Pito Salas' Blog - Today I learned...
When to use “raise from None” in Python
Initializing search
    GitHub
    • Blog
    • Recommendations
    • Independent Study
    • Job Search
    • Keeping Up
    • Curacao
    • Offsite
    • Tags
    GitHub
      • Index
        • 2025
        • 2024
        • 2023
        • 2022
        • 2021
        • 2020
        • 2019
        • 2018
        • 2014
        • 2013
        • 2012
        • 2011
        • 2010
        • 2009
        • 2008
        • 2007
        • 2006
        • 2005
        • 2004
    • Recommendations
    • Independent Study
    • Job Search
    • Keeping Up
    • Curacao
    • Offsite
    • Tags
    Back to index
    • Metadata
      • January 6, 2025
      • When to use “raise from None” in Python
      • 1 min read
    debugging exception-handling programming python python-tips raise

    When to use “raise from None” in Python

    Link: When to use “raise from None” in Python: "Learn when and why to use Python's 'raise ... from None' to simplify stacktraces by hiding redundant exception context. Improve debugging clarity by focusing on the actual issue."

    Linked is a good article about raising exceptions in python. For me it also showed me some interesting “advanced” (or is it idiomatic) python.

    Previous
    RoboGrok University-Level Robotics Course and Parts Kit
    Next
    How AI is changing my grading approach -- for now
    Copyright © 2000-2024 Pito Salas
    Made with Material for MkDocs