Python Forum
What does that angle brackets mean?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What does that angle brackets mean?
#2
It means nothing.

When printing an object, Python calls a special method named __repr__() or __str__(). In your example it would call __repr__() because that is the one used when printing a list of objects. The author of the code can format the str any way they seem fit. The author of this matplotlib code decided to use the class name followed by some attributes, surrounded by angle brackets.
Reply


Messages In This Thread
What does that angle brackets mean? - by NewPi - Nov-23-2022, 12:15 AM
RE: What does that angle brackets mean? - by deanhystad - Nov-23-2022, 01:59 AM
RE: What does that angle brackets mean? - by NewPi - Nov-23-2022, 11:39 PM
RE: What does that angle brackets mean? - by NewPi - Nov-24-2022, 09:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  semantics of comma inside array brackets usercat123 2 2,237 Apr-23-2022, 09:08 AM
Last Post: usercat123
  angular servo motor can't keep up with angle inputs taher50 1 3,040 Mar-10-2018, 07:18 PM
Last Post: taher50

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020