Forwarded from Python | Тесты
Anonymous Quiz
64%
clear()
17%
remove()
14%
delete()
5%
discard()
Forwarded from Python | Тесты
Anonymous Quiz
29%
async()
11%
wait()
55%
await()
5%
complete()
Forwarded from Python | Тесты
Anonymous Quiz
25%
map()
56%
zip()
15%
chain()
4%
product()
Forwarded from Python | Тесты
Anonymous Quiz
30%
union()
31%
extend()
26%
add()
13%
update()
Forwarded from Python | Тесты
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Python | Тесты
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Python | Тесты
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Python | Тесты
Anonymous Quiz
22%
generator()
57%
yield()
5%
create()
17%
generate()
Forwarded from Python | Тесты
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Python | Тесты
Anonymous Quiz
27%
async()
9%
wait()
60%
await()
3%
complete()
Forwarded from Python | Тесты
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Python | Тесты
Anonymous Quiz
64%
[(0, 3), (1, 2), (2, 1)]
15%
[(0, 2), (1, 1), (2, 0)]
16%
[(0, 3), (1, 2), (2, 1), (3, 0)]
5%
[(0, 3), (1, 2), (2, 1), (2, 0)]
Forwarded from Python | Тесты
Вот 10 обучающих каналов по самым востребованным направлениям в IT.
Выбирай своё направление:
📖 IT Архив: @archive_ready
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Python | Тесты
Anonymous Quiz
53%
set()
30%
unique()
7%
fromkeys()
11%
OrderedDict.fromkeys()
Forwarded from Python | Тесты
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Python | Тесты
Anonymous Quiz
24%
3
44%
10
14%
None
18%
KeyError
Forwarded from Python | Тесты
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Python | Тесты
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Простой Python | Программирование
Гайд по обработке ошибок
Делимся гайдом по обработке ошибок в Python. Ты узнаешь, когда следует перехватывать исключения, генерируемые вызываемыми тобой функциями; какие классы исключений нужно перехватывать и многое другое.
👉Читать статью
#статьи
Делимся гайдом по обработке ошибок в Python. Ты узнаешь, когда следует перехватывать исключения, генерируемые вызываемыми тобой функциями; какие классы исключений нужно перехватывать и многое другое.
👉Читать статью
#статьи
Forwarded from Python Daily
Ididi, dependency injection, in a single line of code
Ididi is a pythonic dependency injection lib, with ergonomic apis, without boilplate code, works out of the box.
# What My Project Does
it builds a dependency graph based on your type hints, and inject those dependencies into corresponding classes/functions.
In the base case, all you need to do is to make a call to
# Quick Start
Here’s a quick example of how idid works:
import ididi
class Config:
def init(self, env: str = "prod"):
self.env = env
class Database:
def init(self, config: Config):
self.config = config
class UserRepository:
def init(self, db: Database):
self.db = db
class UserService:
def init(self, repo: UserRepository):
/r/Python
https://redd.it/1gn5erp
Ididi is a pythonic dependency injection lib, with ergonomic apis, without boilplate code, works out of the box.
# What My Project Does
it builds a dependency graph based on your type hints, and inject those dependencies into corresponding classes/functions.
In the base case, all you need to do is to make a call to
instance = ididi.solve(class)
and you are done.# Quick Start
Here’s a quick example of how idid works:
import ididi
class Config:
def init(self, env: str = "prod"):
self.env = env
class Database:
def init(self, config: Config):
self.config = config
class UserRepository:
def init(self, db: Database):
self.db = db
class UserService:
def init(self, repo: UserRepository):
/r/Python
https://redd.it/1gn5erp
GitHub
GitHub - raceychan/ididi: advanced pythonic dependency injection lib, with ergonomic apis, without boilplate code, works out of…
advanced pythonic dependency injection lib, with ergonomic apis, without boilplate code, works out of the box. - raceychan/ididi