commit | ee936a21308679654b2d458166ff094ed735fef7 | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Sat Jan 09 23:35:54 2010 +0000 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Sat Jan 09 23:35:54 2010 +0000 |
tree | 612cd109e8ede4080f58f30ece3212d8e0f996d2 | |
parent | e36561352895170f28f77f0b4ec4292e35d1cc01 [diff] [blame] |
Issue #2335: Backport set literals syntax from Python 3.x.
diff --git a/Lib/compiler/pyassem.py b/Lib/compiler/pyassem.py index be0255d..88510de 100644 --- a/Lib/compiler/pyassem.py +++ b/Lib/compiler/pyassem.py
@@ -734,6 +734,8 @@ return -count+1 def BUILD_LIST(self, count): return -count+1 + def BUILD_SET(self, count): + return -count+1 def CALL_FUNCTION(self, argc): hi, lo = divmod(argc, 256) return -(lo + hi * 2)