summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correct the header over the string of licenses -- it's "PYTHON", notGuido van Rossum2001-04-101-2/+2
| | | | "Python 1.6.1".
* Append the revision number for each file to the output.Guido van Rossum2001-04-101-1/+1
| | | | | | (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.)
* Mechanical fiddling for easier reading: every "if" test was enclosed inTim Peters2001-04-101-35/+35
| | | | parens, but no "while" test. Removed the former.
* Critical fix: if cPickle on a sizeof(long)==8 box is used to read aTim Peters2001-04-101-1/+8
| | | | | | | | | | | 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).
* Make on Alpha Tru64 5.1 (as installed on the SF compile farm) doesn'tGuido van Rossum2001-04-091-1/+1
| | | | | | 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.
* Add globals to list of names returned by get_names().Jeremy Hylton2001-04-092-14/+26
| | | | | Fix func arg processing to handle args in tuples. In test code, skip names beginning with '.'.
* Pickles have a number of storage formats for various sizes and kinds ofTim Peters2001-04-091-13/+40
| | | | | | | | | 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.
* Michael Hudson <mwh21@cam.ac.uk>:Fred Drake2001-04-091-13/+10
| | | | | | | Update the docstrings to no longer refer to the obsolete TERMIOS module. This is a partial acceptance of SF patch #413419.
* No functional change -- just added whitespace in places so I could followTim Peters2001-04-091-11/+30
| | | | the logic better. Will be adding some additional tests later today.
* Warn when assigning to __debug__ instead of raising an error.Jeremy Hylton2001-04-091-7/+2
|
* Fix typo in example (\b should be \n in string literal).Fred Drake2001-04-091-1/+1
| | | | This closes SF bug #414279.
* Fix a number of bugs and omissions in the AddressList documentation, mostFred Drake2001-04-091-10/+23
| | | | | | | noted by Steve Holden. This closes SF bug #413876.
* * Remove exc_info() kludge -- it actually messed up the Jython outputSteve Purcell2001-04-091-17/+13
| | | | | * Fixed TestLoader.loadTestsFromName() for nested packages * Corrected the command-line usage summary
* Fixing Itamar's name, as per his request.Moshe Zadka2001-04-091-1/+1
|
* fixing 408085 - redirect from https becomes httpMoshe Zadka2001-04-091-1/+1
| | | | | | | | 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.
* Add two arguments to Scope constructor, module scope and class nameJeremy Hylton2001-04-092-48/+184
| | | | | | | 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
* Add preliminary module symbol table constructorJeremy Hylton2001-04-092-0/+386
|
* remove global decl about unused variableJeremy Hylton2001-04-091-1/+0
|
* Add support for future statementsJeremy Hylton2001-04-094-12/+196
|
* Fix "import as" (has always skipping the as name)Jeremy Hylton2001-04-092-18/+30
| | | | | | 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
* typoJeremy Hylton2001-04-092-2/+2
|
* Repair portability of sign extension when reading signed ints on boxesTim Peters2001-04-081-10/+6
| | | | | | | | | | 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.
* Make it clear that a bdb subclass must implement do_clear().Guido van Rossum2001-04-081-0/+3
| | | | This was found by Neal Norwitz's PyChecker.
* Whitespace normalization.Tim Peters2001-04-081-2/+2
|
* Fix from the Madusa mailing list:Tim Peters2001-04-081-1/+1
| | | | | | | | | | | | | | | | | 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.
* Remove useless imports, as reported by PyChecker.Tim Peters2001-04-081-3/+0
|
* Get rid of useless string import, as reported by Neal Norwitz's PyChecker.pyTim Peters2001-04-082-1/+1
| | | | on c.l.py.
* SF patch #413552 - Premature decref on objectTim Peters2001-04-071-3/+7
| | | | | | | | | Jeffery Collins pointed out that filterstring decrefs a character object before it's done using it. This works by accident today because another module always happens to have an active reference too at the time. The accident doesn't work after his Pippy modifications, and since it *is* an accident even in the mainline Python, it should work by design there too. The patch accomplishes that.
* Correct the documentation for getreadbufferproc and getwritebufferproc.Greg Stein2001-04-071-5/+6
| | | | Fixes bug #233308 from Travis Oliphant.
* Add an uninstall method to the ImportManager.Greg Stein2001-04-071-1/+9
| | | | This is the accepted portion of patch #402498.
* Finally merged morefindertools into findertools.Jack Jansen2001-04-074-801/+703
|
* Add entry for unittest documentation.Fred Drake2001-04-072-0/+2
|
* Start of documentation for the unittest module. Some of this comes fromFred Drake2001-04-071-0/+266
| | | | | | | | Steve Purcell's documentation, and a lot of it is written based on using PyUnit and reading the implementation. There is more to come, but I want to get this check in before I have a disk crash or anything else bad happens.
* Since Guido fiddled Cookie.py to work with doctest, it's a Good Thing toTim Peters2001-04-062-0/+5
| | | | have the std test suite exercise the Cookie doctests too.
* Since this module already uses doctest-style examples, I figured I'dGuido van Rossum2001-04-061-4/+10
| | | | | | | | | | | | | | | add a self-test using doctest. Results: - The docstring needs to be a raw string because it uses \"...\". - The oreo example was broken: the Set-Cookie output doesn't add quotes around "doublestuff". - I had to change the example that prints the class of a Cookie.Cookie instance to avoid incorporating an arbitrary object address in the test output. Pretty good score for both doctest and the doc string, I'd say!
* Remove lines for asynchat & asyncore, as they've now got their own test.Tim Peters2001-04-061-2/+0
|
* After testing the test on Unix, several improvements:Guido van Rossum2001-04-061-3/+4
| | | | | | - Use push() instead of send(), and make these calls in main(). - Sleep a second to give the server thread time to initialize itself.
* Add test for asynchat. This also tests asyncore.Guido van Rossum2001-04-062-0/+58
|
* Make the docstring a raw string, for pydoc.Guido van Rossum2001-04-061-1/+1
| | | | (How many opre of these will we need? :-( )
* Added a note about Help and ctb missing in carbon.Jack Jansen2001-04-061-0/+2
|
* Version 1.2 by Christopher Stern.Jack Jansen2001-04-062-5/+1
|
* Fix the fix (my error -- hasty pasty).Tim Peters2001-04-051-1/+1
|
* One-liner critical fix from Jim Fulton: Eric's string-method crusadeTim Peters2001-04-051-1/+1
| | | | got the order backwards in a line (for .find()).
* Change {\em ...} to \emph{...} for consistency with the rest of the PythonFred Drake2001-04-051-1/+1
| | | | documentation.
* Add some information about what to expect of the DocumentType'sFred Drake2001-04-051-0/+2
| | | | | .internalSubset attribute based on a clarification from the www-dom list.
* Effectively revert the previous change: leave the new #include in, butFred Drake2001-04-051-0/+3
| | | | | comment it out with an explanation. This makes it easier for someone who wants the additional symbols to try re-enabling it for their platform.
* Added more link attributes based on additonal information from ChrisFred Drake2001-04-051-1/+13
| | | | | | | McCafferty <christopher.mccafferty@csg.ch>, and a bit of experimentation with Navigator 4.7. HTML-as-deployed is evil!
* Bug #412086, reported by Peter Wilson: The _curses module doesn'tAndrew M. Kuchling2001-04-051-0/+13
| | | | | | define COLORS or COLOR_PAIRS until after start_color() is called, but they were never added to the curses module. Fixed by adding a wrapper around start_color(), similar to the wrapper around initscr().
* Patch #413912 from Steve Majewski: Add .m to the list of extensionsAndrew M. Kuchling2001-04-051-1/+1
| | | | in order to support Objective-C.
* Mention pydoc in the man pageAndrew M. Kuchling2001-04-051-0/+5
|