{"guid":"77efe686-2d16-4015-9612-4b3d6d4df233","title":"Bytecode and .pyc files","subtitle":null,"slug":"sps25-56444-bytecode-and-pyc-files","link":"https://talks.python-summit.ch/sps25/talk/9NWPB9/","description":"Bytecode, the internal language of instructions used by the interpreter is something that perhaps most Python developers have heard about, but few have dug into. This talk will try to explain the idea behind bytecode and how it works. We will see how to extract bytecode from functions - with `dis` module, and from `.pyc` files (and what is the idea of `__pycache__` directories). Then, the other way around: we’ll check the possibility of building new functions with raw bytes in runtime.","original_language":"eng","persons":["Konrad Gawda"],"tags":["56444","2025","sps25","Python, the programming language you love","Aula","sps25-eng"],"view_count":85,"promoted":false,"date":"2025-10-16T13:00:00.000+02:00","release_date":"2025-10-20T00:00:00.000+02:00","updated_at":"2026-02-26T21:45:11.744+01:00","length":2167,"duration":2167,"thumb_url":"https://static.media.ccc.de/media/conferences/sps25/56444-77efe686-2d16-4015-9612-4b3d6d4df233.jpg","poster_url":"https://static.media.ccc.de/media/conferences/sps25/56444-77efe686-2d16-4015-9612-4b3d6d4df233_preview.jpg","timeline_url":"https://static.media.ccc.de/media/conferences/sps25/56444-77efe686-2d16-4015-9612-4b3d6d4df233.timeline.jpg","thumbnails_url":"https://static.media.ccc.de/media/conferences/sps25/56444-77efe686-2d16-4015-9612-4b3d6d4df233.thumbnails.vtt","frontend_link":"https://media.ccc.de/v/sps25-56444-bytecode-and-pyc-files","url":"https://api.media.ccc.de/public/events/77efe686-2d16-4015-9612-4b3d6d4df233","conference_title":"Swiss Python Summit 2025","conference_url":"https://api.media.ccc.de/public/conferences/sps25","related":[],"recordings":[{"size":33,"length":2167,"mime_type":"audio/mpeg","language":"eng","filename":"import-56444-eng-Bytecode_and_pyc_files_mp3.mp3","state":"new","folder":"mp3","high_quality":false,"width":0,"height":0,"updated_at":"2025-10-20T04:17:56.391+02:00","recording_url":"https://cdn.media.ccc.de/events/sps25/mp3/import-56444-eng-Bytecode_and_pyc_files_mp3.mp3","url":"https://api.media.ccc.de/public/recordings/92702","event_url":"https://api.media.ccc.de/public/events/77efe686-2d16-4015-9612-4b3d6d4df233","conference_url":"https://api.media.ccc.de/public/conferences/sps25"},{"size":25,"length":2167,"mime_type":"audio/opus","language":"eng","filename":"import-56444-eng-Bytecode_and_pyc_files_opus.opus","state":"new","folder":"opus","high_quality":false,"width":0,"height":0,"updated_at":"2025-10-20T03:48:59.136+02:00","recording_url":"https://cdn.media.ccc.de/events/sps25/opus/import-56444-eng-Bytecode_and_pyc_files_opus.opus","url":"https://api.media.ccc.de/public/recordings/92696","event_url":"https://api.media.ccc.de/public/events/77efe686-2d16-4015-9612-4b3d6d4df233","conference_url":"https://api.media.ccc.de/public/conferences/sps25"},{"size":238,"length":2167,"mime_type":"video/webm","language":"eng","filename":"import-56444-eng-Bytecode_and_pyc_files_webm-hd.webm","state":"new","folder":"webm-hd","high_quality":true,"width":1920,"height":1080,"updated_at":"2025-10-20T05:56:13.325+02:00","recording_url":"https://cdn.media.ccc.de/events/sps25/webm-hd/import-56444-eng-Bytecode_and_pyc_files_webm-hd.webm","url":"https://api.media.ccc.de/public/recordings/92771","event_url":"https://api.media.ccc.de/public/events/77efe686-2d16-4015-9612-4b3d6d4df233","conference_url":"https://api.media.ccc.de/public/conferences/sps25"},{"size":99,"length":2167,"mime_type":"video/webm","language":"eng","filename":"import-56444-eng-Bytecode_and_pyc_files_webm-sd.webm","state":"new","folder":"webm-sd","high_quality":false,"width":720,"height":576,"updated_at":"2025-10-20T05:56:04.841+02:00","recording_url":"https://cdn.media.ccc.de/events/sps25/webm-sd/import-56444-eng-Bytecode_and_pyc_files_webm-sd.webm","url":"https://api.media.ccc.de/public/recordings/92770","event_url":"https://api.media.ccc.de/public/events/77efe686-2d16-4015-9612-4b3d6d4df233","conference_url":"https://api.media.ccc.de/public/conferences/sps25"},{"size":75,"length":2167,"mime_type":"video/mp4","language":"eng","filename":"import-56444-eng-Bytecode_and_pyc_files_sd.mp4","state":"new","folder":"h264-sd","high_quality":false,"width":720,"height":576,"updated_at":"2025-10-20T03:48:55.367+02:00","recording_url":"https://cdn.media.ccc.de/events/sps25/h264-sd/import-56444-eng-Bytecode_and_pyc_files_sd.mp4","url":"https://api.media.ccc.de/public/recordings/92695","event_url":"https://api.media.ccc.de/public/events/77efe686-2d16-4015-9612-4b3d6d4df233","conference_url":"https://api.media.ccc.de/public/conferences/sps25"},{"size":192,"length":2167,"mime_type":"video/mp4","language":"eng","filename":"import-56444-eng-Bytecode_and_pyc_files_hd.mp4","state":"new","folder":"h264-hd","high_quality":true,"width":1920,"height":1080,"updated_at":"2025-10-20T03:26:12.087+02:00","recording_url":"https://cdn.media.ccc.de/events/sps25/h264-hd/import-56444-eng-Bytecode_and_pyc_files_hd.mp4","url":"https://api.media.ccc.de/public/recordings/92681","event_url":"https://api.media.ccc.de/public/events/77efe686-2d16-4015-9612-4b3d6d4df233","conference_url":"https://api.media.ccc.de/public/conferences/sps25"}]}