ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Reuven Lerner: Avoiding memory leaks with "weakref"

Автор: PyCon Israel

Загружено: 2021-05-20

Просмотров: 3789

Описание: Session language – English
Target audience – Developers, Users

In Python, we normally don't worry about memory usage. But that doesn't mean memory leaks are impossible! In this talk, I'll introduce "weak references" -- how they work, when you would use them, and tricks to get the most out of them.

One of the great things about Python is that it includes garbage collection. You don't have to allocate or free memory; just let the system take care of things on its own! In theory, that means you can never experience memory leaks. But in practice, that's not quite true: There are definitely ways in which you can accidentally hold onto object references, resulting in a memory leak.

Fortunately, Python provides us with "weak references" in the standard library's "weakref" module. In this talk, I'll describe Python's garbage collector, and how we can end up with memory problems despite it. I'll then show you how the "weakref" module can help us -- both on its own, and with the data structures and functionality that the "weakref" module provides.

Even if you don't need weak references, knowing how they work can give you great insight into Python's internals, and how you can take advantage of them in your work.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Reuven Lerner: Avoiding memory leaks with "weakref"

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Noam Elfanbaum: Hello Airflow, Farewell Cronjobs

Noam Elfanbaum: Hello Airflow, Farewell Cronjobs

Every Python dev falls for this (name mangling)

Every Python dev falls for this (name mangling)

Gauntlet Cohort 3: Demo Day

Gauntlet Cohort 3: Demo Day

python: what is weakref? (intermediate - advanced) anthony explains #366

python: what is weakref? (intermediate - advanced) anthony explains #366

Understanding and Debugging Memory Leaks in Your Node.js Applications [I]

Understanding and Debugging Memory Leaks in Your Node.js Applications [I]

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

8 things in Python you didn't realize are descriptors

8 things in Python you didn't realize are descriptors

Memory Leaks And How To Prevent Them | C Programming Tutorial

Memory Leaks And How To Prevent Them | C Programming Tutorial

Can You SAVE On MEMORY USAGE When Importing In Python?

Can You SAVE On MEMORY USAGE When Importing In Python?

using memray to debug (and fix) a memory leak in krb5! (advanced) anthony explains #567

using memray to debug (and fix) a memory leak in krb5! (advanced) anthony explains #567

ОБЗОР РЕФЛЕКСИИ В С++26

ОБЗОР РЕФЛЕКСИИ В С++26

Самый НЕЛЮБИМЫЙ __dunder__ в Python (и что использовать вместо него)

Самый НЕЛЮБИМЫЙ __dunder__ в Python (и что использовать вместо него)

How we are making Python 3.11 faster - presented by Mark Shannon

How we are making Python 3.11 faster - presented by Mark Shannon

Why You Need Custom Exception Classes

Why You Need Custom Exception Classes

Robin Raymond:  Rusty Python - A Case Study

Robin Raymond: Rusty Python - A Case Study

py-spy saved our python 3.11 rollout (intermediate) anthony explains #568

py-spy saved our python 3.11 rollout (intermediate) anthony explains #568

Объяснение __слотов__ и расположения объектов в Python

Объяснение __слотов__ и расположения объектов в Python

Fix Memory Leaks in C Code with Valgrind

Fix Memory Leaks in C Code with Valgrind

Python Context Managers and the

Python Context Managers and the "with" Statement (__enter__ & __exit__)

Абстрактные классы в Python

Абстрактные классы в Python

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]