>>> try : ... print(1/0) ... except : ... raise RuntimeError("Something bad happened") from None ... Traceback (most recent call last): File "<stdin>" , line4, in <module> RuntimeError: Something bad happened 

Additional information on exceptions can be found in section Exceptions , and information about handling exceptions is in section The try statement . 

Changed in version 3.3: None is now permitted as Y in raise X from Y . 

New in version 3.3: The __suppress_context__ attribute to suppress automatic display of the exception context. 

## 7.9 The break statement 

break_stmt ::= "break" 

$_{break}$may only occur syntactically nested in a$_{for}$ or$_{while}$ loop, but not nested in a function or class definition within that loop. 

It terminates the nearest enclosing loop, skipping the optional$_{else}$clause if the loop has one. 

If a$_{for}$ loop is terminated by$_{break}$, the loop control target keeps its current value. 

When $_{break}$passes control out of a $_{try}$statement with a finally clause, that$_{finally}$clause is executed before really leaving the loop. 

## 7.10 The continue statement 

$_{continue_stmt}$::= "continue" 

$_{continue}$may only occur syntactically nested in a for or while loop, but not nested in a function or class definition within that loop. It continues with the next cycle of the nearest enclosing loop. 

When$_{continue}$passes control out of a$_{try}$ statement with a$_{finally}$ clause, that$_{finally}$ clause is executed before really starting the next loop cycle. 

## 7.11 The$_{import}$ statement 

import_stmt ::= "import" module ["as" identifier ] ("," module ["as" identifier | "from" relative_module "import" identifier ["as" identifier ] ("," identifier ["as" identifier ])* | "from" relative_module "import" "(" identifier ["as" identifier ("," identifier ["as" identifier ])* [","] ")" | "from" relative_module "import" "*" module ::= ( identifier ".")* identifier $_{relative_module}$::= "."* module | "."+ 

The basic import statement (no$_{from}$clause) is executed in two steps: 

1. find a module, loading and initializing it if necessary 

