---
title: compilerop
description: IPython's cell compiler and traceback source cache.
---
## code\_name

```python
def code_name(
    code, number:int=0
):
```

## CachingCompiler

```python
def CachingCompiler():
```

*Instances of this class behave much like the built-in compile function, but if one is used to compile text containing a future statement, it "remembers" and compiles all subsequent program texts with the statement in force.*

### CachingCompiler.ast\_parse

```python
def ast_parse(
    source, filename:str='<unknown>', symbol:str='exec'
):
```

*Parse code to an AST with the current compiler flags active.*

### CachingCompiler.cache

```python
def cache(
    transformed_code, number:int=0
):
```

### CachingCompiler.extra\_flags

```python
def extra_flags(
    flags
):
```
