]>
granicus.if.org Git - python/log
Raymond Hettinger [Sat, 15 Mar 2008 20:02:04 +0000 (20:02 +0000)]
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).
Skip Montanaro [Sat, 15 Mar 2008 16:07:11 +0000 (16:07 +0000)]
.
Skip Montanaro [Sat, 15 Mar 2008 16:04:45 +0000 (16:04 +0000)]
add %f format to datetime - issue 1158
Skip Montanaro [Sat, 15 Mar 2008 02:32:49 +0000 (02:32 +0000)]
note that fork and forkpty raise OSError on failure
Georg Brandl [Sat, 15 Mar 2008 00:20:19 +0000 (00:20 +0000)]
Fix lots of broken links in the docs, found by Sphinx' external link checker.
Georg Brandl [Fri, 14 Mar 2008 23:10:34 +0000 (23:10 +0000)]
Remove obsolete paragraph. #2288.
Martin v. Löwis [Fri, 14 Mar 2008 21:19:28 +0000 (21:19 +0000)]
Run debug version, cd to PCbuild.
Thomas Heller [Fri, 14 Mar 2008 21:06:21 +0000 (21:06 +0000)]
Remove unneeded initializer.
Mark Dickinson [Fri, 14 Mar 2008 14:23:37 +0000 (14:23 +0000)]
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.
Brett Cannon [Fri, 14 Mar 2008 14:03:10 +0000 (14:03 +0000)]
Remove a bad test.
Martin v. Löwis [Fri, 14 Mar 2008 13:57:59 +0000 (13:57 +0000)]
Use -x64 flag.
Martin v. Löwis [Fri, 14 Mar 2008 13:56:09 +0000 (13:56 +0000)]
Patch #2284: add -x64 option to rt.bat.
Raymond Hettinger [Fri, 14 Mar 2008 05:03:44 +0000 (05:03 +0000)]
Leave heapreplace() unchanged.
Brett Cannon [Thu, 13 Mar 2008 21:09:28 +0000 (21:09 +0000)]
Convert test_fcntl to unittest.
Closes issue #2055. Thanks Giampaolo Rodola.
Brett Cannon [Thu, 13 Mar 2008 21:02:16 +0000 (21:02 +0000)]
Move test_gdbm to use unittest.
Closes issue #1960. Thanks Giampaolo Rodola.
Brett Cannon [Thu, 13 Mar 2008 20:47:41 +0000 (20:47 +0000)]
Convert test_contains, test_crypt, and test_select to unittest.
Patch from GHOP 294 by David Marek.
Brett Cannon [Thu, 13 Mar 2008 20:33:10 +0000 (20:33 +0000)]
Move test_tokenize to doctest.
Done as GHOP 238 by Josip Dzolonga.
Brett Cannon [Thu, 13 Mar 2008 20:27:00 +0000 (20:27 +0000)]
Move test_thread over to unittest. Commits GHOP 237.
Thanks Benjamin Peterson for the patch.
Raymond Hettinger [Thu, 13 Mar 2008 19:33:34 +0000 (19:33 +0000)]
Simplify the nlargest() code using heappushpop().
Raymond Hettinger [Thu, 13 Mar 2008 19:03:51 +0000 (19:03 +0000)]
Issue 2274: Add heapq.heappushpop().
Raymond Hettinger [Thu, 13 Mar 2008 16:43:59 +0000 (16:43 +0000)]
Consistent tense.
Raymond Hettinger [Thu, 13 Mar 2008 16:43:17 +0000 (16:43 +0000)]
Add 2-to-3 support for the itertools moved to builtins or renamed.
Andrew M. Kuchling [Thu, 13 Mar 2008 11:07:35 +0000 (11:07 +0000)]
Add class decorators
Georg Brandl [Thu, 13 Mar 2008 07:21:41 +0000 (07:21 +0000)]
#
1720705 : add docs about import/threading interaction, wording by Nick.
Georg Brandl [Thu, 13 Mar 2008 07:17:14 +0000 (07:17 +0000)]
#2270: fix typo.
Georg Brandl [Thu, 13 Mar 2008 07:15:56 +0000 (07:15 +0000)]
#2265: fix example.
Raymond Hettinger [Tue, 11 Mar 2008 21:37:46 +0000 (21:37 +0000)]
Improve docs for itemgetter(). Show that it works with slices.
Guido van Rossum [Tue, 11 Mar 2008 21:18:06 +0000 (21:18 +0000)]
Fix the overflows in expandtabs(). "This time for sure!"
(Exploit at request.)
Raymond Hettinger [Tue, 11 Mar 2008 00:19:07 +0000 (00:19 +0000)]
Add recipe to docs.
Neal Norwitz [Sun, 9 Mar 2008 19:03:42 +0000 (19:03 +0000)]
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.
Georg Brandl [Sun, 9 Mar 2008 18:18:30 +0000 (18:18 +0000)]
Update for newest Sphinx.
Georg Brandl [Sun, 9 Mar 2008 15:11:39 +0000 (15:11 +0000)]
#2249: document assertTrue and assertFalse.
Jeffrey Yasskin [Sat, 8 Mar 2008 21:35:15 +0000 (21:35 +0000)]
Well that was dumb. platform.python_implementation returns a function, not a
string.
Jeffrey Yasskin [Sat, 8 Mar 2008 20:08:21 +0000 (20:08 +0000)]
Fix pybench for pythons < 2.6, tested back to 2.3.
Jeffrey Yasskin [Sat, 8 Mar 2008 18:26:54 +0000 (18:26 +0000)]
Add tests for with and finally performance to pybench.
Facundo Batista [Sat, 8 Mar 2008 16:50:27 +0000 (16:50 +0000)]
Issue
1106316 . post_mortem()'s parameter, traceback, is now
optional: it defaults to the traceback of the exception that is currently
being handled.
Georg Brandl [Sat, 8 Mar 2008 10:05:24 +0000 (10:05 +0000)]
#
1533486 : fix types in refcount intro.
Marc-André Lemburg [Sat, 8 Mar 2008 10:01:43 +0000 (10:01 +0000)]
Add new name for Mandrake: Mandriva.
Georg Brandl [Sat, 8 Mar 2008 09:54:06 +0000 (09:54 +0000)]
#2253: fix continue vs. finally docs.
Andrew M. Kuchling [Fri, 7 Mar 2008 21:09:23 +0000 (21:09 +0000)]
Grammar fix
Nick Coghlan [Fri, 7 Mar 2008 14:13:28 +0000 (14:13 +0000)]
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)
Jeffrey Yasskin [Fri, 7 Mar 2008 06:22:15 +0000 (06:22 +0000)]
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.
Raymond Hettinger [Fri, 7 Mar 2008 01:33:20 +0000 (01:33 +0000)]
Tweak recipes and tests
Raymond Hettinger [Thu, 6 Mar 2008 22:51:36 +0000 (22:51 +0000)]
Issue 2246: itertools grouper object did not participate in GC (should be backported).
Raymond Hettinger [Thu, 6 Mar 2008 20:52:01 +0000 (20:52 +0000)]
More tests.
Martin v. Löwis [Thu, 6 Mar 2008 13:50:28 +0000 (13:50 +0000)]
Update db-4.4.20 build procedure.
Martin v. Löwis [Thu, 6 Mar 2008 13:49:47 +0000 (13:49 +0000)]
Rely on x64 platform configuration when building _bsddb on AMD64.
Georg Brandl [Thu, 6 Mar 2008 07:45:52 +0000 (07:45 +0000)]
Bug #2220: handle rlcompleter attribute match failure more gracefully.
Georg Brandl [Thu, 6 Mar 2008 07:43:02 +0000 (07:43 +0000)]
#2220: handle matching failure more gracefully.
Georg Brandl [Thu, 6 Mar 2008 07:41:16 +0000 (07:41 +0000)]
#2225: return nonzero status code from py_compile if not all files could be compiled.
Georg Brandl [Thu, 6 Mar 2008 07:34:52 +0000 (07:34 +0000)]
Add missing NEWS entry for r61263.
Georg Brandl [Thu, 6 Mar 2008 07:31:34 +0000 (07:31 +0000)]
Add isinstance/issubclass to tutorial.
Georg Brandl [Thu, 6 Mar 2008 07:22:09 +0000 (07:22 +0000)]
Little clarification of assignments.
Georg Brandl [Thu, 6 Mar 2008 07:19:15 +0000 (07:19 +0000)]
Expand on re.split behavior with captured expressions.
Martin v. Löwis [Thu, 6 Mar 2008 06:55:22 +0000 (06:55 +0000)]
Patch #2232: os.tmpfile might fail on Windows if the user has no
permission to create files in the root directory.
Will backport to 2.5.
Georg Brandl [Thu, 6 Mar 2008 06:47:18 +0000 (06:47 +0000)]
#
1725737 : ignore other VC directories other than CVS and SVN's too.
Andrew M. Kuchling [Thu, 6 Mar 2008 01:36:27 +0000 (01:36 +0000)]
Add two items
Raymond Hettinger [Thu, 6 Mar 2008 01:15:52 +0000 (01:15 +0000)]
Add examples.
Martin v. Löwis [Wed, 5 Mar 2008 22:24:31 +0000 (22:24 +0000)]
cd PCbuild only after deleting all pyc files.
Raymond Hettinger [Wed, 5 Mar 2008 21:04:32 +0000 (21:04 +0000)]
Small code cleanup.
Raymond Hettinger [Wed, 5 Mar 2008 20:59:58 +0000 (20:59 +0000)]
C implementation of itertools.permutations().
Georg Brandl [Wed, 5 Mar 2008 19:31:44 +0000 (19:31 +0000)]
#2239: PYTHONPATH delimiter is os.pathsep.
Skip Montanaro [Wed, 5 Mar 2008 16:41:09 +0000 (16:41 +0000)]
Elaborate on the role of the altinstall target when installing multiple
versions.
Thomas Heller [Wed, 5 Mar 2008 15:34:29 +0000 (15:34 +0000)]
Issue 1872: Changed the struct module typecode from 't' to '?', for
compatibility with PEP3118.
Thomas Heller [Wed, 5 Mar 2008 14:53:39 +0000 (14:53 +0000)]
News entry for yesterdays commit.
Georg Brandl [Wed, 5 Mar 2008 07:10:35 +0000 (07:10 +0000)]
Fix some rst.
Jeffrey Yasskin [Wed, 5 Mar 2008 06:19:56 +0000 (06:19 +0000)]
Fix test_socketserver on Windows after r61099 added several signal.alarm()
calls (which don't exist on non-Unix platforms).
Thanks to Trent Nelson for the report and patch.
Neal Norwitz [Wed, 5 Mar 2008 05:51:20 +0000 (05:51 +0000)]
test_smtplib sometimes reports leaks too, suppress it
Neal Norwitz [Wed, 5 Mar 2008 05:50:20 +0000 (05:50 +0000)]
Use -u urlfetch to run more tests
Neal Norwitz [Wed, 5 Mar 2008 05:49:03 +0000 (05:49 +0000)]
Tabs -> spaces
Neal Norwitz [Wed, 5 Mar 2008 05:38:06 +0000 (05:38 +0000)]
Make the timeout longer to give slow machines a chance to pass the test
before timing out. This doesn't change the duration of the test under
normal circumstances. This is targetted at fixing the spurious failures
on the FreeBSD buildbot primarily.
Neal Norwitz [Wed, 5 Mar 2008 05:20:44 +0000 (05:20 +0000)]
Catch OSError when trying to remove a file in case removal fails. This
should prevent a failure in tearDown masking any real test failure.
Neal Norwitz [Wed, 5 Mar 2008 05:14:18 +0000 (05:14 +0000)]
Get this test to pass even when there is no sound card in the system.
Patch from Trent Nelson. (I can't test this.)
Neal Norwitz [Wed, 5 Mar 2008 05:10:48 +0000 (05:10 +0000)]
Remove the files/dirs after closing the DB so the tests work on Windows.
Patch from Trent Nelson. Also simplified removing a file by using test_support.
Amaury Forgeot d'Arc [Wed, 5 Mar 2008 01:50:33 +0000 (01:50 +0000)]
Issue#2238: some syntax errors from *args or **kwargs expressions
would give bogus error messages, because of untested exceptions::
>>> f(**g(1=2))
XXX undetected error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not iterable
instead of the expected SyntaxError: keyword can't be an expression
Will backport.
Andrew M. Kuchling [Wed, 5 Mar 2008 00:44:41 +0000 (00:44 +0000)]
Add more items; add fragmentary notes
Raymond Hettinger [Tue, 4 Mar 2008 22:29:44 +0000 (22:29 +0000)]
Fix refleak in chain().
Fred Drake [Tue, 4 Mar 2008 21:14:04 +0000 (21:14 +0000)]
fix typo
Thomas Heller [Tue, 4 Mar 2008 20:21:42 +0000 (20:21 +0000)]
Try to fix the build for PY_LINUX.
Thomas Heller [Tue, 4 Mar 2008 20:09:11 +0000 (20:09 +0000)]
Merged changes from libffi3-branch.
The bundled libffi copy is now in sync with the recently released
libffi3.0.4 version, apart from some small changes to
Modules/_ctypes/libffi/configure.ac.
I gave up on using libffi3 files on os x.
Instead, static configuration with files from pyobjc is used.
Neal Norwitz [Tue, 4 Mar 2008 16:22:46 +0000 (16:22 +0000)]
Close the file before trying to remove the directory so it works on Windows.
As reported by Trent Nelson on python-dev.
Georg Brandl [Tue, 4 Mar 2008 07:33:30 +0000 (07:33 +0000)]
#2230: document that PyArg_* leaves addresses alone on error.
Georg Brandl [Tue, 4 Mar 2008 07:25:54 +0000 (07:25 +0000)]
Fix some patch attributions.
Raymond Hettinger [Tue, 4 Mar 2008 04:17:08 +0000 (04:17 +0000)]
Beef-up docs and tests for itertools. Fix-up end-case for product().
Andrew M. Kuchling [Tue, 4 Mar 2008 01:50:32 +0000 (01:50 +0000)]
Thesis night results: add various items
Andrew M. Kuchling [Tue, 4 Mar 2008 01:49:37 +0000 (01:49 +0000)]
Add versionadded tags
Andrew M. Kuchling [Tue, 4 Mar 2008 01:48:26 +0000 (01:48 +0000)]
Typo fix
Andrew M. Kuchling [Tue, 4 Mar 2008 01:47:38 +0000 (01:47 +0000)]
Fix sentence fragment
Andrew M. Kuchling [Tue, 4 Mar 2008 01:30:10 +0000 (01:30 +0000)]
Grammar fix; markup fix
Andrew M. Kuchling [Tue, 4 Mar 2008 00:40:32 +0000 (00:40 +0000)]
Typo fix
Raymond Hettinger [Mon, 3 Mar 2008 22:19:58 +0000 (22:19 +0000)]
Issue 2226: Callable checked for the wrong abstract method.
Raymond Hettinger [Mon, 3 Mar 2008 22:04:55 +0000 (22:04 +0000)]
Remove dependency on itertools -- a simple genexp suffices.
Georg Brandl [Mon, 3 Mar 2008 21:31:50 +0000 (21:31 +0000)]
Expand a bit on genexp scopes.
Georg Brandl [Mon, 3 Mar 2008 21:22:47 +0000 (21:22 +0000)]
Actually import itertools.
Georg Brandl [Mon, 3 Mar 2008 20:39:00 +0000 (20:39 +0000)]
15 -> 16, the 2nd
Georg Brandl [Mon, 3 Mar 2008 20:37:55 +0000 (20:37 +0000)]
There are now sixteen isfoo functions.
Christian Heimes [Mon, 3 Mar 2008 20:30:29 +0000 (20:30 +0000)]
15 -> 16
Christian Heimes [Mon, 3 Mar 2008 18:28:04 +0000 (18:28 +0000)]
Since abc._Abstract was replaces by a new type flags the regression test suite fails. I've added a new function inspect.isabstract(). Is the mmethod fine or should I check if object is a instance of type or subclass of object, too?
Christian Heimes [Mon, 3 Mar 2008 12:40:17 +0000 (12:40 +0000)]
Initialized merge tracking via "svnmerge" with revisions "1-60195" from
svn+ssh://pythondev@svn.python.org/python/branches/trunk-math
Neal Norwitz [Mon, 3 Mar 2008 04:37:45 +0000 (04:37 +0000)]
Only DECREF if ret != NULL