A little present.

Emile van Sebille emile at fenx.com
Tue Feb 15 09:25:05 EST 2000


In the current context, class Hole: simply provides
a unique identifier similar to None to test.

More generally, I use empty classes as attribute containers,
generally to hold retrieved ODBC data.  This allows me to
parse the SQL between SELECT and FROM, and use the field
names as instance attributes.

HTH,

Emile van Sebille
emile at fenx.com
-------------------


----- Original Message -----
From: Warren Postma <embed at geocities.com>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Tuesday, February 15, 2000 5:56 AM
Subject: Re: A little present.


> > Here's one:
> >
> > class Hole:
> >     pass
>
>
> Can anyone give me a useful example of WHY you'd want to do this, or
is this
> just more weird example of Functional Code-Fu? { If do right, no can
> defend. }
>
> Warren
>
>
> --
> http://www.python.org/mailman/listinfo/python-list
>
>







More information about the Python-list mailing list