Back to index

python3.2  3.2.2
Public Member Functions
test.test_peepholer.TestBuglets Class Reference

List of all members.

Public Member Functions

def test_bug_11510

Detailed Description

Definition at line 288 of file

Member Function Documentation

Definition at line 290 of file

00291     def test_bug_11510(self):
00292         # folded constant set optimization was commingled with the tuple
00293         # unpacking optimization which would fail if the set had duplicate
00294         # elements so that the set length was unexpected
00295         def f():
00296             x, y = {1, 1}
00297             return x, y
00298         with self.assertRaises(ValueError):
00299             f()

Here is the call graph for this function:

The documentation for this class was generated from the following file: