Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
6db1283 Backport 2.34. SF #621948, update docstring for md5 by David M. Cooke 11 October 2002, 21:55:13 UTC
3974ce3 Backport listobject.c 2.137 and tupleobject.c 2.75: Add checks for size overflow on list*n, list+list, tuple+tuple. 11 October 2002, 21:13:14 UTC
ccf84d6 Clarify impending deprecation of the floor div operator, modulo operator, and divmod() function for complex numbers. Closes SF Bug 621708: Unclear deprecation. 11 October 2002, 20:59:57 UTC
e5be24c Backport 2.193: PyObject_Init[Var] is almost always called from the PyObject_NEW[_VAR] macros. The 'op' argument is then the result from PyObject_MALLOC, and that can of course be NULL. In that case, PyObject_Init[Var] would raise a SystemError with "NULL object passed to PyObject_Init[Var]". But there's nothing the caller of the macro can do about this. So PyObject_Init[Var] should call just PyErr_NoMemory. 11 October 2002, 20:37:58 UTC
1759eb7 SF bug 621507: python22.dll incorrect "File version". The MS resource compiler can't do arithmetic. Fixed it by hand. Note that the new PCbuild\field3.py was added to help with this, and injects another manual step into the Python Windows release process. 11 October 2002, 18:38:20 UTC
3db4f23 Backporting a new file from 2.3 needed to worm around that MS's resource compiler can't do correct arithmetic. The 3rd 16-bit int in the "binary file version" we produce on Windows has been nonsense as a result. I'll fix that next. 11 October 2002, 18:29:54 UTC
2145b50 This commit was manufactured by cvs2svn to create branch 'release22-maint'. 11 October 2002, 18:29:54 UTC
37893be Added a debug target for PythonCoreCarbon 11 October 2002, 14:59:36 UTC
d9ddf59 Backport stringobject.c 2.194 and unicodeobject.c 2.172: Fix a nasty endcase reported by Armin Rigo in SF bug 618623: '%2147483647d' % -123 segfaults. This was because an integer overflow in a comparison caused the string resize to be skipped. After fixing the overflow, this could call _PyString_Resize() with a negative size, so I (1) test for that and raise MemoryError instead; (2) also added a test for negative newsize to _PyString_Resize(), raising SystemError as for all bad arguments. An identical bug existed in unicodeobject.c, of course. 11 October 2002, 00:47:20 UTC
ebc6a65 New in 2.2.2! In inherit_slots(), get rid of the COPYSLOT(tp_dictoffset). Copying the offset from a non-dominant base makes no sense: either the non-dominant base has a nonzero tp_dictoffset, and then we should have already copied it from the dominant base (at the very end of inherit_special()), or the non-dominant base has no tp_dictoffset and for some reason type_new() decided not to add one. The tp_dictoffset from a non-dominant base is likely to conflict with the instance layout of the dominant base, so copying the tp_dictoffset from the non-dominant base would be a really bad idea in that case. This bug can only be triggered by multiple inheritance from an extension class that doesn't set tp_dictoffset and a new-style user-level class that does have one. There are no such extension classes in the distribution, but there are 3rd party ones. (Zope3 now has one, that's how I found this. :-) I've asked a few heavy users of new-style classes, extension classes and metaclasses (David Abrahams and Kevin Jacobs), and neither of them found any problems in their test suite after applying this fix, so I assume it's safe. 11 October 2002, 00:22:22 UTC
a1eb227 Backport the relevant part of 2.192: The string formatting code has a test to switch to Unicode when %s sees a Unicode argument. Unfortunately this test was also executed for %r, because %s and %r share almost all of their code. This meant that, if u is a unicode object while repr(u) is an 8-bit string containing ASCII characters, '%r' % u is a *unicode* string containing only ASCII characters! Fixed by executing the test only for %s. 11 October 2002, 00:09:51 UTC
3d3a0fa Updated for VISE 8, and for 2.2.2b1 distribution. 10 October 2002, 22:18:48 UTC
a109850 Upped the stack limit to 256K to make test_class pass. 10 October 2002, 21:16:04 UTC
efe39e5 Use \n as line separator in stead of \r\n, which causes problems in MacPython 2.2. 10 October 2002, 21:13:53 UTC
db48b27 Backport of 1.7: Reorganized so the test is skipped if os.popen() doesn't exist (in stead of fail ing). 10 October 2002, 20:46:33 UTC
bf50390 Backport email 2.4.2 changes from Python 2.3. 10 October 2002, 19:10:45 UTC
ab16eae Document when unittest was added to Python. 10 October 2002, 16:16:03 UTC
82053eb Expand AC_CHECK_SIZEOF inline to overcome a autoconf 2.13 weakness. Fixes #620791. 10 October 2002, 15:26:46 UTC
9f3e949 detect_modules(): Be more conservative about adding runtime_library_dirs (i.e. -R flags) when building the _socket.so module. Whitelist only the platforms we know need the flags, which are only sunos (aka Solaris) platforms at the moment. Tested on RH7.3, OSX 10.2, and Solaris 8. Forward port candidate for Python 2.3. 10 October 2002, 00:59:16 UTC
712f7fb Accept Armin's documentation patch for SF bug #558179. Adjusted some markup to make the descriptions more consistent. 09 October 2002, 22:34:39 UTC
11caaf9 Make this file identical to the version on the trunk. 09 October 2002, 16:38:18 UTC
c2e1a8f List specific updates for IDLE. 09 October 2002, 03:53:10 UTC
f8e943f The list(xrange(sys.maxint / 4)) test. Changed 4 to 2. The belief is that this test intended to trigger a bit of code in listobject.c's NRESIZE macro that's looking for arithmetic overflow. As written, it doesn't achieve that, though, and leaves it up to the platform realloc() as to whether it wants to allocate 2 gigabytes. Some platforms say "sure!", although they don't appear to mean it, and disaster ensues. Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow test instead, leaving the platform realloc() out of it. 08 October 2002, 21:03:26 UTC
aff84f7 Fix some code that was added to the r22-maint branch to allow it to work with arbitrary versions of Expat. Not applicable to Python 2.3, which will incorporate an Expat that does not need this crutch. 08 October 2002, 19:49:36 UTC
f1446ca Fix a few typos: an extra space; typo in filename; capitalization error in method name 08 October 2002, 17:00:41 UTC
0ca64f5 Put a do-nothing set_python_build() back. 08 October 2002, 14:59:43 UTC
bb857ac Initialize tick_counter to 0. Found by Neal Norwitz. 08 October 2002, 14:50:55 UTC
9096faf Fix typo. Prepare headers for 2.2.2 final release. 08 October 2002, 14:49:38 UTC
2e382ca Upgrade the version *string* by adding a '+'. This marks the first checkin since 2.2.2b1 was released. 08 October 2002, 01:04:34 UTC
24f7c89 This commit was manufactured by cvs2svn to create tag 'r222b1'. 07 October 2002, 21:38:58 UTC
be36d02 News for 2.2.2b1. I'm exhausted -- this was a multi-hour job of poring over the logs. Quite likely I've forgotten some things, introduced typos, and organized things less than ideally. 07 October 2002, 21:38:58 UTC
bb872f1 Fix up the release number for the 2.2.2b1 documentation release. This is what was actually used. 07 October 2002, 18:47:48 UTC
b87bdb7 Update version to 2.2.2b1. 07 October 2002, 18:14:18 UTC
0df0b42 Backport, at the reqest of Kevin Jacobs: - Changed new-style class instantiation so that when C's __new__ method returns something that's not a C instance, its __init__ is not called. [SF bug #537450] XXX This is arguably a semantic change, but it's hard to imagine a reason for wanting to depend on the old behavior. If problems with this are reported within a week of the release of 2.2.2 beta 1, we may revert this change. 07 October 2002, 18:08:27 UTC
5fc952a Update the email package version number. 07 October 2002, 17:19:41 UTC
9a5e668 Bump the version to 2.4.1 (not 2.5 as previously mentioned) to sync it with the standalone mimelib package. 07 October 2002, 17:18:52 UTC
13af364 Backport 1.68: Extend stripid() to handle strings ending in more than one '>'. Add resolve() to handle looking up objects and names (fix SF bug 586931). Add a nicer error message when given a filename that doesn't exist. 07 October 2002, 17:09:25 UTC
2972bde openfile(): Go back to opening the files in text mode. This undoes the change in revision 1.11 (test_email.py) in response to SF bug #609988. We now think that was the wrong fix and that WinZip was the real culprit there. This and the Parser.py patch will be forward ported into Python 2.3 and email 2.5. 07 October 2002, 17:05:28 UTC
d5613ba _parsebody(): Use get_content_type() instead of the deprecated get_type(). Also, one of the regular expressions is constant so might as well make it a module global. And, when splitting up digests, handle lineseps that are longer than 1 character in length (e.g. \r\n). 07 October 2002, 17:02:40 UTC
753eb68 Backport patches from trunk revisions 1.62, 1.63. Modified to be easier to read for both HTML and typeset renderings. Relies on ../perl/python.perl revision 1.116.4.4. 07 October 2002, 16:26:28 UTC
86c6b96 Back-port part of 1.128 from the trunk: \productioncont: Replace leading spaces with   so that it's possible to control the indentation of continuation lines. 07 October 2002, 16:18:57 UTC
02eb04c Backport 1.63: In both spilldata() functions, pretend that the docstring for non-callable objects is always None. This makes for less confusing output and fixes the problem reported in SF patch #550290. 07 October 2002, 13:24:02 UTC
536f3ea Darn. Fix stupid typo in whichmodule() backport. 07 October 2002, 13:18:23 UTC
c202fd2 Backport 1.70 and 1.71 (which really go together): 1.70: whichmodule() should skip dummy package entries in sys.modules. This fixes the charming, but unhelpful error message for >>> pickle.dumps(type.__new__) Can't pickle <built-in method __new__ of type object at 0x812a440>: it's not the same object as datetime.math.__new__ 1.71: Fiddle comments and variable names in whichmodule(). 07 October 2002, 13:09:25 UTC
d1bb755 Backport: 2002/08/11 12:23:04 lemburg Python/bltinmodule.c 2.262 2002/08/11 12:23:04 lemburg Objects/unicodeobject.c 2.162 2002/08/11 12:23:03 lemburg Misc/NEWS 1.461 2002/08/11 12:23:03 lemburg Lib/test/test_unicode.py 1.65 2002/08/11 12:23:03 lemburg Include/unicodeobject.h 2.39 Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level. u'%c' will now raise a ValueError in case the argument is an integer outside the valid range of Unicode code point ordinals. Closes SF bug #593581. 07 October 2002, 12:32:57 UTC
b45532a A couple of fixes for the compiler package: * always write the mtime to a .pyc in little endian format * ensure class's docstrings get attached to the class, not the enclosing scope! Rather more fixes are needed for the trunk; these will be done in due course. 07 October 2002, 12:21:09 UTC
2942d5e Patch #609700: always build with same $(CC) on Linux. 07 October 2002, 11:57:04 UTC
51e80df Backport my checkin of revision 2.264 of Python/compile.c: Clamp code objects' tp_compare result to [-1, 1]. Bugfix candidate. 07 October 2002, 11:30:07 UTC
c01f360 Backport fdrake's revision 1.88 of setup.py revision 1.46 of Lib/distutils/sysconfig.py When using a Python that has not been installed to build 3rd-party modules, distutils does not understand that the build version of the source tree is needed. This patch fixes distutils.sysconfig to understand that the running Python is part of the build tree and needs to use the appropriate "shape" of the tree. This does not assume anything about the current directory, so can be used to build 3rd-party modules using Python's build tree as well. This is useful since it allows us to use a non-installed debug-mode Python with 3rd-party modules for testing. It as the side-effect that set_python_build() is no longer needed (the hack which was added to allow distutils to be used to build the "standard" extension modules). This closes SF patch #547734. 07 October 2002, 10:38:33 UTC
5e40e74 This is Armin Rigo's patch: [ 617309 ] getframe hook (Psyco #1) Forward port candidate. 07 October 2002, 09:47:21 UTC
ddd3f0e This is Armin Rigo's patch: [ 617311 ] Tiny profiling info (Psyco #2) Forward port candidate. 07 October 2002, 09:40:20 UTC
b397f21 This is Armin Rigo's patch: [ 617312 ] debugger-controlled jumps (Psyco #3) Forward port candidate, I guess. 07 October 2002, 09:37:26 UTC
fc1db30 Fix quoting for Solaris LDSHARED. 07 October 2002, 06:22:21 UTC
975a80d Patch #619493: Prefer rpmbuild over rpm if available. 07 October 2002, 05:56:42 UTC
cb462f2 Patch #619352: Update for 2.2.2b1. Install python2 and python2.2. Add Makefile.pre.in to -devel. 07 October 2002, 05:53:29 UTC
ca51492 Backport 2.27: Fix bug 439992 - [win32] KeyboardInterrupt Not Caught. This gets us closer to consistent Ctrl+C behaviour on NT and Win9x. NT now reliably generates KeyboardInterrupt exceptions for NT when a file IO operation was aborted. Bugfix candidate 07 October 2002, 02:33:56 UTC
cec1254 This has no hope of working under -O. Skip it then instead of failing. 07 October 2002, 01:20:52 UTC
e40add4 Whitespace normalization. 07 October 2002, 01:18:17 UTC
d691136 They don't work yet, but the installer at least needs to install the email pkg's distinct test suite. 07 October 2002, 00:59:01 UTC
830abbb Backport 1.34: Changing section reference. 06 October 2002, 22:47:12 UTC
9e6aab6 Backport 1.33: Update programmer's note on nested functions. 06 October 2002, 22:37:40 UTC
397848f Backport 1.52: SF # 555779, import user doesn't work with CGIs 06 October 2002, 22:11:13 UTC
7034f69 Aargh! The 2.3 version of this file requires "from test.test_support import run_suite", but the 2.2.2 version requires "from test_support import run_suite" ... :-( 06 October 2002, 20:14:58 UTC
32b1b43 Patch #572031: AUTH method LOGIN for smtplib. 06 October 2002, 17:51:10 UTC
19cb870 Backport: Make sure the email test suite can be run both stand-alone and under supervision of regrtest.py. 06 October 2002, 14:38:00 UTC
8c354ac Backport 2.49: SF #558432: Prevent Annoying ' ' from readline (Holker Krekel). readline in all python versions is configured to append a 'space' character for a successful completion. But for almost all python expressions 'space' is not wanted (see coding conventions PEP 8). For example if you have a function 'longfunction' and you type 'longf<TAB>' you get 'longfunction ' as a completion. note the unwanted space at the end. The patch fixes this behaviour by setting readline's append_character to '\0' which means don't append anything. This doesn't work with readline < 2.1 (AFAIK nowadays readline2.2 is in good use). An alternative approach would be to make the append_character accessable from python so that modules like the rlcompleter.py can set it to '\0'. [Ed.: I think expecting readline >= 2.2 is fine. If a completer wants another character they can append that to the keyword in the list.] 06 October 2002, 05:43:47 UTC
f29109a Backport 1.45: Allow abspath to still do something sensisble if the nt module can not be imported. 06 October 2002, 04:34:44 UTC
6acdcd2 Assorted changes needed to release 2.2.2b1. 06 October 2002, 04:14:18 UTC
c2f1216 Backport 1.45: Fix a problem in site.py which triggers in case sys.path is empty. Bugfix candidate for 2.2.2. 06 October 2002, 03:52:44 UTC
e1c9e10 Backport 1.12 and 1.13 and normalize whitespace (remove formfeeds): SF #515021, print the refused list to the DEBUGSTREAM, so the parameter is used Note: There is a TBD (aka FIXME) for how best to handle the refused addresses. smtp_RCPT(): Removed a somewhat embarrassing debugging line, found by Scot Stevenson. Could be a bug fix candidate, but probably doesn't matter much unless a certain blue-nosed cat suddenly becomes corporeal and starts emailing some stmp.py (sic) fronted mailer. 06 October 2002, 03:45:40 UTC
6b7a7d2 Backport 1.60 and 1.62: Patch #586999: Fix multiline string in sendmail example. smptlib did not handle empty addresses. The problem was that it expected rfc822.parseaddr() to return None upon a parse failure. The actual, documented return value for a parse failure is (None, None). Closes SF bug 602029. 06 October 2002, 03:37:00 UTC
5c6ab4a Backport 1.151 and 1.152: Treat file://localhost/ as local too (same as file:/ and file:///). Fixes #607789, bugfix candidate. 06 October 2002, 03:24:29 UTC
65e03cd Backport 1.17: Ignore IOError exceptions when writing the message. 06 October 2002, 03:18:34 UTC
a7ce624 Backport 1.7: SF # 555779, import user doesn't work with CGIs 06 October 2002, 03:13:29 UTC
100fcd0 Backport 1.28 and 1.29: SF #515026, delete global variable that was apparently used only in a for loop. 06 October 2002, 03:10:26 UTC
452fc85 Backport 1.42 documenting impending deprecation in favor of the email module. 06 October 2002, 02:38:46 UTC
bd79c37 Backport 1.13 documenting impending deprecation in favor of the email module. 06 October 2002, 02:36:36 UTC
f66801a Backport 1.3 documenting impending deprecation in favor of the email module. 06 October 2002, 02:34:15 UTC
78c27c2 Backport 1.23 documenting impending deprecation in favor to the email package. 06 October 2002, 02:32:34 UTC
ca2fefa Backport 1.4 documenting the impending deprecation of xreadlines. 06 October 2002, 02:29:03 UTC
658d0ad Backport 1.36 documenting Py2.3's impending deprecation of the non-tuple form. 06 October 2002, 02:24:00 UTC
79c78f4 Backport 1.108 documenting Py2.3's impending deprecation of divmod() for complex numbers. 06 October 2002, 02:16:52 UTC
d751105 Backport 2.103: Made conversion failure error messages consistent between types. 05 October 2002, 21:14:12 UTC
c52a36f Backport 2.63 and 2.60: Call me anal, but there was a particular phrase that was speading to comments everywhere that bugged me: /* Foo is inlined */ instead of /* Inline Foo */. Somehow the "is inlined" phrase always confused me for half a second (thinking, "No it isn't" until I added the missing "here"). The new phrase is hopefully unambiguous. Close SF bug 563740. complex() now finds __complex__() in new style classes. Made conversion failure error messages consistent between types. Added related unittests. 05 October 2002, 20:43:43 UTC
ad565a3 Backported Jeremy's documentation of nested scopes, execution frames and such. 05 October 2002, 16:55:11 UTC
f45d4fa Typo 05 October 2002, 15:52:38 UTC
989aa00 Backport 1.94: Patch 543387. Document deprecation of complex %, //,and divmod(). 05 October 2002, 15:41:56 UTC
2d4b27e Backport 1.100: Discussion of Stop Iteration in the Iterator Protocol. 05 October 2002, 15:38:16 UTC
216c977 Backport 1.88 and 1.87: Update docs to reflect that \b considers underscore to be part of a word. 05 October 2002, 15:25:33 UTC
ad8f9d1 Backport 1.19: Document that the key should not contain null bytes. 05 October 2002, 15:14:33 UTC
89c04ae Backport 1.30 and 1.29: Markup adjustments; fix the names of modules referenced in an expression. Deprecated Random.cunifvariate clearing bug 506647. 05 October 2002, 15:00:09 UTC
67fe68e Backport 1.33 (omitting the deprecation warning but keeping the deprecation comment): Deprecated Random.cunifvariate clearing bug 506647. Also, added docstrings. 05 October 2002, 14:42:52 UTC
98bfbc3 Backport 1.61 (note, the actual deprecation is not backported since it could affect existing code; instead, the documentation of the deprecation is being backported to provide maximum advance notice): Patch 543387. Document deprecation of complex %, //,and divmod(). 05 October 2002, 06:51:34 UTC
490561e Backport 1.94: Clarified that the footnote applies to versions 1.5 and after instead of just version 1.5. Closes SF bug 577793. 05 October 2002, 06:40:49 UTC
aca53fc Backport 1.54 1.53 1.52 1.51 1.50 and 1.49: Try to improve the explanation of the "raise" statement and how its arguments are interpreted. This closes SF bug #532467. Fix Typo. Reword explanation of global statement since an undeclared global is a free variable and is subject to those rules. Note the sole case in which the ban on "from ... import *" within a function is enforced. Remove the following restriction: Names bound by import statements may not occur in global statements in the same scope. Why not? Note that it is illegal to delete a cell variable. Note that deleteing an unbound local will raise a NameError. 05 October 2002, 06:12:08 UTC
66d8b27 Backport 1.160 on looping idioms. Excludes enumerate(), a Py2.3 feature. 05 October 2002, 05:14:19 UTC
9efc111 Backport 1.161: Message for NameError has changed. 05 October 2002, 05:04:07 UTC
b3e15fe Backport 1.43: Extended IDLE's open module menu item to handle hierarchical module names. Closes SF patch 600152. 05 October 2002, 03:58:16 UTC
11b11b5 Version number updates for Python 2.2.2. 04 October 2002, 20:40:45 UTC
29a3817 Remove some unnecessary dependencies (minor). 04 October 2002, 19:22:37 UTC
back to top