# Under the Hood of the Snake: Behind the scenes of Python

- Institution: CERN
- Department: Inverted CSC
- Speaker: Sten Astrand
- Year: 2025
- Language: English
- Subjects: Computer science
- Source: [CERN](https://videos.cern.ch/record/3022135)
- Licence: [CERN](http://copyright.web.cern.ch)
- Who can watch: Tweens profiles and older (sources give no ratings; placed by Invisible Network from the source's own words)

Python is one of the most used programming languages in scientific computing - yet when discussed, we often admonish: "Python is slow!"

What does that mean in practice? Does it depend on the use case? Most importantly: what is Python doing under the hood?

Let's put our fangs into the inner workings of Python. I will talk about its design and what "Python is slow" means, what we are comparing to, and when this matters. Through examples we will see these things in action - both where the language is limited, and where the limitation might be your code...

Python is very flexible, which comes with trade-offs compared to languages like C++. However, "slow" is not an absolute term. There are good practices that can be applied to speed up our programs, saving both time and computing resources. With the right techniques, we can learn to charm the snake!.

0:00:00 Slide 1

0:02:55 Slide 2

0:06:47 Slide 3

0:09:01 Slide 4

0:10:19 Slide 5

0:11:26 Slide 6

0:14:36 Slide 7

0:16:09 Slide 8

0:18:18 Slide 9

0:19:22 Slide 10

0:20:30 Slide 11

0:21:50 Slide 12

0:23:44 Slide 13

0:28:00 Slide 14

0:32:23 Slide 15

0:34:03 Slide 16

0:35:59 Slide 17

0:38:21 Slide 18

0:40:42 Slide 19

0:42:58 Slide 20

0:43:59 Slide 21

0:47:44 Slide 22

0:48:47 Slide 23

0:49:57 Slide 24

0:51:45 Slide 25

0:53:20 Slide 26

0:54:34 Slide 27

0:56:16 Slide 28

0:57:42 Slide 29

## Lectures

1. [Under the Hood of the Snake: Behind the scenes of Python](https://invisiblenetwork.ai/learn/cern/3022135/74fab3b7110b), 1 h (CERN's player)
