# Overriding context in Blender 4.\*

**URL:** <https://blenderartists.org/t/overriding-context-in-blender-4/1485970>\
**Category:** Python Support\
**Created:** [October 3, 2023, 6:08pm UTC](https://blenderartists.org/t/overriding-context-in-blender-4/1485970 "2023-10-03T18:08:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![example.sk](https://blenderartists.org/user_avatar/blenderartists.org/example.sk/32/611148_2.png) [@example.sk](https://blenderartists.org/u/example.sk)\
**Post date:** [October 3, 2023, 6:08pm UTC](https://blenderartists.org/t/overriding-context-in-blender-4/1485970/1 "2023-10-03T18:08:27Z")

</div>

Hi, I’m using quite a lot of context overriding like this:

```auto
override = {
  'window': window, 
  'screen': window.screen, 
  'area': window.screen.areas[0]
}
bpy.ops.screen.screen_full_area(override)

```

But in Blender 4.0 Beta and 4.1 Alpha it ends with [this exception](https://github.com/blender/blender/blob/63e1d062337bc3cd714efd075c882f11bdeb088e/scripts/modules/bpy/ops.py#L60).

Wtf happened here? Is there any replacement? It’s quite a big paradigm shift in Python API I guess.

---

<div class="post-metadata">

**Author:** ![example.sk](https://blenderartists.org/user_avatar/blenderartists.org/example.sk/32/611148_2.png) [@example.sk](https://blenderartists.org/u/example.sk)\
**Post date:** [October 3, 2023, 6:13pm UTC](https://blenderartists.org/t/overriding-context-in-blender-4/1485970/2 "2023-10-03T18:13:12Z")

</div>

Ah, I see now. Sometimes I google for a long time and just seconds after asking I find the correct answer…

```auto
with bpy.context.temp_override(...):
    bpy.ops.screen.screen_full_area()

```
