That intrigued me, had me wondering what a {...} sequence meant which I had never encountered before except for dictionaries ...There are unexpected curly braces... perhaps this is the problem?({datetime.now()}
Code:
Python 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> {1}{1}>>> type({1})<class 'set'>I presume the OP is using that to show the individual parts of 'datetime.now' -
Code:
>>> from datetime import datetime>>> print({datetime.now()}){datetime.datetime(2025, 7, 9, 12, 39, 45, 414190)}>>> print(datetime.now())2025-07-09 12:39:46.149957Code:
>>> print(repr(datetime.now()))datetime.datetime(2025, 7, 9, 12, 44, 14, 968972)Statistics: Posted by hippy — Wed Jul 09, 2025 11:42 am