object as a reserved keyword

Mel Wilson mwilson at the-wire.com
Sun Jul 20 19:07:50 CEST 2003

In article <bfe673$9mq$1 at panix2.panix.com>, aahz at pythoncraft.com (Aahz) wrote:
>In article <vtnkhvoqcet2bgmeidae1st46m7q9sr1p3 at 4ax.com>,
>Lawrence Oluyede  <raims at dot.com> wrote:
>>Does it worth to make "object" keyword a reserved one?
>Maybe.  Python strives for a minimal syntax.  Many identifiers that
>would be keywords in other languages are simply names in the builtin

   Plus it's not impossible that somebody could export a
name in the set of standard names from a module or a
class and accomplish something useful.  I'm having trouble
finding a convincing example, but consider

        class Debate:
            def agree (self, *args):
                pass    # or some real code

            def object (self, *args):
                pass    # usw.

        Regards.        Mel.

More information about the Python-list mailing list