~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Objects/dictobject.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2222
2222
}
2223
2223
 
2224
2224
PyDoc_STRVAR(dictionary_doc,
2225
 
"dict() -> new empty dictionary.\n"
 
2225
"dict() -> new empty dictionary\n"
2226
2226
"dict(mapping) -> new dictionary initialized from a mapping object's\n"
2227
 
"    (key, value) pairs.\n"
2228
 
"dict(seq) -> new dictionary initialized as if via:\n"
 
2227
"    (key, value) pairs\n"
 
2228
"dict(iterable) -> new dictionary initialized as if via:\n"
2229
2229
"    d = {}\n"
2230
 
"    for k, v in seq:\n"
 
2230
"    for k, v in iterable:\n"
2231
2231
"        d[k] = v\n"
2232
2232
"dict(**kwargs) -> new dictionary initialized with the name=value pairs\n"
2233
2233
"    in the keyword argument list.  For example:  dict(one=1, two=2)");