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

TGINSIGHT SIMILAR POSTS

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

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

Бывает начинающие в процессе обучения создают файлы с именем модуля который они изучают. В результате на тестовых запусках ничего не работает😱 Всё потому, что появилась коллизия имён. Например, изучаете вы модуль datetime, и создаёте с таким именем файл (ну логично же😄) прямо в рабочей директории. Потом, при попытке импортировать datetime модуль, из-за приоритета импорта будет импортирован файл из рабочий директории а не оригинальная библиотека. Ведь имя файла это суть имя модуля! А знаете ли вы, что не все стандартные модули можно так перезаписать? Коллизии имён не подвержены builtin модули. Они всегда стоят на первом месте в приоритете импорта, поэтому их нельзя заменить. Полный список таких модулей можно посмотреть в списке sys.builtin_module_names. То есть, вы сломаете весь Python если назовёте свой модуль os или site, но если назовёте time или gc то ничего страшного не случится))) Тем не менее, никогда не называйте модули уже занятыми именами!!!⚠️ Я всегда рекомендую всем своим файлам делать именной префикс из 2-3 символов. Например я называю свои проекты так: pw_project_name pw_ui_tools.py pw_something/main.py Либо под ситуацию tst_scriptname.py (не "test" чтобы не подхватывал pytest) dbg_script.py maya_ui.py hou_menu_tools.py И искать проще, и коллизий нет. #tricks#basic

Резултати

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

Пребарај: #peertube

当前筛选 #peertube清除筛选
Libreware

@libreware · Post #1459 · 07.05.2025 г., 03:54

PeerTube Mobile App v1 Is Out | Linuxiac The PeerTube mobile app has reached version 1, allowing users to easily edit playlists, comment on videos, and switch between accounts Sortie de la v1 de l'application mobile ! | JoinPeerTube PeerTube | F-Droid - Free and Open Source Android App Repository Go to the git page to get version 1.0 the F-Droid link is 0.6 https://framagit.org/framasoft/peertube/mobile-application/-/releases Via @linuxgram #PeerTube

Hashtags

Libreware

@libreware · Post #1265 · 29.03.2024 г., 01:21

P2Play - Peertube client (Unofficial client for Peertube) P2Play is an Android application for Peertube. The features are as follows: - Show list of recent, popular and local videos. - Play videos (very simple) - Log in and register in your instance - Refresh View downloaded videos - Subscribe to accounts - View videos from your subscriptions - Rate videos https://f-droid.org/packages/org.libre.agosto.p2play/ https://instances.joinpeertube.org/instances #PeerTube

Hashtags

Libreware

@libreware · Post #1462 · 04.06.2025 г., 19:45

PeerTube v7.2.0 => https://joinpeertube.org/ PeerTube is a free, decentralized and federated video platform developed as an alternative to other platforms that centralize our data and attention, such as YouTube, Dailymotion or Vimeo. 🎬 Changelog: => https://github.com/Chocobozzz/PeerTube/releases/tag/v7.2.0 Via @dcntr #PeerTube#ActivityPub

Libreware

@libreware · Post #1440 · 21.03.2025 г., 18:20

PeerTube 7.1 brings Podcast 2.0 support, enhanced identification and Mastodon verification | AlternativeTo PeerTubePeerTube has launched version 7.1 of its open-source, decentralized video-sharing platform, introducing a range of new features and improvements. A key update is enhanced platform identification, which now highlights the hosting platform's address for each video. Users can click on this address to learn more about the video's origin and explore all videos hosted on the remote instance. Version 7.1 also advances its support for #Podcast 2.0, enabling users to subscribe to channels and play video audio streams through traditional podcast applications like #AntennaPod and #Podverse. Additionally, the podcast feed is now compatible with Apple Podcast, broadening accessibility PeerTube v7.1 is out! | JoinPeerTube https://joinpeertube.org/news/release-7.1 #PeerTube

GitHub Trends

@githubtrending · Post #15452 · 29.01.2026 г., 19:00

#java#4k#android#bandcamp#download_videos#newpipe#peertube#soundcloud#translation#video#watch#youtube_video NewPipe is a free, open-source Android app for ad-free streaming and downloading videos/audio from YouTube, SoundCloud, PeerTube and more, with background play, pop-up mode, subscriptions without accounts, and no Google tracking for full privacy. The team is rewriting the code for a modern, stable version—download nightly builds to try new features early. This benefits you by saving data/battery, enabling offline/multitasking use, and protecting your data on any device. https://github.com/TeamNewPipe/NewPipe