Message175554
| Author |
fossilet |
| Recipients |
alexandre.vassalotti, brett.cannon, ezio.melotti, fossilet, mark.dickinson, metal |
| Date |
2012年11月14日.09:00:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1352883610.74.0.336868666259.issue2333@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think metal means that the different ways set is repr'd in 2.7 and 3.
In 2.7:
In [9]: a = {x for x in 'abracadabra' if x not in 'abc'}
In [10]: repr(a)
Out[10]: "set(['r', 'd'])"
In 3.2:
In [6]: a = {x for x in 'abracadabra' if x not in 'abc'}
In [7]: repr(a)
Out[7]: "{'r', 'd'}"
We were saying not changing __repr__ in #2335. |
|