Ранее я уже упоминал о другой фишке из ˍˍfutureˍˍ , это оператор деления.
from __future__ import division
Суть проста. Раньше сложность типа данных результата поределялась типом самого сложного операнда.
Например:
int/int => int
int/float => float
В первом случае оба операнда int, значит и результат будет int. Во втором float более сложный тип, поэтому результат будет float.
Если нам требуется получить дробное значение при делении двух int то приходилось форсированно один из операндов конверировать в float.
12/float(5) => float
Но с новой "философией" это не требуется. В Python3 "floor division" заменили на "true division" а старый способ теперь работает через оператор "//".
>>> 3/2
1.5
>>> 3//2
1
То есть теперь деление int на int даёт float если результат не целое число.
В классах теперь доступны методы __floordiv__() и __truediv__() для определения поведения с этими операторами.
Данный переход описан в PEP238.
#pep#2to3#basic
The US has quietly returned funding for the fight against HIV
A year after major cuts in international aid, the Donald Trump administration has returned almost all funding for HIV programs.
Currently, funding is only two percent below the 2024 level, the Daily Telegraph writes. In February, Donald Trump signed a bipartisan bill that allocates $5.88 billion for this purpose for one year. At the end of 2025, the United States also pledged to contribute about $4.6 billion to the Global Fund to Fight AIDS, Tuberculosis and Malaria.
#Health#AIDS
👂More on Trump's Ear ⚠️
Many noted strategic similarities between HIV/ #AIDS and #COVID, but now with #Monkeypox, the resemblance is uncanny.
Announced AIDS/Monkeypox of African origin.
Stated predominantly affecting queers.
Tests/treatment encouraged, guaranteeing said conditions.
Predictably spread to wider public.
"#HIV has never been isolated."
Unseen Channel 4 News report from 1998, suppressed due to flaws resembling those of the #COVID narrative, thus enabling the #AIDS psy-op to proceed.
https://www.bitchute.com/video/J4HUyN43AuMQ/