Issue1303595
Created on 2005-09-24 23:06 by collinwinter, last changed 2006-06-10 20:04 by fdrake.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
ref4.tex.patch
|
collinwinter,
2005-09-24 23:06
|
Diff against dist/src/Doc/ref/ref4.tex version 1.38 |
|
|
|
msg48793 - (view) |
Author: Collin Winter (collinwinter) |
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 L. Drake, Jr. (fdrake) |
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.
|
|
| Date |
User |
Action |
Args |
| 2005-09-24 23:06:35 | collinwinter | create | |
|