summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* preparing for 2.4.4 finalAnthony Baxter2006-10-172-1/+6
|
* what month is it again? I get confused...v2.4.4c1Anthony Baxter2006-10-101-1/+1
|
* preparing for 2.4.4c1Anthony Baxter2006-10-102-1/+6
|
* Update distutils version number to match the library version numberAnthony Baxter2006-10-101-1/+1
|
* Backport of the pieces of trunk rev 46589 relevant toTim Peters2006-10-092-3/+25
| | | | | | | | | | | | | fixing an unlikely crash bug in dict resizing, SF bug 1456209. The rest of rev 46589 changes whether Python suppresses exceptions during some dict-related comparisons. While I think that's a good idea, it does change visible behavior at times, and there was already some complaining about that on the trunk. Not a good idea for backporting. The part of 46589 checked in here can at worst stop segfaults, and I doubt anyone will gripe about that ;-)
* Backport r45505, r45573, r45576Martin v. Löwis2006-10-091-0/+5
| | | | | | | | | | | | | | | | | | - reset errno before calling confstr - use confstr() doc to simplify checks afterwards - Correct implementation and documentation of os.confstr. Add a simple test case. I've yet to figure out how to provoke a None return I can test. - Address issues brought up by MvL on python-checkins. I tested this with valgrind on amd64. The man pages I found for diff architectures are inconsistent on this. I'm not entirely sure this change is correct for all architectures either. Perhaps we should just over-allocate and not worry about it? The change to return None instead of "" in case of unconfigured values has not been backported.
* [Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list.Andrew M. Kuchling2006-10-091-1/+1
|
* Port of universal binary support for Mac OSX from python 2.5. This takes awayRonald Oussoren2006-10-087-6/+140
| | | | | | | | the need for the out-of-tree universal binary support that was used to build the 2.4.3 installer. Missing here relative to that tree are some changes to IDLE, IMHO those patches aren't appropriate for the 2.4 branch and users are better of using 2.5's IDLE.
* Backport from trunk r52223:Hye-Shik Chang2006-10-081-1/+11
| | | | | Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault when encoding non-BMP unicode characters. (Submitted by Ray Chason)
* [Backport r51248 | neal.norwitz]Andrew M. Kuchling2006-10-051-0/+8
| | | | | | | Fix segfault when doing string formatting on subclasses of long if __oct__, __hex__ don't return a string. Klocwork 308
* A review of overflow-detecting code in the 2.4 branch.Armin Rigo2006-10-042-4/+17
| | | | | | | | | | | | * unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c.
* Fix integer negation and absolute value to not relyMartin v. Löwis2006-10-041-0/+1
| | | | on undefined behaviour of the C compiler anymore.
* decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense toBarry Warsaw2006-10-041-4/+0
| | | | test for parts > 3 when we use .split(..., 2).
* [Backport rev. 51728 by neal.norwitz]Andrew M. Kuchling2006-10-032-2/+2
| | | | Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].
* Back out r52076, it's causing the buildbots to fail because of ↵Georg Brandl2006-09-301-1/+1
| | | | test_charmapcodec.
* Bug #1446043: correctly raise a LookupError if an encoding name givenGeorg Brandl2006-09-301-1/+1
| | | | | to encodings.search_function() contains a dot. (backport from rev. 52075)
* Bug #1556784: allow format strings longer than 127 characters inGeorg Brandl2006-09-301-0/+1
| | | | | datetime's strftime function. (backport from rev. 52072)
* Bug #1560617: in pyclbr, return full module name not only for classes,Georg Brandl2006-09-302-1/+4
| | | | | but also for functions. (backport from rev. 52069)
* Bug #1566602: correct failure of posixpath unittest when $HOME endsGeorg Brandl2006-09-301-2/+1
| | | | | with a slash. (backport from rev. 52065)
* Patch #1567691: super() and new.instancemethod() now don't acceptGeorg Brandl2006-09-302-0/+15
| | | | | | keyword arguments any more (previously they accepted them, but didn't use them). (backport from rev. 52058)
* [Backport rev. 46882 by neal.norwitz]Andrew M. Kuchling2006-09-294-6/+50
| | | | Fix the socket tests so they can be run concurrently. Backport candidate
* [Backport rev. 38534 by loewis]Andrew M. Kuchling2006-09-271-1/+4
| | | | | | | | | | [Possibly controversial because it adds a parameter to a method. This parameter isn't documented, however, so arguably it's a private detail, and the fix is necessary to make GzipFile.flush() behave more similarly to regular file object.] Patch #1110248: SYNC_FLUSH the zlib buffer for GZipFile.flush. Partially fixes #1110242.
* Backport 51850 from release25-maint branch.Neal Norwitz2006-09-113-25/+234
| | | | | | | As mentioned on python-dev, reverting patch #1504333 because it introduced an infinite loop in rev 47154. This patch also adds a test to prevent the regression.
* Backport from trunk r51737:Hye-Shik Chang2006-09-072-0/+8
| | | | | | | | | Fixed a few bugs on cjkcodecs: - gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly. - iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312 codepoints to conform the standard. - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 0213:2 codepoints now.
* Fix missing import of the types module in logging.config.Georg Brandl2006-09-061-1/+1
| | | | (backport from rev. 51785)
* Backport trunk's revision 51565:Thomas Wouters2006-08-241-0/+7
| | | | | | Fix SF bug #1545837: array.array borks on deepcopy. array.__deepcopy__() needs to take an argument, even if it doesn't actually use it. Will backport to 2.5 and 2.4 (if applicable.)
* Backport rev 51448:Georg Brandl2006-08-221-0/+4
| | | | | - Patch #1541585: fix buffer overrun when performing repr() on a unicode string in a build with wide unicode (UCS-4) support.
* Add an additional test: BZ2File write methods should raise IOErrorGeorg Brandl2006-08-141-0/+9
| | | | | when file is read-only. (backport from rev. 51287)
* Patch #1535500: fix segfault in BZ2File.writelines and make sure itGeorg Brandl2006-08-141-0/+2
| | | | | raises the correct exceptions. (backport from rev. 51285)
* Backport whitespace-normalization-proofing test_cgi fix.Georg Brandl2006-08-111-2/+2
|
* Chris McDonough's patch to defend against certain DoS attacks on FieldStorage.Georg Brandl2006-08-113-5/+86
| | | | SF bug #1112549. (backport from rev. 51190)
* Backport fixes for #1523610 (crashes in PyArg_ParseTuple):Georg Brandl2006-08-091-1/+18
| | | | rev. 51158 and rev. 50843.
* memcmp() can return values other than -1, 0, and +1 but tp_compareThomas Heller2006-08-081-0/+1
| | | | must not.
* Don't produce output in test_builtin.Georg Brandl2006-08-061-2/+2
| | | | (backport from rev. 51131)
* Bug #1535165: fixed a segfault in input() and raw_input() whenGeorg Brandl2006-08-061-0/+8
| | | | | sys.stdin is closed. (backport from rev. 51129)
* Bug #1535182: really test the xreadlines() method of bz2 objects.Georg Brandl2006-08-061-1/+1
| | | | (backport from rev. 51126)
* Complain about missing VS 2003 in the error messageMartin v. Löwis2006-07-301-2/+4
| | | | | of msvccompiler, and mention Cygwin as an alternative. Fixes #1257728.
* Patch #1529686: run test_iterlen and test_email_codecs in 2.4.Georg Brandl2006-07-282-7/+9
|
* Backport r50840 to Python 2.4:Barry Warsaw2006-07-282-1/+56
| | | | | | | | | | Forward port some fixes that were in email 2.5 but for some reason didn't make it into email 4.0. Specifically, in Message.get_content_charset(), handle RFC 2231 headers that contain an encoding not known to Python, or a character in the data that isn't in the charset encoding. Also forward port the appropriate unit tests. Also, this resolves SF bug #1414018.
* - pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrenameGregory P. Smith2006-07-281-6/+31
| | | | | | | | | methods now allow their database parameter to be None as the sleepycat API allows. also adds a testcase. backport of trunk commit 50889 to 2.4.
* Merge rev 50882 from the trunk.Tim Peters2006-07-272-7/+5
| | | | | | Bug #1529297: The rewrite of doctest for Python 2.4 unintentionally lost that tests are sorted by name before being run. ``DocTestFinder`` has been changed to sort the list of tests it returns.
* Oops, this time, really bump the email version number to 3.0.2.Barry Warsaw2006-07-231-1/+1
|
* Port r50754 to Python 2.4/email 3.0. Bump the email version number to 3.0.2.Barry Warsaw2006-07-232-29/+177
|
* Put method-wrappers into trashcan. Fixes #927248.Martin v. Löwis2006-07-031-0/+8
|
* Patch #825417: Fix timeout processing in expect,Martin v. Löwis2006-07-031-1/+15
| | | | read_until.
* Bug #1267547: Put proper recursive setup.py call into theMartin v. Löwis2006-07-031-3/+4
| | | | spec file generated by bdist_rpm.
* SF bug #1504333: sgmlib should allow angle brackets in quoted valuesFred Drake2006-06-292-6/+25
| | | | | | | (modified patch by Sam Ruby; changed to use separate REs for start and end tags to reduce matching cost for end tags; extended tests; updated to avoid breaking previous changes to support IPv6 addresses in unquoted attribute values)
* Removed buggy exception handling in doRollover of rotating file handlers. ↵Vinay Sajip2006-06-271-18/+6
| | | | Exceptions now propagate to caller.
* - SF bug #853506: IP6 address parsing in sgmllibFred Drake2006-06-232-1/+9
| | | | ('[' and ']' were not accepted in unquoted attribute values)
* Applied patch #1506758: Prevent MemoryErrors with large MAXFD. Backport of ↵Peter Astrand2006-06-222-2/+2
| | | | 47077.