Ранее я уже упоминал о другой фишке из ˍˍ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
I Built a Mesh Network Across the World | Data Slayer
That escalated quickly...
In my last video, I introduced #Reticulum—an open-source protocol that could allow anyone to build networks without relying on traditional internet infrastructure. But there was one big question left unanswered: how far can it actually go?
In this video, I start with a simple setup inside my house and begin pushing the limits—testing communication across rooms, neighborhoods, and beyond using WiFi HaLow and #mesh networking. The goal is simple: see if it’s possible to send real messages across distance without depending on ISPs, centralized servers, or the internet as we know it.
#Network#MeshNetwork
The Internet, Reinvented.
In this video, I build a #Reticulum#RNode and prove that completely different radios — #LoRa and Wi-Fi — can communicate through a hardware-agnostic networking stack. Reticulum routes traffic above the radio layer, automatically bridging dissimilar frequencies, interfaces, and modulation types. I then run it over Wi-Fi HaLow Haven nodes to create a long-range, encrypted IP #mesh with no traditional infrastructure.
Finally, I push it further by running #ATAK across the network, demonstrating a fully open-source, decentralized communication stack in action.
Checkout https://rmap.world/
You can install rnode software on your esp32/nrf52 based meshtastic/meshcore hardware