Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#332 closed defect (invalid)

It's datetime.datetime.now()

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

Description

docs/tutorial01.txt:

p = polls.Poll(question="What's up?", pub_date=datetime.now())

should be

p = polls.Poll(question="What's up?", pub_date=datetime.datetime.now())

Change History (1)

comment:1 Changed 10 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed

Note that the tutorial does this:

from datetime import datetime

...not this:

import datetime
Note: See TracTickets for help on using tickets.
Back to Top