Georg Brandl
87b0551931
#2299 : typos in newtypes.rst.
2008-03-16 08:00:19 +00:00
Raymond Hettinger
a6cfeb4b9d
Update docs to reflect removal of Exact/Inexact
2008-03-16 05:20:42 +00:00
Neal Norwitz
5becac576c
Handle memory allocation failure. Found by Adam Olsen
2008-03-15 22:36:01 +00:00
Neal Norwitz
400aedacc0
Add a warning for code like:
...
assert (0, 'message')
An empty tuple does not create a warning. While questionable usage:
assert (), 'message'
should not display a warning. Tested manually.
The warning message could be improved. Feel free to update it.
2008-03-15 22:03:18 +00:00
Raymond Hettinger
cd6bfab410
Zap one more use of Exact/Inexact.
2008-03-15 20:37:50 +00:00
Raymond Hettinger
6b46762974
Removed Exact/Inexact after discussion with Yasskin.
...
Unlike Scheme where exactness is implemented as taints, the Python
implementation associated exactness with data types. This created
inheritance issues (making an exact subclass of floats would result
in the subclass having both an explicit Exact registration and an
inherited Inexact registration). This was a problem for the
decimal module which was designed to span both exact and inexact
arithmetic. There was also a question of use cases and no examples
were found where ABCs for exactness could be used to improve code.
One other issue was having separate tags for both the affirmative
and negative cases. This is at odds with the approach taken
elsewhere in the Python (i.e. we don't have an ABC both Hashable
and Unhashable).
2008-03-15 20:02:04 +00:00
Skip Montanaro
32ed8c267c
.
2008-03-15 16:07:11 +00:00
Skip Montanaro
fc070d2731
add %f format to datetime - issue 1158
2008-03-15 16:04:45 +00:00
Skip Montanaro
75e51680f1
note that fork and forkpty raise OSError on failure
2008-03-15 02:32:49 +00:00
Georg Brandl
0267781742
Fix lots of broken links in the docs, found by Sphinx' external link checker.
2008-03-15 00:20:19 +00:00
Georg Brandl
bd77681f36
Remove obsolete paragraph. #2288 .
2008-03-14 23:10:34 +00:00
Martin v. Löwis
f2b333a0c9
Run debug version, cd to PCbuild.
2008-03-14 21:19:28 +00:00
Thomas Heller
41e22ff5cc
Remove unneeded initializer.
2008-03-14 21:06:21 +00:00
Mark Dickinson
c23b8a7af9
Issue 705836: Fix struct.pack(">f", 1e40) to behave consistently
...
across platforms: it should now raise OverflowError on all
platforms. (Previously it raised OverflowError only on
non IEEE 754 platforms.)
Also fix the (already existing) test for this behaviour
so that it actually raises TestFailed instead of just
referencing it.
2008-03-14 14:23:37 +00:00
Brett Cannon
6119540d70
Remove a bad test.
2008-03-14 14:03:10 +00:00
Martin v. Löwis
7bae4432a3
Use -x64 flag.
2008-03-14 13:57:59 +00:00
Martin v. Löwis
bf7b0b7b81
Patch #2284 : add -x64 option to rt.bat.
2008-03-14 13:56:09 +00:00
Raymond Hettinger
10d7603825
Leave heapreplace() unchanged.
2008-03-14 05:03:44 +00:00
Brett Cannon
1f5182b572
Convert test_fcntl to unittest.
...
Closes issue #2055 . Thanks Giampaolo Rodola.
2008-03-13 21:09:28 +00:00
Brett Cannon
4a6e8d669a
Move test_gdbm to use unittest.
...
Closes issue #1960 . Thanks Giampaolo Rodola.
2008-03-13 21:02:16 +00:00
Brett Cannon
2e0f9f3dd9
Convert test_contains, test_crypt, and test_select to unittest.
...
Patch from GHOP 294 by David Marek.
2008-03-13 20:47:41 +00:00
Brett Cannon
b8d37359cd
Move test_tokenize to doctest.
...
Done as GHOP 238 by Josip Dzolonga.
2008-03-13 20:33:10 +00:00
Brett Cannon
66865d2ebd
Move test_thread over to unittest. Commits GHOP 237.
...
Thanks Benjamin Peterson for the patch.
2008-03-13 20:27:00 +00:00
Raymond Hettinger
83aa6a3b1a
Simplify the nlargest() code using heappushpop().
2008-03-13 19:33:34 +00:00
Raymond Hettinger
53bdf09343
Issue 2274: Add heapq.heappushpop().
2008-03-13 19:03:51 +00:00
Raymond Hettinger
431f029486
Consistent tense.
2008-03-13 16:43:59 +00:00
Raymond Hettinger
10f40a6b5a
Add 2-to-3 support for the itertools moved to builtins or renamed.
2008-03-13 16:43:17 +00:00
Andrew M. Kuchling
d51e842a3f
Add class decorators
2008-03-13 11:07:35 +00:00
Georg Brandl
2e25551ef8
#1720705 : add docs about import/threading interaction, wording by Nick.
2008-03-13 07:21:41 +00:00
Georg Brandl
4bb40b9428
#2270 : fix typo.
2008-03-13 07:17:14 +00:00
Georg Brandl
d85a13a954
#2265 : fix example.
2008-03-13 07:15:56 +00:00
Raymond Hettinger
513460f80d
Improve docs for itemgetter(). Show that it works with slices.
2008-03-11 21:37:46 +00:00
Guido van Rossum
5bdff60617
Fix the overflows in expandtabs(). "This time for sure!"
...
(Exploit at request.)
2008-03-11 21:18:06 +00:00
Raymond Hettinger
e8b4b60555
Add recipe to docs.
2008-03-11 00:19:07 +00:00
Neal Norwitz
0098c9d609
Introduce a lock to fix a race condition which caused an exception in the test.
...
Some buildbots were consistently failing (e.g., amd64).
Also remove a couple of semi-colons.
2008-03-09 19:03:42 +00:00
Georg Brandl
5bb647dfa8
Update for newest Sphinx.
2008-03-09 18:18:30 +00:00
Georg Brandl
c557db5268
#2249 : document assertTrue and assertFalse.
2008-03-09 15:11:39 +00:00
Jeffrey Yasskin
3accbb0729
Well that was dumb. platform.python_implementation returns a function, not a
...
string.
2008-03-08 21:35:15 +00:00
Jeffrey Yasskin
019e9d730a
Fix pybench for pythons < 2.6, tested back to 2.3.
2008-03-08 20:08:21 +00:00
Jeffrey Yasskin
0df0f6d1b2
Add tests for with and finally performance to pybench.
2008-03-08 18:26:54 +00:00
Facundo Batista
c54aec1fda
Issue 1106316. post_mortem()'s parameter, traceback, is now
...
optional: it defaults to the traceback of the exception that is currently
being handled.
2008-03-08 16:50:27 +00:00
Georg Brandl
372d55e3e6
#1533486 : fix types in refcount intro.
2008-03-08 10:05:24 +00:00
Marc-André Lemburg
50967bdec2
Add new name for Mandrake: Mandriva.
2008-03-08 10:01:43 +00:00
Georg Brandl
47a5aec836
#2253 : fix continue vs. finally docs.
2008-03-08 09:54:06 +00:00
Andrew M. Kuchling
31c6de4f79
Grammar fix
2008-03-07 21:09:23 +00:00
Nick Coghlan
7af53be66f
Speed up with statements by storing the __exit__ method on the stack instead of in a temp variable (bumps the magic number for pyc files)
2008-03-07 14:13:28 +00:00
Jeffrey Yasskin
e75f59a578
Progress on issue #1193577 by adding a polling .shutdown() method to
...
SocketServers. The core of the patch was written by Pedro Werneck, but any bugs
are mine. I've also rearranged the code for timeouts in order to avoid
interfering with the shutdown poll.
2008-03-07 06:22:15 +00:00
Raymond Hettinger
38fb9bee6c
Tweak recipes and tests
2008-03-07 01:33:20 +00:00
Raymond Hettinger
a1ca94a102
Issue 2246: itertools grouper object did not participate in GC (should be backported).
2008-03-06 22:51:36 +00:00
Raymond Hettinger
ad47fa141c
More tests.
2008-03-06 20:52:01 +00:00