Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | s/_as_Temporarily_Immutable/_as_temporarily_immutable/g, because the | Tim Peters | 2002-08-23 | 1 | -2/+2 | |
| | | | | latter is what the code actually does. | |||||
* | pop(): An arbitrary element is removed, not a random element. | Tim Peters | 2002-08-23 | 1 | -1/+2 | |
| | ||||||
* | Adjust the markup in a few places so this will actually format. | Fred Drake | 2002-08-23 | 1 | -92/+89 | |
| | | | | Remove the third column in the tables since it isn't used. | |||||
* | Add an entry for the sets module documentation. | Fred Drake | 2002-08-23 | 1 | -1/+2 | |
| | | | | | Move another entry so the boilerplate doesn't get mixed up with document-specific content. | |||||
* | Load docs for sets.py | Raymond Hettinger | 2002-08-23 | 2 | -0/+220 | |
| | ||||||
* | RH pointed out that discard(element) doesn't do the transformation on | Guido van Rossum | 2002-08-23 | 1 | -1/+1 | |
| | | | | the element if necessary. Fixed by calling self.remove(element). | |||||
* | The error messages in err_args() -- which is only called when the | Guido van Rossum | 2002-08-23 | 1 | -2/+2 | |
| | | | | | | required number of args is 0 or 1 -- were reversed. Also change "1" into "exactly one", the same words as used elsewhere for this condition. | |||||
* | Added the standard MacOSX location for documentation inside a framework | Jack Jansen | 2002-08-23 | 1 | -1/+2 | |
| | | | | to the list of places where pydoc looks for HTML documents. | |||||
* | Rewritten using the tokenize module, which gives us a real tokenizer | Guido van Rossum | 2002-08-23 | 1 | -188/+144 | |
| | | | | | | rather than a number of approximating regular expressions. Alas, it is 3-4 times slower. Let that be a challenge for the tokenize module. | |||||
* | Don't build ConfigurePythonCarbon and ConfigurePythonClassic any longer, | Jack Jansen | 2002-08-22 | 1 | -2/+2 | |
| | | | | classic Python is gone. | |||||
* | For MacPython-OS9 verbose is the default. | Jack Jansen | 2002-08-22 | 1 | -0/+3 | |
| | ||||||
* | Interface to Apple Help Manager. | Jack Jansen | 2002-08-22 | 3 | -0/+255 | |
| | ||||||
* | Moved CoreFoundation type support to bgen/macsupport. | Jack Jansen | 2002-08-22 | 7 | -70/+75 | |
| | ||||||
* | Added PyDoc_STR's. | Jack Jansen | 2002-08-22 | 1 | -112/+112 | |
| | ||||||
* | Tweak wordsep_re again: this time to recognize an em-dash with | Greg Ward | 2002-08-22 | 1 | -1/+1 | |
| | | | | any non-whitespace characters adjacent, not just \w. | |||||
* | Test an em-dash with adjacent punctuation. | Greg Ward | 2002-08-22 | 1 | -0/+6 | |
| | ||||||
* | Factored out BaseTestCase.check_split() method -- use it wherever | Greg Ward | 2002-08-22 | 1 | -8/+8 | |
| | | | | we need to test TextWrapper._split(). | |||||
* | Test _split() method in test_unix_options(). | Greg Ward | 2002-08-22 | 1 | -0/+9 | |
| | ||||||
* | Add test_unix_options() to WrapTestCase to test for SF bug #596434. | Greg Ward | 2002-08-22 | 1 | -0/+28 | |
| | ||||||
* | Fix SF bug #596434: tweak wordsep_re so "--foo-bar" now splits | Greg Ward | 2002-08-22 | 1 | -1/+1 | |
| | | | | | into /--foo-/bar/ rather than /--/foo-/bar/. Needed for Optik and Docutils to handle Unix-style command-line options properly. | |||||
* | Standardize behavior: no docstrings in test functions. | Guido van Rossum | 2002-08-22 | 2 | -18/+17 | |
| | ||||||
* | Standardize behavior: no docstrings in test functions. Also use | Guido van Rossum | 2002-08-22 | 1 | -6/+4 | |
| | | | | unittest.makeSuite() rather than loader.loadTestsFromTestCase(). | |||||
* | Standardize behavior: no docstrings in test functions. Also strip | Guido van Rossum | 2002-08-22 | 1 | -16/+16 | |
| | | | | trailing whitespace. | |||||
* | Document that docstrings are verboten for test functions. | Guido van Rossum | 2002-08-22 | 1 | -6/+34 | |
| | | | | | Expand the example to show some actual test functions, and a setUp() and tearDown() method. | |||||
* | Standardize behavior: no docstrings in test functions. Also get rid | Guido van Rossum | 2002-08-22 | 1 | -42/+37 | |
| | | | | | | of dummy_test_TemporaryFile class; when NamedTemporaryFile and TemporaryFile are the same, simply don't add a test suite for TemporaryFile. | |||||
* | Standardize behavior: no docstrings in test functions; add a proper | Guido van Rossum | 2002-08-22 | 1 | -46/+44 | |
| | | | | test_main() that creates a suite and runs it. Don't mess with sys.path!!! | |||||
* | Add test_em_dash() to WrapTestCase to make sure that TextWrapper handles | Greg Ward | 2002-08-22 | 1 | -2/+53 | |
| | | | | | em-dashes -- like this -- properly. (Also--like this. Although this usage may be incompatible with fixing bug #596434; we shall see.) | |||||
* | Standardize behavior: no docstrings in test functions. | Guido van Rossum | 2002-08-22 | 2 | -10/+13 | |
| | ||||||
* | Standardize behavior: create a single suite merging all test cases. | Guido van Rossum | 2002-08-22 | 1 | -3/+5 | |
| | ||||||
* | Standardize behavior: no docstrings in test functions; create a single | Guido van Rossum | 2002-08-22 | 1 | -13/+19 | |
| | | | | suite merging all test cases. | |||||
* | Made it more readable. | Guido van Rossum | 2002-08-22 | 1 | -46/+30 | |
| | ||||||
* | Fix peculiar (and ungrammatical) wording in an example program. | Greg Ward | 2002-08-22 | 1 | -2/+2 | |
| | ||||||
* | Simplification/cleanup in IndentTestCases. | Greg Ward | 2002-08-22 | 1 | -16/+10 | |
| | ||||||
* | Factor LongWordTestCase out of WrapTestCase, and rename its methods | Greg Ward | 2002-08-22 | 1 | -13/+14 | |
| | | | | | (tests) from test_funky_punc() to test_break_long() and test_long_words() to test_nobreak_long(). | |||||
* | Rename base test case class to (yawn) BaseTestCase. | Greg Ward | 2002-08-22 | 1 | -3/+3 | |
| | ||||||
* | Ditch the whole loop-over-subcases way of working. Add check_wrap() to | Greg Ward | 2002-08-22 | 1 | -74/+59 | |
| | | | | | | | base class (WrapperTestCase) instead, and call it repeatedly in the methods that used to have a loop-over-subcases. Much simpler. Rename perennial temp variable 't' to 'text'. | |||||
* | Simplify and reformat the use of 'subcases' lists (and following | Greg Ward | 2002-08-22 | 1 | -52/+32 | |
| | | | | | for-loops) in test_simple(), test_wrap_short() test_hyphenated(), and test_funky_punc(). | |||||
* | Add comment header block. | Greg Ward | 2002-08-22 | 1 | -12/+10 | |
| | | | | | Remove some useless comments (redundant, or info presumably available in PyUnit docs). | |||||
* | Conform to standards documented in README: | Greg Ward | 2002-08-22 | 1 | -15/+19 | |
| | | | | | | | * lowercase test*() methods * define test_main() and use it instead of unittest.main() Kill #! line. Improve some test names and docstrings. | |||||
* | Test script for the textwrap module. Kindly provided by Peter Hansen | Greg Ward | 2002-08-22 | 1 | -0/+261 | |
| | | | | | | <peter@engcorp.com> based on a test script that's been kicking around my home directory for a couple of months now and only saw the light of day because I included it when I sent textwrap.py to python-dev for review. | |||||
* | On Windows, make sure SocketType is the same as socket. (SF bug | Guido van Rossum | 2002-08-22 | 1 | -1/+1 | |
| | | | | 598097) | |||||
* | Change the binary operators |, &, ^, - to return NotImplemented rather | Guido van Rossum | 2002-08-22 | 1 | -14/+40 | |
| | | | | | | | | | | | | | | | | | | | | than raising TypeError when the other argument is not a BaseSet. This made it necessary to separate the implementation of e.g. __or__ from the union method; the latter should not return NotImplemented but raise TypeError. This is accomplished by making union(self, other) return self|other, etc.; Python's binary operator machinery will raise TypeError. The idea behind this change is to allow other set implementations with an incompatible internal structure; these can provide union (etc.) with standard sets by implementing __ror__ etc. I wish I could do this for comparisons too, but the default comparison implementation allows comparing anything to anything else (returning false); we don't want that (at least the test suite makes sure e.g. Set()==42 raises TypeError). That's probably fine; otherwise other set implementations would be constrained to implementing a hash that's compatible with ours. | |||||
* | Give the section on PEP 263 a more meaningful title, so readers will | Fred Drake | 2002-08-22 | 1 | -1/+1 | |
| | | | | be able to locate this information without knowing the PEP number. | |||||
* | Add a note that apply() is needed since the extended call syntax is | Fred Drake | 2002-08-22 | 1 | -0/+2 | |
| | | | | completely equivalent. | |||||
* | Fix grammatically inept comment. | Michael W. Hudson | 2002-08-22 | 1 | -2/+1 | |
| | ||||||
* | Added a main() function and support to run this module as a script. | Fred Drake | 2002-08-21 | 2 | -3/+33 | |
| | | | | Closes SF feature request #588768. | |||||
* | Refactor: Remove some code that was obsoleted when this module was | Fred Drake | 2002-08-21 | 1 | -11/+17 | |
| | | | | | | | | | changed to use universal newlines. Remove all imports from the compile() function; these are now done at the top of the module ("Python normal form"), and define a helper based on the platform instead of testing the platform in the compile() function. | |||||
* | Clarify that even though some of the relevant specifications define the | Fred Drake | 2002-08-21 | 1 | -8/+10 | |
| | | | | | | | order in which form variables should be encoded in a request, a CGI script should not rely on that since a client may not conform to those specs, or they may not be relevant to the request. Closes SF bug #596866. | |||||
* | Now that __init__ transforms set elements, we know that all of the | Raymond Hettinger | 2002-08-21 | 1 | -1/+3 | |
| | | | | | elements are hashable, so we can use dict.update() or dict.copy() for a C speed Set.copy(). | |||||
* | Add regression test for proper construction of sets of sets. | Raymond Hettinger | 2002-08-21 | 1 | -0/+10 | |
| |