This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: NameError in the example of sets module
Type: Stage:
Components: Documentation Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: quiver, rhettinger
Priority: normal Keywords: patch

Created on 2003-11-16 03:18 by quiver, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
libsets.tex.patch quiver, 2003-11-16 03:18
Messages (1)
msg44892 - (view) Author: George Yoshida (quiver) (Python committer) Date: 2003-11-16 03:18
I've just tried Raymon's new and improved sets and 
tested examples of sets module and found an error 
in the docs.

www.python.org/doc/2.3.2/lib/set-example.html

  for group in [engineers, programmers, 
management, employees]:
should be:
  for group in [engineers, programmers, managers, 
employees]:

Since "management" is not defined before, it raises 
an NameErrror.
History
Date User Action Args
2022-04-11 14:56:01adminsetgithub: 39555
2003-11-16 03:18:16quivercreate