Opened 9 years ago

Closed 9 years ago

Last modified 9 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: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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@…> 9 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 9 years ago by John Shaffer <jshaffer2112@…>

Component: UncategorizedDocumentation

Changed 9 years ago by John Shaffer <jshaffer2112@…>

Attachment: tutorial01.diff added

comment:2 Changed 9 years ago by John Shaffer <jshaffer2112@…>

Has patch: set

comment:3 Changed 9 years ago by Simon G. <dev@…>

Summary: Use only "import datetime" in tutorialsUse only "import datetime" in tutorials to minimise confusion
Triage Stage: UnreviewedReady for checkin

Good idea.

comment:4 Changed 9 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(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 Changed 9 years ago by Fumassump

Cc: Sishen added
Keywords: MESSAGE added
Summary: Use only "import datetime" in tutorials to minimise confusionUse 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 Changed 9 years ago by Ramiro Morales

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

undo vandalism

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