]>
granicus.if.org Git - python/log
Thomas Heller [Thu, 30 Mar 2006 11:51:58 +0000 (11:51 +0000)]
Try to build _ctypes on x86 openbsd.
Armin Rigo [Thu, 30 Mar 2006 11:28:43 +0000 (11:28 +0000)]
Checking in the test for PEP 357.
This is from the SF tracker as well; for some reason the
content of test_index.py was lost and an empty file was
checked in instead.
Anthony Baxter [Thu, 30 Mar 2006 10:54:07 +0000 (10:54 +0000)]
Fixed bug #
1459029 - unicode reprs were double-escaped.
Anthony Baxter [Thu, 30 Mar 2006 10:53:17 +0000 (10:53 +0000)]
Fixed bug #
1459029 - unicode reprs were double-escaped.
Backed out an old patch from 2000.
Phillip J. Eby [Thu, 30 Mar 2006 07:09:06 +0000 (07:09 +0000)]
Mark the upload command as new in 2.5, per Neal Norwitz's request.
Fred Drake [Thu, 30 Mar 2006 03:04:41 +0000 (03:04 +0000)]
fill in refcount information for APIs first documented in Python 2.5
Fred Drake [Thu, 30 Mar 2006 02:58:38 +0000 (02:58 +0000)]
merge revision 43437 from the release24-maint branch:
- update the refcount information (late, but not a bad thing to do...)
- clarify that PyGen_New() steals a reference
Phillip J. Eby [Thu, 30 Mar 2006 02:16:40 +0000 (02:16 +0000)]
Oops, forgot to checkin the NEWS for --identity
Phillip J. Eby [Thu, 30 Mar 2006 02:12:14 +0000 (02:12 +0000)]
Implementation for patch request #
1457316 : support --identity option
for setup.py "upload" command.
Raymond Hettinger [Wed, 29 Mar 2006 09:13:13 +0000 (09:13 +0000)]
SF bug #
1460340 : random.sample can raise KeyError
Fix the hit and miss style of testing for sets and dicts.
Tim Peters [Tue, 28 Mar 2006 21:44:32 +0000 (21:44 +0000)]
In format strings slinging Py_ssize_t, unconditionally
interpolate PY_FORMAT_SIZE_T instead of #if'ing on
MS_WIN64.
Armin Rigo [Tue, 28 Mar 2006 20:30:45 +0000 (20:30 +0000)]
add the ctypes.test subpackage to a normal Unix installation --
otherwise, test/test_ctypes.py fails. What about ctypes.macholib?
Armin Rigo [Tue, 28 Mar 2006 19:27:56 +0000 (19:27 +0000)]
fix a comment.
Georg Brandl [Tue, 28 Mar 2006 19:19:56 +0000 (19:19 +0000)]
Revert r43399.
Armin Rigo [Tue, 28 Mar 2006 19:10:40 +0000 (19:10 +0000)]
answer a question from a comment
Martin v. Löwis [Tue, 28 Mar 2006 18:30:05 +0000 (18:30 +0000)]
Move product_codes in their own file.
Georg Brandl [Tue, 28 Mar 2006 18:02:44 +0000 (18:02 +0000)]
document sys.maxint in std objects
Georg Brandl [Tue, 28 Mar 2006 12:48:43 +0000 (12:48 +0000)]
Bug #
1459103 : add inter-section links for strftime section.
Georg Brandl [Tue, 28 Mar 2006 12:40:24 +0000 (12:40 +0000)]
Bug #
1459963 : urllib2 now normalizes HTTP header names correctly
with title().
Thomas Heller [Tue, 28 Mar 2006 11:00:08 +0000 (11:00 +0000)]
Make the tests succeed with -Qnew: Do not rely on the exact wording of a ZeroDivisionError.
Georg Brandl [Tue, 28 Mar 2006 10:29:45 +0000 (10:29 +0000)]
Make uu use floor division instead of classic division.
This was discovered by test_email failing with -Qnew.
Georg Brandl [Tue, 28 Mar 2006 10:26:45 +0000 (10:26 +0000)]
Make test_augassign pass with -Qnew and convert to unittest.
Georg Brandl [Tue, 28 Mar 2006 10:07:46 +0000 (10:07 +0000)]
Make xdrlib use floor division instead of classic division.
Makes test_xdrlib pass.
Georg Brandl [Tue, 28 Mar 2006 10:00:53 +0000 (10:00 +0000)]
Make test_coercion pass with -Qnew. Converted to unittest on the occasion.
Thomas Wouters [Tue, 28 Mar 2006 08:44:55 +0000 (08:44 +0000)]
In true regression-test spirit, make sure the
itertools.tee->instance->attribute->itertools.tee and
itertools.tee->teedataobject->itertools.tee cycles, which can be found now
that itertools.tee and its teedataobject participate in GC, remain findable
and cleanable. The test won't fail when they aren't, but at least the
frequent hunt-refleaks runs would spot the rise in refleaks.
Thomas Wouters [Tue, 28 Mar 2006 08:14:24 +0000 (08:14 +0000)]
Add an example of a generator->freevar->cell->generator reference-cycle that
doesn't get cleaned up and thus leaks.
Georg Brandl [Tue, 28 Mar 2006 08:06:35 +0000 (08:06 +0000)]
Make test_decimal work with -Qnew.
Martin v. Löwis [Tue, 28 Mar 2006 07:51:51 +0000 (07:51 +0000)]
Correct case in test for Windows 9X.
Tim Peters [Tue, 28 Mar 2006 07:39:22 +0000 (07:39 +0000)]
Part of bug
1459808 : fiddle test_input_and_raw_input()
so it passes w/ -Qnew.
Tim Peters [Tue, 28 Mar 2006 07:28:40 +0000 (07:28 +0000)]
Part of bug
1459808 : fiddle so that this passes
with or without -Qnew.
Neal Norwitz [Tue, 28 Mar 2006 06:19:28 +0000 (06:19 +0000)]
Try to get rid of a Coverity warning by consistently using origpending.
Neal Norwitz [Tue, 28 Mar 2006 05:51:02 +0000 (05:51 +0000)]
Add version added info for with statement and context managers
Phillip J. Eby [Tue, 28 Mar 2006 00:13:10 +0000 (00:13 +0000)]
Document objects that can be used with the ``with`` statement.
Phillip J. Eby [Tue, 28 Mar 2006 00:08:22 +0000 (00:08 +0000)]
Fix some missing imports
Phillip J. Eby [Tue, 28 Mar 2006 00:07:24 +0000 (00:07 +0000)]
Fix contextlib not copying function attributes
Phillip J. Eby [Mon, 27 Mar 2006 23:58:46 +0000 (23:58 +0000)]
Document the contextlib module.
Phillip J. Eby [Mon, 27 Mar 2006 23:32:10 +0000 (23:32 +0000)]
dummy_thread needs to support PEP 343 too.
Georg Brandl [Mon, 27 Mar 2006 22:09:16 +0000 (22:09 +0000)]
Document change made to number of preallocated integers.
Phillip J. Eby [Mon, 27 Mar 2006 21:55:21 +0000 (21:55 +0000)]
Patch #
1459476 : install PKG-INFO metadata alongside distutils-installed packages.
Phillip J. Eby [Mon, 27 Mar 2006 21:42:30 +0000 (21:42 +0000)]
The "with" statement needs a __future__. :)
Phillip J. Eby [Mon, 27 Mar 2006 21:06:13 +0000 (21:06 +0000)]
Document the "with" statement.
Thomas Wouters [Mon, 27 Mar 2006 21:02:13 +0000 (21:02 +0000)]
Make itertools.tee and its internal teedataobject participate in GC. This
alone does not solve the leak in test_generators, unfortunately, but it is
part of test_generators' problem and it does solve other cycles.
Phillip J. Eby [Mon, 27 Mar 2006 19:59:34 +0000 (19:59 +0000)]
Document the PEP 343 context manager protocol methods.
Martin v. Löwis [Mon, 27 Mar 2006 16:35:13 +0000 (16:35 +0000)]
Drop information about 2.4 DLLs.
Martin v. Löwis [Mon, 27 Mar 2006 16:30:41 +0000 (16:30 +0000)]
Allow supression of subwcrev.exe invocation on a per-working-copy basis.
Walter Dörwald [Mon, 27 Mar 2006 15:11:56 +0000 (15:11 +0000)]
Whitespace for generated code.
Anthony Baxter [Mon, 27 Mar 2006 13:37:36 +0000 (13:37 +0000)]
Tagging for release r25a0
Anthony Baxter [Mon, 27 Mar 2006 13:35:34 +0000 (13:35 +0000)]
oops. lets try that one more time
Anthony Baxter [Mon, 27 Mar 2006 12:12:48 +0000 (12:12 +0000)]
Tagging for release r25a0
Anthony Baxter [Mon, 27 Mar 2006 11:56:58 +0000 (11:56 +0000)]
Tagging for release svn+ssh://pythondev@svn.python.org/python//tags/r25a0
Anthony Baxter [Mon, 27 Mar 2006 11:53:34 +0000 (11:53 +0000)]
more testing.
Martin v. Löwis [Mon, 27 Mar 2006 09:51:16 +0000 (09:51 +0000)]
Add product ids for 2.5.
Walter Dörwald [Mon, 27 Mar 2006 09:02:04 +0000 (09:02 +0000)]
Whitespace.
Neal Norwitz [Mon, 27 Mar 2006 08:58:23 +0000 (08:58 +0000)]
Fix SF bug #
1458903 with AST compiler.
def foo((x)): was getting recognized as requiring tuple unpacking
which is not correct.
Add tests for this case and the proper way to unpack a tuple of one:
def foo((x,)):
test_inpsect was incorrect before. I'm not sure why it was passing,
but that has been corrected with a test for both functions above.
This means the test (and therefore inspect.getargspec()) are broken in 2.4.
Hye-Shik Chang [Mon, 27 Mar 2006 08:43:11 +0000 (08:43 +0000)]
Find a source file in srcdir to allow to build outside of srcdir.
Hye-Shik Chang [Mon, 27 Mar 2006 08:24:54 +0000 (08:24 +0000)]
Fix reference leaks introduced by the recent incremental codec
changes.
Walter Dörwald [Mon, 27 Mar 2006 08:15:44 +0000 (08:15 +0000)]
Mention patch id for the CJK part of the patch and
the name of the two new C functions.
Anthony Baxter [Mon, 27 Mar 2006 01:11:38 +0000 (01:11 +0000)]
tagging for release 2.5a0
Anthony Baxter [Mon, 27 Mar 2006 01:11:07 +0000 (01:11 +0000)]
updating snapshot.
Tim Peters [Sun, 26 Mar 2006 23:27:58 +0000 (23:27 +0000)]
Years in the making.
objimpl.h, pymem.h: Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE}
to PyObject_{Free, FREE} in a release build. They're aliases for the
system free() now.
_subprocess.c/sp_handle_dealloc(): Since the memory was originally
obtained via PyObject_NEW, it must be released via PyObject_FREE (or
_DEL).
pythonrun.c, tokenizer.c, parsermodule.c: I lost count of the number of
PyObject vs PyMem mismatches in these -- it's like the specific
function called at each site was picked at random, sometimes even with
memory obtained via PyMem getting released via PyObject. Changed most
to use PyObject uniformly, since the blobs allocated are predictably
small in most cases, and obmalloc is generally faster than system
mallocs then.
If extension modules in real life prove as sloppy as Python's front
end, we'll have to revert the objimpl.h + pymem.h part of this patch.
Note that no problems will show up in a debug build (all calls still go
thru obmalloc then). Problems will show up only in a release build, most
likely segfaults.
Georg Brandl [Sun, 26 Mar 2006 20:59:38 +0000 (20:59 +0000)]
Bug #
1457264 : parse http://host?query correctly in urllib
Martin v. Löwis [Sun, 26 Mar 2006 16:40:47 +0000 (16:40 +0000)]
Fix typo.
Martin v. Löwis [Sun, 26 Mar 2006 10:02:34 +0000 (10:02 +0000)]
Patch from Aldo Cortesi: expected skips for OpenBSD.
Martin v. Löwis [Sun, 26 Mar 2006 09:50:11 +0000 (09:50 +0000)]
Provide more debug output, to diagnose OpenBSD test failures.
Hye-Shik Chang [Sun, 26 Mar 2006 06:53:37 +0000 (06:53 +0000)]
Utilize %zd for Py_ssize_t formatting instead of casting to long.
Hye-Shik Chang [Sun, 26 Mar 2006 06:21:34 +0000 (06:21 +0000)]
Allow long objects as a position value of error callbacks returned.
Neal Norwitz [Sun, 26 Mar 2006 04:59:27 +0000 (04:59 +0000)]
regsub is gone, nothing to ignore
Neal Norwitz [Sun, 26 Mar 2006 03:11:57 +0000 (03:11 +0000)]
Try to handle sys.getfilesystemencoding() returning None.
ascii seems like the safest bet that it will exist. I wonder if utf-8
would be a better choice? This should get test_fileinput passing on OpenBSD.
Raymond Hettinger [Sun, 26 Mar 2006 03:11:29 +0000 (03:11 +0000)]
Tighten an overbroad and misleading assertion.
(Reported by Jim Jewett.)
Hye-Shik Chang [Sun, 26 Mar 2006 02:34:59 +0000 (02:34 +0000)]
Patch #
1443155 : Add the incremental codecs support for CJK codecs.
(reviewed by Walter Dörwald)
Raymond Hettinger [Sun, 26 Mar 2006 01:41:25 +0000 (01:41 +0000)]
Guarantee evaluation order for izip(). Document its creative uses and its limitations.
Neal Norwitz [Sun, 26 Mar 2006 00:29:48 +0000 (00:29 +0000)]
Try to fix broken compile on openbsd.
Neal Norwitz [Sat, 25 Mar 2006 23:55:39 +0000 (23:55 +0000)]
Get rid of warnings on some platforms by using %u for a size_t.
Raymond Hettinger [Sat, 25 Mar 2006 23:26:43 +0000 (23:26 +0000)]
Add section headers and examples.
Neal Norwitz [Sat, 25 Mar 2006 21:25:30 +0000 (21:25 +0000)]
SF bug #
1457358 and patch #
1458419 , floor division not documented. Patch by Andy.
Will backport.
Skip Montanaro [Sat, 25 Mar 2006 14:12:03 +0000 (14:12 +0000)]
Found this in an old email message from Hartmut Goebel.
Georg Brandl [Sat, 25 Mar 2006 13:12:56 +0000 (13:12 +0000)]
fix typo
Raymond Hettinger [Sat, 25 Mar 2006 12:15:04 +0000 (12:15 +0000)]
Don't decrement below zero. And add more tests.
Phillip J. Eby [Sat, 25 Mar 2006 04:32:12 +0000 (04:32 +0000)]
More extensive comment on __exit__ handling, per Guido's request.
Tim Peters [Sat, 25 Mar 2006 01:50:43 +0000 (01:50 +0000)]
Whitespace normalization.
Phillip J. Eby [Sat, 25 Mar 2006 00:46:43 +0000 (00:46 +0000)]
Yield is now allowed in try-finally, so update docs accordingly
Phillip J. Eby [Sat, 25 Mar 2006 00:28:24 +0000 (00:28 +0000)]
Fix a problem with @contextmanager not detecting a broken generator
that yields after a throw(). Make @contextmanager not reraise
exceptions, but return a false value in that case instead. Add test
cases for both behaviors.
Phillip J. Eby [Sat, 25 Mar 2006 00:05:50 +0000 (00:05 +0000)]
Support throw() of string exceptions.
Raymond Hettinger [Fri, 24 Mar 2006 23:55:32 +0000 (23:55 +0000)]
Revert previous change. Wasn't ready yet.
Raymond Hettinger [Fri, 24 Mar 2006 23:47:53 +0000 (23:47 +0000)]
Add more tests
Phillip J. Eby [Fri, 24 Mar 2006 22:10:54 +0000 (22:10 +0000)]
Revert r42719, because the isinstance() check wasn't redundant; formatting a
string exception was causing a TypeError.
Raymond Hettinger [Fri, 24 Mar 2006 20:43:29 +0000 (20:43 +0000)]
SF Patch #
1455676 : Simplify using Queues with daemon consumer threads
Adds join() and task_done() methods to track when all enqueued tasks have
been gotten and fully processed by daemon consumer threads.
Nick Coghlan [Fri, 24 Mar 2006 13:36:33 +0000 (13:36 +0000)]
Add documentation for PEP 338
Nick Coghlan [Fri, 24 Mar 2006 13:05:53 +0000 (13:05 +0000)]
run_module shouldn't hold the import lock when running a script
Neal Norwitz [Fri, 24 Mar 2006 08:58:38 +0000 (08:58 +0000)]
Use absolute import.
Martin v. Löwis [Fri, 24 Mar 2006 08:26:26 +0000 (08:26 +0000)]
Clarify cases when waitpid might not return self.pid.
Martin v. Löwis [Fri, 24 Mar 2006 08:14:54 +0000 (08:14 +0000)]
Bug #
1183780 : Add Popen objects to _active only in __del__.
Cleanup terminated processes as well.
Add cmd attribute to Popen4.
Neal Norwitz [Fri, 24 Mar 2006 08:02:51 +0000 (08:02 +0000)]
Exceptions should inherit from Exception now.
Neal Norwitz [Fri, 24 Mar 2006 07:30:56 +0000 (07:30 +0000)]
Hmmm, I don't think we wanted to test // twice and / not at all (in this section).
Neal Norwitz [Fri, 24 Mar 2006 07:03:44 +0000 (07:03 +0000)]
Exceptions should inherit from Exception now.
Neal Norwitz [Fri, 24 Mar 2006 05:36:33 +0000 (05:36 +0000)]
SF bug #
1457411 , fix errors using variables that don't exist.
Rename file -> filename to be clear.
Will backport.
Martin v. Löwis [Thu, 23 Mar 2006 19:21:52 +0000 (19:21 +0000)]
Forward port of 43262: Add 2.4.3 UUIDs.
Martin v. Löwis [Thu, 23 Mar 2006 19:14:23 +0000 (19:14 +0000)]
Relax result test for program mode of quopri.
Martin v. Löwis [Thu, 23 Mar 2006 18:18:35 +0000 (18:18 +0000)]
Preserve command name, for later printing of active
commands. If there are active commands when the tests
start, fail, printing these commands.
Martin v. Löwis [Thu, 23 Mar 2006 18:16:43 +0000 (18:16 +0000)]
Rewrite pipe code using subprocess, to make sure the
child process is closed when the test completes.