TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #61 · 2 апр.

Ранее я уже упоминал о другой фишке из ˍˍ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

Резултати

Пронајдени 117 слични објави

Пребарај: #ubuntu

当前筛选 #ubuntu清除筛选
404 Information

@Info404 · Post #65425 · 24.04.2026 г., 16:27

Ubuntu 26.04 LTS 释出 2026-04-24 13:56 by 艾米七号 Canonical 释出了代号为 Resolute Raccoon 的 Ubuntu 26.04 LTS。同时释出的还有衍生版本 Edubuntu、Kubuntu、Lubuntu、Ubuntu Budgie、Ubuntu Cinnamon、Ubuntu Kylin、Ubuntu Studio、Ubuntu Unity 和 Xubuntu。Ubuntu Desktop、Ubuntu Server、Ubuntu Cloud、Ubuntu WSL 和 Ubuntu Core 将获得五年的支持,其余版本获得三年的支持,付费扩展支持 ESM (Expanded Security Maintenance)为十年 。Ubuntu 26.04 采用最新的 Linux 7.0 kernel,GNOME 50 桌面环境,引入了基于 TPM 的全盘加密,GStreamer 1.28,沙盒图形加载,Chrony 4.8,等等。 https://discourse.ubuntu.com/t/ubuntu-26-04-resolute-raccoon-lts-released/80833 #Ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18800 · 15.05.2026 г., 03:01

📰 Ubuntu 25.10 Users Can Now Upgrade to Ubuntu 26.04 LTS, Here’s How A step-by-step and easy-to-follow tutorial (with screenshots) on how to upgrade your Ubuntu 25.10 (Questing Quokka) installations to Ubuntu 26.04 LTS (Resolute Raccoon). 🔗 Source: https://9to5linux.com/ubuntu-25-10-users-can-now-upgrade-to-ubuntu-26-04-lts-heres-how #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18708 · 08.05.2026 г., 08:16

📰 Ubuntu Snap Prompting Improvements If you haven’t tried Ubuntu’s ‘Permission Prompting’ feature for a while, there’s more reason to do so in the latest release. Canonical’s Oliver Calder has shared an update on recent improvements to the security feature, which sets out to “empower users” by letting them decide what software can access on the rest of the system at runtime rather than retrospectively. 🔗 Source: https://www.omgubuntu.co.uk/2026/05/ubuntu-snap-prompting-client-improved #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18703 · 07.05.2026 г., 17:55

📰 Ubuntu Touch 24.04-1.3 Lands as UBports Prepares 24.04-2.0 UBports releases Ubuntu Touch 24.04-1.3 while preparing 24.04-2.0, targeting a newer Morph Browser stack with Qt 6 work. 🔗 Source: https://linuxiac.com/ubuntu-touch-24-04-1-3-released/ #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18696 · 07.05.2026 г., 08:38

📰After Days of DDoS, Now Ubuntu's Twitter Account Seems to be Compromised A fake AI agent, a near-identical Ubuntu URL, and a crypto wallet prompt, here's how hackers used Ubuntu's own branding against its users. 🔗 Source: https://feed.itsfoss.com/link/24361/17335930/ubuntu-twitter-compromised #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18694 · 07.05.2026 г., 06:14

📰 Ubuntu’s old Unity desktop remade in Wayfire and Libadwaita If Canonical hadn’t burned through cash and goodwill during its smartphone detour in the mid-2010s, Ubuntu would likely still ship with the Unity desktop today – albeit in an evolved form. What would that form actually look like? Well, you don’t have to shut your eyes and imagine, thanks to Ubuntu community member Muqtxdir, who’s experiment in “re-building ubuntu’s unity shell in a wayfire session through gtk4-layer-shell and libadwaita... 🔗 Source: https://www.omgubuntu.co.uk/2026/05/ubuntu-unity-desktop-wayfire-recreation #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18644 · 01.05.2026 г., 14:01

📰 Major DDoS attack knocks Ubuntu websites, Snap store offline If you’re having trouble accessing the Ubuntu website, the Snap store or Launchpad then you’re not alone: Canonical’s websites are currently facing a “sustained, cross-border” DDoS attack. The company says it is “working to address” the attack and will provide more details shortly. Some websites and services have been affected for as long as 14 hours (at the time of writing). 🔗 Source: https://www.omgubuntu.co.uk/2026/05/ubuntu-websites-ddos-attack #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18620 · 29.04.2026 г., 22:51

📰 Enabling Ubuntu Pro in Security Center is super easy Ubuntu 26.04 LTS dropped the Software & Updates utility from default installs and added Ubuntu Pro settings to the Security Center app. But is the setup experience any better? The short answer is yes, mostly. The range of options mirrors what was in the old Software & Updates > Ubuntu Pro tab, but the layout is less cramped, with more room for concise explanations of what each setting and toggle does. Enrolling is improved too. 🔗 Source: https://www.omgubuntu.co.uk/2026/04/enable-ubuntu-pro-security-center #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18586 · 27.04.2026 г., 13:07

📰 Ubuntu 16.04 LTS (Xenial Xerus) Reaches End of Standard ESM Support With the end of standard ESM support for Ubuntu 16.04 LTS, users must now choose between a staged upgrade or extended paid security coverage. 🔗 Source: https://linuxiac.com/ubuntu-16-04-lts-reaches-end-of-standard-esm-support/ #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18553 · 24.04.2026 г., 07:28

📰 5 Reasons to Upgrade to Ubuntu 26.04 (and 3 Reasons to Stay Away) Should you skip this new release or jump on the bandwagon and upgrade to 26.04? Let me help you with that. 🔗 Source: https://feed.itsfoss.com/link/24361/17324480/ubuntu-26-04-upgrade-or-not #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18526 · 22.04.2026 г., 10:54

📰 Ghostty OpenGL-Accelerated Terminal Available On Ubuntu 26.04 LTS Since Ubuntu 25.04 Ptyxis has been the default terminal emulator after it initially became available in Ubuntu 24.10. For the upcoming Ubuntu 26.04 LTS release, Ptyxis remains the default but Ghostty is now available too... 🔗 Source: https://www.phoronix.com/news/Ghostty-Ubuntu-26.04 #ubuntu

Hashtags

Linuxgram 🐧

@linuxgram · Post #18516 · 21.04.2026 г., 18:20

📰 Ubuntu 26.04 LTS: What’s new since 24.04? If you plan to upgrade to Ubuntu 26.04 LTS ‘Resolute Raccoon’ from Ubuntu 24.04 LTS, you’re going to inherit two years worth of improvements. As an LTS-to-LTS jump, you don’t simply benefit from what’s new in Ubuntu 26.04, but everything else added in the 3 interim releases prior, namely Ubuntu 24.10, 25.04 and 25.10. Ubuntu 26.04 LTS does plenty of things that 24. 🔗 Source: https://www.omgubuntu.co.uk/2026/04/ubuntu-26-04-lts-changes-since-24-04 #ubuntu

Hashtags

123•••910
ПретходнаСтраница 1 од 10Следна