#15812: SortedDict.update() should accept tuples or generators
---------------------------------------+----------------------------
Reporter: slinkp | Owner: nobody
Type: New feature | Status: new
Milestone: | Component: Core (Other)
Version: SVN | Severity: Normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 1
Needs documentation: 1 | Needs tests: 0
Patch needs improvement: 0 |
---------------------------------------+----------------------------
Comment (by lrekucki):
Sorry for the noise, but:
{{{ getattr(dict_, 'iteritems', None) is not None }}}
strikes me as far less readable then:
{{{ hasattr(dict_, 'iteritems') }}}
--
Ticket URL: <http://code.djangoproject.com/ticket/15812#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.