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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #199 · 8 јан.

Многие из тех кто активно работал с Python2 несколько удивлены, почему в Python3 удобная функция reload() переехала из builtin в imp а потом и в importlib? Ну было же удобно! А теперь лишний импорт😖 Дело в том, что начиная с Python3.3 функция reload() переписана на Python вместо Cи. Что это нам даёт? 🔸 Такой код проще поддерживать и развивать 🔸 Python код легче читать, изучать и понимать. Сравните это ➡️ и это ➡️. 🔸 Как результат пункта 2, проще писать свои расширения импорта. Например, пользовательский импортёр с какой-либо хитрой логикой по аналогии с импортом из zip архивов. А есть ли у этого решения недостатки? Да, они всегда есть. 🔹 Так как это не builtin функция, её следует импортнуть перед использованием 🔹 Скорость замедлилась примерно на 5%. Очевидно, что это совершенно не критично. К тому же от версии к версии логика импорта будет оптимизироваться и ускоряться. В самом начале файла importlib/__init__.py мы видим такой импорт: import _imp # Just the builtin component, NOT the full Python module То есть часть функционала по прежнему написана на Си, но достаточно низкоуровневая. #basic

Hashtags

Резултати

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

Пребарај: #neovim

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

@githubtrending · Post #15553 · 10.03.2026 г., 12:00

#lua#github#neovim Octo.nvim lets you edit and review GitHub issues, pull requests, and discussions right in Neovim. Just open with commands like `//github.com/user/repo/issues/1` or `w` to sync changes instantly. Add reactions, labels, assignees, or reviewers easily. This saves time by keeping all GitHub work in your editor—no browser switching—boosting productivity for developers managing repos. https://github.com/pwntester/octo.nvim

GitHub Trends

@githubtrending · Post #15599 · 03.04.2026 г., 11:30

#rust#filesearch#lua#neovim#neovim_plugin#rust FFF is a super-fast fuzzy file finder for AI agents and Neovim users. It excels at grepping, fuzzy matching, and globbing with built-in memory that ranks results by frecency, git status, file size, and more for typo-proof searches. Install easily via script for AI (like Claude) or Lua for Neovim (keys like ff for files, fg for grep). This saves you time and tokens by finding code instantly, skipping useless files, and boosting productivity on big repos. https://github.com/dmtrKovalenko/fff.nvim

GitHub Trends

@githubtrending · Post #14753 · 26.05.2025 г., 12:00

#tree_sitter_query#hacktoberfest#neovim#nvim_treesitter#tree_sitter Nvim-treesitter is a plugin for Neovim that makes it easy to use Tree-sitter, a modern parsing tool, for better syntax highlighting and code understanding in your editor[1][2]. It automatically installs and manages language parsers, so you don’t have to do it manually, and supports many programming languages out of the box. With nvim-treesitter, you get more accurate and faster syntax highlighting, smarter code navigation, and features like incremental selection, indentation, and code folding, all based on the actual structure of your code[4]. This means your code is easier to read and work with, and you can move around and edit code more efficiently. While some features are still experimental, using nvim-treesitter can greatly improve your coding experience in Neovim. https://github.com/nvim-treesitter/nvim-treesitter

GitHub Trends

@githubtrending · Post #14955 · 13.07.2025 г., 13:00

#shell#awesome#awesome_list#neovim#neovim_plugins#nvim_lua Neovim is a powerful, extensible text editor based on Vim, designed for usability and customization. It supports a vast collection of plugins tailored specifically for Neovim features, including plugin managers, language servers (LSP), AI coding assistants, syntax highlighting, fuzzy finders, file explorers, Git integration, debugging tools, and more. These plugins enhance coding productivity by adding features like code completion, project management, smooth navigation, and UI improvements. Using Neovim with these plugins lets you create a personalized, efficient coding environment that can boost your workflow, support many programming languages, and integrate modern tools like AI assistants and debuggers directly into your editor. https://github.com/rockerBOO/awesome-neovim

GitHub Trends

@githubtrending · Post #15096 · 26.08.2025 г., 11:30

#lua#layout#lua#neovim#neovim_plugin#neovim_ui#nvim#plugin#scratchpad#ui#ux#zen_mode#zenmode The no-neck-pain.nvim plugin for Neovim centers your active editing window by adding empty buffers on each side, creating padding that keeps your focus in the middle of the screen. It works right away without setup, supports multiple tabs, split windows, and integrates with popular file tree and dashboard plugins. You can customize its width, colors, and behavior, and even use the side buffers as scratchpads for notes. This helps reduce neck strain and improves focus, especially on wide monitors, by keeping your code or text centered and easy to read without distractions. https://github.com/shortcuts/no-neck-pain.nvim