@fight4f · Post #8825 · 15.10.2024 г., 09:00
伊斯蘭恐懼症 在西方單邊主義宣傳侵佔一定空間的國際大媒界, 伊斯蘭恐佈症在西方社會及親西方群體宣傳得非常成功, 不多不少也是遜尼派人口之中的極右派(Wahabism) ,接近(原教旨主義) Wahabism 思想及遜尼派社會一些人不良行為而被宣傳加工所導致。 #ABC #Sunni #Islam #Muslim
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #397 · 12 ное.
Использование Pydantic сегодня стало нормой, и это правильно. Но иногда на ревью вижу, что используют его не всегда корректно. Например, метод BaseModel.model_dump() по умолчанию не преобразует стандартные типы, такие как datetime, UUID или Decimal, в простой сериализуемый для JSON вид. Тогда пишут кастмоный сериализатор для этих типов чтобы функция json.dump() не падала с ошибкой. import uuid from datetime import datetime from decimal import Decimal from uuid import UUID from pydantic import BaseModel class MyModel(BaseModel): id: UUID date: datetime value: Decimal obj = MyModel( id=uuid.uuid4(), date=datetime.now(), value='1.23' ) print(obj.model_dump()) # не подходит для json.dump # { # 'id': UUID('4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1'), # 'date': datetime.datetime(2025, 12, 12, 12, 12, 12, 111111), # 'value': Decimal('1.23') # } # добавляем свой кастомный сериализатор json.dumps(obj.model_dump(), cls=MySerializer) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2025-12-12T12:12:12.111111', # 'value': '1.23' # } В данном случае класс MySerializer обрабатывает datetime, UUID и Decimal. Например так: class MySerializer(json.JSONEncoder): def default(self, o): if isinstance(o, Decimal): return str(o) elif isinstance(o, datetime): return o.isoformat() elif isinstance(o, UUID): return str(o) return super().default(o) Специально для тех, кто всё еще так делает - в этом нет необходимости! Pydantic может это сделать сам, просто нужно добавить параметр mode="json". json.dumps(obj.model_dump(mode="json")) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2012-12-12T12:12:12.111111', # 'value': '1.23' # } #pydantic#libs
Пребарај: #sunni
@fight4f · Post #8825 · 15.10.2024 г., 09:00
伊斯蘭恐懼症 在西方單邊主義宣傳侵佔一定空間的國際大媒界, 伊斯蘭恐佈症在西方社會及親西方群體宣傳得非常成功, 不多不少也是遜尼派人口之中的極右派(Wahabism) ,接近(原教旨主義) Wahabism 思想及遜尼派社會一些人不良行為而被宣傳加工所導致。 #ABC #Sunni #Islam #Muslim
@YediotNewsChat · Post #4838 · 15.12.2023 г., 07:45
Graduates of #Deoband and #Wahhabi schools killed 12 people last night. In the terrorist attack on a police station in the Sistan region of Iran, 12 people were martyred and many were injured. The headquarters of the Jaish-ul-Adl terrorist group is in #Pakistan. They have been taught to be kind to infidels, but if you kill 5 Muslims, you will go to heaven. The funds of these groups are provided by America and Israel. Pakistan is a breeding ground for #Sunni terrorists. https://t.me/YediotNewsChat
@YediotNewsChat · Post #4843 · 15.12.2023 г., 08:49
The picture of the dead body of one of the #Sunni terrorists who invaded Iran's border post last night. They were wearing the uniform of the Iranian military forces. The rest of the #Wahhabi terrorists fled to Pakistan. They hide in the deserts of Pakistan for the next surprise attack on Muslims. Pakistan is the center of production of Wahhabi terrorists. The Wahhabis came to power in #Saudi_Arabia in 1922 by the #British. https://t.me/YediotNewsChat
@YediotNewsChat · Post #4896 · 17.12.2023 г., 17:40
Today, the funeral ceremony of 280 unknown martyrs was held in some cities of Iran with the presence of the president. The bodies of these martyrs have recently been discovered from under the ground in war zones. Despite the "DNA" test, some of the martyrs are still unknown. Because they don't know where their families are. In 1980, Iraq attacked Iran at the instigation of the #United_States with the cooperation of all #Sunni Arab countries to overthrow the Iranian Shiite government, but they did not achieve their goal. This war imposed on Iran was carried out with the participation of 80 countries and ended in 1988 with one million dead and wounded. Today, there is neither Saddam Hussein nor the terrorist #Baath Party of Iraq. But the more powerful Islamic Republic is fighting the Israeli terrorists in #Jerusalem since 1988. https://t.me/YediotNewsChat
@moscowphotog · Post #1489 · 08.03.2025 г., 13:48
"A new massacre against the #Alawites in the city of #Latakia, in the #Dattour neighborhood, al-Mazar junction. I beg all segments of the Syrian people, especially the #Druze, #Kurds, and any remaining members of the #Sunni community who still have a little humanity left in their hearts, to take to the streets in protest to stop these massacres against the innocent. These #massacres are not from yesterday, they are happening today, and as of moments ago, they are still being carried out by Syrian members of Hay’at Tahrir al-Sham #HTS, wearing their official uniforms. Please, save those who remain." https://t.me/CoastSyrian24/771