summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s/_as_Temporarily_Immutable/_as_temporarily_immutable/g, because theTim Peters2002-08-231-2/+2
| | | | latter is what the code actually does.
* pop(): An arbitrary element is removed, not a random element.Tim Peters2002-08-231-1/+2
|
* Adjust the markup in a few places so this will actually format.Fred Drake2002-08-231-92/+89
| | | | Remove the third column in the tables since it isn't used.
* Add an entry for the sets module documentation.Fred Drake2002-08-231-1/+2
| | | | | Move another entry so the boilerplate doesn't get mixed up with document-specific content.
* Load docs for sets.pyRaymond Hettinger2002-08-232-0/+220
|
* RH pointed out that discard(element) doesn't do the transformation onGuido van Rossum2002-08-231-1/+1
| | | | the element if necessary. Fixed by calling self.remove(element).
* The error messages in err_args() -- which is only called when theGuido van Rossum2002-08-231-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 frameworkJack Jansen2002-08-231-1/+2
| | | | to the list of places where pydoc looks for HTML documents.
* Rewritten using the tokenize module, which gives us a real tokenizerGuido van Rossum2002-08-231-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 Jansen2002-08-221-2/+2
| | | | classic Python is gone.
* For MacPython-OS9 verbose is the default.Jack Jansen2002-08-221-0/+3
|
* Interface to Apple Help Manager.Jack Jansen2002-08-223-0/+255
|
* Moved CoreFoundation type support to bgen/macsupport.Jack Jansen2002-08-227-70/+75
|
* Added PyDoc_STR's.Jack Jansen2002-08-221-112/+112
|
* Tweak wordsep_re again: this time to recognize an em-dash withGreg Ward2002-08-221-1/+1
| | | | any non-whitespace characters adjacent, not just \w.
* Test an em-dash with adjacent punctuation.Greg Ward2002-08-221-0/+6
|
* Factored out BaseTestCase.check_split() method -- use it whereverGreg Ward2002-08-221-8/+8
| | | | we need to test TextWrapper._split().
* Test _split() method in test_unix_options().Greg Ward2002-08-221-0/+9
|
* Add test_unix_options() to WrapTestCase to test for SF bug #596434.Greg Ward2002-08-221-0/+28
|
* Fix SF bug #596434: tweak wordsep_re so "--foo-bar" now splitsGreg Ward2002-08-221-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 Rossum2002-08-222-18/+17
|
* Standardize behavior: no docstrings in test functions. Also useGuido van Rossum2002-08-221-6/+4
| | | | unittest.makeSuite() rather than loader.loadTestsFromTestCase().
* Standardize behavior: no docstrings in test functions. Also stripGuido van Rossum2002-08-221-16/+16
| | | | trailing whitespace.
* Document that docstrings are verboten for test functions.Guido van Rossum2002-08-221-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 ridGuido van Rossum2002-08-221-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 properGuido van Rossum2002-08-221-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 handlesGreg Ward2002-08-221-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 Rossum2002-08-222-10/+13
|
* Standardize behavior: create a single suite merging all test cases.Guido van Rossum2002-08-221-3/+5
|
* Standardize behavior: no docstrings in test functions; create a singleGuido van Rossum2002-08-221-13/+19
| | | | suite merging all test cases.
* Made it more readable.Guido van Rossum2002-08-221-46/+30
|
* Fix peculiar (and ungrammatical) wording in an example program.Greg Ward2002-08-221-2/+2
|
* Simplification/cleanup in IndentTestCases.Greg Ward2002-08-221-16/+10
|
* Factor LongWordTestCase out of WrapTestCase, and rename its methodsGreg Ward2002-08-221-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 Ward2002-08-221-3/+3
|
* Ditch the whole loop-over-subcases way of working. Add check_wrap() toGreg Ward2002-08-221-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 followingGreg Ward2002-08-221-52/+32
| | | | | for-loops) in test_simple(), test_wrap_short() test_hyphenated(), and test_funky_punc().
* Add comment header block.Greg Ward2002-08-221-12/+10
| | | | | Remove some useless comments (redundant, or info presumably available in PyUnit docs).
* Conform to standards documented in README:Greg Ward2002-08-221-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 HansenGreg Ward2002-08-221-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 bugGuido van Rossum2002-08-221-1/+1
| | | | 598097)
* Change the binary operators |, &, ^, - to return NotImplemented ratherGuido van Rossum2002-08-221-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 willFred Drake2002-08-221-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 isFred Drake2002-08-221-0/+2
| | | | completely equivalent.
* Fix grammatically inept comment.Michael W. Hudson2002-08-221-2/+1
|
* Added a main() function and support to run this module as a script.Fred Drake2002-08-212-3/+33
| | | | Closes SF feature request #588768.
* Refactor: Remove some code that was obsoleted when this module wasFred Drake2002-08-211-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 theFred Drake2002-08-211-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 theRaymond Hettinger2002-08-211-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 Hettinger2002-08-211-0/+10
|