[Python-bugs-list] [ python-Bugs-509281 ] cheeseshop example shows wrong output

noreply@sourceforge.net noreply@sourceforge.net
Tue, 29 Jan 2002 06:58:17 -0800


Bugs item #509281, was opened at 2002-01-27 12:24
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=509281&group_id=5470

Category: Documentation
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Ed James-Beckham (edj)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: cheeseshop example shows wrong output

Initial Comment:
  The cheeseshop example in 4.7.2 shows the output to 
be:

-- Do you have any Limburger ?
-- I'm sorry, we're all out of Limburger
It's very runny, sir.
It's really very, VERY runny, sir.
----------------------------------------
client : John Cleese
shopkeeper : Michael Palin
sketch : Cheese Shop Sketch

when in fact, from the IDLE, one gets:

-- Do you have any Limburger ?
-- I'm sorry, we're all out of Limburger
It's very runny, sir.
It's really very, VERY runny, sir.
----------------------------------------
shopkeeper : Michael Palin
sketch : Cheese Shop Sketch
client : John Cleese

Experimenting, it seems that the first keyword 
argument ('client') always appears _last_ in the 
output.

If this is, in fact, a bug in Python, please change 
the category appropriately and pass it on.

  Thanks,
  -edj

----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-01-29 06:58

Message:
Logged In: YES 
user_id=3066

Fixed in Doc/tut/tut.tex revisions 1.158 and 1.156.4.1.2.1
(???).
Sorted the list of keys before output, and added a note
about what we get if we skip the sort.


----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2002-01-27 12:36

Message:
Logged In: YES 
user_id=31435

The order of entires in dict.keys() is not defined, and can 
change even across program runs.  The docs could explain 
that, or sort dict.keys() before printing.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=509281&group_id=5470