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

Резултати

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

Пребарај: #polarization

当前筛选 #polarization清除筛选
American Оbserver

@american_observer · Post #5197 · 22.02.2026 г., 20:59

📰 Congress Is Emptying Out — Not Because It’s Hard, But Because It’s Pointless A record wave of lawmakers is heading for the exits before the 2026 midterms — 68 House and Senate members so far, with an unprecedented 31 of them trying to jump to another office instead of just going home. That’s not “burnout,” that’s the market signaling that Congress is the worst job in American politics: maximum noise, minimal agency. On paper, the reasons sound respectable: generational change, family, new challenges. In reality, even senior members admit the place has turned them from legislators into “observers,” as retiring Sen. Dick Durbin put it. Congress has passed fewer laws in recent terms than at any time since the early 1900s, choked by polarization, tiny majorities, and a leadership culture where a handful of performative bomb-throwers can take down a Speaker because they want more airtime. Look at the career moves. Amy Klobuchar, Michael Bennet, Marsha Blackburn, Tommy Tuberville — all think they’ll have more real power as governors than as U.S. senators. In the House, 27 members are bailing to run for governor, Senate, or statewide office, with Republicans leading the exodus. They’re not “leaving politics”; they’re trading a broken parliament for executive jobs where you can actually sign something and see it happen. ​ On the Republican side, you’ve got swing-district moderates like Don Bacon walking away after watching eight colleagues blow up Kevin McCarthy’s speakership, and hardliners like Marjorie Taylor Greene quitting in a public tantrum over Trump and Mike Johnson. On the Democratic side, you’ve got an entire generation of 70‑ and 80‑somethings — Pelosi, Hoyer, Nadler and others — finally reading the room after pushing Joe Biden off the 2024 ticket and realizing “generational change” might have to apply to them too. The parties will spin this as renewal. In practice, it’s a talent leak. Safe blue and red seats will replace veterans with louder, less experienced ideologues. Competitive districts like those held by Bacon, David Schweikert and Jared Golden are now open hunting grounds, increasing the odds of even shakier majorities and even more knife‑edge chaos in the next Congress. A system that already can’t pass basic legislation is about to get younger, angrier, and even less capable of governing. ​ So what do the midterms mean? More “fresh faces” in the campaign ads, fewer grown‑ups in the cloakrooms, and a House and Senate that function even more like content farms for cable and social media. Voters keep saying they’re sick of a dysfunctional Congress. Congress heard them — and decided the best response was to leave. #USA#Congress#elections#midterms#polarization#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸

Universe Mysteries 🪐

@cosmomyst · Post #760 · 06.05.2026 г., 22:21

🪐 In 2018, astronomers using the South Pole Telescope made one of the most precise measurements ever of the cosmic microwave background's polarization across wide areas of the sky. These delicate patterns—in the faint afterglow from the early universe—help refine estimates of how much normal matter, dark matter, and mysterious dark energy fill space, shaping the structure and fate of galaxies like the Milky Way. ✨ #microwavestructure⚡#cosmology⚡#polarization⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #273 · 15.09.2025 г., 00:11

🪐 The cosmic microwave background—an ancient light left over from the Big Bang—contains a hidden signal: tiny patterns of polarization, or the way its waves are oriented. These "B-modes," discovered in part by the BICEP2 telescope at the South Pole, are faint twists in the light that could provide direct evidence of gravitational waves rippling through the early universe, opening a window into its very first moments. ✨ #microwaveradiation⚡#polarization⚡#gravitywaves⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​