Identifying names that hide builtins
skip at mojam.com
skip at mojam.com
Thu Sep 30 00:21:06 EDT 1999
Spam detection software, running on the system "albatross.python.org", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: The topic of what sorts of things should be warned about by
the Python byte code compiler or programs like PyLint has floated around
a couple lists recently. One common mistake seems to be that people inadvertently
hide builtin names like str or list with local variables. These hidings are
generally innocuous, but can be confusing when encountered, especially by
new Python programmers. Hiding builtin names is easy to do, since many builtin
names are names people would naturally pick for temporary variables ("str"
as a temp string, "list" as a temp list, etc). "list" deserves special consideration
because as a builtin function, it is very new, so there will be many occurrences
of "list" as a local variable that predate its use as a builtin function.
[...]
Content analysis details: (5.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
1.6 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address
[12.75.164.43 listed in dnsbl.sorbs.net]
0.5 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL
[12.75.164.43 listed in zen.spamhaus.org]
2.0 FH_DATE_IS_19XX The date is not 19xx.
1.9 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date
The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam. If you wish to view
it, it may be safer to save it to a file and open it with an editor.
-------------- next part --------------
An embedded message was scrubbed...
From: <skip at mojam.com>
Subject: Identifying names that hide builtins
Date: Wed, 29 Sep 1999 23:21:06 -0500
Size: 3670
URL: <http://mail.python.org/pipermail/python-list/attachments/19990929/b5ff0ae4/attachment.mht>
More information about the Python-list
mailing list