TGTGInsightтелеграм анализLIVE / telegram public index
← Такты, стеки, два колеса

TGINSIGHT SIMILAR POSTS

Намери подобно съдържание

Изходен канал @clockstackwheels · Post #658 · 20.11

Зацените, я, оказывается, 10 лет назад уже заметил, что с системными кнопками на Android что-то не так, и подход к их проектированию надо менять. Сейчас в 2022 абсолютное большинство Android телефонов либо в режиме "Кнопки на экране, когда нужны", либо, что еще удобнее, в режиме жестов вообще без кнопок. Это совершенно очевидный вектор развития. Год назад я предсказывал, что Apple откажется от моноброви (потому что это очевидно очень плохое решение), но сделает это со скрипом, чтобы сохранить хорошую мину при плохой игре. И вот, Apple ввела этот свой островок: типа мы убираем монобровь, но постепенно. Через пару поколений дорастут до камеры-точки или, если хватит смелости, до подэкранной. Запомните этот твит. #gadgets

Hashtags

Резултати

Намерени 1 подобни публикации

Търсене: #partialmethod

当前筛选 #partialmethod清除筛选
djangoproject

@djangoproject · Post #88 · 11.07.2016 г., 11:54

https://docs.python.org/3/library/functools.html#functools.partialmethod class #functools.partialmethod(func, *args, **keywords) Return a new #partialmethod descriptor which behaves like partial except that it is designed to be used as a method definition rather than being directly callable. func must be a descriptor or a callable (objects which are both, like normal functions, are handled as descriptors). When func is a descriptor (such as a normal Python function, classmethod(), staticmethod(), abstractmethod() or another instance of partialmethod), calls to __get__ are delegated to the underlying descriptor, and an appropriate partial object returned as the result. When func is a non-descriptor callable, an appropriate bound method is created dynamically. This behaves like a normal Python function when used as a method: the self argument will be inserted as the first positional argument, even before the args and keywords supplied to the partialmethod constructor.