summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add test for SF bug #442833 (multiple inheritance).Guido van Rossum2001-08-101-0/+14
|
* The message accompanying the TypeError exception on a readonlyGuido van Rossum2001-08-101-1/+1
| | | | attribute changed again.
* [Bug #414032] Make the 'sdist' command work when the distribution containsAndrew M. Kuchling2001-08-101-2/+18
| | | | | | libraries. This is done by adding a .get_source_files() method, contributed by Rene Liebscher and slightly modified. Remove an unused local variable spotted by PyChecker
* Allow AttributeError as well as TypeError for attribute-less objects.Guido van Rossum2001-08-101-1/+1
|
* Remove unused variableAndrew M. Kuchling2001-08-101-1/+0
|
* Fix typo caught by PyCheckerAndrew M. Kuchling2001-08-101-1/+1
|
* Add forgotten importAndrew M. Kuchling2001-08-101-0/+1
|
* Wrap a comment to fit in 80 columns.Fred Drake2001-08-101-6/+6
| | | | | Use construction-syntax for an exception to make the argument easier to read.
* Use .get_license()Andrew M. Kuchling2001-08-101-1/+1
|
* [Bug #412271, bug #449009] Use 'license' as the attribute name,Andrew M. Kuchling2001-08-101-11/+11
| | | | | | | though 'licence' is still supported for backward-compatibility (Should I add a warning to get_licence(), or not bother?) Also fixes an UnboundLocalError noticed by PyChecker
* Patch #441091 from Finn Bock: the more advanced flush options are notAndrew M. Kuchling2001-08-101-15/+20
| | | | | available in java, so only use the advanced flush options if they are defined in the zlib module.
* Disable the sub() optimization until Fredrik has time to look into SFGuido van Rossum2001-08-101-0/+1
| | | | | | bug #449000, "re.sub(r'\n', ...) broke". This was Fredrik's suggestion -- he's on vacation and said he wouldn't be able to work on this until next week.
* Check in a testcase for SF bug #449000: re.sub(r'\n', ...) broke.Guido van Rossum2001-08-102-0/+12
|
* Remove hard-coded NT constants that are already defined in errno on NT.Jeremy Hylton2001-08-101-11/+5
| | | | | Wrap some long lines. Remove unnecessary tuple unpack.
* Expose nl_langinfo through locale where available.Martin v. Löwis2001-08-101-0/+2
|
* Whitespace normalization.Tim Peters2001-08-0912-55/+54
|
* Skip test_mhlib on Windows -- too many Unix assumptions.Tim Peters2001-08-091-2/+6
|
* Fix two bugs detected by PyChecker: there's no need for redundantGuido van Rossum2001-08-091-1/+1
| | | | "import MacOS", and there *is* a need for "import operator".
* Import UnknownFileErrorAndrew M. Kuchling2001-08-091-1/+1
|
* Import the errno moduleAndrew M. Kuchling2001-08-091-1/+2
|
* Use correct variable nameAndrew M. Kuchling2001-08-091-1/+1
|
* Added tests for operator.floordiv() and operator.truediv().Fred Drake2001-08-092-0/+4
|
* Restore the test for 'object' that I removed when object wasGuido van Rossum2001-08-091-0/+24
| | | | uninstantiable. All is well now.
* Use type(x).__name__ to get the name of the type instead of parsingGuido van Rossum2001-08-091-1/+1
| | | | repr(type(x)).
* Unittests for mhlib, by Nick Mathewson.Guido van Rossum2001-08-091-0/+328
|
* SF patch #403640: incomplete proxy handling in URLLIBTim Peters2001-08-091-0/+62
| | | | Look specific to Windows. Don't know whether it works.
* SF Patch #420725 by Walter Doerwald:Guido van Rossum2001-08-091-4/+17
| | | | | | | | | | | | | | | | | | | | For local files urllib.py doesn't return the MIME headers that the documentation says it does: http://www.python.org/doc/current/lib/module- urllib.html#l2h-2187 states that "When the method is local-file, returned headers will include a Date representing the file's last-modified time, a Content- Length giving file size, and a Content-Type containing a guess at the file's type" But in Python 2.1 the only header that gets returned is the Content-Type: >>> import urllib >>> f = urllib.urlopen("gurk.txt") >>> f.info().headers ['Content-Type: text/plain\n']
* Patch #403514: precompute _subst_format_str to avoid a call toMartin v. Löwis2001-08-091-2/+2
| | | | string.join() on each invocation of _bind.
* Applied SF patch #438424 by Josh Cogliati:Guido van Rossum2001-08-091-4/+42
| | | | | | | | | Python's logolike module turtle.py did not display the turtle except when actually drawing lines. This patch changes the turtle.py module so that it displays the turtle at all times when tracing is on. This is similar to the the way that logo works. When tracing is off the turtle will not be displayed.
* Regenerate for glibc 2.2.3.Martin v. Löwis2001-08-094-342/+769
|
* Regenerate for Solaris 8.Martin v. Löwis2001-08-095-739/+1778
|
* Patch #448474: Add support for tell() and seek() to gzip.GzipFile.Martin v. Löwis2001-08-092-2/+58
|
* A test suite for binary operators, disguised as a rational numberGuido van Rossum2001-08-081-0/+340
| | | | class.
* Typo fix (spelling mistake in error message).Greg Ward2001-08-081-1/+1
|
* Patch #449083: Use builtins to initalize the module.Martin v. Löwis2001-08-081-7/+7
|
* Merged in bugfix from PyUnit CVS for problem reported by Gary Todd.Steve Purcell2001-08-081-3/+4
| | | | | | | | | If 'unittest.py' was run from the command line with the name of a test case class as a parameter, it failed with an ugly error. (Which was a shame, because the documentation says you can do that.) The problem was the old 'is the class X that you imported from me the same as my class X?' gotcha.
* Regenerated token.py to account for new DOUBLESLASH and DOUBLESLASHEQUAL.Tim Peters2001-08-081-3/+5
|
* Add new tokens // and //=, in support of PEP 238.Guido van Rossum2001-08-081-0/+1
|
* Implement PEP 238 in its (almost) full glory.Guido van Rossum2001-08-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This introduces: - A new operator // that means floor division (the kind of division where 1/2 is 0). - The "future division" statement ("from __future__ import division) which changes the meaning of the / operator to implement "true division" (where 1/2 is 0.5). - New overloadable operators __truediv__ and __floordiv__. - New slots in the PyNumberMethods struct for true and floor division, new abstract APIs for them, new opcodes, and so on. I emphasize that without the future division statement, the semantics of / will remain unchanged until Python 3.0. Not yet implemented are warnings (default off) when / is used with int or long arguments. This has been on display since 7/31 as SF patch #443474. Flames to /dev/null.
* beginning of work on the conf. handling smartsSteven M. Gava2001-08-081-11/+25
|
* Fix SF bug [ #447370 ] typo in urllib2.pyJeremy Hylton2001-08-071-7/+9
| | | | | | | | | Also fix another bug caught by pychecker-- HTTPError() raised when redirect limit exceed did not pass an fp object. Had to change method to keep fp object around until it's certain that the error won't be raised. Remove useless line in do_proxy().
* Apply two small changes to the Windows code, according to SF bugGuido van Rossum2001-08-071-2/+2
| | | | | #427345. These are supposed to support binary data and avoid buffering problems on Windows.
* Remove make_re() function; this is no longer needed since _sre and pcreFred Drake2001-08-071-10/+0
| | | | | | | are now allowed by ok_builtin_modules. This effectively backs out revision 1.26. This closes SF bug #448546.
* Add a test that xml.sax.saxutils.XMLGenerator does the right thingFred Drake2001-08-072-1/+18
| | | | | | when quoting attribute values that contain single & double quotes. This provides the rest of the regression test for SF bug #440351.
* Make sure XMLGenerator uses quoteattr() instead of escape() to quoteFred Drake2001-08-071-2/+2
| | | | | | | attribute values. Just using escape() can (and always has) led to broken XML being generated. This makes sure it always produces the right thing. This actually closes SF bug #440351.
* Fix the test so it uses IterableUserDict for the "for x in dict" test.Guido van Rossum2001-08-071-2/+2
|
* Remove the __iter__ method from the UserDict class -- it can silentlyGuido van Rossum2001-08-071-0/+2
| | | | | | | | | | break old code (in extreme cases). See SF bug #448153. Add a new subclass IterableUserDict that has the __iter__ method. Note that for new projects, unless backwards compatibility with pre-2.2 Python is required, subclassing 'dictionary' is recommended; UserDict might become deprecated.
* Add the NannyNag exception class and the process_tokens() function toGuido van Rossum2001-08-071-1/+1
| | | | | | | | | __all__, to indicate these are implied as part of the public API. IDLE's "Check Module" command uses this, and it broke once already because the reset_globals() and tokeneater() functions were deleted when Neil converted this to using the generator API of tokenizer. (See SF bug #448835.)
* Remove the test for the 'object' type -- it can no longer beGuido van Rossum2001-08-071-24/+0
| | | | | instantiated. (Its use as a base class is adequately tested by other tests.)
* silence warnings about import *Jeremy Hylton2001-08-071-0/+7
|