https://realpython.com/why-close-file-python/ - статья о проблемах открытых файлов в python
#file #context_manager
#file #context_manager
Realpython
Why Is It Important to Close Files in Python? – Real Python
Model citizens use context managers to open and close file resources in Python, but have you ever wondered why it's important to close files? In this tutorial, you'll take a deep dive into the reasons why it's important to close files and what can happen…
https://majornetwork.net/2022/04/handling-retries-in-python-requests/ - о обработке повторов в пакете requests
#requests
#requests
https://testdriven.io/blog/concurrent-web-scraping-with-selenium-grid-and-docker-swarm/ - конкурентный скрапинг с использованием Selenium и Docker
#scraping #selenium #docker
#scraping #selenium #docker
testdriven.io
Concurrent Web Scraping with Selenium Grid and Docker Swarm
This tutorial details how to run a Python and Selenium-based web scraper in parallel with Selenium Grid and Docker Swarm.
https://github.com/voitau/system-design-primer/blob/master/README-ru.md -пособите по проектированию систем
#architecture #system_design
#architecture #system_design
GitHub
system-design-primer/README-ru.md at master · voitau/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards. - voitau/system-design-primer
https://snyk.io/blog/guide-to-python-pickle/?utm_campaign=AOM-UA-2022&utm_medium=Paid-Email&utm_source=PyCoders&utm_content=guide-to-python-pickle - статья о безопасном использовании pickle
#pickle #security
#pickle #security
Snyk
The ultimate guide to Python pickle | Snyk
This article will teach you how to safely use Python’s built-in pickle library to maintain persistence within complex data structures.
https://www.heurekadevs.com/a-brief-look-at-cpython-string - как устроены строки в cpython
#str #cpython
#str #cpython
Heurekadevs
A Brief Look at CPython String
Have you ever noticed that a string with just a few characters in Python uses several dozen bytes of memory? We handle a lot of short strings, that works on matching offers of the same products together, and I have been wondering why Python seems to store…
https://stackoverflow.com/questions/24752395/python-raise-from-usage - об использовании raise from
#exception #raise
#exception #raise
Stack Overflow
Python "raise from" usage
What's the difference between raise and raise from in Python?
try:
raise ValueError
except Exception as e:
raise IndexError
which yields
Traceback (most recent call last):
File "tmp.py"...
try:
raise ValueError
except Exception as e:
raise IndexError
which yields
Traceback (most recent call last):
File "tmp.py"...