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

Резултати

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

Пребарај: #newcourse

当前筛选 #newcourse清除筛选
Andijan Development Center

@adceducate · Post #8453 · 09.04.2024 г., 12:58

🎤 Great news! 🌟 We are excited to announce the launch of our new public speaking course at ADC! 🏫 If you want to overcome the fear of public speaking, improve your presentation skills, or simply become a more effective communicator, our course is designed for you. With experienced instructors, a supportive environment, and a program focused on real-life success, we are here to help you find your voice and make an impact. 👩‍🏫👨‍🏫 Join us on a journey of development, confidence, and empowerment. Classes are starting soon, and spaces are limited, so book your spot today! ☎️For more details: 74 2261078 74 2281121 74 2281666 74 2276163 74 2252536 #PublicSpeaking#FindYourVoice#Empowerment#CommunicationSkills#Education#NewCourse#JoinUs

PRICE ACTION EXPERT

@priceactionexpert · Post #8031 · 25.01.2025 г., 11:43

https://x.com/priceactiongann/status/1870116486494466125 #nifty50#nifty#gold#xauusd New Course: "Price Calculus" - Master the Art of Market Analysis Comprehensive Learning Path: 1. Patterns: Dive into the most critical and frequently used patterns in trading. 2. Market Dynamics: Understand the branches of price calculus and their application under various market conditions. 3. Structural Analysis: Learn how patterns and structures dictate price movements. Top-Down Analysis: 1. Chart Mastery: Detailed analysis from higher to lower time frames. 2. Market Characteristics: Essential knowledge for long-term survival in trading. Gann Techniques: 1. Gann Square Utilization: Learn the intricacies of Gann Square and its application in charting. 2. Square Relationships: Explore the relation between multiple squares and their impact on price. 3. Square Numbers : Practical use of square numbers and the Square of 9. Integrated Approach: 1. Correlation of Concepts: How Gann's concepts integrate with price patterns to form a cohesive analysis method. 2. Mastery of Price Calculus: Combine all elements into a complete methodology for mastering price movements. Contact in Telegram and X alone: Available by the end of January or first week of 2025. Give your maximum support thanks 🙏❤️🙏 #banknifty#stockmarket#stocks#gann#trading#priceaction #newcourse#course#astrology#financialastrology#numerology

PRICE ACTION EXPERT

@priceactionexpert · Post #7958 · 20.12.2024 г., 14:38

https://x.com/priceactiongann/status/1870116486494466125 #nifty50#nifty#gold#xauusd New Course: "Price Calculus" - Master the Art of Market Analysis Comprehensive Learning Path: 1. Patterns: Dive into the most critical and frequently used patterns in trading. 2. Market Dynamics: Understand the branches of price calculus and their application under various market conditions. 3. Structural Analysis: Learn how patterns and structures dictate price movements. Top-Down Analysis: 1. Chart Mastery: Detailed analysis from higher to lower time frames. 2. Market Characteristics: Essential knowledge for long-term survival in trading. Gann Techniques: 1. Gann Square Utilization: Learn the intricacies of Gann Square and its application in charting. 2. Square Relationships: Explore the relation between multiple squares and their impact on price. 3. Square Numbers : Practical use of square numbers and the Square of 9. Integrated Approach: 1. Correlation of Concepts: How Gann's concepts integrate with price patterns to form a cohesive analysis method. 2. Mastery of Price Calculus: Combine all elements into a complete methodology for mastering price movements. Contact in Telegram and X alone: Available by the end of January or first week of 2025. Give your maximum support thanks 🙏❤️🙏 #banknifty#stockmarket#stocks#gann#trading#priceaction #newcourse#course#astrology#financialastrology#numerology