Skip to content

Commit bee3253

Browse files
committed
Merged revisions 63361-63373,63375,63377-63380 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r63361 | alexandre.vassalotti | 2008-05-16 03:14:08 -0400 (Fri, 16 May 2008) | 2 lines Rename the test file of reprlib. ........ r63364 | georg.brandl | 2008-05-16 05:34:48 -0400 (Fri, 16 May 2008) | 2 lines Make generator repr consistent with function and code object repr. ........ r63365 | georg.brandl | 2008-05-16 05:47:29 -0400 (Fri, 16 May 2008) | 2 lines #2869: remove parameter from signature. ........ r63366 | christian.heimes | 2008-05-16 06:23:31 -0400 (Fri, 16 May 2008) | 1 line Fixed #2870: cmathmodule.c compile error ........ r63367 | christian.heimes | 2008-05-16 07:28:56 -0400 (Fri, 16 May 2008) | 1 line Following Amaury's advice ........ r63368 | georg.brandl | 2008-05-16 09:10:15 -0400 (Fri, 16 May 2008) | 2 lines #2890: support os.O_ASYNC and fcntl.FASYNC. ........ r63369 | georg.brandl | 2008-05-16 09:18:50 -0400 (Fri, 16 May 2008) | 2 lines #2845: fix copy2's docs. ........ r63370 | georg.brandl | 2008-05-16 09:24:29 -0400 (Fri, 16 May 2008) | 2 lines Don't allow keyword arguments to reversed(). ........ r63373 | georg.brandl | 2008-05-16 09:41:26 -0400 (Fri, 16 May 2008) | 2 lines Document O_ASYNC addition. ........ r63380 | georg.brandl | 2008-05-16 13:33:13 -0400 (Fri, 16 May 2008) | 2 lines Fix reprlib docs. ........
1 parent d8b690f commit bee3253

File tree

15 files changed

+32
-13
lines changed

15 files changed

+32
-13
lines changed

Doc/library/calendar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ it's the base calendar for all computations.
3535

3636
:class:`Calendar` instances have the following methods:
3737

38-
.. method:: iterweekdays(weekday)
38+
.. method:: iterweekdays()
3939

4040
Return an iterator for the week day numbers that will be used for one
4141
week. The first value from the iterator will be the same as the value of

Doc/library/datatypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ The following modules are documented in this chapter:
3131
types.rst
3232
copy.rst
3333
pprint.rst
34-
repr.rst
34+
reprlib.rst

Doc/library/os.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,8 @@ platforms. For descriptions of their availability and use, consult
613613
combined using the bitwise OR operator ``|``. Availability: Windows.
614614

615615

616-
.. data:: O_DIRECT
616+
.. data:: O_ASYNC
617+
O_DIRECT
617618
O_DIRECTORY
618619
O_NOFOLLOW
619620
O_NOATIME

Doc/library/reprlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
21
:mod:`reprlib` --- Alternate :func:`repr` implementation
3-
=====================================================
2+
========================================================
3+
44

55
.. module:: reprlib
66
:synopsis: Alternate repr() implementation with size limits.

Doc/library/shutil.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ copying and removal. For operations on individual files, see also the
7373

7474
.. function:: copy2(src, dst)
7575

76-
Similar to :func:`copy`, but last access time and last modification time are
77-
copied as well. This is similar to the Unix command :program:`cp -p`.
76+
Similar to :func:`copy`, but metadata is copied as well -- in fact, this is just
77+
:func:`copy` followed by :func:`copystat`. This is similar to the
78+
Unix command :program:`cp -p`.
7879

7980

8081
.. function:: copytree(src, dst[, symlinks])

Lib/test/test_enumerate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ def __len__(self):
138138
for data in 'abc', range(5), tuple(enumerate('abc')), A(), range(1,17,5):
139139
self.assertEqual(list(data)[::-1], list(reversed(data)))
140140
self.assertRaises(TypeError, reversed, {})
141+
# don't allow keyword arguments
142+
self.assertRaises(TypeError, reversed, [], a=1)
141143

142144
def test_range_optimization(self):
143145
x = range(1)

Lib/test/test_generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@
927927
>>> g.__name__
928928
'f'
929929
>>> repr(g) # doctest: +ELLIPSIS
930-
'<f generator object at ...>'
930+
'<generator object f at ...>'
931931
"""
932932

933933
# conjoin is a simple backtracking generator, named in honor of Icon's

Lib/test/test_genexps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
Verify that parenthesis are required when used as a keyword argument value
9393
9494
>>> dict(a = (i for i in range(10))) #doctest: +ELLIPSIS
95-
{'a': <<genexpr> generator object at ...>}
95+
{'a': <generator object <genexpr> at ...>}
9696
9797
Verify early binding for the outermost for-expression
9898

Misc/NEWS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ Core and Builtins
3939
Extension Modules
4040
-----------------
4141

42-
- Support for Windows9x has been removed from the winsound module.
42+
- Support os.O_ASYNC and fcntl.FASYNC if the constants exist on the platform.
43+
44+
- Support for Windows 9x has been removed from the winsound module.
45+
46+
- Fixed #2870: cmathmodule.c compile error
4347

4448
Library
4549
-------

0 commit comments

Comments
 (0)