summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* AddrlistClass -> AddressListBarry Warsaw2002-04-121-2/+2
|
* I am mad. This test never worked!Guido van Rossum2002-04-121-16/+14
| | | | | | | | | | | | | | | | | | | | | | The test function's signature should be test(methodname, input, output, *args) but the output argument was omitted. This caused all tests to fail, because the expected output was passed as the initial argument to the method call. But because of the way the test works (it compares the results for a regular string to the results for a UserString instance with the same value, and it's OK if both raise the same exception) the test never failed! I've fixed this, and also cleaned up a few warts in the verbose output. Finally, I've made it possible to run the test stand-alone in verbose mode by passing -v as a command line argument. Now, the test will report failure related to zfill. That's not my fault, that's a legitimate problem: the string_tests.py file contains a test for the zfill() method (just added) but this method is not implemented. The responsible party will surely fix this soon now.
* Add Raymond Hettinger's d.pop(). See SF patch 539949.Guido van Rossum2002-04-121-0/+15
|
* Clean up the "all" support for -u.Fred Drake2002-04-111-1/+2
|
* Guido sez to remove the deprecation warning for a year.Fred Drake2002-04-111-5/+0
| | | | The deprecation is now listed in PEP 4.
* Since xmllib is deprecated now, suppress the DeprecationWarning its testTim Peters2002-04-111-1/+5
| | | | module necessarily raises.
* Ignore more deprecation warnings.Tim Peters2002-04-111-4/+6
|
* Stop sucking up xmllib -- it's deprecated.Tim Peters2002-04-111-1/+0
|
* I don't expect test_email_codecs to run on Windows.Tim Peters2002-04-111-0/+1
|
* Added the resource name "all" to enable all of the optional resource uses.Fred Drake2002-04-111-2/+11
| | | | This is nice for use with "make TESTOPTS='-u all' test".
* Improve coverage of Objects/weakrefobject.c.Fred Drake2002-04-111-0/+16
|
* Add deprecation warning to 'pre' moduleAndrew M. Kuchling2002-04-101-0/+6
|
* Remove support for importing 'pre' moduleAndrew M. Kuchling2002-04-101-14/+2
|
* Sync'ing with standalone email package 2.0.1. This adds support forBarry Warsaw2002-04-1020-144/+2210
| | | | | | | | | non-us-ascii character sets in headers and bodies. Some API changes (with DeprecationWarnings for the old APIs). Better RFC-compliant implementations of base64 and quoted-printable. Updated test cases. Documentation updates to follow (after I finish writing them ;).
* Added test case for UTF-8 encoding bug #541828.Marc-André Lemburg2002-04-101-0/+16
|
* Use random instead of whrandomAndrew M. Kuchling2002-04-101-3/+3
|
* Add deprecation warnings for modules as documentedNeal Norwitz2002-04-102-0/+9
|
* Add a deprecation warning to reflect the documented deprecation of theFred Drake2002-04-101-0/+5
| | | | whrandom module. (The deprecation was effective in Python 2.1.)
* Update docstring to reflect code change to boolNeal Norwitz2002-04-091-1/+1
|
* Remove unconditional debugging prints.Thomas Heller2002-04-091-3/+0
|
* Set the warn_dir option to 0 before running the install command.Thomas Heller2002-04-092-0/+2
| | | | | | | This suppresses bogus warnings about modules installed into a directory not in sys.path. Bugfix candidate.
* Patch #539392: Invoke setlocale, try opening the file in demo mode.Martin v. Löwis2002-04-081-2/+18
|
* Move knee.py from Lib/ to Demo/imputil/. Fixes #515745.Martin v. Löwis2002-04-071-126/+0
|
* Partial introduction of bools where appropriate.Guido van Rossum2002-04-0718-94/+96
|
* - Changed new-style class instantiation so that when C's __new__Guido van Rossum2002-04-061-0/+22
| | | | | method returns something that's not a C instance, its __init__ is not called. [SF bug #537450]
* Add tests for binary pickles.Guido van Rossum2002-04-051-0/+12
|
* Implement an idea by Paul Rubin:Guido van Rossum2002-04-052-14/+18
| | | | | | | | Change pickling format for bools to use a backwards compatible encoding. This means you can pickle True or False on Python 2.3 and Python 2.2 or before will read it back as 1 or 0. The code used for pickling bools before would create pickles that could not be read in previous Python versions.
* Fix for bug #222395: UTF-16 et al. don't handle .readline().Marc-André Lemburg2002-04-053-2/+9
| | | | They now raise an NotImplementedError to hint to the truth ;-)
* Revert 0/1 -> False/True change; I didn't intend to muck w/ distutils.Tim Peters2002-04-041-2/+2
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-0426-93/+88
|
* Replace use of apply() with extended call syntax.Jeremy Hylton2002-04-041-2/+3
|
* Support manual proxy configuration for simple urlopen() operations.Fred Drake2002-04-041-5/+10
| | | | | | This change is similar to the supplied patch, but does not save the opener when a proxy configuration is specified. This closes SF patch #523415.
* Not sure why the regression test missed this, but the PyXML tests caught it.Fred Drake2002-04-041-1/+1
| | | | We should get attributes from the right object.
* Avoid creating circular references between the ExpatParser and theFred Drake2002-04-041-1/+38
| | | | | | | ContentHandler. While GC will eventually clean up, it can take longer than normal for applications that create a lot of strings (or other immutables) rather without creating many containers. This closes SF bug #535474.
* Removed old Digital Creations copyright/license notices (withGuido van Rossum2002-04-041-1/+1
| | | | | permission from Paul Everitt). Also removed a few other references to Digital Creations and changed the remaining ones to Zope Corporation.
* Add test case for SF bug 534347.Guido van Rossum2002-04-041-0/+8
|
* Oops. Here are the new files. My apologies.Guido van Rossum2002-04-031-0/+228
|
* Add the 'bool' type and its values 'False' and 'True', as described inGuido van Rossum2002-04-0312-186/+204
| | | | | | | | | | | | | PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates.
* Fix bugs:Mark Hammond2002-04-032-0/+39
| | | | | | | | | | | | | | | 457466: popenx() argument mangling hangs python 226766: popen('python -c"...."') tends to hang Fixes argument quoting in w9xpopen.exe for Windows 9x. w9xpopen.exe also never attempts to display a MessageBox when not executed interactively. Added test_popen() test. This test currently just executes "python -c ..." as a child process, and checks that the expected arguments were all recieved correctly by the child process. This test succeeds for me on Win9x, win2k and Linux, and I hope it does for other popen supported platforms too :)
* SF patch 537536 by Phillip J. Eby, fix for SF bug 535444, super()Guido van Rossum2002-04-021-0/+8
| | | | | | broken w/ classmethods. Bugfix candidate.
* Fix for a bug in the fix for SF bug 503031. This time the OP verifiedGuido van Rossum2002-04-021-2/+2
| | | | | | that it works. Bugfix candidate (this and the previous checkin, obviously).
* Add an experimental mechanism to support extending the pprint formatting.Fred Drake2002-04-022-9/+34
| | | | Partly responds to SF bug #505152.
* Make test_commands work on more systems. This removes much of the dependencyFred Drake2002-04-011-4/+5
| | | | | | | on how a system is configured. This closes SF bug #497160 (which has the patch) and #460613. Bugfix candidate.
* Format strings (tuples,) appropriatelyNeal Norwitz2002-04-012-3/+3
|
* Use attributes appropriatelyNeal Norwitz2002-04-012-2/+2
|
* There is no TestError, use TestFailed appropriatelyNeal Norwitz2002-04-013-10/+10
|
* We expect to skip the new test_mpz on Windows.Tim Peters2002-04-011-1/+5
|
* Get rid of all METH_OLDARGS & PyArg_Parse.Neal Norwitz2002-04-011-0/+90
| | | | | Fix floating point exception if mpz.powm(10, 1, 0) (modulus == 0). Add a test.
* Remove some now-obsolete generator future statements.Tim Peters2002-04-016-19/+5
| | | | | I left the email pkg alone; I'm not sure how Barry would like to handle that.
* Convert file.readinto() to stop using METH_OLDARGS & PyArg_Parse.Neal Norwitz2002-04-011-0/+15
| | | | Add test for file.readinto().