Ранее я уже упоминал о другой фишке из ˍˍ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
📣 Open Call: Entertainment & Creative Economy Startups!
Plug and Play Central Asia & IT Park Uzbekistan are launching Batch 6! We are looking for global innovators ready to scale.
We are seeking solutions in:
🎮 GameDev
👓 Immersive Tech (AR/VR, Metaverse 2.0, Content Monetization & Video Editing)
✈️ Travel & Tourism
Why join?
✨ Potential investment from IT Park Ventures
✨ Access to Silicon Valley via our GOAL Program
✨ Expert mentorship & global corporate network
✨ Pitch at the Batch 6 Expo in May 2026
📅 Deadline: January 15, 2026
🔗Apply here: https://www.plugandplaytechcenter.com/locations/uzbekistan
Let’s build the future together! 🚀
#PlugAndPlayCA#Startups#CreativeEconomy#GameDev#TravelTech#Uzbekistan
📣 Open Call: Enterprise & AI Startups — Your Moment Is Now!
🚀 Plug and Play Central Asia, in partnership with IT Park Uzbekistan, is on the lookout for high-potential startups from Central Asia and around the globe to join Batch 5 of Plug and Play Tech Center Accelerator Program in Uzbekistan.
Who should apply?
✔️ International startups ready to expand into Central Asia and establish a footprint in Uzbekistan
✔️ Homegrown Uzbekistan-based startups looking to scale fast with world-class support
✔️ High-growth startups with real traction and global ambition
What’s in it for you?
✔️ Expert mentorship and hands-on support from Plug and Play's global network
✔️ Investment opportunities and warm intros to VCs
✔️ Exclusive access to pitch at our Expo in front of corporates and investors
✔️ Practical workshops and pitch training sessions
✔️ The chance to join Plug and Play Tech Center GOAL Program in Silicon Valley and visit other locations
IT Park Ventures will review all participating startups for investment - supporting international startups considering entering Uzbekistan and helping local founders scale worldwide.
Applications are open here:link
🗓 Deadline to apply: July 15, 2025
🟢 Selected startups will be announced in August. The program kicks off in early October.
Apply now and let’s build the future together!
#PNPTC#PlugAndPlayCA#Uzbekistan#Accelerator#Batch5#OpenCall#ITPark
📣 Open Call: Enterprise & AI Startups — Your Moment Is Now!
🚀 Plug and Play Central Asia, in partnership with IT Park Uzbekistan, is on the lookout for high-potential startups from Central Asia and around the globe to join Batch 5 of Plug and Play Tech Center Accelerator Program in Uzbekistan.
Who should apply?
✔️ International startups ready to expand into Central Asia and establish a footprint in Uzbekistan
✔️ Homegrown Uzbekistan-based startups looking to scale fast with world-class support
✔️ High-growth startups with real traction and global ambition
What’s in it for you?
✔️ Expert mentorship and hands-on support from Plug and Play's global network
✔️ Investment opportunities and warm intros to VCs
✔️ Exclusive access to pitch at our Expo in front of corporates and investors
✔️ Practical workshops and pitch training sessions
✔️ The chance to join Plug and Play Tech Center GOAL Program in Silicon Valley and visit other locations
IT Park Ventures will review all participating startups for investment - supporting international startups considering entering Uzbekistan and helping local founders scale worldwide.
Applications are open here:link
🗓 Deadline to apply: July 15, 2025
🟢 Selected startups will be announced in August. The program kicks off in early October.
Apply now and let’s build the future together!
#PNPTC#PlugAndPlayCA#Uzbekistan#Accelerator#Batch5#OpenCall#ITPark