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

Резултати

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

Пребарај: #dowjones

当前筛选 #dowjones清除筛选
Reuters: World

@reutersworldchannel · Post #149338 · 13.10.2021 г., 22:53

Growth stocks lift S&P, Nasdaq U.S. stocks ended higher, led by gains in shares of big growth names like Amazon.com and Microsoft while JPMorgan shares fell along with other bank shares and weighed on the market. #News#Reuters#USStocks#Markets#S&P500 #Nasdaq#DowJones#WallStreet Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖

Crypto M - Crypto News

@CryptoM · Post #65012 · 10.04.2026 г., 13:54

🚀 U.S. Stock Market Opens with Mixed Performance U.S. stocks opened with mixed results as the Nasdaq rose by 0.41% and the S&P 500 increased by 0.24%, while the Dow Jones experienced a slight decline of 0.01%. According to NS3.AI, this varied performance reflects ongoing market dynamics and investor sentiment. #StockMarket#USMarkets#Nasdaq#SP500#DowJones#InvestorSentiment#MarketPerformance

PRICE ACTION EXPERT

@priceactionexpert · Post #7905 · 23.11.2024 г., 08:14

https://x.com/priceactiongann/status/1830819785975955483 #nifty#geometry#banknifty New Course Book! ✅Market movements through the lens of advanced Geometric concepts. ✅Multidimensional and Spherical Time concepts of Trading with our upcoming course (book), ✅This innovative book dives deep into the concept of time-related trading, blending advanced geometric principles with practical markets Exploring Triangles, Squares, and Circles. ❤️🙏❤️ #stocks#stockmarket#gann#trading#time#gold#silver#xauusd#SPX500#DowJones#NASDAQ100

PRICE ACTION EXPERT

@priceactionexpert · Post #7723 · 03.09.2024 г., 04:08

https://x.com/priceactiongann/status/1830819785975955483 #nifty#geometry#banknifty New Course Book! ✅Market movements through the lens of advanced Geometric concepts. ✅Multidimensional and Spherical Time concepts of Trading with our upcoming course (book), ✅This innovative book dives deep into the concept of time-related trading, blending advanced geometric principles with practical markets Exploring Triangles, Squares, and Circles. ❤️🙏❤️ #stocks#stockmarket#gann#trading#time#gold#silver#xauusd#SPX500#DowJones#NASDAQ100

PRICE ACTION EXPERT

@priceactionexpert · Post #7955 · 20.12.2024 г., 08:14

https://x.com/priceactiongann/status/1870012167732511054?t= #niftycrash#stockmarketcrash 1.2025 Nifty first 7 to 9 months will be massive drop slow or fast and most of the Indian stocks will follow this cycle! 2.Biggest cycles ended in #Nasdaq #spx#DowJones u.s indices And also #Bitcoin ! 3.Most of the major instruments are going to retrace or drop or crash only. 4.Without a doubt it should sooner or later drop only ! 5.Indian markets will follow! In fact Indian markets completed their cycle fast and it's always been a leading indicator for global cues based on the facts. 6.know when to invest and when to avoid . 7.very careful and forewarned is forearmed ! Cannot stress enough and be ready! #nifty50#Nifty#banknifty#stockmarkets#stockmarketnews#gann#StockMarketIndia#StockMarketUpdate