WAT Python Inspection Tool
WAT Python Inspection Tool
January 1, 2025
WAT is a powerful inspection tool designed to help you explore unknown objects and examine them at runtime.
>>> wat / datetime.date.today()
str: 2025-01-01
repr: datetime.date(2025, 1, 1)
type: datetime.date
Public attributes:
day: int = 1
max: datetime.date = 9999-12-31
min: datetime.date = 0001-01-01
month: int = 1
resolution: datetime.timedelta = 1 day, 0:00:00
year: int = 2025
def ctime(…) # Return ctime() style string.
def fromisocalendar(…) # int, int, int -> Construct a date from the ISO year, week number and weekday.…
def fromisoformat(…) # str -> Construct a date from a string in ISO 8601 format.
def fromordinal(…) # int -> date corresponding to a proleptic Gregorian ordinal.
def fromtimestamp(timestamp, /) # Create a date from a POSIX timestamp.…
def isocalendar(…) # Return a named tuple containing ISO year, week number, and weekday.
def isoformat(…) # Return string in ISO 8601 format, YYYY-MM-DD.
def isoweekday(…) # Return the day of the week represented by the date.…
def replace(…) # Return date with new specified fields.
def strftime(…) # format -> strftime() style string.
def timetuple(…) # Return time tuple, compatible with time.localtime().
def today(…) # Current date or datetime: same as self.__class__.fromtimestamp(time.time()).
def toordinal(…) # Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
def weekday(…) # Return the day of the week represented by the date.…
This appears to be better than using help()
:
>>> help(datetime.date.today())
Help on date object:
class date(builtins.object)
| date(year, month, day) --> date object
|
| Methods defined here:
|
| __add__(self, value, /)
| Return self+value.
|
| __eq__(self, value, /)
| Return self==value.
|
| __format__(...)
| Formats self with strftime.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __lt__(self, value, /)
| Return self<value.
...