Python Forum
timedelta object cannot be interpreted as integer
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
timedelta object cannot be interpreted as integer
#3
timedelta-objects supports comparison, datetime- and date-objects also.
I call the expression a <= b <= c Chained Comparison.
I am not sure if this is the official name.
You can find the specification here.

Tutorial for chained comparison: https://www.geeksforgeeks.org/chaining-c...rs-python/
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: timedelta object cannot be interpreted as integer - by DeaD_EyE - Jan-28-2020, 09:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  float object can't be interpreted as an integer t23 2 1,085 Jan-18-2025, 07:36 PM
Last Post: deanhystad
  Are list/dict comprehensions interpreted really sequentially? anata2047 3 2,372 May-31-2022, 08:43 PM
Last Post: Gribouillis
  Convert timedelta to specified format Planetary_Assault_Systems 3 12,830 Jun-27-2021, 01:46 PM
Last Post: snippsat
  Running scripts and location of saved interpreted user-defined classes and functions leodavinci1990 3 3,488 Aug-25-2020, 03:43 AM
Last Post: micseydel
  TypeError: unsupported operand type(s) for *: 'datetime.timedelta' and 'float' chris0147 2 42,590 May-01-2018, 07:20 PM
Last Post: nilamo
  Question about how python being interpreted. Nirelg 2 4,357 May-10-2017, 01:09 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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