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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

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

Пребарај: #zig

当前筛选 #zig清除筛选
GitHub Trends

@githubtrending · Post #15187 · 02.10.2025 г., 11:30

#zig TigerBeetle is a powerful, highly reliable database built specifically for financial transactions, designed to handle huge volumes with safety and speed. It ensures that once a transaction is confirmed, it cannot be lost, even if hardware fails or data gets corrupted. It uses advanced techniques like replication, checksums, and fault-tolerant consensus to keep data safe and available. TigerBeetle is much faster and more efficient than traditional databases, making it ideal for mission-critical financial systems that need to process thousands of transactions per second without errors or downtime. This means you get a secure, fast, and stable platform for managing money transfers and accounts reliably. https://github.com/tigerbeetle/tigerbeetle

Hashtags

GitHub Trends

@githubtrending · Post #14855 · 23.06.2025 г., 12:00

#zig Ghostty is a fast, feature-rich terminal emulator that combines speed, native platform integration, and modern features without compromise. It supports multi-window, tabs, and split panes, with GPU-accelerated rendering using Metal on macOS and OpenGL on Linux for smooth performance. Ghostty is highly compatible with existing shells and software, making it a drop-in replacement. It offers rich theming, ligature support, and advanced developer features that enable more interactive command-line applications. Its native UI and cross-platform design provide a polished, efficient terminal experience that enhances productivity and usability for both users and developers. https://github.com/ghostty-org/ghostty

Hashtags

Mexc Crypto Signals Pumps Trading Kucoin

@mexc_signals_pumps_trading · Post #920 · 08.04.2024 г., 16:06

🔥GEM ANNOUNCEMENT🔥 #ZIG/USDT: Spot Signal (Exchange: Bybit, Bitget, MEXC, Gate.Io) Technical Analysis: #ZIG is pumping exactly from the support zone and now breaking a resistance trendline. We can see bullish momentum in it right now because technically this coin looks very strong. You people can buy and hold it now because bull run is going on and we can get good profits in it

Hashtags

The Devs

@thedevs · Post #2030 · 12.12.2022 г., 10:48

Ziglings, learn the Zig programming language by fixing tiny broken programs. #resources#zig @thedevs @thedevs_zig https://thedevs.link/6itjmW

AIGC

@aigcrubbish · Post #313 · 14.04.2026 г., 19:17

Zig 0.16.0 released Zig 编程语言发布了 0.16.0 版本。这是历时 8 个月的工作成果,包含了来自 244 位贡献者的 1183 次提交。 本次发布最引人注目的特性是引入了“作为接口的 I/O”(I/O as an Interface)。除此之外,语言本身、编译器、构建系统、链接器、模糊测试工具链等也都有显著的改进和增强。 原文链接:https://lwn.net/Articles/1067634/ #编程语言#Zig#软件开发#技术更新 #AIGC Read more

AIGC

@aigcrubbish · Post #91 · 04.12.2025 г., 01:25

Cro provides commentary on LWN's Zig asynchronicity article Loris Cro 发布了一个 YouTube 视频,详细讨论了 LWN 上一篇关于 Zig 新 `Io` 接口的文章中使用的术语。他指出,原文在术语使用上存在一些不清晰或混淆之处,例如将“非阻塞 I/O”称为“异步 I/O”,有时又将异步性与并发性混为一谈。对于想精确了解 Zig 的设计方法及其背后动机的读者,Cro 的视频值得一看。 原文链接:https://lwn.net/Articles/1049158/ #编程#Zig#异步编程#术语解释 #AIGC Read more

GitHub Trends

@githubtrending · Post #15207 · 09.10.2025 г., 13:30

#zig#3d_game#cubyz#game#procedural_generation#sandbox#sandbox_game#voxel#voxel_game#zig Cubyz is a 3D voxel sandbox game like Minecraft, letting you explore unlimited height and depth with far view distances. It has a unique crafting system where you can try making any tool, and the game figures out what it is. It runs on Windows and Linux, written in the Zig programming language for better performance. You can easily download and run it or compile it yourself if you want the latest version. The game is open-source, so you can contribute by adding code, gameplay features, or textures following simple guidelines. This means you get a flexible, creative game with ongoing improvements and community support. https://github.com/PixelGuys/Cubyz