object as a reserved keyword
Dan Bishop
danb_83 at yahoo.com
Sun Jul 20 11:31:41 EDT 2003
Lawrence Oluyede <raims at dot.com> wrote in message news:<7dokhvgv12fdbha8sun6c6q658cth5uq2c at 4ax.com>...
> On Sun, 20 Jul 2003 11:29:03 +0200, Lawrence Oluyede <raims at dot.com>
> wrote:
>
> >I'd like to avoid oddities like this:
>
> I just noticed that it's the same thing with other builtin types such
> as list, dict and so on... Hope anyone ex[pl]ain me the reason to that.
> Maybe is beyond my views...
I understand his problem.
When I write in other languages and need a meaningless variable name,
I tend to use an abbreviation for the variable's type.
public void foo(String str) {/* ... */}
public void foo(List list) {/* ... */}
As you can see, this convention doesn't carry over very well to
Python.
More information about the Python-list
mailing list