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: Update documentation for __builtins__
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: fdrake Nosy List: collinwinter, fdrake
Priority: normal Keywords: patch

Created on 2005-09-24 23:06 by collinwinter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ref4.tex.patch collinwinter, 2005-09-24 23:06 Diff against dist/src/Doc/ref/ref4.tex version 1.38
Messages (2)
msg48793 - (view) Author: Collin Winter (collinwinter) * (Python committer) Date: 2005-09-24 23:06
If applied, this patch would explicitly tell users that
they should be using __builtin__ to override built-in
functions, rather than __builtins__. The patch would
also add documentation clairifying that __builtins__ is
a module when in __main__ and a dictionary anywhere else.

This diff was made against dist/src/Doc/ref/ref4.tex,
version 1.38 from CVS.
msg48794 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2006-06-10 20:04
Logged In: YES 
user_id=3066

Interestingly, your patch gets the sense which object is
bound to __builtins__ in what context reversed.

I've modified the patch a bit to correct that and make the
warning about direct use of __builtins__ visually stronger
(at  least in the HTML format).

Committed to the trunk as revision 46826, and to the Python
2.4.x maintenance branch as revision 46828.
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42412
2005-09-24 23:06:35collinwintercreate