Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#4941 closed (fixed)

Use only "import datetime" in tutorials to minimise confusion

Reported by: John Shaffer <jshaffer2112@…> Owned by: Jacob
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

#4037, #4246, #4876, #4935 were all opened because of confusion over which datetime import to use. The tutorial's model files use "import datetime", while the command-line examples use "from datetime import datetime". I propose normalizing the imports to minimize confusion.

Attachments (1)

tutorial01.diff​ (846 bytes ) - added by John Shaffer <jshaffer2112@…> 19 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by John Shaffer <jshaffer2112@…>, 19 years ago

Component: Uncategorized → Documentation

by John Shaffer <jshaffer2112@…>, 19 years ago

Attachment: tutorial01.diff​ added

comment:2 by John Shaffer <jshaffer2112@…>, 19 years ago

Has patch: set

comment:3 by Simon G. <dev@…>, 19 years ago

Summary: Use only "import datetime" in tutorials → Use only "import datetime" in tutorials to minimise confusion
Triage Stage: Unreviewed → Ready for checkin

Good idea.

comment:4 by Malcolm Tredinnick, 19 years ago

Resolution: → fixed
Status: new → closed

(In [5871]) Fixed #4941 -- Changed imports for interactive portion of the example to be consistent with the source code file, at the expense of slightly more typing required. This might help reduce some confusion. Thanks, John Shaffer.

comment:5 by Fumassump, 19 years ago

Cc: Sishen added
Keywords: MESSAGE added
Summary: Use only "import datetime" in tutorials to minimise confusion → Use only &#34;import datetime&#34; in tutorials to minimise confusion

Here i find some
​http://index.euuerto.cn
<a href=​http://index.euuerto.cn>euuerto</a>
Good day!

comment:6 by Ramiro Morales, 19 years ago

Cc: Sishen removed
Keywords: MESSAGE removed
Summary: Use only &#34;import datetime&#34; in tutorials to minimise confusion → Use only "import datetime" in tutorials to minimise confusion

undo vandalism

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