mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix typos in Weekday.today
example (GH-27363)
This commit is contained in:
parent
a2c45e5bcf
commit
6c7ec7282b
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ Data Types
|
|||
... SUNDAY = 7
|
||||
... @classmethod
|
||||
... def today(cls):
|
||||
... print('today is %s' % cls(date.today.isoweekday).naem)
|
||||
... print('today is %s' % cls(date.today().isoweekday()).name)
|
||||
>>> dir(Weekday.SATURDAY)
|
||||
['__class__', '__doc__', '__module__', 'name', 'today', 'value']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue