]> granicus.if.org Git - python/log
python
17 years agoHave configure raise an error when building on AtheOS. Code specific to AtheOS
Brett Cannon [Sat, 2 Jun 2007 03:02:29 +0000 (03:02 +0000)]
Have configure raise an error when building on AtheOS.  Code specific to AtheOS
will be removed in Python 2.7.

17 years agoFix wrong issue number.
Georg Brandl [Fri, 1 Jun 2007 19:20:27 +0000 (19:20 +0000)]
Fix wrong issue number.

17 years agoBug #1722484: remove docstrings again when running with -OO.
Georg Brandl [Fri, 1 Jun 2007 11:33:33 +0000 (11:33 +0000)]
Bug #1722484: remove docstrings again when running with -OO.

17 years agoSF 1668596/1720897: distutils now copies data files
Neal Norwitz [Fri, 1 Jun 2007 07:29:12 +0000 (07:29 +0000)]
SF 1668596/1720897: distutils now copies data files
even if package_dir is empty.

This needs to be backported.  I'm too tired tonight.  It would be great
if someone backports this if the buildbots are ok with it.  Otherwise,
I will try to get to it tomorrow.

17 years agoMail if there is an installation failure.
Neal Norwitz [Fri, 1 Jun 2007 04:56:47 +0000 (04:56 +0000)]
Mail if there is an installation failure.

17 years agoHave cfmfile raise a DeprecationWarning as per PEP 4.
Brett Cannon [Thu, 31 May 2007 20:01:11 +0000 (20:01 +0000)]
Have cfmfile raise a DeprecationWarning as per PEP 4.

17 years agoCause buildtools to raise a DeprecationWarning.
Brett Cannon [Thu, 31 May 2007 19:40:42 +0000 (19:40 +0000)]
Cause buildtools to raise a DeprecationWarning.

17 years agoHave the sha module raise a DeprecationWarning as specified in PEP 4.
Brett Cannon [Thu, 31 May 2007 19:20:00 +0000 (19:20 +0000)]
Have the sha module raise a DeprecationWarning as specified in PEP 4.

17 years agoAdd some spaces in the example code.
Neal Norwitz [Thu, 31 May 2007 04:14:22 +0000 (04:14 +0000)]
Add some spaces in the example code.

17 years agoHave md5 raise a DeprecationWarning as per PEP 4.
Brett Cannon [Wed, 30 May 2007 22:24:28 +0000 (22:24 +0000)]
Have md5 raise a DeprecationWarning as per PEP 4.

17 years agoHave mimify raise a DeprecationWarning. The docs and PEP 4 have listed the
Brett Cannon [Wed, 30 May 2007 21:48:58 +0000 (21:48 +0000)]
Have mimify raise a DeprecationWarning.  The docs and PEP 4 have listed the
module as deprecated for a while.

17 years agoHave MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation.
Brett Cannon [Wed, 30 May 2007 20:46:26 +0000 (20:46 +0000)]
Have MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation.

17 years agoCorrect the name of a field in the WIN32_FIND_DATAA and WIN32_FIND_DATAW structures.
Thomas Heller [Wed, 30 May 2007 07:01:25 +0000 (07:01 +0000)]
Correct the name of a field in the WIN32_FIND_DATAA and WIN32_FIND_DATAW structures.
Closes bug #1726026.

17 years agoFix compiler warnings.
Thomas Heller [Wed, 30 May 2007 06:58:30 +0000 (06:58 +0000)]
Fix compiler warnings.

17 years agoFix indentation (whitespace only).
Neal Norwitz [Wed, 30 May 2007 04:53:41 +0000 (04:53 +0000)]
Fix indentation (whitespace only).

17 years agoFix typo in doc
Neal Norwitz [Tue, 29 May 2007 07:51:39 +0000 (07:51 +0000)]
Fix typo in doc

17 years agoFix rst markup.
Georg Brandl [Tue, 29 May 2007 07:16:47 +0000 (07:16 +0000)]
Fix rst markup.

17 years agoRevert 55634.
Martin v. Löwis [Tue, 29 May 2007 04:02:03 +0000 (04:02 +0000)]
Revert 55634.

17 years agoTest pre-commit hook for a link to a .py file.
Martin v. Löwis [Tue, 29 May 2007 04:01:29 +0000 (04:01 +0000)]
Test pre-commit hook for a link to a .py file.

17 years agoExplain when groupby() issues a new group.
Raymond Hettinger [Mon, 28 May 2007 05:23:22 +0000 (05:23 +0000)]
Explain when groupby() issues a new group.

17 years agoAdded errors argument to TarFile class that allows the user to
Lars Gustäbel [Sun, 27 May 2007 19:49:30 +0000 (19:49 +0000)]
Added errors argument to TarFile class that allows the user to
specify an error handling scheme for character conversion. Additional
scheme "utf-8" in read mode. Unicode input filenames are now
supported by design. The values of the pax_headers dictionary are now
limited to unicode objects.

Fixed: The prefix field is no longer used in PAX_FORMAT (in
conformance with POSIX).
Fixed: In read mode use a possible pax header size field.
Fixed: Strip trailing slashes from pax header name values.
Fixed: Give values in user-specified pax_headers precedence when
writing.

Added unicode tests. Added pax/regtype4 member to testtar.tar all
possible number fields in a pax header.

Added two chapters to the documentation about the different formats
tarfile.py supports and how unicode issues are handled.

17 years agoAdd the new function object attribute names from py3k.
Neal Norwitz [Sun, 27 May 2007 04:08:54 +0000 (04:08 +0000)]
Add the new function object attribute names from py3k.

17 years agoApplied patch 1669481, slightly modified: Support close_fds on Win32
Peter Astrand [Sat, 26 May 2007 22:18:20 +0000 (22:18 +0000)]
Applied patch 1669481, slightly modified: Support close_fds on Win32

17 years agoFix typo.
Walter Dörwald [Sat, 26 May 2007 21:04:13 +0000 (21:04 +0000)]
Fix typo.

17 years agoInclude <windows.h> after python.h, so that WINNT is properly set before windows...
Kristján Valur Jónsson [Sat, 26 May 2007 19:31:39 +0000 (19:31 +0000)]
Include <windows.h> after python.h, so that WINNT is properly set before windows.h is included.  Fixes warnings in PC builds.

17 years agoRemove the rgbimgmodule from PCBuild8
Kristján Valur Jónsson [Sat, 26 May 2007 19:19:50 +0000 (19:19 +0000)]
Remove the rgbimgmodule from PCBuild8

17 years agoRemove direct call's to file's constructor and replace them with calls to
Brett Cannon [Fri, 25 May 2007 20:17:15 +0000 (20:17 +0000)]
Remove direct call's to file's constructor and replace them with calls to
open() as ths is considered best practice.

17 years agoUpdated documentation for SysLogHandler (#1720726).
Vinay Sajip [Fri, 25 May 2007 07:06:55 +0000 (07:06 +0000)]
Updated documentation for SysLogHandler (#1720726).

17 years agoUpdated docstring for SysLogHandler (#1720726).
Vinay Sajip [Fri, 25 May 2007 07:05:59 +0000 (07:05 +0000)]
Updated docstring for SysLogHandler (#1720726).

17 years agoGet test passing again by commenting out the reference to the test class.
Neal Norwitz [Fri, 25 May 2007 05:13:40 +0000 (05:13 +0000)]
Get test passing again by commenting out the reference to the test class.

17 years agoCommenting out the tests until find out who can test them in
Facundo Batista [Fri, 25 May 2007 04:20:22 +0000 (04:20 +0000)]
Commenting out the tests until find out who can test them in
one of the problematic enviroments.

17 years agoFixing stupid error, and introducing a sleep, to see if the
Facundo Batista [Fri, 25 May 2007 03:47:19 +0000 (03:47 +0000)]
Fixing stupid error, and introducing a sleep, to see if the
other thread is awakened and finish sending data.

17 years agoTrying to make the tests work in Windows and Solaris, everywhere
Facundo Batista [Fri, 25 May 2007 03:10:28 +0000 (03:10 +0000)]
Trying to make the tests work in Windows and Solaris, everywhere
else just works

17 years agoLet's see if reading exactly what is written allow this live
Facundo Batista [Thu, 24 May 2007 20:51:19 +0000 (20:51 +0000)]
Let's see if reading exactly what is written allow this live
test to pass (now I know why there were so few tests in ftp,
http, etc, :( ).

17 years agoRemoved the .recv() in the test, is not necessary, and was
Facundo Batista [Thu, 24 May 2007 20:01:59 +0000 (20:01 +0000)]
Removed the .recv() in the test, is not necessary, and was
causing problems that didn't have anything to do with was
actually being tested...

17 years agoAdded an optional timeout parameter to urllib.ftpwrapper, with tests
Facundo Batista [Thu, 24 May 2007 17:50:54 +0000 (17:50 +0000)]
Added an optional timeout parameter to urllib.ftpwrapper, with tests
(for this and a basic one, because there weren't any). Changed also
NEWS, but didn't find documentation for this function, assumed it
wasn't public...

17 years agoFix parameter passing.
Georg Brandl [Thu, 24 May 2007 17:33:33 +0000 (17:33 +0000)]
Fix parameter passing.

17 years agoshlex.split() now has an optional "posix" parameter.
Georg Brandl [Thu, 24 May 2007 16:49:29 +0000 (16:49 +0000)]
shlex.split() now has an optional "posix" parameter.

17 years agoAdd a bunch more deprecation warnings for builtins that are going away in 3.0
Neal Norwitz [Wed, 23 May 2007 06:58:36 +0000 (06:58 +0000)]
Add a bunch more deprecation warnings for builtins that are going away in 3.0

17 years agoWhitespace cleanup
Neal Norwitz [Wed, 23 May 2007 06:57:35 +0000 (06:57 +0000)]
Whitespace cleanup

17 years agoAdd -3 option to the interpreter to warn about features that are
Neal Norwitz [Wed, 23 May 2007 06:35:32 +0000 (06:35 +0000)]
Add -3 option to the interpreter to warn about features that are
deprecated and will be changed/removed in Python 3.0.

This patch is mostly from Anthony.  I tweaked some format and added
a little doc.

17 years agoRemove definition of PY_UNICODE_TYPE from pyconfig.h, allowing the
Mark Hammond [Wed, 23 May 2007 02:04:28 +0000 (02:04 +0000)]
Remove definition of PY_UNICODE_TYPE from pyconfig.h, allowing the
definition in unicodeobject.h to be used, giving us the desired
wchar_t in place of 'unsigned short'.  As discussed on python-dev.

17 years agoRemove the "panel" module doc file which has been ignored since 1994.
Georg Brandl [Tue, 22 May 2007 14:28:17 +0000 (14:28 +0000)]
Remove the "panel" module doc file which has been ignored since 1994.

17 years agoStop using METH_OLDARGS implicitly
Neal Norwitz [Tue, 22 May 2007 07:16:44 +0000 (07:16 +0000)]
Stop using METH_OLDARGS implicitly

17 years agoStop using METH_OLDARGS
Neal Norwitz [Tue, 22 May 2007 07:16:10 +0000 (07:16 +0000)]
Stop using METH_OLDARGS

17 years agoDocument new params to HTTPSConnection
Neal Norwitz [Tue, 22 May 2007 06:03:36 +0000 (06:03 +0000)]
Document new params to HTTPSConnection

17 years agoPatch #1686487: you can now pass any mapping after '**' in function calls.
Georg Brandl [Mon, 21 May 2007 20:34:16 +0000 (20:34 +0000)]
Patch #1686487: you can now pass any mapping after '**' in function calls.

17 years agoAdded timeout support to HTTPSConnection, through the
Facundo Batista [Mon, 21 May 2007 17:32:32 +0000 (17:32 +0000)]
Added timeout support to HTTPSConnection, through the
socket.create_connection function. Also added a small
test for this, and updated NEWS file.

17 years agoAllow all alphanumeric and underscores in type and field names.
Raymond Hettinger [Mon, 21 May 2007 16:40:10 +0000 (16:40 +0000)]
Allow all alphanumeric and underscores in type and field names.

17 years agoReplace assertion with straight error-checking.
Raymond Hettinger [Mon, 21 May 2007 08:13:35 +0000 (08:13 +0000)]
Replace assertion with straight error-checking.

17 years agofix against r55474 [Remove the macfs module]
George Yoshida [Mon, 21 May 2007 04:41:21 +0000 (04:41 +0000)]
fix against r55474 [Remove the macfs module]

Remove "libmacfs.tex" from Makefile.deps and mac/mac.tex.

17 years agoAdd Alexandre Vassalotti.
Martin v. Löwis [Mon, 21 May 2007 04:35:47 +0000 (04:35 +0000)]
Add Alexandre Vassalotti.

17 years agoNote removed modules
Andrew M. Kuchling [Mon, 21 May 2007 00:03:15 +0000 (00:03 +0000)]
Note removed modules

17 years agoCause posixfile to raise a DeprecationWarning. Documented as deprecated since
Brett Cannon [Sun, 20 May 2007 23:57:38 +0000 (23:57 +0000)]
Cause posixfile to raise a DeprecationWarning.  Documented as deprecated since
Ptyhon 1.5.

17 years agoMove imgfile import to the global namespace to trigger an import error ASAP to
Brett Cannon [Sun, 20 May 2007 23:56:18 +0000 (23:56 +0000)]
Move imgfile import to the global namespace to trigger an import error ASAP to
prevent creation of a test file.

17 years agoRemove the macfs module. This led to the deprecation of macostools.touched();
Brett Cannon [Sun, 20 May 2007 23:17:38 +0000 (23:17 +0000)]
Remove the macfs module.  This led to the deprecation of macostools.touched();
it completely relied on macfs and is a no-op on OS X according to code
comments.

17 years agoTry to remove rgbimg from Windows builds.
Brett Cannon [Sun, 20 May 2007 19:05:06 +0000 (19:05 +0000)]
Try to remove rgbimg from Windows builds.

17 years agoUpdate directories/files at the top-level.
Neal Norwitz [Sun, 20 May 2007 18:43:00 +0000 (18:43 +0000)]
Update directories/files at the top-level.

17 years agorotor is long gone.
Neal Norwitz [Sun, 20 May 2007 18:06:27 +0000 (18:06 +0000)]
rotor is long gone.

17 years agoFix typo in example (should be backported, but my maintenance branch is woefully...
Nick Coghlan [Sun, 20 May 2007 11:12:49 +0000 (11:12 +0000)]
Fix typo in example (should be backported, but my maintenance branch is woefully out of date)

17 years agoRemove the rgbimg module. It has been deprecated since Python 2.5.
Brett Cannon [Sun, 20 May 2007 07:09:50 +0000 (07:09 +0000)]
Remove the rgbimg module.  It has been deprecated since Python 2.5.

17 years agoFix docstring for add_package in site.py.
Georg Brandl [Sat, 19 May 2007 18:09:26 +0000 (18:09 +0000)]
Fix docstring for add_package in site.py.

17 years agoGive some clue as to what happened if the test fails.
Neal Norwitz [Sat, 19 May 2007 04:35:52 +0000 (04:35 +0000)]
Give some clue as to what happened if the test fails.

17 years agoWhoops, need to pay attention to those test failures.
Neal Norwitz [Sat, 19 May 2007 04:34:55 +0000 (04:34 +0000)]
Whoops, need to pay attention to those test failures.
Move the clear to *before* the first use, not after.

17 years agoClear data so random memory does not get freed. Will backport.
Neal Norwitz [Sat, 19 May 2007 03:48:47 +0000 (03:48 +0000)]
Clear data so random memory does not get freed.  Will backport.

17 years agoFix beginner mistake -- don't mix spaces and tabs.
Raymond Hettinger [Sat, 19 May 2007 01:50:11 +0000 (01:50 +0000)]
Fix beginner mistake -- don't mix spaces and tabs.

17 years agoImprovements to NamedTuple's implementation, tests, and documentation
Raymond Hettinger [Sat, 19 May 2007 01:11:16 +0000 (01:11 +0000)]
Improvements to NamedTuple's implementation, tests, and documentation

17 years agoBackport PEP 3110's new 'except' syntax to 2.6.
Collin Winter [Fri, 18 May 2007 23:11:24 +0000 (23:11 +0000)]
Backport PEP 3110's new 'except' syntax to 2.6.

17 years agoVerify neither dumps or loads overflow the stack and segfault.
Neal Norwitz [Fri, 18 May 2007 05:47:16 +0000 (05:47 +0000)]
Verify neither dumps or loads overflow the stack and segfault.

17 years agofix argument name in documentation; match the implementation
Fred Drake [Thu, 17 May 2007 19:29:58 +0000 (19:29 +0000)]
fix argument name in documentation; match the implementation

17 years agoLast try for tweaking the max stack depth. 5000 was the original value,
Neal Norwitz [Thu, 17 May 2007 07:04:46 +0000 (07:04 +0000)]
Last try for tweaking the max stack depth.  5000 was the original value,
4000 didn't work either.  1000 does work on Windows.  If 2000 works,
that will hopefully be a reasonable balance.

17 years agoSet the depth to something very small to try to determine if the
Neal Norwitz [Thu, 17 May 2007 06:23:50 +0000 (06:23 +0000)]
Set the depth to something very small to try to determine if the
crashes on Windows are really due to the stack size or possibly
some other problem.

17 years agoReduce the max stack depth to see if this fixes the segfaults on
Neal Norwitz [Thu, 17 May 2007 06:11:36 +0000 (06:11 +0000)]
Reduce the max stack depth to see if this fixes the segfaults on
Windows and some other boxes.  If this is successful, this rev should
be backported.  I'm not sure how close to the limit we should push this.

17 years agoComplete deprecation of BaseException.message. Some subclasses were directly
Brett Cannon [Thu, 17 May 2007 02:02:56 +0000 (02:02 +0000)]
Complete deprecation of BaseException.message.  Some subclasses were directly
accessing the message attribute instead of using the descriptor.

17 years agocalendar.py gets no benefit from xrange() instead of range()
Raymond Hettinger [Thu, 17 May 2007 01:08:04 +0000 (01:08 +0000)]
calendar.py gets no benefit from xrange() instead of range()

17 years agoRemove the gopherlib module. It has been raising a DeprecationWarning since
Brett Cannon [Wed, 16 May 2007 22:42:29 +0000 (22:42 +0000)]
Remove the gopherlib module.  It has been raising a DeprecationWarning since
Python 2.5.

Also remove gopher support from urllib/urllib2.  As both imported gopherlib the
usage of the support would have raised a DeprecationWarning.

17 years agoFix bug in marshal where bad data would cause a segfault due to
Neal Norwitz [Wed, 16 May 2007 20:05:11 +0000 (20:05 +0000)]
Fix bug in marshal where bad data would cause a segfault due to
lack of an infinite recursion check.

Contributed by Damien Miller at Google.

17 years agoBug #1719995: don't use deprecated method in sets example.
Georg Brandl [Wed, 16 May 2007 13:44:18 +0000 (13:44 +0000)]
Bug #1719995: don't use deprecated method in sets example.

17 years agoChange the maintainer of the BeOS port.
Brett Cannon [Wed, 16 May 2007 05:50:03 +0000 (05:50 +0000)]
Change the maintainer of the BeOS port.

17 years agoMention removal of some directories for obsolete platforms
Neal Norwitz [Wed, 16 May 2007 05:06:33 +0000 (05:06 +0000)]
Mention removal of some directories for obsolete platforms

17 years agoPort rev 55353 from Guido:
Neal Norwitz [Wed, 16 May 2007 04:33:50 +0000 (04:33 +0000)]
Port rev 55353 from Guido:
Add what looks like a necessary call to PyErr_NoMemory() when PyMem_MALLOC()
fails.

Will backport.

17 years agoHTML-escape the plain traceback in cgitb's HTML output, to prevent
Georg Brandl [Tue, 15 May 2007 20:19:34 +0000 (20:19 +0000)]
HTML-escape the plain traceback in cgitb's HTML output, to prevent
the traceback inadvertently or maliciously closing the comment and
injecting HTML into the error page.

17 years agoSmall speedup.
Raymond Hettinger [Mon, 14 May 2007 20:52:31 +0000 (20:52 +0000)]
Small speedup.

17 years agoRemove support for freebsd[23] which haven't been released since 2000
Neal Norwitz [Sun, 13 May 2007 21:13:42 +0000 (21:13 +0000)]
Remove support for freebsd[23] which haven't been released since 2000
or earlier.  http://www.freebsd.org/releases/index.html

17 years agoRemove references to stdwin which was removed long ago.
Neal Norwitz [Sun, 13 May 2007 20:54:19 +0000 (20:54 +0000)]
Remove references to stdwin which was removed long ago.

17 years agoRemove Amoeba doc which was removed in version 1.0! according to Misc/HISTORY.
Neal Norwitz [Sun, 13 May 2007 20:45:05 +0000 (20:45 +0000)]
Remove Amoeba doc which was removed in version 1.0! according to Misc/HISTORY.
Hopefully Guido won't shed a tear. :-)

17 years agoAdd bz2 to content encodings.
Georg Brandl [Sun, 13 May 2007 08:04:07 +0000 (08:04 +0000)]
Add bz2 to content encodings.

17 years agoBug #1046945: document SWIG options of distutils.
Georg Brandl [Sat, 12 May 2007 21:06:41 +0000 (21:06 +0000)]
Bug #1046945: document SWIG options of distutils.

17 years agoBetter tests for posixpath.commonprefix
Raymond Hettinger [Fri, 11 May 2007 17:59:59 +0000 (17:59 +0000)]
Better tests for posixpath.commonprefix

17 years agoUpdate DDJ link.
Georg Brandl [Fri, 11 May 2007 11:43:56 +0000 (11:43 +0000)]
Update DDJ link.

17 years agoPatch #1714700: clarify os.linesep vs. tfiles opened in text mode.
Georg Brandl [Fri, 11 May 2007 11:04:26 +0000 (11:04 +0000)]
Patch #1714700: clarify os.linesep vs. tfiles opened in text mode.
 (backport)

17 years agoRemove an XXX that is unnecessary.
Georg Brandl [Fri, 11 May 2007 09:41:37 +0000 (09:41 +0000)]
Remove an XXX that is unnecessary.

17 years agoDeprecate os.popen* and popen2 module in favor of the subprocess module. (forgot...
Neal Norwitz [Fri, 11 May 2007 07:13:30 +0000 (07:13 +0000)]
Deprecate os.popen* and popen2 module in favor of the subprocess module. (forgot the doc)

17 years agoDeprecate os.popen* and popen2 module in favor of the subprocess module.
Neal Norwitz [Fri, 11 May 2007 06:57:33 +0000 (06:57 +0000)]
Deprecate os.popen* and popen2 module in favor of the subprocess module.

17 years agoRemove trailing whitespace in docstring
Neal Norwitz [Fri, 11 May 2007 06:56:52 +0000 (06:56 +0000)]
Remove trailing whitespace in docstring

17 years agoFix typo in docstring (the module is popen2, not 3).
Neal Norwitz [Fri, 11 May 2007 06:23:01 +0000 (06:23 +0000)]
Fix typo in docstring (the module is popen2, not 3).

17 years agoDon't ever report a failure when the sum of the reference count differences
Neal Norwitz [Fri, 11 May 2007 05:55:15 +0000 (05:55 +0000)]
Don't ever report a failure when the sum of the reference count differences
are zero.  This should help reduce the false positives.

The message about references leaking is maintained to provide as much
info as possible rather than simply suppressing the message at the source.

17 years agoFix a bug in test_c_api() that caused a negative refcount.
Guido van Rossum [Thu, 10 May 2007 17:20:15 +0000 (17:20 +0000)]
Fix a bug in test_c_api() that caused a negative refcount.

17 years agoBackport checkin:
Walter Dörwald [Wed, 9 May 2007 18:10:47 +0000 (18:10 +0000)]
Backport checkin:
Fix a segfault when b"" was passed to b2a_qp() -- it was using strchr()
instead of memchr().

17 years agoAdd markup for True/False. Will backport
Neal Norwitz [Wed, 9 May 2007 06:43:15 +0000 (06:43 +0000)]
Add markup for True/False.  Will backport