]>
granicus.if.org Git - python/log
Georg Brandl [Sat, 2 Feb 2008 10:49:58 +0000 (10:49 +0000)]
Add email example how to send a multipart message.
Written for GHOP by Martin Matejek.
Georg Brandl [Sat, 2 Feb 2008 10:18:15 +0000 (10:18 +0000)]
Rewrite test_funcattrs as unittest, written for GHOP by Jeff Wheeler.
Georg Brandl [Sat, 2 Feb 2008 10:12:36 +0000 (10:12 +0000)]
Rewrite test_descr as unittest, written for GHOP by Jeff Wheeler.
Georg Brandl [Sat, 2 Feb 2008 09:56:20 +0000 (09:56 +0000)]
Amendments to the urllib2 docs, written for GHOP by Thomas Lamb.
Raymond Hettinger [Sat, 2 Feb 2008 05:24:44 +0000 (05:24 +0000)]
Neaten-up a bit.
Raymond Hettinger [Sat, 2 Feb 2008 05:11:40 +0000 (05:11 +0000)]
Simpler solution to handling non-IEEE 754 environments.
Raymond Hettinger [Fri, 1 Feb 2008 23:45:44 +0000 (23:45 +0000)]
Add protection from weirdness while scaling the mantissa to an integer.
Raymond Hettinger [Fri, 1 Feb 2008 23:12:19 +0000 (23:12 +0000)]
Fix int/long typecase. Add check for non-binary floating point.
Marc-André Lemburg [Fri, 1 Feb 2008 22:58:17 +0000 (22:58 +0000)]
Bump distutils version number to match Python version.
Raymond Hettinger [Fri, 1 Feb 2008 22:42:59 +0000 (22:42 +0000)]
Test round-trip on float.as_integer_ratio() and float.__truediv__().
Raymond Hettinger [Fri, 1 Feb 2008 22:22:50 +0000 (22:22 +0000)]
labs() takes a long for an input.
Raymond Hettinger [Fri, 1 Feb 2008 22:15:52 +0000 (22:15 +0000)]
Integer ratio should return ints instead of longs whereever possible.
Raymond Hettinger [Fri, 1 Feb 2008 21:30:23 +0000 (21:30 +0000)]
Issue #1996: float.as_integer_ratio() should return fraction in lowest terms.
Georg Brandl [Fri, 1 Feb 2008 20:45:33 +0000 (20:45 +0000)]
Update for latest sphinx latex writer.
Georg Brandl [Fri, 1 Feb 2008 19:24:01 +0000 (19:24 +0000)]
Wording nit.
Christian Heimes [Fri, 1 Feb 2008 18:49:26 +0000 (18:49 +0000)]
More int -> pid_t.
Georg Brandl [Fri, 1 Feb 2008 18:08:09 +0000 (18:08 +0000)]
Rename batch file.
Georg Brandl [Fri, 1 Feb 2008 15:50:15 +0000 (15:50 +0000)]
Add link checker builder, written for GHOP by Thomas Lamb.
Georg Brandl [Fri, 1 Feb 2008 11:59:08 +0000 (11:59 +0000)]
Update IPv6 RFC number.
Neal Norwitz [Fri, 1 Feb 2008 07:22:59 +0000 (07:22 +0000)]
Fix refleak
Jeffrey Yasskin [Fri, 1 Feb 2008 07:05:46 +0000 (07:05 +0000)]
Roll back r60248. It's useful to encourage users not to change Rational
instances.
Jeffrey Yasskin [Fri, 1 Feb 2008 06:22:46 +0000 (06:22 +0000)]
Move __builtins__.trunc() to math.trunc() per
http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue
1965.
Christian Heimes [Thu, 31 Jan 2008 23:08:23 +0000 (23:08 +0000)]
Fixed bug #1983: Return from fork() is pid_t, not int
Mark Dickinson [Thu, 31 Jan 2008 22:17:37 +0000 (22:17 +0000)]
Issue #
1678380 . Fix a bug that identifies 0j and -0j when they appear
in the same code unit. The fix is essentially the same as the fix for a
previous bug identifying 0. and -0.
Raymond Hettinger [Thu, 31 Jan 2008 22:07:16 +0000 (22:07 +0000)]
Minor wordsmithing on docstring
Jeffrey Yasskin [Thu, 31 Jan 2008 17:45:59 +0000 (17:45 +0000)]
Remove unused to-be-magic methods from Rational per issue 1968. Do not port
this patch to py3k.
Jeffrey Yasskin [Thu, 31 Jan 2008 07:44:11 +0000 (07:44 +0000)]
Added more documentation on how mixed-mode arithmetic should be implemented. I
also noticed and fixed a bug in Rational's forward operators (they were
claiming all instances of numbers.Rational instead of just the concrete types).
Raymond Hettinger [Thu, 31 Jan 2008 01:42:11 +0000 (01:42 +0000)]
Missing return
Raymond Hettinger [Thu, 31 Jan 2008 01:38:15 +0000 (01:38 +0000)]
Fix defect in __ixor__ which would get the wrong
answer if the input iterable had a duplicate element
(two calls to toggle() reverse each other). Borrow
the correct code from sets.py.
Christian Heimes [Wed, 30 Jan 2008 22:54:18 +0000 (22:54 +0000)]
Bug #1234: Fixed semaphore errors on AIX 5.2
Raymond Hettinger [Wed, 30 Jan 2008 22:17:31 +0000 (22:17 +0000)]
Update itertool recipes
Christian Heimes [Wed, 30 Jan 2008 18:58:29 +0000 (18:58 +0000)]
The previous change was causing a segfault after multiple calls to Py_Initialize() and Py_Finalize().
Christian Heimes [Wed, 30 Jan 2008 17:21:22 +0000 (17:21 +0000)]
Fixed some references leaks in sys.
Christian Heimes [Wed, 30 Jan 2008 11:46:00 +0000 (11:46 +0000)]
Removed unused var
Christian Heimes [Wed, 30 Jan 2008 11:32:37 +0000 (11:32 +0000)]
Patch #1970 by Antoine Pitrou: Speedup unicode whitespace and linebreak detection. The speedup is about 25% for split() (571 / 457 usec) and 35% (175 / 127 usec )for splitlines()
Raymond Hettinger [Wed, 30 Jan 2008 00:51:58 +0000 (00:51 +0000)]
Demonstrate new except/as syntax.
Raymond Hettinger [Wed, 30 Jan 2008 00:08:31 +0000 (00:08 +0000)]
MutableSets support a remove() method.
Raymond Hettinger [Wed, 30 Jan 2008 00:01:07 +0000 (00:01 +0000)]
Add isdisjoint() to the Set/MutableSet ABCs.
Raymond Hettinger [Tue, 29 Jan 2008 19:52:09 +0000 (19:52 +0000)]
CallMethod is faster with a NULL third-argument than with an empty format string.
Brett Cannon [Tue, 29 Jan 2008 04:20:56 +0000 (04:20 +0000)]
Ignore .pyc and .pyo files.
Brett Cannon [Tue, 29 Jan 2008 04:18:04 +0000 (04:18 +0000)]
Update Vim syntax highlighting to specify what revision was used to generate
the file.
Brett Cannon [Tue, 29 Jan 2008 04:13:07 +0000 (04:13 +0000)]
Fix the reindent rule to use $(BUILDPYTHON).
Gregory P. Smith [Mon, 28 Jan 2008 23:21:00 +0000 (23:21 +0000)]
Disable use of BerkeleyDB 4.6.x to see what the odd platform buildbots
think. In particular, neal norwitz has traced an Ubuntu sparc64 crash
to the Lib/test/bsddb/test_basics.py test when opening a db with DB_THREAD.
Raymond Hettinger [Mon, 28 Jan 2008 21:51:25 +0000 (21:51 +0000)]
Removed unnecessary conditional (spotted by Neal Norwitz).
Raymond Hettinger [Mon, 28 Jan 2008 21:48:07 +0000 (21:48 +0000)]
Factor-out common code with a new macro
Raymond Hettinger [Mon, 28 Jan 2008 21:47:42 +0000 (21:47 +0000)]
Factor-out common code with a new macro
Raymond Hettinger [Mon, 28 Jan 2008 21:34:30 +0000 (21:34 +0000)]
Let marshal built-up sets and frozensets one element at a time (without creating an intermediate tuple).
Raymond Hettinger [Mon, 28 Jan 2008 20:34:33 +0000 (20:34 +0000)]
Make PySet_Add() work with frozensets.
Works like PyTuple_SetItem() to build-up values in a brand new frozenset.
Also, PyFrozenSet_New() is now guaranteed to produce a distinct new frozenset.
Thomas Heller [Mon, 28 Jan 2008 08:44:13 +0000 (08:44 +0000)]
Revert rev. 59925, it breaks comtypes (I need to further examine this).
Christian Heimes [Mon, 28 Jan 2008 02:07:53 +0000 (02:07 +0000)]
static PyObject* variables should use PyString_InternFromString() instead of PyObject_FromString() to store a python string in a function level static var.
Christian Heimes [Sun, 27 Jan 2008 23:34:59 +0000 (23:34 +0000)]
Added clear cache methods to clear the internal type lookup cache for ref leak test runs.
Jeffrey Yasskin [Sun, 27 Jan 2008 23:08:46 +0000 (23:08 +0000)]
Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() because
it's useful outside of rational numbers.
This is my first C code that had to do anything significant. Please be more
careful when looking over it.
Georg Brandl [Sun, 27 Jan 2008 20:25:12 +0000 (20:25 +0000)]
Add refcounting extension to build config.
Neal Norwitz [Sun, 27 Jan 2008 20:03:13 +0000 (20:03 +0000)]
socket.error doesn't have a headers attribute like ProtocolError.
Handle that situation where we catch socket.errors.
Christian Heimes [Sun, 27 Jan 2008 19:01:45 +0000 (19:01 +0000)]
Change isbasestring function as discussed on the cvs list a while ago
Neal Norwitz [Sun, 27 Jan 2008 18:19:04 +0000 (18:19 +0000)]
Try to handle socket.errors properly in is_unavailable
Georg Brandl [Sun, 27 Jan 2008 18:14:43 +0000 (18:14 +0000)]
Remove effectless expression statement.
Neal Norwitz [Sun, 27 Jan 2008 18:09:48 +0000 (18:09 +0000)]
Update the comment and remove the close. If we close we can't flush anymore.
We might still need to close after the for loop if flushing 6! times still
doesn't cause the signal/exception.
Neal Norwitz [Sun, 27 Jan 2008 17:13:07 +0000 (17:13 +0000)]
Print periodic "still working" messages since this suite is slow.
Neal Norwitz [Sun, 27 Jan 2008 17:12:15 +0000 (17:12 +0000)]
Reduce buffer size since we do not need 1k
Neal Norwitz [Sun, 27 Jan 2008 17:11:11 +0000 (17:11 +0000)]
Catch socket errors that are often the cause of transient failures.
Many of these exceptions are due to resource unavailable, so the
existing code should be able to handle many more spurious errors.
Neal Norwitz [Sun, 27 Jan 2008 17:10:58 +0000 (17:10 +0000)]
Retry connection in case it fails to reduce flakiness
Neal Norwitz [Sun, 27 Jan 2008 17:10:50 +0000 (17:10 +0000)]
Add a tiny sleep and additional flush to force the file to really be synced.
Neal Norwitz [Sun, 27 Jan 2008 17:10:43 +0000 (17:10 +0000)]
Update to newer version of ffi. Fixes crashes and test failures of longdouble
Neal Norwitz [Sun, 27 Jan 2008 17:10:35 +0000 (17:10 +0000)]
Initialize variable to prevent warning on some platform/config.
Neal Norwitz [Sun, 27 Jan 2008 17:10:29 +0000 (17:10 +0000)]
Add assertion that we do not blow out newl
Neal Norwitz [Sun, 27 Jan 2008 17:10:14 +0000 (17:10 +0000)]
Whitespace cleanup
Raymond Hettinger [Sun, 27 Jan 2008 10:47:55 +0000 (10:47 +0000)]
Removed an unnecessary and confusing paragraph from the namedtuple docs.
Raymond Hettinger [Sun, 27 Jan 2008 10:13:57 +0000 (10:13 +0000)]
Docstring nit
Neal Norwitz [Sun, 27 Jan 2008 07:41:33 +0000 (07:41 +0000)]
Add stdarg include for va_list to get this to compile on cygwin
Neal Norwitz [Sun, 27 Jan 2008 07:37:38 +0000 (07:37 +0000)]
Use int for the sign rather than a char. char can be signed or unsigned.
It's system dependent. This might fix the problem with test_rfind failing.
Neal Norwitz [Sun, 27 Jan 2008 07:36:03 +0000 (07:36 +0000)]
Mostly reformat. Also set an error and return NULL if neither MS_WINDOWS
nor UNIX is defined. This may have caused problems on cygwin.
Jeffrey Yasskin [Sun, 27 Jan 2008 05:40:35 +0000 (05:40 +0000)]
Make rational.gcd() public and allow Rational to take decimal strings, per
Raymond's advice.
Neal Norwitz [Sun, 27 Jan 2008 05:02:34 +0000 (05:02 +0000)]
Try to prevent this test from being flaky. We might need a sleep in here
which isn't as bad as it sounds. The close() *should* raise an exception,
so if it didn't we should give more time to sync and really raise it.
Will backport.
Neal Norwitz [Sun, 27 Jan 2008 01:44:05 +0000 (01:44 +0000)]
Eliminate the sleeps that assume the server will start in .5 seconds.
This should make the test less flaky. It also speeds up the test
by about 75% on my box (20+ seconds -> ~4 seconds).
Neal Norwitz [Sat, 26 Jan 2008 23:14:17 +0000 (23:14 +0000)]
Consistently use tempfile.tempdir for the db_home directory.
Neal Norwitz [Sat, 26 Jan 2008 23:13:46 +0000 (23:13 +0000)]
On some systems (e.g., Ubuntu on hppa) the flush()
doesn't cause the exception, but the close() does.
Will backport.
Neal Norwitz [Sat, 26 Jan 2008 21:21:59 +0000 (21:21 +0000)]
Reduce the race condition by signalling when the server is ready
and not trying to connect before.
Neal Norwitz [Sat, 26 Jan 2008 21:02:45 +0000 (21:02 +0000)]
Always try to remove the test file even if close raises an exception
Neal Norwitz [Sat, 26 Jan 2008 20:24:36 +0000 (20:24 +0000)]
Cleanup the code a bit. test_rfind is failing on PPC and PPC64 buildbots,
this might fix the problem.
Gregory P. Smith [Sat, 26 Jan 2008 18:51:05 +0000 (18:51 +0000)]
Update docs for new callpack params added in r60188
Christian Heimes [Sat, 26 Jan 2008 16:43:35 +0000 (16:43 +0000)]
Unit test fix from Giampaolo Rodola, #1938
Georg Brandl [Sat, 26 Jan 2008 14:19:22 +0000 (14:19 +0000)]
Move C API entries to the corresponding section.
Georg Brandl [Sat, 26 Jan 2008 14:14:20 +0000 (14:14 +0000)]
#
1473257 : add generator.gi_code attribute that refers to
the original code object backing the generator. Patch by Collin Winter.
Georg Brandl [Sat, 26 Jan 2008 14:03:47 +0000 (14:03 +0000)]
#1940: make it possible to use curses.filter() before curses.initscr()
as the documentation says.
Georg Brandl [Sat, 26 Jan 2008 14:02:38 +0000 (14:02 +0000)]
Clarify "b" mode under Unix.
Andrew M. Kuchling [Sat, 26 Jan 2008 13:50:51 +0000 (13:50 +0000)]
Add some items
Georg Brandl [Sat, 26 Jan 2008 13:41:21 +0000 (13:41 +0000)]
Fix markup again.
Georg Brandl [Sat, 26 Jan 2008 11:02:22 +0000 (11:02 +0000)]
Slashes allowed on Windows.
Georg Brandl [Sat, 26 Jan 2008 11:00:18 +0000 (11:00 +0000)]
Add missing things in re docstring.
Georg Brandl [Sat, 26 Jan 2008 09:43:35 +0000 (09:43 +0000)]
#1934: fix os.path.isabs docs.
Raymond Hettinger [Sat, 26 Jan 2008 09:31:11 +0000 (09:31 +0000)]
Revert PySet_Add() changes.
Raymond Hettinger [Sat, 26 Jan 2008 08:41:13 +0000 (08:41 +0000)]
Update test code for change to PySet_Add().
Raymond Hettinger [Sat, 26 Jan 2008 08:37:28 +0000 (08:37 +0000)]
Let marshal build-up sets and frozensets one element at a time.
Saves the unnecessary creation of a tuple as intermediate container.
Neal Norwitz [Sat, 26 Jan 2008 08:26:00 +0000 (08:26 +0000)]
The OS X buildbot had errors with the unavailable exceptions disabled. Restore it.
Raymond Hettinger [Sat, 26 Jan 2008 08:19:06 +0000 (08:19 +0000)]
Make PySet_Add() work with frozensets. Works like PyTuple_SetItem() to build-up values in a brand new frozenset.
Neal Norwitz [Sat, 26 Jan 2008 07:38:03 +0000 (07:38 +0000)]
Fix exception in tearDown on ppc buildbot. If there's no directory,
that shouldn't cause the test to fail. Just like it setUp.
Neal Norwitz [Sat, 26 Jan 2008 07:26:12 +0000 (07:26 +0000)]
Use a condition variable (threading.Event) rather than sleeps and checking a
global to determine when the server is ready to be used. This slows the test
down, but should make it correct. There was a race condition before where the
server could have assigned a port, yet it wasn't ready to serve requests. If
the client sent a request before the server was completely ready, it would get
an exception. There was machinery to try to handle this condition. All of
that should be unnecessary and removed if this change works. A NOTE was
added as a comment about what needs to be fixed.
The buildbots will tell us if there are more errors or
if this test is now stable.
Neal Norwitz [Sat, 26 Jan 2008 05:54:48 +0000 (05:54 +0000)]
Prevent this test from failing if there are transient network problems
by retrying the host for up to 3 times.
Thomas Wouters [Sat, 26 Jan 2008 01:47:05 +0000 (01:47 +0000)]
Make 'testall' work again when building in a separate directory.
test_distutils still fails when doing that.