Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(29)

Delta Between Two Patch Sets: tests/run/ellipsis_T488.pyx

Issue 1582041: T488 - Py3 syntax: Ellipsis ('...')
Left Patch Set: Created 13 years, 9 months ago
Right Patch Set: Improved tests Created 13 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « tests/compile/ellipsis_T488.pyx ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 """ 1 """
2 >>> test() 2 >>> test()
3 """ 3 """
4 def test(): 4 def test():
5 x = ... 5 x = ...
6 assert x is Ellipsis 6 assert x is Ellipsis
7
8 d = {}
9 d[...] = 1
10 assert d[...] == 1
11 del d[...]
12 assert ... not in d
13
14 d[..., ...] = 1
15 assert d[..., ...] == 1
16 assert d[..., Ellipsis] == 1
17 assert (Ellipsis, Ellipsis) in d
18 del d[..., ...]
19 assert (Ellipsis, Ellipsis) not in d
20
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b