summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge changes from r22a2-branch back into trunk. Also, change patchBarry Warsaw2001-08-221-0/+3
| | | | level to 2.2a2+
* Enhancements:Ka-Ping Yee2001-08-211-93/+111
| | | | | | | | | | - file URL now starts with "file://" (standard) rather than "file:" - new optional argument 'context' to enable() - repeated variable names don't have their values shown twice - dotted attributes are shown; missing attributes handled reasonably - highlight the whole logical line even if it has multiple physical lines - use nice generator interface to tokenize - formatting fixed so that it looks good in lynx, links, and w3m too
* A test of SSL support, using a roundabout method suggested by Guido.Barry Warsaw2001-08-201-0/+13
| | | | However, this is only enabled with regrtest's --use=network switch.
* Use test_support.requires() to decide whether additional largefileBarry Warsaw2001-08-201-7/+8
| | | | tests should be run.
* Removed --have-resources flag in favor of the more granular -u/--useBarry Warsaw2001-08-201-22/+61
| | | | | | | | | | | | | | | | | | | flag, which specifies external or resource intensive tests to perform. This is used by test_largefile and test_socket_ssl. -u/--use takes a comma separated list of flags, currently supported: largefile, network. usage(): New function. Note that the semantics of main() have changed slightly; instead of returning an error code, it raises a SystemExit (via sys.exit()) with the given error code. main(): use_large_resources => use_resources Also, added support for long-option alternative to the short options. _expectations: Added test_socket_ssl to the list of expectedly skipped tests.
* use_large_resources => use_resourcesBarry Warsaw2001-08-201-2/+8
| | | | | | | | requires(): New function which can be used to `assert' that a specific -u/--use resource flag is present. Raises a TestSkipped if not. This is used in test_largefile and test_socket_ssl to enable external or resource consumptive tests that are normally disabled.
* Whitespace normalization.Tim Peters2001-08-202-3/+3
|
* Test failed because these was no expected-output file, but always printedTim Peters2001-08-201-5/+8
| | | | | | | to stdout. Repaired by not printing at all except in verbose mode. Made the test about 6x faster -- envelope analysis showed it took time proportional to the square of the # of tasks. Now it's linear.
* Deal more appropriately with bare ampersands and pointy brackets; thisFred Drake2001-08-202-19/+39
| | | | | | | | module has to deal with "class" HTML-as-deployed as well as XHTML, so we cannot be as strict as XHTML allows. This closes SF bug #453059, but uses a different fix than suggested in the bug comments.
* Add test case to cover multiple future statements on separate lines ofJeremy Hylton2001-08-201-0/+11
| | | | a module.
* Fix SF bug [ #450245 ] Error in parsing future stmtsJeremy Hylton2001-08-203-0/+5
| | | | | Add test case to cover multiple future statements on separate lines of a module.
* Committing and closing SF patch #403671 by Finn Bock to help JythonBarry Warsaw2001-08-201-11/+31
| | | | pass these tests.
* add a few test cases for threading module.Skip Montanaro2001-08-201-0/+52
|
* Added new BoundedSemaphore class. Closes bug 452836.Skip Montanaro2001-08-201-0/+15
|
* Silence warnings during test_osJeremy Hylton2001-08-201-0/+5
|
* Clean up some argument profiles, enrich the docstring.Eric S. Raymond2001-08-201-18/+27
|
* of course I muffed it separating the notes code from the initial_valueSkip Montanaro2001-08-191-4/+4
| | | | code. grrr...
* Avoid total dependency on the new module. This addresses the problemGuido van Rossum2001-08-191-1/+7
| | | | reported by Greg Ball on python-dev.
* add debug calls to self._note for the Semaphore class. This closes bugSkip Montanaro2001-08-191-0/+9
| | | | | 443614. I will submit a new feature request and patch to threading.py and libthreading.tex to address the bounded semaphore issue.
* Inspired by Greg Stein's proposed simplification of the _closesocketGuido van Rossum2001-08-181-5/+1
| | | | | class, I came up with an even simpler solution: raise the error in __getattr__().
* Expose the CO_xxx flags via the "new" module (re-solving a problem "theTim Peters2001-08-182-11/+17
| | | | | | | | | | right way"). Fiddle __future__.py to use them. Jeremy's pyassem.py may also want to use them (by-hand duplication of magic numbers is brittle), but leaving that to his judgment. Beef up __future__'s test to verify the exported feature names appear correct.
* Framework code for compilerlike scripts.Eric S. Raymond2001-08-181-0/+154
|
* 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
|