On 2007-06-20, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2007-06-20, Alex Martelli <[EMAIL PROTECTED]> wrote:
>> Neil Cerutti <[EMAIL PROTECTED]> wrote:
>>> In C++ they are used most often for factory functions, since
>>> they conveniently have access to the class's private members,
>>> and don't want or need an existing instance. Python seems to
>>> have adopted this use-case (ConfigParser, for example), but
>>> without a need for it (code organization?).
>>
>> What staticmethod does ConfigParser have?  Can't recall one
>> offhand.
>
> I misremembered which module I had recently seen it in:

A quick search of the 2.5 Lib directory had the following
results. Only sqlite3 uses the staticmethod built-in function for
a family of conversion functions.

The other references to staticmethod were either tests of the
involving them, or introspection facilities that had to deal with
them.

-- 
Neil Cerutti
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to