Opened 18 years ago

Closed 18 years ago

#4246 closed (invalid)

Tutorial errata

Reported by: kwon37xi@… Owned by: Jacob
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Tutorial part 2

the line
return self.pub_date.date() == datetime.date.today()

shouldn't it be like the following?

return self.pub_date.date() == datetime.today().date()

Change History (1)

comment:1 by Simon G. <dev@…>, 18 years ago

Resolution: invalid
Status: newclosed

No? :

In [6]: datetime.date.today()
Out[6]: datetime.date(2007, 5, 9)

In [7]: datetime.today().date()
---------------------------------------------------------------------------
exceptions.AttributeError                            Traceback (most recent call last)

/Users/simon/<ipython console> 

AttributeError: 'module' object has no attribute 'today'
Note: See TracTickets for help on using tickets.
Back to Top