Tag

__str__

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Oct 1, 2024 · Fundamentals

Python Data Type Conversions: str ↔ list ↔ JSON and Common Transformations

This article explains how to convert between strings, lists, dictionaries, and JSON in Python using ast.literal_eval, json.loads, and json.dumps, and demonstrates practical applications such as API response handling in automation testing.

Data ConversionJSON__str__
0 likes · 6 min read
Python Data Type Conversions: str ↔ list ↔ JSON and Common Transformations
Test Development Learning Exchange
Test Development Learning Exchange
Aug 10, 2023 · Fundamentals

Python Built‑in Functions for Data Type Casting

This article explains how to use Python's built‑in casting functions—int(), float(), str(), bool(), list(), tuple(), set() and dict()—to convert between numeric, string, boolean, sequence, and mapping types, providing clear code examples for each conversion scenario.

Python__str__bool
0 likes · 14 min read
Python Built‑in Functions for Data Type Casting
Python Programming Learning Circle
Python Programming Learning Circle
May 5, 2022 · Fundamentals

Understanding __str__ and __repr__ in Python's datetime.date

This short tutorial demonstrates how Python's datetime.date object displays differently with __str__ for a readable date string and __repr__ for an unambiguous constructor representation, showing the interpreter’s default use of __repr__ when inspecting objects.

DateTimePython__repr__
0 likes · 1 min read
Understanding __str__ and __repr__ in Python's datetime.date
Amap Tech
Amap Tech
Mar 22, 2021 · Artificial Intelligence

Visual Technology for Automated POI Name Generation: STR, Text Detection, and Naming Practices

Amap’s visual‑technology pipeline automatically generates and updates POI names by crowdsourcing street‑level images, applying deep‑learning scene‑text recognition, dual‑branch classification of text attributes, and a BERT‑plus‑graph‑attention model that selects and orders recognized text, achieving about 95 % naming accuracy.

AMapOCR__str__
0 likes · 14 min read
Visual Technology for Automated POI Name Generation: STR, Text Detection, and Naming Practices