Commit graph

43147 commits

Author SHA1 Message Date
Raymond Hettinger
f45abc97bf Add method to OrderedDict for repositioning keys to the ends. 2010-09-06 21:26:09 +00:00
Florent Xicluna
7b2a7710ef typo 2010-09-06 20:27:55 +00:00
Florent Xicluna
feb2ee46bc typo 2010-09-06 20:27:15 +00:00
Raymond Hettinger
09e4ebb6cd Fix markup nits 2010-09-06 19:55:51 +00:00
Brian Curtin
13a0db5ddb Fix some errors that #7566 introduced on non-Windows platforms due to
an ImportError. Rearranged the import, faked out the implementation when
the import fails, and reorganized a test that depends on Win32 behavior.
2010-09-06 19:46:17 +00:00
Antoine Pitrou
4bc12ef47d Issue #9754: Similarly to assertRaises and assertRaisesRegexp, unittest
test cases now also have assertWarns and assertWarnsRegexp methods to
check that a given warning type was triggered by the code under test.
2010-09-06 19:25:46 +00:00
Antoine Pitrou
972ee13e03 Issue #5506: BytesIO objects now have a getbuffer() method exporting a
view of their contents without duplicating them.  The view is both readable
and writable.
2010-09-06 18:48:21 +00:00
Brian Curtin
6285774f06 Implement #7566 - os.path.sameopenfile for Windows.
This uses the GetFileInformationByHandle function to return a tuple of values
to identify a file, then ntpath.sameopenfile compares file tuples, which
is exposed as os.path.sameopenfile.
2010-09-06 17:07:27 +00:00
Brian Curtin
5c997b8d90 Fix #8956. ValueError message was only mentioning one signal.
Rather than list out the three signals (or more over time), the message was
made less specific but still descriptive.
2010-09-06 16:29:29 +00:00
Brian Curtin
c734b312cb Clean up the fix to #9324 with some of the suggestions raised on python-dev
in response to the original checkin.

Move the validation from the original loop into a switch statement,
and adjust a platform check in the tests.
2010-09-06 16:04:10 +00:00
Antoine Pitrou
92f87f7c49 Add an option to choose the IO module under test (allows to bench
e.g. the pure Python implementation in _pyio).
2010-09-06 12:36:55 +00:00
Gregory P. Smith
13b55291ac hashlib has two new constant attributes: algorithms_guaranteed and
algorithms_avaiable that respectively list the names of hash algorithms
guaranteed to exist in all Python implementations and the names of hash
algorithms available in the current process.

Renames the attribute new in 3.2a0 'algorithms' to 'algorithms_guaranteed'.
2010-09-06 08:30:23 +00:00
Georg Brandl
c86adb4c5c #9780: both { and } are not valid fill characters. 2010-09-06 06:49:07 +00:00
Georg Brandl
9e75cad234 Remove redundant word. 2010-09-06 06:45:47 +00:00
Éric Araujo
716ac385d9 Revert accidental commit, apologies for the noise 2010-09-06 01:31:11 +00:00
Raymond Hettinger
db9044e065 Fix nits 2010-09-06 01:29:23 +00:00
Éric Araujo
f63a6fc24e Update 2010-09-06 01:27:06 +00:00
Raymond Hettinger
92ba2868b6 More updates to whatsnew3.2 2010-09-06 01:16:46 +00:00
Benjamin Peterson
6db773057e link to docs 2010-09-06 00:32:12 +00:00
Raymond Hettinger
7fefaffcc2 Clean-up example of using fileinput as a context manager. 2010-09-05 23:50:32 +00:00
Raymond Hettinger
d5825ccd40 Take advantage of the frozenset constant optimization. 2010-09-05 23:15:06 +00:00
Antoine Pitrou
0d739d7047 Issue #9293: I/O streams now raise io.UnsupportedOperation when an
unsupported operation is attempted (for example, writing to a file open
only for reading).
2010-09-05 23:01:12 +00:00
Georg Brandl
bad092556e Post-release update. 2010-09-05 21:29:17 +00:00
Georg Brandl
123e58659d Re-tag 3.2a2. 2010-09-05 19:01:40 +00:00
Éric Araujo
1138eba3df Fix accidental suppression in r84537 2010-09-05 18:59:49 +00:00
Georg Brandl
36d551a317 Remove tag. 2010-09-05 18:58:42 +00:00
Georg Brandl
44a6a666a3 Tagging release 3.2a2. 2010-09-05 18:48:14 +00:00
Éric Araujo
23eae8646c Make naming consistent 2010-09-05 18:43:07 +00:00
Ronald Oussoren
2decf22b95 Fix for issue9662, patch by Łukasz Langa in issue5504. 2010-09-05 18:25:59 +00:00
Éric Araujo
713f2aa569 Fix amk’s tracker name 2010-09-05 18:21:46 +00:00
Georg Brandl
65ce6ada7f Fix reST in NEWS, and remove NEWS.help (all committers should now know reST anyway, and for those who do not, there is Documenting Python.) 2010-09-05 17:32:31 +00:00
Éric Araujo
4234ad4266 Fix typos and wording in what’s new 3.2.
- The entry about shutil.copytree is just a revert of r84524 which
looks like an unfinished edition.
- The use of gender-neutral language (s/his/their/) removes the
implicit assumption that programmer == male (change agreed by Antoine).
- Other changes should be uncontroversial fixes.

I haven’t rewrapped under 80 lines to keep the diffs readable; I’ll
rewrap later.
2010-09-05 17:32:25 +00:00
Georg Brandl
1f94cd0c7a #9776: fix some spacing. 2010-09-05 17:09:18 +00:00
Georg Brandl
a9b51d2a0e #9747: fix copy-paste error in getresgid() doc. 2010-09-05 17:07:12 +00:00
Georg Brandl
649971e63b Rewrap. 2010-09-05 17:06:50 +00:00
Georg Brandl
da0a2117aa Rewrap and consistency fixes. 2010-09-05 11:28:33 +00:00
Raymond Hettinger
d881f31693 Fill-in sqlite3 stubs 2010-09-05 08:54:32 +00:00
Raymond Hettinger
bcbd69666b Add example of ftplib's new context manager. 2010-09-05 08:46:36 +00:00
Raymond Hettinger
ef2335ca08 Add PEP 391 to whatsnew 2010-09-05 08:35:38 +00:00
Georg Brandl
58a7b46075 Bump to 3.2a2. 2010-09-05 08:30:40 +00:00
Georg Brandl
bef3db2368 Update pydoc topics. 2010-09-05 08:28:41 +00:00
Raymond Hettinger
6e8fe9725a More updates to whatsnew. 2010-09-05 06:13:47 +00:00
Raymond Hettinger
4c7c9af542 Clean-up functools.total_ordering(). 2010-09-05 05:57:35 +00:00
Raymond Hettinger
bb734c6707 Add an example 2010-09-05 05:56:44 +00:00
Raymond Hettinger
db6b62e756 Inline cmp_lt(). 2010-09-05 05:26:10 +00:00
Raymond Hettinger
1784ff0249 More updates to whatsnew 2010-09-05 01:00:19 +00:00
Raymond Hettinger
46462f3fb3 Typo 2010-09-05 00:36:26 +00:00
Raymond Hettinger
ebea6fae86 Update whatsnew for Pep3149. 2010-09-05 00:27:25 +00:00
Benjamin Peterson
d7f73e913d run autoreconf 2010-09-05 00:09:07 +00:00
Raymond Hettinger
f95b199339 Update whatsnew for Pep3147. 2010-09-04 23:53:24 +00:00