@borkena · Post #5293 · 19.11.2025 г., 14:41
2ሺህ ሴቶች በወታደሮች መደፈራቸው ተጋለጠ|የአማራ ክልል ጦርነት ሰቆቃዎች!|“የኢትዮጵያ ሕዝ... https://youtu.be/IrL0mY_s4FA?si=Hyz78Fh-_YajE1_2#Ethiopia#News#Amharicnews#rape
Hashtags
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
Пребарај: #rape
@borkena · Post #5293 · 19.11.2025 г., 14:41
2ሺህ ሴቶች በወታደሮች መደፈራቸው ተጋለጠ|የአማራ ክልል ጦርነት ሰቆቃዎች!|“የኢትዮጵያ ሕዝ... https://youtu.be/IrL0mY_s4FA?si=Hyz78Fh-_YajE1_2#Ethiopia#News#Amharicnews#rape
Hashtags
@borkena · Post #5298 · 20.11.2025 г., 07:26
Ethiopia : Over 2000 Woman Raped In The Amhara Region. Read more. https://borkena.com/2025/11/19/ethiopia-over-2000-woman-raped-in-the-amhara-region/#Ethiopia#HumanRights#Amhara#rape#Woman
@borkena · Post #5310 · 20.11.2025 г., 18:41
“ደፋሪ ወታደሮች ይጠየቁ” እናት ፓርቲ |የአፋር ግንባታ ፍጥጫ አይሏል|የአሜሪካ እጅ በኢትዮ... https://youtu.be/_aTwho0Y630?si=dm0KFl41RdoNM6XA#Ethiopia#News#Amharic#rape#EnatParty
@googlefactss · Post #40124 · 18.11.2025 г., 21:02
📜 The word "rape" has a complex and shifting history. Originally, it meant “to seize by force” — as in property or land. By the 1400s, it began to take on its modern meaning of sexual violence. Recent political attempts to create categories like "forcible rape" have been widely criticized for minimizing survivors' experiences. Language matters — especially when it comes to defining violence and consent. [Read more for more meanings] @googlefactss#LanguageHistory#Etymology#Rape#Consent#SocialJustice#LanguageMatters
@mib_messageinabottle · Post #6914 · 23.05.2024 г., 18:35
A vile #Zionist-run Twitter/X account called @#StopAntisemitism has been posting ficticious Tweets containing truely disgusting #kidnap and #rape fantasies about the #Irish PM's daughter, the Irish Deputy PM's daughter and the #Norwegian PM's wife This is in retaliation for #Ireland and #Norway announcing their recognition of the State of #Palestine. However the idiot that runs the #Twitter account has just inadvertantly outed his own identity on the #4Chan /pol channel. He is allegedly an author of Scripts and Comics, from Flushing, New York State in the USA.