summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-06-21 02:49:55 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-06-21 02:49:55 (GMT)
commitd6d010b874a82df889037bdb1cc71032d2155034 (patch)
tree643bda2ce2915c0142dfd240afb36bd5b1141403 /Misc
parent2b13ce831795f6f0304c157a31909ac2ce5d5ccb (diff)
downloadcpython-d6d010b874a82df889037bdb1cc71032d2155034.zip
cpython-d6d010b874a82df889037bdb1cc71032d2155034.tar.gz
cpython-d6d010b874a82df889037bdb1cc71032d2155034.tar.bz2
Teach the UNPACK_SEQUENCE opcode how to tease an iterable object into
giving up the goods. NEEDS DOC CHANGES
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index bfbcc5f..7ca09dd 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -108,6 +108,8 @@ Core
extend() method of lists
'x in y' and 'x not in y' (PySequence_Contains() in C API)
operator.countOf() (PySequence_Count() in C API)
+ right-hand side of assignment statements with multiple targets, such as
+ x, y, z = some_iterable_object_returning_exactly_3_values
- Accessing module attributes is significantly faster (for example,
random.random or os.path or yourPythonModule.yourAttribute).