summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Resolve patch #449367.Greg Stein2001-08-181-15/+26
| | | | | | | | | | | For the HTTPS class (when available), ensure that the x509 certificate data gets passed through to the HTTPSConnection class. Create a new HTTPS.__init__ to do this, and refactor the HTTP.__init__ into a new _setup method for both init's to call. Note: this is solved differently from the patch, which advocated a new **x509 parameter on the base HTTPConnection class. But that would open HTTPConnection to arbitrary (ignored) parameters, so was not as desirable.
* Add some fairly important file extensions: bmp css doc mid midi mp2 mp3 xls.Ka-Ping Yee2001-08-181-0/+8
| | | | Entries taken from the standard Debian mime.types file.
* Initial check-in of cgitb.Ka-Ping Yee2001-08-181-0/+182
| | | | A few enhancements are pending, but this should work reliably.
* When the socket is closed, don't just assign 0 to self._sock.Guido van Rossum2001-08-181-8/+18
| | | | | This breaks software that excepts a socket.error but not an AttributeError.
* Generate correct reprs for Mul, Add, etc.Jeremy Hylton2001-08-181-20/+8
|
* Track removal of doc string from Module().nodes[0]Jeremy Hylton2001-08-181-7/+2
|
* Add Yield() nodeJeremy Hylton2001-08-181-0/+12
|
* Remove the horrid generators hack from doctest.py. This relies on aTim Peters2001-08-181-75/+37
| | | | | | | | | | | | | | | | | somewhat less horrid hack <wink>: if a module does from __future__ import X then the module dict D is left in a state such that (viewing X as a string) D[X] is getattr(__future__, X) So by examining D for all the names of future features, and making that test for each, we can make a darned good guess as to which future-features were imported by the module. The appropriate flags are then sucked out of the __future__ module, and passed on to compile()'s new optional arguments (PEP 264). Also gave doctest a meaningful __all__, removed the history of changes (CVS serves that purpose now), and removed the __version__ vrbl (similarly; before CVS, it was a reasonable clue, but not anymore).
* Add Yield() statement handlerJeremy Hylton2001-08-181-1/+11
| | | | Fix Module() handler to avoid including the doc string in the AST
* Fix for bug [#452230] future division isn't propagated.Tim Peters2001-08-171-0/+1
| | | | | | | builtin_eval wasn't merging in the compiler flags from the current frame; I suppose we never noticed this before because future division is the first future-feature that can affect expressions (nested_scopes and generators had only statement-level effects).
* A fiddled version of the rest of Michael Hudson's SF patchTim Peters2001-08-172-39/+126
| | | | | #449043 supporting __future__ in simulated shells which implements PEP 264.
* Use raw-unicode-escape for the tests that require it.Martin v. Löwis2001-08-172-3/+3
|
* Add test for weak references.Guido van Rossum2001-08-171-3/+33
|
* Test that uu.py will not override an existing file if out_file isn'tBarry Warsaw2001-08-171-0/+34
| | | | given and the path is gleaned from the uu header.
* decode(): Raise a uu.Error if no out_file is given but the fileBarry Warsaw2001-08-171-9/+13
| | | | | | | | | specified in the uu header already exists. No additional workaround is provided since out_file=pathname is a deprecated interface, so it is better to simply pass a file-like object into out_file anyway. This closes SF bug #438083. Use isinstance() tests instead of type comparisons.
* A self-contained piece of Michael Hudson's patchTim Peters2001-08-172-8/+46
| | | | | | | | | | | | | | #449043 supporting __future__ in simulated shells in support of PEP 264. Much has changed from the patch version: + Repaired bad hex constant for nested_scopes. + Defined symbolic CO_xxx names so global search will find these uses. + Made the exported list of feature names explicit, instead of abusing __all__ for this purpose (and redefined __all__ accordingly). + Added gross .compiler_flag verification to test___future__.py, and reworked it a little to make use of the newly exported explicit list of feature names.
* Address SF #451547. The approach is a bit draconian: any object thatGuido van Rossum2001-08-171-0/+14
| | | | | | | | | | is pickled as a global must now exist by the name under which it is pickled, otherwise the pickling fails. Previously, such things would fail on unpickling, or unpickle as the wrong global object. I'm hoping that this won't break existing code that is playing tricks with this. I need a volunteer to do this for cPickle too.
* Patch #445762: Support --disable-unicodeMartin v. Löwis2001-08-1714-121/+183
| | | | | | | | - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
* Change the 227 response parser to use a more liberal regularGuido van Rossum2001-08-171-7/+9
| | | | | | | | expression. This is needed for certain servers that (in violation of the standard) don't return the parentheses in the response. This fixes SF bug #441712 by Henrik Weber (not exactly using his patch).
* classic(),metods(): add tests to verify that a bound method without aGuido van Rossum2001-08-171-0/+2
| | | | class has a correct repr().
* classic(), methods(): add another test relating to unbound methods:Guido van Rossum2001-08-171-0/+6
| | | | | | when an unbound method of class A is stored as a class variable of class B, and class B is *not* a subclass of class A, that method should *not* get bound to B instances.
* Add early binding of methods to the 2nd metaclass example.Guido van Rossum2001-08-171-1/+6
|
* metaclass(): add tests for metaclasses written in Python: one thatGuido van Rossum2001-08-171-0/+33
| | | | | subclasses type, one that doesn't (the latter isn't fully functional yet).
* Added a test for module repr truncation when the package name isBarry Warsaw2001-08-161-0/+35
| | | | really long. Closes SF bug #437984.
* classobject.c:instancemethod_descr_get(): when a bound method isGuido van Rossum2001-08-161-1/+1
| | | | | | | assigned to a class variable and then accessed via an instance, it should not be rebound. test_descr.py:methods(): test for the condition above.
* [Patch #441691] preprocess() method for Borland C compiler.Andrew M. Kuchling2001-08-161-1/+35
| | | | I have no way of testing this.
* test_descr started breaking in yet another way in the same place.Tim Peters2001-08-161-2/+6
|
* New unit test for the mimetypes module, to avoid future regressions.Fred Drake2001-08-161-0/+42
|
* Another egregious error that copied the encodings info over the suffixFred Drake2001-08-161-1/+1
| | | | info. Caught by the tests that I'm writing now.
* Use (c)StringIO for collecting bytes. Fixes bug #451622.Martin v. Löwis2001-08-161-8/+12
|
* Repair some accidents causing Windows failures:Tim Peters2001-08-162-5/+5
| | | | | | | + test_compare. While None compares less than anything else, it's not always the case that None has the smallest id(). + test_descr. The output of %p (pointer) formats varies across platforms. In particular, on Windows it doesn't produce a leading "0x".
* Bad bug: the MimeTypes.readfp() was supposed to take a file object as aFred Drake2001-08-161-2/+2
| | | | | | | | parameter, but did not. This was found because it can create failures elsewhere based on the presence of mime.types files in some common locations the module searches by default. (I will be writing a test for this module shortly!)
* [Patch #444854 from twburton]Andrew M. Kuchling2001-08-161-1/+4
| | | | Add executable extension, needed to get the program name right on Win32
* [Patch #442530 from twburton]Andrew M. Kuchling2001-08-161-4/+4
| | | | | Provide include_dirs argument to all calls to ._preprocess and ._compile Fix typo: pattern.search(pattern) should be pattern.search(line)
* The change of type(None).__name__ from 'None' to 'NoneType' broke thisGuido van Rossum2001-08-162-4/+4
| | | | test in a trivial way. Fixed.
* Add tests for overridable operators that have default interpretationsGuido van Rossum2001-08-151-0/+127
| | | | | (__hash__ etc.), in static and dynamic classes, overridden and default.
* Rewrote Jack's latest change so it does what it intended to do...Just van Rossum2001-08-151-4/+8
|
* Given a class without __cmp__ or __eq__, cmp() of two instances ofGuido van Rossum2001-08-151-0/+8
| | | | | | that class should compare the id() of those instances. Add a test that verifies this. This test currently fails; I believe this is caused by object.c:2.132 (Patch #424475 by loewis).
* Add a test to verify that bound methods work correctly.Guido van Rossum2001-08-151-0/+18
|
* Don't remove non-directories from sys.path on the mac: filesJack Jansen2001-08-151-2/+3
| | | | can be on sys.path too.
* Move one of the tests into the "PEP 255" section, to reflect a change inTim Peters2001-08-151-12/+15
| | | | the PEP.
* Fix typo in astgen scriptJeremy Hylton2001-08-141-1/+1
|
* Add a test for a weird bug I just discovered: a dynamic subclassGuido van Rossum2001-08-141-0/+5
| | | | doesn't have a __dict__!
* Regenerated from new ast.txt and new astgen.pyJeremy Hylton2001-08-141-12/+23
|
* Test the new semantics for setting and deleting a function's __dict__Barry Warsaw2001-08-141-45/+50
| | | | | | | | | attribute. Deleting it, or setting it to a non-dictionary result in a TypeError. Note that getting it the first time magically initializes it to an empty dict so that func.__dict__ will always appear to be a dictionary (never None). Closes SF bug #446645.
* reload(exceptions) should not raise an ImportError, but should actBarry Warsaw2001-08-131-0/+8
| | | | just like reload(sys). Test that this is so. Closes SF bug #422004.
* Repair Unix-specific assumptions that caused this to fail on Windows.Tim Peters2001-08-131-20/+18
|
* found_terminator(): Add a debug print showing the data.Barry Warsaw2001-08-131-1/+2
|
* Nick Mathewson: test suite for the class browser support module.Fred Drake2001-08-131-0/+158
|
* Nick Mathewson: Make sure the recursion is handled properly.Fred Drake2001-08-131-4/+4
| | | | This is part of SF patch #440292.