Message161221
| Author |
terry.reedy |
| Recipients |
docs@python, eric.araujo, ezio.melotti, georg.brandl, terry.reedy |
| Date |
2012年05月20日.18:14:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337537641.73.0.590803139803.issue14865@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This is a somewhat recent reversion.
3.1.5 (a month ago)
http://docs.python.org/release/3.1.5/library/doctest.html#module-doctest
>>> print(list(range(20))) #doctest: +NORMALIZE_WHITESPACE
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
3.2.0
http://docs.python.org/release/3.2/library/doctest.html#module-doctest
>>> print(list(range(20)))
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
In Py 2, the same change happened between 2.7.2, released June 2011 after 3.2.0, and 2.7.3. So some change was made for 3.2.0 but not ported to 2.7 until several months later, and never ported to 3.1 (or 2.6). I hope this helps. |
|