#1724 closed defect (fixed)
[magic-removal] [patch] Some corrections to tutorial01.txt
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | magic-removal |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Sorry about this Adrian, but my suggestion to move to using str everywhere has backfired slightly. The output of the first tutorial has changed significantly (the thing returned at the Python prompt is the repr() unless you explicitly convert to strings or print it).
The attached patch fixed the results shown in the tutorial to match what happens; I ran through it quickly on the command line to check these, so they should be correct.
I have also fixed up a blunder at the very top: we were saying we were creating a blog app, rather than a poll. Not quite sure how that survived until now.
Attachments (1)
Change History (6)
by , 19 years ago
Attachment: | tutorial01.txt.diff added |
---|
comment:1 by , 19 years ago
By the way, the other tutorials are fine, because it is only in tutorial01.txt that the interactive prompt is shown.
comment:2 by , 19 years ago
The "blog" mention at the top of the tutorial is no blunder. I'm rewriting it to be a blog app rather than a poll app.
comment:3 by , 19 years ago
I think I'll change the default __repr__()
to display the __str__()
within <Poll object: "">
. Thoughts?
comment:4 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fix output in examples.