1757 Commits

Author SHA1 Message Date
Martin v. Löwis
b0f9635265 Prepare for 2.3.7. 2008-03-11 18:00:08 +00:00
Martin v. Löwis
cb6727e811 Prepare for 2.3.7c1. 2008-03-02 20:39:32 +00:00
Martin v. Löwis
d254ca8813 Backport of r61180:
Added checks for integer overflows, contributed by Google. Some are
only available if asserts are left in the code, in cases where they
can't be triggered from Python code.
2008-03-02 20:32:57 +00:00
Anthony Baxter
5c099d7ce1 updates for 2.3.6 final 2006-11-01 07:04:56 +00:00
Anthony Baxter
9f839d5b23 preparing for 2.3.6c1 2006-10-23 15:27:22 +00:00
Anthony Baxter
1785d3fce8 patch for PSF-2006-001. 2006-10-23 15:23:22 +00:00
Barry Warsaw
2bfcf5d1f1 Back port r50693 and r50754 from the trunk (and 2.4 branch):
decode_rfc2231(): Be more robust against buggy RFC 2231 encodings.
Specifically, instead of raising a ValueError when there is a single
tick in the parameter, simply return that the entire string unquoted, with
None for both the charset and the language.  Also, if there are more than 2
ticks in the parameter, interpret the first three parts as the standard RFC
2231 parts, then the rest of the parts as the encoded string.

More RFC 2231 improvements for the email 4.0 package.  As Mark Sapiro
rightly points out there are really two types of continued headers
defined in this RFC (i.e. "encoded" parameters with the form
"name*0*=" and unencoded parameters with the form "name*0="), but we
were were handling them both the same way and that isn't correct.

This patch should be much more RFC compliant in that only encoded
params are %-decoded and the charset/language information is only
extract if there are any encoded params in the segments.  If there are
no encoded params then the RFC says that there will be no
charset/language parts.

Note however that this will change the return value for
Message.get_param() in some cases.  For example, whereas before if you
had all unencoded param continuations you would have still gotten a
3-tuple back from this method (with charset and language == None), you
will now get just a string. I don't believe this is a backward
incompatible change though because the documentation for this method
already indicates that either return value is possible and that you
must do an isinstance(val, tuple) check to discriminate between the
two.  (Yeah that API kind of sucks but we can't change /that/ without
breaking code.)

Test cases, some documentation updates, and a NEWS item accompany this
patch.

Original fewer-than-3-parts fix by Tokio Kikuchi.

Resolves SF bug # 1218081.

Also, bump the package version number to 2.5.8 for release.
2006-07-25 13:06:56 +00:00
Andrew M. Kuchling
b6d857a460 Begin 2.3.6 news section; record PCRE fix 2005-08-31 12:58:09 +00:00
Anthony Baxter
dc70706aab 2.3.5 final 2005-02-08 12:57:55 +00:00
Anthony Baxter
9f181ec17d news update for 2.3.5 final 2005-02-08 05:57:20 +00:00
Guido van Rossum
018a548f00 Security fix PSF-2005-001 for SimpleXMLRPCServer.py. 2005-02-03 14:59:43 +00:00
Martin v. Löwis
f3377e42e3 Partially revert #1074011; don't try to fflush stdin. 2005-01-27 18:55:06 +00:00
Anthony Baxter
dd6ab86d12 pre-release bits 2005-01-25 12:51:43 +00:00
Martin v. Löwis
03bdf1719c Flush std{in,out,err} before closing it. Fixes #1074011. 2005-01-23 09:50:32 +00:00
Thomas Heller
5fc22ec17e distutils/command/install.py change. 2005-01-20 19:22:12 +00:00
Kurt B. Kaiser
7c89f1ab87 Backport Patch #850977: Detect Tk on FreeBSD and OpenBSD. 2005-01-17 21:07:52 +00:00
Sean Reifschneider
15f51d7464 Merging the current development changes for the idle wrapper. 2005-01-05 04:59:29 +00:00
Jack Jansen
6db8cd1c28 Mac news items. 2005-01-04 16:07:04 +00:00
Andrew M. Kuchling
f3478d9d75 [Bug #1083110] calling .flush() on decompress objects causes a segfault due to an uninitialized pointer: fixes the problem and adds a test case 2004-12-28 20:31:27 +00:00
Thomas Heller
69bb9871c1 Document bdist_wininst changes. 2004-12-22 16:10:33 +00:00
Matthias Klose
c57bd881ea Taken from 2.4/HEAD:
- Bug #875692: Improve signal handling, especially when using threads, by
  forcing an early re-execution of PyEval_EvalFrame() "periodic" code when
  things_to_do is not cleared by Py_MakePendingCalls().
2004-12-01 07:36:58 +00:00
Tim Peters
7d37a2a564 SF 1055820: weakref callback vs gc vs threads
In cyclic gc, clear all weakrefs to unreachable objects before allowing any
Python code (weakref callbacks or __del__ methods) to run.

This is a critical bugfix, affecting all versions of Python since weakrefs
were introduced.
2004-10-31 00:13:07 +00:00
Andrew M. Kuchling
2712d964d1 Add item 2004-10-20 11:55:54 +00:00
Andrew M. Kuchling
36745d0fd0 Add item 2004-10-19 19:55:35 +00:00
Brett Cannon
9c183d2247 Add support for using %U and %W in strptime when year and day of the week are
also specified.

Closes bug #1045381.
2004-10-18 01:56:17 +00:00