Georg Brandl
febeb00e41
Add Lukasz.
2010-09-08 10:43:45 +00:00
Raymond Hettinger
e4a3e99973
In the case where only a user supplied random() method is available,
...
adopt a strategy that makes the fewest calls to random().
2010-09-08 00:30:28 +00:00
Éric Araujo
5c46b14b30
Merged revisions 84614 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84614 | eric.araujo | 2010-09-08 02:00:45 +0200 (mer., 08 sept. 2010) | 5 lines
Follow-up to #9199 : Fix str.join use, add newlines.
Thanks to Konrad Delong for writing a test for upload_docs
--show-response in distutils2, letting me catch my mistake.
........
2010-09-08 00:02:00 +00:00
Éric Araujo
51e01a6f7a
Follow-up to #9199 : Fix str.join use, add newlines.
...
Thanks to Konrad Delong for writing a test for upload_docs
--show-response in distutils2, letting me catch my mistake.
2010-09-08 00:00:45 +00:00
Éric Araujo
a7851ca09d
Merged revisions 84611 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84611 | eric.araujo | 2010-09-08 01:08:57 +0200 (mer., 08 sept. 2010) | 2 lines
Fix incorrect use of Command.announce (#9199 )
........
2010-09-07 23:09:44 +00:00
Éric Araujo
480504b150
Fix incorrect use of Command.announce ( #9199 )
2010-09-07 23:08:57 +00:00
Éric Araujo
7cf83134f5
Merged revisions 84608 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84608 | eric.araujo | 2010-09-08 00:11:52 +0200 (mer., 08 sept. 2010) | 2 lines
Fix eon-old bug in build_clib options (#1718574 )
........
2010-09-07 22:17:04 +00:00
Éric Araujo
357175ff13
Fix eon-old bug in build_clib options ( #1718574 )
2010-09-07 22:11:52 +00:00
Antoine Pitrou
783eea722b
Issue #9707 : Rewritten reference implementation of threading.local which
...
is friendlier towards reference cycles. This change is not normally
visible since an optimized C implementation (_thread._local) is used
instead.
2010-09-07 22:06:17 +00:00
Antoine Pitrou
dae0c63fc8
Merged revisions 84604 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84604 | antoine.pitrou | 2010-09-07 23:43:31 +0200 (mar., 07 sept. 2010) | 3 lines
Also catch some gaierrors
........
2010-09-07 21:44:17 +00:00
Antoine Pitrou
2673c5bf5e
Also catch some gaierrors
2010-09-07 21:43:31 +00:00
Éric Araujo
cc6aac60da
Fix typo in whatsnew ( #9793 )
2010-09-07 21:35:35 +00:00
Amaury Forgeot d'Arc
4b6fdf3852
#6394 : Add os.getppid() support for Windows.
2010-09-07 21:31:17 +00:00
Antoine Pitrou
4d7979be72
Merged revisions 84597-84599 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84597 | antoine.pitrou | 2010-09-07 22:42:19 +0200 (mar., 07 sept. 2010) | 5 lines
Issue #8574 : better implementation of test.support.transient_internet().
Original patch by Victor.
........
r84598 | antoine.pitrou | 2010-09-07 23:05:49 +0200 (mar., 07 sept. 2010) | 6 lines
Issue #9792 : In case of connection failure, socket.create_connection()
would swallow the exception and raise a new one, making it impossible
to fetch the original errno, or to filter timeout errors. Now the
original error is re-raised.
........
r84599 | antoine.pitrou | 2010-09-07 23:09:09 +0200 (mar., 07 sept. 2010) | 4 lines
Improve transient_internet() again to detect more network errors,
and use it in test_robotparser. Fixes #8574 .
........
2010-09-07 21:22:56 +00:00
Antoine Pitrou
8bc09039ed
Improve transient_internet() again to detect more network errors,
...
and use it in test_robotparser. Fixes #8574 .
2010-09-07 21:09:09 +00:00
Antoine Pitrou
4b92b5fad3
Issue #9792 : In case of connection failure, socket.create_connection()
...
would swallow the exception and raise a new one, making it impossible
to fetch the original errno, or to filter timeout errors. Now the
original error is re-raised.
2010-09-07 21:05:49 +00:00
Antoine Pitrou
a88c83cbab
Issue #8574 : better implementation of test.support.transient_internet().
...
Original patch by Victor.
2010-09-07 20:42:19 +00:00
Raymond Hettinger
f015b3f5f6
Neaten-up comments and warning message.
2010-09-07 20:04:42 +00:00
Raymond Hettinger
05a505f106
Minor refactoring and cleanup. Extend looping randrange() technique to subclasses.
2010-09-07 19:19:33 +00:00
Antoine Pitrou
824cf253e5
Merged revisions 84592 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84592 | antoine.pitrou | 2010-09-07 20:44:12 +0200 (mar., 07 sept. 2010) | 5 lines
Update nntplib examples to use a public news server.
The example still doesn't work as-is under py3k, due to incomplete
or buggy porting of the nntplib module.
........
2010-09-07 18:44:52 +00:00
Antoine Pitrou
e339651b6f
Update nntplib examples to use a public news server.
...
The example still doesn't work as-is under py3k, due to incomplete
or buggy porting of the nntplib module.
2010-09-07 18:44:12 +00:00
Antoine Pitrou
334e0dde1d
Merged revisions 84589 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84589 | antoine.pitrou | 2010-09-07 18:30:09 +0200 (mar., 07 sept. 2010) | 5 lines
Issue #9758 : When fcntl.ioctl() was called with mutable_flag set to True,
and the passed buffer was exactly 1024 bytes long, the buffer wouldn't
be updated back after the system call. Original patch by Brian Brazil.
........
2010-09-07 16:32:28 +00:00
Antoine Pitrou
5e38aae91b
Issue #9758 : When fcntl.ioctl() was called with mutable_flag set to True,
...
and the passed buffer was exactly 1024 bytes long, the buffer wouldn't
be updated back after the system call. Original patch by Brian Brazil.
2010-09-07 16:30:09 +00:00
Raymond Hettinger
7f7561ebfc
Remove invalid test (it was supposed to fail on 64-bit machines.).
2010-09-07 15:38:33 +00:00
Raymond Hettinger
c585eecfb0
Fix test that depends on a particular implementation of random.choice().
2010-09-07 15:00:15 +00:00
Antoine Pitrou
15db1443ae
Merged revisions 84584 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84584 | antoine.pitrou | 2010-09-07 16:52:42 +0200 (mar., 07 sept. 2010) | 4 lines
Issue #4026 : Make the fcntl extension build under AIX.
Patch by Sébastien Sablé.
........
2010-09-07 14:58:50 +00:00
Antoine Pitrou
a300007c6e
Issue #4026 : Make the fcntl extension build under AIX.
...
Patch by Sébastien Sablé.
2010-09-07 14:52:42 +00:00
Brian Curtin
19651369e4
Adjust #8956 to add the bad signal number to the exception message.
2010-09-07 13:24:38 +00:00
Raymond Hettinger
dc4872eefe
Fix corner case for Random.choice() and add tests.
2010-09-07 10:06:56 +00:00
Raymond Hettinger
c324697bac
Small clean-ups.
2010-09-07 09:32:57 +00:00
Georg Brandl
e572bcec78
Add stub entry for argparse.
2010-09-07 08:18:26 +00:00
Raymond Hettinger
3149f9c614
typo
2010-09-07 05:35:10 +00:00
Raymond Hettinger
b21dac1e38
Remove outdated reference to Wichmann-Hill algorithm.
2010-09-07 05:32:49 +00:00
Raymond Hettinger
0515661314
Issues #7889 , #9025 and #9379 : Improvements to the random module.
2010-09-07 04:44:52 +00:00
Raymond Hettinger
3051cc3a0d
Minor code cleanup
2010-09-07 00:48:40 +00:00
Raymond Hettinger
f763a728ad
Document which part of the random module module are guaranteed.
2010-09-07 00:38:15 +00:00
Raymond Hettinger
435cb0f233
Document which part of the random module module are guaranteed.
2010-09-06 23:36:31 +00:00
Amaury Forgeot d'Arc
616453c199
More docstring updates
2010-09-06 22:31:52 +00:00
Amaury Forgeot d'Arc
ada99488d9
Change docstrings to match the implementation
2010-09-06 22:23:13 +00:00
Vinay Sajip
496153952a
Updated information on logging contextual information.
2010-09-06 22:18:20 +00:00
Vinay Sajip
c31be6307f
Updated information on logging contextual information.
2010-09-06 22:18:20 +00:00
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