All AI terms

AI term

Context manager

What is Context manager?

Python protocol using with blocks to run setup and cleanup code around a controlled scope

In other languages

한국어컨텍스트 매니저
with 문에서 자원의 시작과 종료 처리를 정해 파일, 잠금, 연결 등을 안정적으로 관리하는 객체다
日本語コンテキストマネージャ
Pythonでwith文と組み合わせ、処理の開始時と終了時にリソース取得や解放を自動化する仕組み

Subscribe to the AIB Newsletter

The fastest, most reliable AI news, straight to your inbox