0

When I import the datetime module for example, and create a datetime.datetime object, thus that this datetime.datetime object is the value of the expression, it returns

datetime.datetime(*values inserted*)

But this is not the _str__() return value of datetime.datetime.

How is the output of the interactive console defined to behave? Is there a specification or comprehensible explanation?

martineau
  • 119,623
  • 25
  • 170
  • 301
user10385242
  • 407
  • 1
  • 3
  • 10

1 Answers1

0

It shows the value of __repr__().

Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895