https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
5c9aad6 Only treat an AugAssign as def if its the target is a Name. Fixes last bug found with test_scope.py. 12 April 2001, 07:06:25 UTC
3f76b7e Fix unpackSequence() to use _nameOp() rather than LOAD_FAST 12 April 2001, 06:52:27 UTC
660cc77 Inside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAME 12 April 2001, 06:49:00 UTC
364f9b9 Preliminary support for nested scopes XXX Still doesn't work right for classes XXX Still doesn't do sufficient error checking 12 April 2001, 06:40:42 UTC
53ee2a9 Define constants for types of scopes 12 April 2001, 06:39:24 UTC
0056a42 Added a lot of text from Steve Purcell's HTML documentation. Updated reference material substantially based on discussions on the pyunit-interest mailing list (not all changes are in the code in CVS yet). 12 April 2001, 04:50:06 UTC
c790e08 Use "2.1c1" since that is what Guido used for the Python version number. 12 April 2001, 04:34:26 UTC
0c14961 Update to reflect the new string repr -- \n instead of \012. This is the only documentation file that appears to be affected by the change! 12 April 2001, 04:26:24 UTC
bfedde8 Prepare for release candidate 1... aka 2.1c1. 12 April 2001, 04:11:51 UTC
9ad526f Markup nit: use \envvar to mark environment variables. 12 April 2001, 04:11:21 UTC
e0197bf When forming the <A> tag for a \seepep or \seerfc, make sure we strip HTML markup from the string used as the title in the TITLE attribute. This fixes formatting in the "What's New in Python 2.1" document. 12 April 2001, 04:03:22 UTC
fd09e86 Update Windows build # and installer for 2.1c1. 12 April 2001, 04:01:39 UTC
db7657d Explain popitem() Add Unixware 7 port Ready for RC1 Minor rewrites 12 April 2001, 03:37:19 UTC
c993272 Note that __debug__ assignments are legal again. 12 April 2001, 02:31:27 UTC
711088d Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort. http://sourceforge.net/tracker/index.php?func=detail&aid=415514&group_id=5470&atid=105470 For short ints, Python defers to the platform C library to figure out what %#x should do. The code asserted that the platform C returned a string beginning with "0x". However, that's not true when-- and only when --the *value* being formatted is 0. Changed the code to live with C's inconsistency here. In the meantime, the problem does not arise if you format a long 0 (0L) instead. However, that's because the code *we* wrote to do %#x conversions on longs produces a leading "0x" regardless of value. That's probably wrong too: we should drop leading "0x", for consistency with C, when (& only when) formatting 0L. So I changed the long formatting code to do that too. 12 April 2001, 00:35:51 UTC
4642cb9 Reverting the "unixware7" patch: atan2(0, 1) should be 0, regardless of platform. If it returns pi on the unixware7 platform, they have a bug in their libm atan2. 12 April 2001, 00:24:41 UTC
ac6985f SOCKET.py and TERMIOS.py are no longer used in this release. 11 April 2001, 23:43:09 UTC
c8c1a5b (py-pdbtrack-track-stack-file): On Ken's suggestion, add "pdbtrack:" prefix to the message lines. 11 April 2001, 22:27:41 UTC
b942c2f Fixed bug in example. This closes SF bug #415522. Also fix markup error in text following the example. 11 April 2001, 21:33:47 UTC
34d37dc Noted the improved RISCOS port and the new Unixware 7 port. 11 April 2001, 21:03:32 UTC
2242f2f Unixware 7 support by Billy G. Allie (SF patch 413011) 11 April 2001, 20:58:20 UTC
11e89c7 Added news about the updated python-mode.el 11 April 2001, 20:37:57 UTC
420d0f7 Bumping to version 4.0 since we now support only XEmacs 21.1 and Emacs 20.7, although not all of the compatibility code for older Emacsen has been removed. Specifically, the old "make sure we have a current custom.el library" stuff is removed, as is the hack-around for an NTEmacs 19.34.6 make-temp-name bug. Updated much of the Commentary section in the initial comments. Much more importantly, I've integrated Ken Manheimer's pdbtrack stuff, which is way cool. When enabled (as by default), this turns on the overlay arrow when pdb is entered, either in the shell buffer or in the *Python* buffer. Specifically: (py-mode-map): Added C-c C-d to toggle pdb tracking. (py-pdbtrack-do-tracking-p): New user customizable variable to control whether overlay arrow tracking is enabled or not. This variable is buffer local and is turned on by default. (py-pdbtrack-minor-mode-string): The string that's added to the minor mode alist when actually doing pdb overlay arrow tracking. User customizable. (py-pdbtrack-toggle-stack-tracking, turn-on-pdbtrack, turn-off-pdbtrack): New commands to control pdb tracking. (py-pdbtrack-is-tracking-p): Helper variable used to control the display of py-pdbtrack-minor-mode-string. Set to true when the overlay arrow is enabled, and false when it's disabled. (py-pdbtrack-stack-entry-regexp, py-pdbtrack-input-prompt, py-pdbtrack-track-range): Inherited from pdbtrack.el and renamed. (py-pdbtrack-overlay-arrow, py-pdbtrack-track-stack-file): New functions which actually do the tracking. (py-shell): Add py-pdbtrack-track-stack-file to comint-output-filter-functions. Finally, add py-pdbtrack-track-stack-file to comint-output-filter-functions at the file level. This and the py-shell addition should ensure that pdb tracking is installed regardless of the order of operation. Also, add py-pdbtrack-minor-mode-string to minor-mode-alist. 11 April 2001, 20:23:24 UTC
4f577d2 intermediate 11 April 2001, 20:23:17 UTC
c3cbbaf Added some additional documentation describing how BabylMailbox actually works (it returns a message containing the visible headers, not the original headers). Doc change approved by Fred; closes SF bug #412230. 11 April 2001, 20:12:33 UTC
eedf985 Include a synopsis for the chapter overview. 11 April 2001, 19:17:11 UTC
84ec1f9 typo 11 April 2001, 16:43:13 UTC
01d1293 [finishing fix from earlier checkins] Call set_lineno() in visitDiscard(), which will generate linenos for discard statements, e.g. the statement "1/0" Fixes SF bug #409587 11 April 2001, 16:36:25 UTC
d91bbba Add support for extra (*) arguments to preorder. Change default dispatch to use extended call syntax in place of apply. 11 April 2001, 16:26:05 UTC
9ab019b Generate docstrings. Fixes SF buf #217004 Add method fixDocstring() to CodeGenerator. It converts the Discard node containing the docstring into an assignment to __doc__. 11 April 2001, 16:24:30 UTC
4c1f427 Add lineno attributes to Discard nodes 11 April 2001, 16:22:26 UTC
5af105e Make sure the docstring is always entered as the first element in the consts, even if it is None. Simplify _lookupName() by removing lots of redundant tests. 11 April 2001, 16:21:51 UTC
ceccc3c Test cases for examples of ext call error handling. Fix to SF bug #414743 based on Michael Hudson's patch #414750. 11 April 2001, 13:53:35 UTC
512a237 Fix exception handling for non-PyFunction objects, SF bug 414743. Fix based on patch #414750 by Michael Hudson. New functions get_func_name() and get_func_desc() return reasonable names and descriptions for all objects. XXX Even objects that aren't actually callable. 11 April 2001, 13:52:29 UTC
7667680 Idiotic braino caused HTTP openers to ignore proxies. This fixes 413135 11 April 2001, 07:44:53 UTC
2bd0d88 Fixing bug 405999 -- clarifying differences between Python's getopt and GNU getopt -- Python is like classical UNIX getopt. 11 April 2001, 07:33:08 UTC
5d6e402 Based on a comment by Konrad Hinsen on python-list: Change "EOF" to "end-of-file", on the premise that it is easier for new programmers to understand (at least a little). This does not attempt to explain "file or device attached to standard input." 11 April 2001, 04:38:34 UTC
285a7e5 Add a close_request method to the BaseServer so that the TCPServer class can close the request connection when it's done handling it. 11 April 2001, 04:02:05 UTC
3f5cc20 Use INSTALL_SCRIPT to install script files. INSTALL_PROGRAM may try to strip them. Closes patch #406287. 10 April 2001, 23:03:35 UTC
29be701 Added definition of "test fixture". Added description of optional parameter to the TestSuite constructor. Added descriptions of the TestLoader and TextTestRunner classes. Added method descriptions for the TestCase class. 10 April 2001, 22:25:06 UTC
5f9f929 Some new names. 10 April 2001, 22:22:52 UTC
bceccf5 Updated version of RISCOS support. SF patch 411213 by Dietmar Schwertberger 10 April 2001, 22:07:43 UTC
13aa706 Completely revamped BeOS notes, by Donn Cave (SF patch 411834). 10 April 2001, 21:51:29 UTC
4611df0 This is for BeOS users who want to build all the modules. It's modified from setup.py version "1.37" to support BeOS build. Contributed by Donn Cave (SF patch 411830). 10 April 2001, 21:50:09 UTC
40f3c7f The lower() and tkraise() methods were calling the Canvas widget wrongly. Fixed this. This closes SF bug #412682. 10 April 2001, 21:13:06 UTC
8875c86 Typo: "BuildApple" --> "BuildApplet" Added reference to the webbrowser module from the nsremote description. 10 April 2001, 20:32:16 UTC
c5287ac Bump version numbers for upcoming release candidate. 10 April 2001, 20:19:25 UTC
20931fb Update the XML conversion specification. 10 April 2001, 19:59:31 UTC
ac154a1 Remove the mapping() function from the documentation. Add a description of the ReferenceError exception. 10 April 2001, 19:57:58 UTC
da00cda Add note that difflib was added in Python 2.1. 10 April 2001, 19:56:09 UTC
858ca0f Include py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED. Michael Hudson suggested this fox for the Tru64 problem (SF bug 232597). It looks reasonable, it works on Tru64, and it doesn't beak anything on Linux, so I say go for it. 10 April 2001, 19:53:37 UTC
9a9d219 mapping(): Remove this function since it does not add anything to the API. 10 April 2001, 19:11:23 UTC
bf43691 Use the WeakKeyDictionary and WeakValueDictionary classes directly instead of using the mapping() function. 10 April 2001, 19:09:35 UTC
f6cdead Since bdist_wininst.py contains the installer executable, it had to be rebuild. 10 April 2001, 18:57:07 UTC
cfac6d2 Normalize tabs to spaces. Update the attribution for the "Curses Programming with Python" How-To. Change the way the reference to the Demo/curses/ directory is marked up. 10 April 2001, 18:49:09 UTC
6fda3ac Add reference to the DDJ article discussing a similar algorithm. 10 April 2001, 18:41:16 UTC
8633360 Add corresponding support for the alltt environment to the HTML generator. 10 April 2001, 17:13:39 UTC
b5309a9 Import the alltt package and wrap that environment in a similar way to the way we handle verbatim, so that it picks up the same indentation and minipage behavior. 10 April 2001, 15:53:06 UTC
e9901f3 Fix two unqualified except: clauses. This came out of SF bug #411881. 10 April 2001, 15:44:33 UTC
6274fff Fix an unqualified except:. This came out of SF bug #411881. 10 April 2001, 15:42:02 UTC
9c673f3 Try an except: after an import into "except ImportError". This came out of SF bug #411881. Note that there's another unqualified except: still. 10 April 2001, 15:37:12 UTC
90a72f8 Add documentation for getmoduleinfo() and getmodulename(). 10 April 2001, 15:12:34 UTC
75ebb29 Some other tests, when failing, don't always remove their TESTFN file. Try to do it for them, so our mkdir() operation doesn't fail. 10 April 2001, 15:01:20 UTC
a5af214 When doing the quick test to see whether large files are supported, catch IOError as well as OverflowError. I found that on Tru64 Unix this was raised; probably because the OS (or libc) doesn't support large files but the architecture is 64 bits! 10 April 2001, 14:50:51 UTC
bfce016 When zlib can't be imported, zipfile raises RuntimeError, which causes the test to be marked as failing rather than skipped. Add an explicit "import zlib" to prevent this. 10 April 2001, 14:46:39 UTC
41763b9 Fix typo in instantiation of ErrorDuringImport. 10 April 2001, 12:22:01 UTC
5a804ed Fix synopsis() so it can handle binary module files. Avoid ever using popen on Windows, since it's broken there. Factor out the business of getting the summary line into splitdoc(). Use the modulename() routine in inspect. Show all members of modules and classes rather than filtering on leading '_'. Small typo and formtating fixes. Don't show warnings when running "pydoc -k". 10 April 2001, 11:46:02 UTC
4d6fc7f Add getmodulename() and getmoduleinfo() routines to inspect filenames. 10 April 2001, 11:43:00 UTC
697c9c9 In the typeset versions, the legal notices had grown past the one-page size. This constrains them to fit in one page again. 10 April 2001, 05:26:29 UTC
4471400 test_pickle works on sizeof(long)==8 boxes again. pickle.py The code implicitly assumed that all ints fit in 4 bytes, causing all sorts of mischief (from nonsense results to corrupted pickles). Repaired that. marshal.c The int marshaling code assumed that right shifts of signed longs sign-extend. Repaired that. 10 April 2001, 05:02:52 UTC
d8ae7c2 Ack -- this module mixes tabs and spaces, and what appears to be a mix of 2-space and 4-space indents. Whatever, when I saw the checkin diff it was clear that what my editor thinks a tab means didn't match this module's belief. Removed all the tabs from the lines I added and changed, left everything else alone. 10 April 2001, 04:35:28 UTC
3906eb8 On a sizeof(long)==8 machine, ints in range(2**31, 2**32) were getting pickled into the signed(!) 4-byte BININT format, so were getting unpickled again as negative ints. Repaired that. Added some minimal docs at the top about what I've learned about the pickle format codes (little of which was obvious from staring at the code, although that's partly because all the size-related bugs greatly obscured the true intent of the code). Happy side effect: because save_int() needed to grow a *proper* range check in order to fix this bug, it can now use the more-efficient BININT1, BININT2 and BININT formats when the long's value is small enough to fit in a signed 4-byte int (before this, on a sizeof(long)==8 box it always used the general INT format for negative ints). test_cpickle works again on sizeof(long)==8 machines. test_pickle is still busted big-time. 10 April 2001, 04:22:00 UTC
e089c68 Test full range of native ints. This exposes two more binary pickle bugs on sizeof(long)==8 machines. pickle.py has no idea what it's doing with very large ints, and variously gets things right by accident, computes nonsense, or generates corrupt pickles. cPickle fails on cases 2**31 <= i < 2**32: since it *thinks* those are 4-byte ints (the "high 4 bytes" are all zeroes), it stores them in the (signed!) BININT format, so they get unpickled as negative values. 10 April 2001, 03:41:41 UTC
aa815df Correct the header over the string of licenses -- it's "PYTHON", not "Python 1.6.1". 10 April 2001, 03:37:31 UTC
f9e56e1 Append the revision number for each file to the output. (Yes, this is a new feature right before the 2.1 release. No, I can't imagine this would seriously break anybody's code. In fact, most users of this script are probably *happy* to see this addition.) 10 April 2001, 03:31:27 UTC
c32d824 Mechanical fiddling for easier reading: every "if" test was enclosed in parens, but no "while" test. Removed the former. 10 April 2001, 02:48:53 UTC
bfa18f7 Critical fix: if cPickle on a sizeof(long)==8 box is used to read a binary pickle, and the latter contains a pickle of a negative Python int i written on a sizeof(long)==4 box (and whether by cPickle or pickle.py), it's read incorrectly as i + 2**32. The patch repairs that, and allows test_cpickle.py (to which I added a relevant test case earlier today) to work again on sizeof(long)==8 boxes. There's another (at least one) sizeof(long)==8 binary pickle bug, but in pickle.py instead. That bug is still there, and test_pickle.py doesn't catch it yet (try pickling and unpickling, e.g., 1 << 46). 10 April 2001, 01:54:42 UTC
4e6a7a6 Make on Alpha Tru64 5.1 (as installed on the SF compile farm) doesn't think that a command starting with '#' is a comment, so move the one comment in such a position (in the rule for building $(LIBRARY)) to a harmless position. 09 April 2001, 22:23:22 UTC
dbdb28e Add globals to list of names returned by get_names(). Fix func arg processing to handle args in tuples. In test code, skip names beginning with '.'. 09 April 2001, 20:11:59 UTC
461922a Pickles have a number of storage formats for various sizes and kinds of integers, but the std tests don't exercise most of them. Repair that. CAUTION: I expect this to fail on boxes with sizeof(long)==8, in the part of test_cpickle (but not test_pickle) trying to do a binary mode (not text mode) load of the embedded BINDATA pickle string. Once that hypothesized failure is confirmed, I'll fix cPickle.c. 09 April 2001, 20:07:05 UTC
29fd031 Michael Hudson <mwh21@cam.ac.uk>: Update the docstrings to no longer refer to the obsolete TERMIOS module. This is a partial acceptance of SF patch #413419. 09 April 2001, 19:32:52 UTC
c58440f No functional change -- just added whitespace in places so I could follow the logic better. Will be adding some additional tests later today. 09 April 2001, 17:16:31 UTC
a830b38 Warn when assigning to __debug__ instead of raising an error. 09 April 2001, 16:07:59 UTC
819815a Fix typo in example (\b should be \n in string literal). This closes SF bug #414279. 09 April 2001, 15:57:06 UTC
9c84636 Fix a number of bugs and omissions in the AddressList documentation, most noted by Steve Holden. This closes SF bug #413876. 09 April 2001, 15:42:56 UTC
17a781b * Remove exc_info() kludge -- it actually messed up the Jython output * Fixed TestLoader.loadTestsFromName() for nested packages * Corrected the command-line usage summary 09 April 2001, 15:37:31 UTC
a36f4a0 Fixing Itamar's name, as per his request. 09 April 2001, 15:23:46 UTC
5d87d47 fixing 408085 - redirect from https becomes http Even though relative redirects are illegal, they are common urllib treated every relative redirect as though it was to http, even if the original was https:// As long as we're compensating for server bugs, might as well do it properly. 09 April 2001, 14:54:21 UTC
f870c95 Add two arguments to Scope constructor, module scope and class name Add mangling support Add get_children() and add_child() methods to Scope Skip nodes when If test is a false constant Add test code that checks results against symtable module 09 April 2001, 13:57:32 UTC
8b966dc Add preliminary module symbol table constructor 09 April 2001, 04:35:35 UTC
0e8468c remove global decl about unused variable 09 April 2001, 04:31:50 UTC
80e29bd Add support for future statements 09 April 2001, 04:28:48 UTC
42a0830 Fix "import as" (has always skipping the as name) Fix com_NEWLINE() so that is accepts arguments, which occurs for lines like: stmt; # note trailing semicolon Add XXX about checking for assignment to list comps 09 April 2001, 04:27:12 UTC
a384f73 typo 09 April 2001, 04:23:55 UTC
f0e717b Repair portability of sign extension when reading signed ints on boxes where sizeof(long)==8. This *was* broken on boxes where signed right shifts didn't sign-extend, but not elsewhere. Unfortunately, apart from the Cray T3E I don't know of such a box, and Guido has so far refused to buy me any Cray machines for home Python testing <wink>. More immediately interesting would be if someone could please test this on *any* sizeof(long)==8 box, to make sure I didn't break it. 08 April 2001, 23:39:38 UTC
9cec8fb Make it clear that a bdb subclass must implement do_clear(). This was found by Neal Norwitz's PyChecker. 08 April 2001, 15:05:16 UTC
7e01e28 Whitespace normalization. 08 April 2001, 07:44:07 UTC
6fd7120 Fix from the Madusa mailing list: http://groups.yahoo.com/group/medusa/message/333 It's clear that Medusa should not be checking for an empty buffer via "buf is ''". The patch merely changes "is" to "==". However, there's a mystery here all the same: Python attempts to store null strings uniquely, so it's unclear why "buf is ''" ever returned false when buf actually was empty. *Some* string operations produce non-unique null strings, e.g. >>> "abc"*0 is "abc"*0 0 >>> but they're rare, and I don't see any such operations in asynchat. 08 April 2001, 07:23:44 UTC
cfc21fc Remove useless imports, as reported by PyChecker. 08 April 2001, 00:43:13 UTC
3664111 Get rid of useless string import, as reported by Neal Norwitz's PyChecker.py on c.l.py. 08 April 2001, 00:38:42 UTC
back to top