Skip to content

Commit

Permalink
add a comment about the ellipsis trick.
Browse files Browse the repository at this point in the history
  • Loading branch information
janwijbrand authored Sep 28, 2016
1 parent a6c1c75 commit 56bd1d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/grokcore/content/tests/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
>>> bag['skull'] = skull
>>> skull.__parent__
<grokcore.content.tests.test_container.BoneBag object at 0x...>
Note how we prefix the print output in order to have the ellipsis work as
the output for the __name__ is slightly different between python 2 and
python 3.
>>> 'skull name';skull.__name__
'skull name'...'skull'
Expand Down

0 comments on commit 56bd1d3

Please sign in to comment.