Does only one formatted string notation work in __str__ methods?

This page summarizes the projects mentioned and recommended in the original post on /r/pythonhelp

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • code_snippets

  • I am working on a tutorial on OOP. When I use the following code, it does not yield the __str__ method as I hoped, but the second code block does yield the assigned __str__ output. The only difference I can decern is that the second uses a different formatted string notation. Is there something I'm missing here?

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Show HN: Move data from any Vector DB to any other Vector DB

    1 project | news.ycombinator.com | 13 May 2024
  • How to mix and match dev tools for AI Agents

    1 project | news.ycombinator.com | 13 May 2024
  • Evaluating Large Language Models Using LLM-as-a-Judge

    1 project | news.ycombinator.com | 13 May 2024
  • Langchain: Document Splitting

    1 project | dev.to | 13 May 2024
  • Talk to a file on the web in no time (notebook)

    1 project | news.ycombinator.com | 11 May 2024