]> granicus.if.org Git - python/log
python
18 years agoPart of bug 1459808: fiddle test_input_and_raw_input()
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.

18 years agoPart of bug 1459808: fiddle so that this passes
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.

18 years agoTry to get rid of a Coverity warning by consistently using origpending.
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.

18 years agoAdd version added info for with statement and context managers
Neal Norwitz [Tue, 28 Mar 2006 05:51:02 +0000 (05:51 +0000)]
Add version added info for with statement and context managers

18 years agoDocument objects that can be used with the ``with`` statement.
Phillip J. Eby [Tue, 28 Mar 2006 00:13:10 +0000 (00:13 +0000)]
Document objects that can be used with the ``with`` statement.

18 years agoFix some missing imports
Phillip J. Eby [Tue, 28 Mar 2006 00:08:22 +0000 (00:08 +0000)]
Fix some missing imports

18 years agoFix contextlib not copying function attributes
Phillip J. Eby [Tue, 28 Mar 2006 00:07:24 +0000 (00:07 +0000)]
Fix contextlib not copying function attributes

18 years agoDocument the contextlib module.
Phillip J. Eby [Mon, 27 Mar 2006 23:58:46 +0000 (23:58 +0000)]
Document the contextlib module.

18 years agodummy_thread needs to support PEP 343 too.
Phillip J. Eby [Mon, 27 Mar 2006 23:32:10 +0000 (23:32 +0000)]
dummy_thread needs to support PEP 343 too.

18 years agoDocument change made to number of preallocated integers.
Georg Brandl [Mon, 27 Mar 2006 22:09:16 +0000 (22:09 +0000)]
Document change made to number of preallocated integers.

18 years agoPatch #1459476: install PKG-INFO metadata alongside distutils-installed packages.
Phillip J. Eby [Mon, 27 Mar 2006 21:55:21 +0000 (21:55 +0000)]
Patch #1459476: install PKG-INFO metadata alongside distutils-installed packages.

18 years agoThe "with" statement needs a __future__. :)
Phillip J. Eby [Mon, 27 Mar 2006 21:42:30 +0000 (21:42 +0000)]
The "with" statement needs a __future__.  :)

18 years agoDocument the "with" statement.
Phillip J. Eby [Mon, 27 Mar 2006 21:06:13 +0000 (21:06 +0000)]
Document the "with" statement.

18 years agoMake itertools.tee and its internal teedataobject participate in GC. This
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.

18 years agoDocument the PEP 343 context manager protocol methods.
Phillip J. Eby [Mon, 27 Mar 2006 19:59:34 +0000 (19:59 +0000)]
Document the PEP 343 context manager protocol methods.

18 years agoDrop information about 2.4 DLLs.
Martin v. Löwis [Mon, 27 Mar 2006 16:35:13 +0000 (16:35 +0000)]
Drop information about 2.4 DLLs.

18 years agoAllow supression of subwcrev.exe invocation on a per-working-copy basis.
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.

18 years agoWhitespace for generated code.
Walter Dörwald [Mon, 27 Mar 2006 15:11:56 +0000 (15:11 +0000)]
Whitespace for generated code.

18 years agoTagging for release r25a0
Anthony Baxter [Mon, 27 Mar 2006 13:37:36 +0000 (13:37 +0000)]
Tagging for release r25a0

18 years agooops. lets try that one more time
Anthony Baxter [Mon, 27 Mar 2006 13:35:34 +0000 (13:35 +0000)]
oops. lets try that one more time

18 years agoTagging for release r25a0
Anthony Baxter [Mon, 27 Mar 2006 12:12:48 +0000 (12:12 +0000)]
Tagging for release r25a0

18 years agoTagging for release svn+ssh://pythondev@svn.python.org/python//tags/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

18 years agomore testing.
Anthony Baxter [Mon, 27 Mar 2006 11:53:34 +0000 (11:53 +0000)]
more testing.

18 years agoAdd product ids for 2.5.
Martin v. Löwis [Mon, 27 Mar 2006 09:51:16 +0000 (09:51 +0000)]
Add product ids for 2.5.

18 years agoWhitespace.
Walter Dörwald [Mon, 27 Mar 2006 09:02:04 +0000 (09:02 +0000)]
Whitespace.

18 years agoFix SF bug #1458903 with AST compiler.
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.

18 years agoFind a source file in srcdir to allow to build outside of srcdir.
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.

18 years agoFix reference leaks introduced by the recent incremental codec
Hye-Shik Chang [Mon, 27 Mar 2006 08:24:54 +0000 (08:24 +0000)]
Fix reference leaks introduced by the recent incremental codec
changes.

18 years agoMention patch id for the CJK part of the patch and
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.

18 years agotagging for release 2.5a0
Anthony Baxter [Mon, 27 Mar 2006 01:11:38 +0000 (01:11 +0000)]
tagging for release 2.5a0

18 years agoupdating snapshot.
Anthony Baxter [Mon, 27 Mar 2006 01:11:07 +0000 (01:11 +0000)]
updating snapshot.

18 years agoYears in the making.
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.

18 years agoBug #1457264: parse http://host?query correctly in urllib
Georg Brandl [Sun, 26 Mar 2006 20:59:38 +0000 (20:59 +0000)]
Bug #1457264: parse http://host?query correctly in urllib

18 years agoFix typo.
Martin v. Löwis [Sun, 26 Mar 2006 16:40:47 +0000 (16:40 +0000)]
Fix typo.

18 years agoPatch from Aldo Cortesi: expected skips for OpenBSD.
Martin v. Löwis [Sun, 26 Mar 2006 10:02:34 +0000 (10:02 +0000)]
Patch from Aldo Cortesi: expected skips for OpenBSD.

18 years agoProvide more debug output, to diagnose OpenBSD test failures.
Martin v. Löwis [Sun, 26 Mar 2006 09:50:11 +0000 (09:50 +0000)]
Provide more debug output, to diagnose OpenBSD test failures.

18 years agoUtilize %zd for Py_ssize_t formatting instead of casting to long.
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.

18 years agoAllow long objects as a position value of error callbacks returned.
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.

18 years agoregsub is gone, nothing to ignore
Neal Norwitz [Sun, 26 Mar 2006 04:59:27 +0000 (04:59 +0000)]
regsub is gone, nothing to ignore

18 years agoTry to handle sys.getfilesystemencoding() returning None.
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.

18 years agoTighten an overbroad and misleading assertion.
Raymond Hettinger [Sun, 26 Mar 2006 03:11:29 +0000 (03:11 +0000)]
Tighten an overbroad and misleading assertion.
(Reported by Jim Jewett.)

18 years agoPatch #1443155: Add the incremental codecs support for CJK codecs.
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)

18 years agoGuarantee evaluation order for izip(). Document its creative uses and its limitations.
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.

18 years agoTry to fix broken compile on openbsd.
Neal Norwitz [Sun, 26 Mar 2006 00:29:48 +0000 (00:29 +0000)]
Try to fix broken compile on openbsd.

18 years agoGet rid of warnings on some platforms by using %u for a size_t.
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.

18 years agoAdd section headers and examples.
Raymond Hettinger [Sat, 25 Mar 2006 23:26:43 +0000 (23:26 +0000)]
Add section headers and examples.

18 years agoSF bug # 1457358 and patch # 1458419, floor division not documented. Patch by Andy.
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.

18 years agoFound this in an old email message from Hartmut Goebel.
Skip Montanaro [Sat, 25 Mar 2006 14:12:03 +0000 (14:12 +0000)]
Found this in an old email message from Hartmut Goebel.

18 years agofix typo
Georg Brandl [Sat, 25 Mar 2006 13:12:56 +0000 (13:12 +0000)]
fix typo

18 years agoDon't decrement below zero. And add more tests.
Raymond Hettinger [Sat, 25 Mar 2006 12:15:04 +0000 (12:15 +0000)]
Don't decrement below zero.  And add more tests.

18 years agoMore extensive comment on __exit__ handling, per Guido's request.
Phillip J. Eby [Sat, 25 Mar 2006 04:32:12 +0000 (04:32 +0000)]
More extensive comment on __exit__ handling, per Guido's request.

18 years agoWhitespace normalization.
Tim Peters [Sat, 25 Mar 2006 01:50:43 +0000 (01:50 +0000)]
Whitespace normalization.

18 years agoYield is now allowed in try-finally, so update docs accordingly
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

18 years agoFix a problem with @contextmanager not detecting a broken generator
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.

18 years agoSupport throw() of string exceptions.
Phillip J. Eby [Sat, 25 Mar 2006 00:05:50 +0000 (00:05 +0000)]
Support throw() of string exceptions.

18 years agoRevert previous change. Wasn't ready yet.
Raymond Hettinger [Fri, 24 Mar 2006 23:55:32 +0000 (23:55 +0000)]
Revert previous change.  Wasn't ready yet.

18 years agoAdd more tests
Raymond Hettinger [Fri, 24 Mar 2006 23:47:53 +0000 (23:47 +0000)]
Add more tests

18 years agoRevert r42719, because the isinstance() check wasn't redundant; formatting a
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.

18 years agoSF Patch #1455676: Simplify using Queues with daemon consumer threads
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.

18 years agoAdd documentation for PEP 338
Nick Coghlan [Fri, 24 Mar 2006 13:36:33 +0000 (13:36 +0000)]
Add documentation for PEP 338

18 years agorun_module shouldn't hold the import lock when running a script
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

18 years agoUse absolute import.
Neal Norwitz [Fri, 24 Mar 2006 08:58:38 +0000 (08:58 +0000)]
Use absolute import.

18 years agoClarify cases when waitpid might not return self.pid.
Martin v. Löwis [Fri, 24 Mar 2006 08:26:26 +0000 (08:26 +0000)]
Clarify cases when waitpid might not return self.pid.

18 years agoBug #1183780: Add Popen objects to _active only in __del__.
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.

18 years agoExceptions should inherit from Exception now.
Neal Norwitz [Fri, 24 Mar 2006 08:02:51 +0000 (08:02 +0000)]
Exceptions should inherit from Exception now.

18 years agoHmmm, I don't think we wanted to test // twice and / not at all (in this section).
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).

18 years agoExceptions should inherit from Exception now.
Neal Norwitz [Fri, 24 Mar 2006 07:03:44 +0000 (07:03 +0000)]
Exceptions should inherit from Exception now.

18 years agoSF bug #1457411, fix errors using variables that don't exist.
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.

18 years agoForward port of 43262: Add 2.4.3 UUIDs.
Martin v. Löwis [Thu, 23 Mar 2006 19:21:52 +0000 (19:21 +0000)]
Forward port of 43262: Add 2.4.3 UUIDs.

18 years agoRelax result test for program mode of quopri.
Martin v. Löwis [Thu, 23 Mar 2006 19:14:23 +0000 (19:14 +0000)]
Relax result test for program mode of quopri.

18 years agoPreserve command name, for later printing of active
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.

18 years agoRewrite pipe code using subprocess, to make sure the
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.

18 years agoPatch #1396919: Reenable the system scope threads on FreeBSD 5.4
Hye-Shik Chang [Thu, 23 Mar 2006 12:32:36 +0000 (12:32 +0000)]
Patch #1396919: Reenable the system scope threads on FreeBSD 5.4
and later versions because they bumped the default setting to
get our basic tests to run correctly..

18 years agoCosmetic improvement for r43247
Hye-Shik Chang [Thu, 23 Mar 2006 12:12:44 +0000 (12:12 +0000)]
Cosmetic improvement for r43247

18 years agoSkip to install files for empty directories; to name it, Lib/lib-old.
Hye-Shik Chang [Thu, 23 Mar 2006 12:04:37 +0000 (12:04 +0000)]
Skip to install files for empty directories; to name it, Lib/lib-old.
BSD make stops the build when it tries to expand wild cards on empty
directories.

18 years agoStop duplicating code and handle slice indices consistently and correctly
Neal Norwitz [Thu, 23 Mar 2006 06:03:08 +0000 (06:03 +0000)]
Stop duplicating code and handle slice indices consistently and correctly
wrt to ssize_t.

18 years agoFix a ssize_t issue
Neal Norwitz [Thu, 23 Mar 2006 05:48:09 +0000 (05:48 +0000)]
Fix a ssize_t issue

18 years agoHeh -- used the right format for a refcount, but forgot
Tim Peters [Thu, 23 Mar 2006 05:41:24 +0000 (05:41 +0000)]
Heh -- used the right format for a refcount, but forgot
to stop truncating it.

18 years agoForward port MvL's fix in 43227:
Neal Norwitz [Thu, 23 Mar 2006 05:39:47 +0000 (05:39 +0000)]
Forward port MvL's fix in 43227:

Fix crash when a Unicode string containing an encoding declaration is
compile()d. Fixes #1115379.

18 years ago_Py_NegativeRefcount(): print the full value of ob_refcnt.
Tim Peters [Thu, 23 Mar 2006 05:38:33 +0000 (05:38 +0000)]
_Py_NegativeRefcount():  print the full value of ob_refcnt.

18 years agoAdd email/mime to LIBSUBDIRS. Fixes SF bug # 1454912.
Barry Warsaw [Wed, 22 Mar 2006 14:57:54 +0000 (14:57 +0000)]
Add email/mime to LIBSUBDIRS.  Fixes SF bug # 1454912.

18 years agoFix some int/Py_ssize_t issues which led to compiler warnings
Thomas Heller [Wed, 22 Mar 2006 13:21:16 +0000 (13:21 +0000)]
Fix some int/Py_ssize_t issues which led to compiler warnings
on 64-bit platforms.

18 years agoInclude <malloc.h> on windows, to avoid warnings when compiling with mingw.
Thomas Heller [Wed, 22 Mar 2006 12:59:53 +0000 (12:59 +0000)]
Include <malloc.h> on windows, to avoid warnings when compiling with mingw.
Don't use SEH when compiling wth mingw.
Use IS_INTRESOURCE to determine function name from function ordinal.

Rewrite the code that allocates and frees callback functions, hopefully
this avoids the coverty warnings: Remove the THUNK typedef, and move the
definition of struct ffi_info into the header file.

18 years agoctypes was added.
Thomas Heller [Wed, 22 Mar 2006 10:09:27 +0000 (10:09 +0000)]
ctypes was added.

18 years agoRemove false information from the comment and reformat it like other
Hye-Shik Chang [Wed, 22 Mar 2006 08:52:43 +0000 (08:52 +0000)]
Remove false information from the comment and reformat it like other
comments in the file. (SF #1455641)

18 years agoDamn another occurrence of using as as a keywordf
Neal Norwitz [Wed, 22 Mar 2006 07:13:30 +0000 (07:13 +0000)]
Damn another occurrence of using as as a keywordf

18 years agoChange NEWS entry for recent socket API change
Georg Brandl [Wed, 22 Mar 2006 06:44:14 +0000 (06:44 +0000)]
Change NEWS entry for recent socket API change

18 years agoWhitespace normalization.
Tim Peters [Wed, 22 Mar 2006 03:23:21 +0000 (03:23 +0000)]
Whitespace normalization.

18 years agoRecord that test_wait[34] get skipped on native Windows.
Tim Peters [Wed, 22 Mar 2006 02:58:17 +0000 (02:58 +0000)]
Record that test_wait[34] get skipped on native Windows.

18 years agoNews about email 4.0.
Barry Warsaw [Wed, 22 Mar 2006 02:45:50 +0000 (02:45 +0000)]
News about email 4.0.

18 years agoremove test file
Barry Warsaw [Tue, 21 Mar 2006 19:46:26 +0000 (19:46 +0000)]
remove test file

18 years agopy trunk svn test
Barry Warsaw [Tue, 21 Mar 2006 19:37:40 +0000 (19:37 +0000)]
py trunk svn test

18 years agopy trunk svn test
Barry Warsaw [Tue, 21 Mar 2006 19:26:34 +0000 (19:26 +0000)]
py trunk svn test

18 years agopy trunk svn test
Barry Warsaw [Tue, 21 Mar 2006 18:30:37 +0000 (18:30 +0000)]
py trunk svn test

18 years agoCorrect API design mistake from rev. 43126: make socket attributes readonly properties.
Georg Brandl [Tue, 21 Mar 2006 18:17:25 +0000 (18:17 +0000)]
Correct API design mistake from rev. 43126: make socket attributes readonly properties.

18 years agoUpdate to Tk 8.4.12 and Tix 8.4.0
Martin v. Löwis [Tue, 21 Mar 2006 13:20:29 +0000 (13:20 +0000)]
Update to Tk 8.4.12 and Tix 8.4.0

18 years agoUpdate to OpenSSL 0.9.8a
Martin v. Löwis [Tue, 21 Mar 2006 12:08:39 +0000 (12:08 +0000)]
Update to OpenSSL 0.9.8a

18 years agoAdd a note about pow(x,y) equalling x**y (the "**" operator
Georg Brandl [Tue, 21 Mar 2006 08:48:04 +0000 (08:48 +0000)]
Add a note about pow(x,y) equalling x**y (the "**" operator
was used unmotivated in the pow() docs)

18 years agoTry to repair at least one segfault on the Mac buildbot,
Tim Peters [Tue, 21 Mar 2006 03:58:41 +0000 (03:58 +0000)]
Try to repair at least one segfault on the Mac buildbot,
as diagnosed by Nick Coghlan.

test_capi.py:  A test module should never spawn a thread as
a side effect of being imported.  Because this one did, the
segfault one of its thread tests caused didn't occur until
a few tests after test_regrtest.py thought test_capi was
finished.  Repair that.  Also join() the thread spawned
at the end, so that test_capi is truly finished when
regrtest reports that it's done.

_testcapimodule.c test_thread_state():  this spawns a
couple of non-threading.py threads, passing them a PyObject*
argument, but did nothing to ensure that those threads
finished before returning.  As a result, the PyObject*
_could_ (although this was unlikely) get decref'ed out of
existence before the threads got around to using it.
Added explicit synchronization (via a Python mutex) so
that test_thread_state can reliably wait for its spawned
threads to finish.

18 years agoShow an example of calling a named set method.
Raymond Hettinger [Mon, 20 Mar 2006 18:35:55 +0000 (18:35 +0000)]
Show an example of calling a named set method.