Code

Opened 7 years ago

Closed 7 years ago

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

Download all attachments as: .zip

Change History (7)

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

  • Component changed from Uncategorized to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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

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

  • Has patch set

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

  • Summary changed from Use only "import datetime" in tutorials to Use only "import datetime" in tutorials to minimise confusion
  • Triage Stage changed from Unreviewed to Ready for checkin

Good idea.

comment:4 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to 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 Changed 7 years ago by Fumassump

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

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

undo vandalism

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.