ofs | hex dump | ascii |
---|
0000 | 03 f3 0d 0a 30 5c fc 55 63 00 00 00 00 00 00 00 00 03 00 00 00 40 00 00 00 73 3f 00 00 00 64 00 | ....0\.Uc............@...s?...d. |
0020 | 00 5a 00 00 69 01 00 65 00 00 64 01 00 36 5a 01 00 65 02 00 64 02 00 84 01 00 5a 03 00 65 04 00 | .Z..i..e..d..6Z..e..d.....Z..e.. |
0040 | 64 03 00 6b 02 00 72 3b 00 65 03 00 64 04 00 65 05 00 83 00 01 01 6e 00 00 64 05 00 53 28 06 00 | d..k..r;.e..d..e......n..d..S(.. |
0060 | 00 00 73 f9 08 00 00 0a 0a 55 6e 70 61 63 6b 20 74 75 70 6c 65 0a 0a 20 20 20 20 3e 3e 3e 20 74 | ..s......Unpack.tuple......>>>.t |
0080 | 20 3d 20 28 31 2c 20 32 2c 20 33 29 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 2c 20 63 20 3d 20 74 | .=.(1,.2,.3).....>>>.a,.b,.c.=.t |
00a0 | 0a 20 20 20 20 3e 3e 3e 20 61 20 3d 3d 20 31 20 61 6e 64 20 62 20 3d 3d 20 32 20 61 6e 64 20 63 | .....>>>.a.==.1.and.b.==.2.and.c |
00c0 | 20 3d 3d 20 33 0a 20 20 20 20 54 72 75 65 0a 0a 55 6e 70 61 63 6b 20 6c 69 73 74 0a 0a 20 20 20 | .==.3.....True..Unpack.list..... |
00e0 | 20 3e 3e 3e 20 6c 20 3d 20 5b 34 2c 20 35 2c 20 36 5d 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 2c | .>>>.l.=.[4,.5,.6].....>>>.a,.b, |
0100 | 20 63 20 3d 20 6c 0a 20 20 20 20 3e 3e 3e 20 61 20 3d 3d 20 34 20 61 6e 64 20 62 20 3d 3d 20 35 | .c.=.l.....>>>.a.==.4.and.b.==.5 |
0120 | 20 61 6e 64 20 63 20 3d 3d 20 36 0a 20 20 20 20 54 72 75 65 0a 0a 55 6e 70 61 63 6b 20 69 6d 70 | .and.c.==.6.....True..Unpack.imp |
0140 | 6c 69 65 64 20 74 75 70 6c 65 0a 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 2c 20 63 20 3d 20 37 2c | lied.tuple......>>>.a,.b,.c.=.7, |
0160 | 20 38 2c 20 39 0a 20 20 20 20 3e 3e 3e 20 61 20 3d 3d 20 37 20 61 6e 64 20 62 20 3d 3d 20 38 20 | .8,.9.....>>>.a.==.7.and.b.==.8. |
0180 | 61 6e 64 20 63 20 3d 3d 20 39 0a 20 20 20 20 54 72 75 65 0a 0a 55 6e 70 61 63 6b 20 73 74 72 69 | and.c.==.9.....True..Unpack.stri |
01a0 | 6e 67 2e 2e 2e 20 66 75 6e 21 0a 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 2c 20 63 20 3d 20 27 6f | ng....fun!......>>>.a,.b,.c.=.'o |
01c0 | 6e 65 27 0a 20 20 20 20 3e 3e 3e 20 61 20 3d 3d 20 27 6f 27 20 61 6e 64 20 62 20 3d 3d 20 27 6e | ne'.....>>>.a.==.'o'.and.b.==.'n |
01e0 | 27 20 61 6e 64 20 63 20 3d 3d 20 27 65 27 0a 20 20 20 20 54 72 75 65 0a 0a 55 6e 70 61 63 6b 20 | '.and.c.==.'e'.....True..Unpack. |
0200 | 67 65 6e 65 72 69 63 20 73 65 71 75 65 6e 63 65 0a 0a 20 20 20 20 3e 3e 3e 20 63 6c 61 73 73 20 | generic.sequence......>>>.class. |
0220 | 53 65 71 3a 0a 20 20 20 20 2e 2e 2e 20 20 20 20 20 64 65 66 20 5f 5f 67 65 74 69 74 65 6d 5f 5f | Seq:.............def.__getitem__ |
0240 | 28 73 65 6c 66 2c 20 69 29 3a 0a 20 20 20 20 2e 2e 2e 20 20 20 20 20 20 20 20 20 69 66 20 69 20 | (self,.i):.................if.i. |
0260 | 3e 3d 20 30 20 61 6e 64 20 69 20 3c 20 33 3a 20 72 65 74 75 72 6e 20 69 0a 20 20 20 20 2e 2e 2e | >=.0.and.i.<.3:.return.i........ |
0280 | 20 20 20 20 20 20 20 20 20 72 61 69 73 65 20 49 6e 64 65 78 45 72 72 6f 72 0a 20 20 20 20 2e 2e | .........raise.IndexError....... |
02a0 | 2e 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 2c 20 63 20 3d 20 53 65 71 28 29 0a 20 20 20 20 3e 3e | ......>>>.a,.b,.c.=.Seq().....>> |
02c0 | 3e 20 61 20 3d 3d 20 30 20 61 6e 64 20 62 20 3d 3d 20 31 20 61 6e 64 20 63 20 3d 3d 20 32 0a 20 | >.a.==.0.and.b.==.1.and.c.==.2.. |
02e0 | 20 20 20 54 72 75 65 0a 0a 53 69 6e 67 6c 65 20 65 6c 65 6d 65 6e 74 20 75 6e 70 61 63 6b 69 6e | ...True..Single.element.unpackin |
0300 | 67 2c 20 77 69 74 68 20 65 78 74 72 61 20 73 79 6e 74 61 78 0a 0a 20 20 20 20 3e 3e 3e 20 73 74 | g,.with.extra.syntax......>>>.st |
0320 | 20 3d 20 28 39 39 2c 29 0a 20 20 20 20 3e 3e 3e 20 73 6c 20 3d 20 5b 31 30 30 5d 0a 20 20 20 20 | .=.(99,).....>>>.sl.=.[100]..... |
0340 | 3e 3e 3e 20 61 2c 20 3d 20 73 74 0a 20 20 20 20 3e 3e 3e 20 61 0a 20 20 20 20 39 39 0a 20 20 20 | >>>.a,.=.st.....>>>.a.....99.... |
0360 | 20 3e 3e 3e 20 62 2c 20 3d 20 73 6c 0a 20 20 20 20 3e 3e 3e 20 62 0a 20 20 20 20 31 30 30 0a 0a | .>>>.b,.=.sl.....>>>.b.....100.. |
0380 | 4e 6f 77 20 66 6f 72 20 73 6f 6d 65 20 66 61 69 6c 75 72 65 73 0a 0a 55 6e 70 61 63 6b 69 6e 67 | Now.for.some.failures..Unpacking |
03a0 | 20 6e 6f 6e 2d 73 65 71 75 65 6e 63 65 0a 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 2c 20 63 20 3d | .non-sequence......>>>.a,.b,.c.= |
03c0 | 20 37 0a 20 20 20 20 54 72 61 63 65 62 61 63 6b 20 28 6d 6f 73 74 20 72 65 63 65 6e 74 20 63 61 | .7.....Traceback.(most.recent.ca |
03e0 | 6c 6c 20 6c 61 73 74 29 3a 0a 20 20 20 20 20 20 2e 2e 2e 0a 20 20 20 20 54 79 70 65 45 72 72 6f | ll.last):...............TypeErro |
0400 | 72 3a 20 27 69 6e 74 27 20 6f 62 6a 65 63 74 20 69 73 20 6e 6f 74 20 69 74 65 72 61 62 6c 65 0a | r:.'int'.object.is.not.iterable. |
0420 | 0a 55 6e 70 61 63 6b 69 6e 67 20 74 75 70 6c 65 20 6f 66 20 77 72 6f 6e 67 20 73 69 7a 65 0a 0a | .Unpacking.tuple.of.wrong.size.. |
0440 | 20 20 20 20 3e 3e 3e 20 61 2c 20 62 20 3d 20 74 0a 20 20 20 20 54 72 61 63 65 62 61 63 6b 20 28 | ....>>>.a,.b.=.t.....Traceback.( |
0460 | 6d 6f 73 74 20 72 65 63 65 6e 74 20 63 61 6c 6c 20 6c 61 73 74 29 3a 0a 20 20 20 20 20 20 2e 2e | most.recent.call.last):......... |
0480 | 2e 0a 20 20 20 20 56 61 6c 75 65 45 72 72 6f 72 3a 20 74 6f 6f 20 6d 61 6e 79 20 76 61 6c 75 65 | ......ValueError:.too.many.value |
04a0 | 73 20 74 6f 20 75 6e 70 61 63 6b 0a 0a 55 6e 70 61 63 6b 69 6e 67 20 74 75 70 6c 65 20 6f 66 20 | s.to.unpack..Unpacking.tuple.of. |
04c0 | 77 72 6f 6e 67 20 73 69 7a 65 0a 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 20 3d 20 6c 0a 20 20 20 | wrong.size......>>>.a,.b.=.l.... |
04e0 | 20 54 72 61 63 65 62 61 63 6b 20 28 6d 6f 73 74 20 72 65 63 65 6e 74 20 63 61 6c 6c 20 6c 61 73 | .Traceback.(most.recent.call.las |
0500 | 74 29 3a 0a 20 20 20 20 20 20 2e 2e 2e 0a 20 20 20 20 56 61 6c 75 65 45 72 72 6f 72 3a 20 74 6f | t):...............ValueError:.to |
0520 | 6f 20 6d 61 6e 79 20 76 61 6c 75 65 73 20 74 6f 20 75 6e 70 61 63 6b 0a 0a 55 6e 70 61 63 6b 69 | o.many.values.to.unpack..Unpacki |
0540 | 6e 67 20 73 65 71 75 65 6e 63 65 20 74 6f 6f 20 73 68 6f 72 74 0a 0a 20 20 20 20 3e 3e 3e 20 61 | ng.sequence.too.short......>>>.a |
0560 | 2c 20 62 2c 20 63 2c 20 64 20 3d 20 53 65 71 28 29 0a 20 20 20 20 54 72 61 63 65 62 61 63 6b 20 | ,.b,.c,.d.=.Seq().....Traceback. |
0580 | 28 6d 6f 73 74 20 72 65 63 65 6e 74 20 63 61 6c 6c 20 6c 61 73 74 29 3a 0a 20 20 20 20 20 20 2e | (most.recent.call.last):........ |
05a0 | 2e 2e 0a 20 20 20 20 56 61 6c 75 65 45 72 72 6f 72 3a 20 6e 65 65 64 20 6d 6f 72 65 20 74 68 61 | .......ValueError:.need.more.tha |
05c0 | 6e 20 33 20 76 61 6c 75 65 73 20 74 6f 20 75 6e 70 61 63 6b 0a 0a 55 6e 70 61 63 6b 69 6e 67 20 | n.3.values.to.unpack..Unpacking. |
05e0 | 73 65 71 75 65 6e 63 65 20 74 6f 6f 20 6c 6f 6e 67 0a 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 20 | sequence.too.long......>>>.a,.b. |
0600 | 3d 20 53 65 71 28 29 0a 20 20 20 20 54 72 61 63 65 62 61 63 6b 20 28 6d 6f 73 74 20 72 65 63 65 | =.Seq().....Traceback.(most.rece |
0620 | 6e 74 20 63 61 6c 6c 20 6c 61 73 74 29 3a 0a 20 20 20 20 20 20 2e 2e 2e 0a 20 20 20 20 56 61 6c | nt.call.last):...............Val |
0640 | 75 65 45 72 72 6f 72 3a 20 74 6f 6f 20 6d 61 6e 79 20 76 61 6c 75 65 73 20 74 6f 20 75 6e 70 61 | ueError:.too.many.values.to.unpa |
0660 | 63 6b 0a 0a 55 6e 70 61 63 6b 69 6e 67 20 61 20 73 65 71 75 65 6e 63 65 20 77 68 65 72 65 20 74 | ck..Unpacking.a.sequence.where.t |
0680 | 68 65 20 74 65 73 74 20 66 6f 72 20 74 6f 6f 20 6c 6f 6e 67 20 72 61 69 73 65 73 20 61 20 64 69 | he.test.for.too.long.raises.a.di |
06a0 | 66 66 65 72 65 6e 74 20 6b 69 6e 64 20 6f 66 0a 65 72 72 6f 72 0a 0a 20 20 20 20 3e 3e 3e 20 63 | fferent.kind.of.error......>>>.c |
06c0 | 6c 61 73 73 20 42 6f 7a 6f 45 72 72 6f 72 28 45 78 63 65 70 74 69 6f 6e 29 3a 0a 20 20 20 20 2e | lass.BozoError(Exception):...... |
06e0 | 2e 2e 20 20 20 20 20 70 61 73 73 0a 20 20 20 20 2e 2e 2e 0a 20 20 20 20 3e 3e 3e 20 63 6c 61 73 | .......pass.............>>>.clas |
0700 | 73 20 42 61 64 53 65 71 3a 0a 20 20 20 20 2e 2e 2e 20 20 20 20 20 64 65 66 20 5f 5f 67 65 74 69 | s.BadSeq:.............def.__geti |
0720 | 74 65 6d 5f 5f 28 73 65 6c 66 2c 20 69 29 3a 0a 20 20 20 20 2e 2e 2e 20 20 20 20 20 20 20 20 20 | tem__(self,.i):................. |
0740 | 69 66 20 69 20 3e 3d 20 30 20 61 6e 64 20 69 20 3c 20 33 3a 0a 20 20 20 20 2e 2e 2e 20 20 20 20 | if.i.>=.0.and.i.<.3:............ |
0760 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 0a 20 20 20 20 2e 2e 2e 20 20 20 20 20 20 20 | .........return.i............... |
0780 | 20 20 65 6c 69 66 20 69 20 3d 3d 20 33 3a 0a 20 20 20 20 2e 2e 2e 20 20 20 20 20 20 20 20 20 20 | ..elif.i.==.3:.................. |
07a0 | 20 20 20 72 61 69 73 65 20 42 6f 7a 6f 45 72 72 6f 72 0a 20 20 20 20 2e 2e 2e 20 20 20 20 20 20 | ...raise.BozoError.............. |
07c0 | 20 20 20 65 6c 73 65 3a 0a 20 20 20 20 2e 2e 2e 20 20 20 20 20 20 20 20 20 20 20 20 20 72 61 69 | ...else:.....................rai |
07e0 | 73 65 20 49 6e 64 65 78 45 72 72 6f 72 0a 20 20 20 20 2e 2e 2e 0a 0a 54 72 69 67 67 65 72 20 63 | se.IndexError..........Trigger.c |
0800 | 6f 64 65 20 77 68 69 6c 65 20 6e 6f 74 20 65 78 70 65 63 74 69 6e 67 20 61 6e 20 49 6e 64 65 78 | ode.while.not.expecting.an.Index |
0820 | 45 72 72 6f 72 20 28 75 6e 70 61 63 6b 20 73 65 71 75 65 6e 63 65 20 74 6f 6f 20 6c 6f 6e 67 2c | Error.(unpack.sequence.too.long, |
0840 | 20 77 72 6f 6e 67 0a 65 72 72 6f 72 29 0a 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 2c 20 63 2c 20 | .wrong.error)......>>>.a,.b,.c,. |
0860 | 64 2c 20 65 20 3d 20 42 61 64 53 65 71 28 29 0a 20 20 20 20 54 72 61 63 65 62 61 63 6b 20 28 6d | d,.e.=.BadSeq().....Traceback.(m |
0880 | 6f 73 74 20 72 65 63 65 6e 74 20 63 61 6c 6c 20 6c 61 73 74 29 3a 0a 20 20 20 20 20 20 2e 2e 2e | ost.recent.call.last):.......... |
08a0 | 0a 20 20 20 20 42 6f 7a 6f 45 72 72 6f 72 0a 0a 54 72 69 67 67 65 72 20 63 6f 64 65 20 77 68 69 | .....BozoError..Trigger.code.whi |
08c0 | 6c 65 20 65 78 70 65 63 74 69 6e 67 20 61 6e 20 49 6e 64 65 78 45 72 72 6f 72 20 28 75 6e 70 61 | le.expecting.an.IndexError.(unpa |
08e0 | 63 6b 20 73 65 71 75 65 6e 63 65 20 74 6f 6f 20 73 68 6f 72 74 2c 20 77 72 6f 6e 67 0a 65 72 72 | ck.sequence.too.short,.wrong.err |
0900 | 6f 72 29 0a 0a 20 20 20 20 3e 3e 3e 20 61 2c 20 62 2c 20 63 20 3d 20 42 61 64 53 65 71 28 29 0a | or)......>>>.a,.b,.c.=.BadSeq(). |
0920 | 20 20 20 20 54 72 61 63 65 62 61 63 6b 20 28 6d 6f 73 74 20 72 65 63 65 6e 74 20 63 61 6c 6c 20 | ....Traceback.(most.recent.call. |
0940 | 6c 61 73 74 29 3a 0a 20 20 20 20 20 20 2e 2e 2e 0a 20 20 20 20 42 6f 7a 6f 45 72 72 6f 72 0a 0a | last):...............BozoError.. |
0960 | 74 08 00 00 00 64 6f 63 74 65 73 74 73 63 01 00 00 00 03 00 00 00 03 00 00 00 43 00 00 00 73 34 | t....doctestsc............C...s4 |
0980 | 00 00 00 64 01 00 64 02 00 6c 00 00 6d 01 00 7d 01 00 01 64 01 00 64 03 00 6c 00 00 6d 02 00 7d | ...d..d..l..m..}...d..d..l..m..} |
09a0 | 02 00 01 7c 01 00 6a 03 00 7c 02 00 7c 00 00 83 02 00 01 64 00 00 53 28 04 00 00 00 4e 69 ff ff | ...|..j..|..|......d..S(....Ni.. |
09c0 | ff ff 28 01 00 00 00 74 0c 00 00 00 74 65 73 74 5f 73 75 70 70 6f 72 74 28 01 00 00 00 74 0b 00 | ..(....t....test_support(....t.. |
09e0 | 00 00 74 65 73 74 5f 75 6e 70 61 63 6b 28 04 00 00 00 74 04 00 00 00 74 65 73 74 52 01 00 00 00 | ..test_unpack(....t....testR.... |
0a00 | 52 02 00 00 00 74 0b 00 00 00 72 75 6e 5f 64 6f 63 74 65 73 74 28 03 00 00 00 74 07 00 00 00 76 | R....t....run_doctest(....t....v |
0a20 | 65 72 62 6f 73 65 52 01 00 00 00 52 02 00 00 00 28 00 00 00 00 28 00 00 00 00 73 57 00 00 00 2f | erboseR....R....(....(....sW.../ |
0a40 | 62 75 69 6c 64 62 6f 74 2f 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 | buildbot/tmp/buildhost/install/p |
0a60 | 72 65 62 75 69 6c 74 2f 6c 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 | rebuilt/linux-x86_64/lib/python2 |
0a80 | 2e 37 2f 74 65 73 74 2f 74 65 73 74 5f 75 6e 70 61 63 6b 2e 70 79 74 09 00 00 00 74 65 73 74 5f | .7/test/test_unpack.pyt....test_ |
0aa0 | 6d 61 69 6e 7c 00 00 00 73 06 00 00 00 00 01 10 01 10 01 74 08 00 00 00 5f 5f 6d 61 69 6e 5f 5f | main|...s..........t....__main__ |
0ac0 | 52 05 00 00 00 4e 28 06 00 00 00 52 00 00 00 00 74 08 00 00 00 5f 5f 74 65 73 74 5f 5f 74 05 00 | R....N(....R....t....__test__t.. |
0ae0 | 00 00 46 61 6c 73 65 52 06 00 00 00 74 08 00 00 00 5f 5f 6e 61 6d 65 5f 5f 74 04 00 00 00 54 72 | ..FalseR....t....__name__t....Tr |
0b00 | 75 65 28 00 00 00 00 28 00 00 00 00 28 00 00 00 00 73 57 00 00 00 2f 62 75 69 6c 64 62 6f 74 2f | ue(....(....(....sW.../buildbot/ |
0b20 | 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 69 6c 74 2f 6c | tmp/buildhost/install/prebuilt/l |
0b40 | 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 74 65 73 74 2f 74 | inux-x86_64/lib/python2.7/test/t |
0b60 | 65 73 74 5f 75 6e 70 61 63 6b 2e 70 79 74 08 00 00 00 3c 6d 6f 64 75 6c 65 3e 78 00 00 00 73 08 | est_unpack.pyt....<module>x...s. |
0b80 | 00 00 00 06 02 0d 02 0c 05 0c 01 | ........... |