Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Am closing this one because the API doesn't mesh well with the existing
extensions for multiple attributes. If those weren't already present,
there might be a case for adding this extension.
--
resolution: -
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
priority: - low
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4124
___
___
Miki Tebeka miki.teb...@gmail.com added the comment:
Can't we find a faster dog for lambda :)
Anyway, I agree that we need to see more demand for that before going on.
Let's keep this ticket open and see if someone else comes along.
___
Python tracker
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
That makes sense. You've found two object models that have optional
attributes and have had some need to extract them with a default.
My remaining concern is about adding complexity for functionality that
is not often
Miki Tebeka miki.teb...@gmail.com added the comment:
Hmmm, too much time has passed and my 1bit memory has overflowed since :)
IIRC it has to do with the fact that not all nodes in BeautifulSoup has a
name attribute. I wanted to count how may tr there were, so
len(filter(lambda n: n == tr,
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Will take a look at it next week.
--
assignee: - rhettinger
nosy: +rhettinger
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4124
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Am curious about your use cases. ISTM that in every case I've every
used either function, I've always known that the attribute or item is
going to be there. For instance, the original motivating use cases were
to support the