summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* SF bug #476138: tempfile behavior across platformsTim Peters2001-10-292-4/+16
| | | | | Ensure that a tempfile can be closed any number of times without error. This wasn't true on Windows.
* Update to reflect changes to the low-level logreader: share the infoFred Drake2001-10-291-10/+19
| | | | | | dictionary instead of building a new one, and provide an overridable method to allow subclasses to catch ADD_INFO records that are not part of the initial block of ADD_INFO records created by the profiler itself.
* Add a test for the insertion of user-provided ADD_INFO records.Fred Drake2001-10-291-2/+12
|
* Allow user code to call the addinfo() method on the profiler object.Fred Drake2001-10-291-0/+3
|
* Use connect_ex() instead of connect().Jeremy Hylton2001-10-291-12/+9
| | | | Removes old XXX comment and possible source of long-delays.
* Fix for SF bug 453099 -- select not defensiveJeremy Hylton2001-10-291-5/+16
| | | | | | | | | | And SF patch 473223 -- infinite getattr loop Wrap select() and poll() calls with try/except for EINTR. If EINTR is raised, treat as a response where no fd is ready. In dispatcher constructor, make sure self.socket is always initialized.
* more loading from cfg filesSteven M. Gava2001-10-291-17/+61
|
* more of config dialog reading from filesSteven M. Gava2001-10-294-38/+82
|
* Use sendall() in the stream test instead of send().Guido van Rossum2001-10-291-1/+1
|
* Test sendall().Guido van Rossum2001-10-291-1/+1
|
* Add 'sendall' to list of socket methods.Guido van Rossum2001-10-291-1/+1
|
* added finditer sanity checkFredrik Lundh2001-10-282-3/+13
|
* dictionary() constructor:Tim Peters2001-10-271-4/+4
| | | | | | + Change keyword arg name from "x" to "items". People passing a mapping object can stretch their imaginations <wink>. + Simplify the docstring text.
* dict_constructor(): The last test was passing for the wrong reason (itTim Peters2001-10-261-1/+1
| | | | | was intended to verify that sub-sequences of lengths 1 and 3 raise ValueError, but was actually testing string lengths).
* Re-arrange things and remove some unused variables/imports to keep pycheckerFred Drake2001-10-262-4/+14
| | | | happy. (This does not cover everything it complained about, though.)
* further work supporting reading config dialog values form config files.Steven M. Gava2001-10-261-20/+40
|
* dynamic option menu widget.Steven M. Gava2001-10-261-0/+34
|
* further work on loading config dialog values from the config filesSteven M. Gava2001-10-261-61/+15
|
* Generalize dictionary() to accept a sequence of 2-sequences. At theTim Peters2001-10-261-8/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | outer level, the iterator protocol is used for memory-efficiency (the outer sequence may be very large if fully materialized); at the inner level, PySequence_Fast() is used for time-efficiency (these should always be sequences of length 2). dictobject.c, new functions PyDict_{Merge,Update}FromSeq2. These are wholly analogous to PyDict_{Merge,Update}, but process a sequence-of-2- sequences argument instead of a mapping object. For now, I left these functions file static, so no corresponding doc changes. It's tempting to change dict.update() to allow a sequence-of-2-seqs argument too. Also changed the name of dictionary's keyword argument from "mapping" to "x". Got a better name? "mapping_or_sequence_of_pairs" isn't attractive, although more so than "mosop" <wink>. abstract.h, abstract.tex: Added new PySequence_Fast_GET_SIZE function, much faster than going thru the all-purpose PySequence_Size. libfuncs.tex: - Document dictionary(). - Fiddle tuple() and list() to admit that their argument is optional. - The long-winded repetitions of "a sequence, a container that supports iteration, or an iterator object" is getting to be a PITA. Many months ago I suggested factoring this out into "iterable object", where the definition of that could include being explicit about generators too (as is, I'm not sure a reader outside of PythonLabs could guess that "an iterator object" includes a generator call). - Please check my curly braces -- I'm going blind <0.9 wink>. abstract.c, PySequence_Tuple(): When PyObject_GetIter() fails, leave its error msg alone now (the msg it produces has improved since PySequence_Tuple was generalized to accept iterable objects, and PySequence_Tuple was also stomping on the msg in cases it shouldn't have even before PyObject_GetIter grew a better msg).
* Allow assignment to newinstance.__dict__.Guido van Rossum2001-10-261-0/+26
|
* Fix two typos, one noted by Noah Spurrier in SF bug #475166, theGuido van Rossum2001-10-261-2/+2
| | | | | second noted after a second's thought about what the next line should do. :-(
* A fix for SF bug #472560, extra newlines returned by get_param() whenBarry Warsaw2001-10-253-1/+51
| | | | | | | | the separating semi-colon shows up on a continuation line (legal, but weird). Bug reported and fixed by Matthew Cowles. Test case and sample email included.
* Applying proposed patch for bug #474583, optional support forBarry Warsaw2001-10-252-132/+224
| | | | | | | | | | | | | | | | | | | non-standard but common types. Including Martin's suggestion to add rejected non-standard types from patch #438790. Specifically, guess_type(), guess_extension(): Both the functions and the methods grow an optional "strict" flag, defaulting to true, which determines whether to recognize non-standard, but commonly found types or not. Also, I sorted, reformatted, and culled duplicates from the big types_map dictionary. Note that there are a few non-equivalent duplicates (e.g. .cdf and .xls) for which the first will just get thrown away. I didn't remove those though. Finally, use of the module as a script as grown the -l and -e options to toggle strictness and to do guess_extension(), respectively. Doc and unittest updates too.
* Ignore the posixfile deprecation warning for the test suite.Fred Drake2001-10-251-0/+3
|
* (experimental) "finditer" method/function. this works pretty muchFredrik Lundh2001-10-241-0/+10
| | | | | like findall, but returns an iterator (which returns match objects) instead of a list of strings/tuples.
* Add a warning to the posixfile module stating that it will go away.Fred Drake2001-10-241-0/+7
|
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-2425-144/+177
|
* SF bug #473525 pyclbr brokenTim Peters2001-10-241-5/+6
| | | | | | | | As the comments in the module implied, pyclbr was easily confused by "strange stuff" inside single- (but not triple-) quoted strings. It isn't anymore. Its behavior remains flaky in the presence of nested functions and classes, though. Bugfix candidate.
* Apply the first chunk of the second patch from SF bug #471720:Guido van Rossum2001-10-231-3/+11
| | | | | | | | | | | | | ThreadingMixIn/TCPServer forgets close (Max Neunhöffer). This ensures that handle_error() and close_request() are called when an error occurs in the thread. (I am not applying the second chunk of the patch, which moved the finish() call into the finally clause in BaseRequestHandler's __init__ method; that would be a semantic change that I cannot accept at this point - the data would be sent even if the handler raised an exception.)
* test_curses is an expected skip on Linux too.Guido van Rossum2001-10-231-0/+1
|
* font/tabs config dialog page now reads its data from the config fileSteven M. Gava2001-10-233-30/+108
|
* SF bug [#473864] doctest expects spurios space.Tim Peters2001-10-231-0/+6
| | | | | | Repair unlikely surprise due to magical softspace attr and the use of print with a trailing comma in doctest examples. Bugfix candidate.
* Record that test_curses doesn't run on win32.Tim Peters2001-10-221-0/+1
|
* Fixed denial-of-weak-ref-support test; Jeremy changed the error messageFred Drake2001-10-221-1/+1
| | | | | | used by the weakref code since he didn't like the word "referencable". Is it really necessary to be more specific than to test for TypeError here, though?
* A few formatting nits:Jeremy Hylton2001-10-221-5/+5
| | | | | Don't put paren in column 0 (to please font-lock mode). Put space after comma in argument list.
* Patch #473187: Add a test script that exercises most of the functions inAndrew M. Kuchling2001-10-222-1/+214
| | | | | the curses module. It's not run automatically; '-u curses' must be specified as an argument to regrtest
* sre.split should return the last segment, even if emptyFredrik Lundh2001-10-221-0/+1
| | | | (sorry, barry)
* Fix for SF bug #472940: can't getattr() attribute shown by dir()Guido van Rossum2001-10-221-5/+5
| | | | | | | | | | There really isn't a good reason for instance method objects to have their own __dict__, __doc__ and __name__ properties that just delegate the request to the function (callable); the default attribute behavior already does this. The test suite had to be fixed because the error changes from TypeError to AttributeError.
* Methods of built-in types now properly check for keyword argumentsGuido van Rossum2001-10-221-0/+9
| | | | | (formerly these were silently ignored). The only built-in methods that take keyword arguments are __call__, __init__ and __new__.
* Make tabnanny happy. (Piers, please run the test suite beforeGuido van Rossum2001-10-221-7/+7
| | | | | checking in changes. The test suite requires consistent use of spaces and tabs.)
* update version numberPiers Lauder2001-10-211-1/+1
|
* fixed character set description in docstring (SRE uses PythonFredrik Lundh2001-10-211-80/+15
| | | | | | | | | | | | | | | | | strings, not C strings) removed USE_PYTHON defines, and related sre.py helpers skip calling the subx helper if the template is callable. interestingly enough, this means that def callback(m): return literal result = pattern.sub(callback, string) is much faster than result = pattern.sub(literal, string)
* fix send method not noticing when partial sends happenPiers Lauder2001-10-211-1/+7
|
* sre.Scanner fixes (from Greg Chapman). also added a Scanner sanityFredrik Lundh2001-10-212-5/+26
| | | | | | check to the test suite. added a few missing exception checks in the _sre module
* rewrote the pattern.sub and pattern.subn methods in CFredrik Lundh2001-10-211-17/+25
| | | | | | | | | removed (conceptually flawed) getliteral helper; the new sub/subn code uses a faster code path for literal replacement strings, but doesn't (yet) look for literal patterns. added STATE_OFFSET macro, and use it to convert state.start/ptr to char indexes
* added tests for long ints and ints where they are > 32 bits.Skip Montanaro2001-10-191-0/+14
| | | | should have been checked in as part of patch #470254.
* Additional test and documentation for the unicode() changes.Marc-André Lemburg2001-10-192-21/+62
| | | | This patch should also be applied to the 2.2b1 trunk.
* Another merge from mimelib:Barry Warsaw2001-10-191-0/+27
| | | | | TestMIMEMessage.test_epilogue(), TestIdempotent.test_preamble_epilogue(): Test cases for SF bug #472481.
* Another email package test fileBarry Warsaw2001-10-191-0/+22
|
* Another merge from mimelib:Barry Warsaw2001-10-191-0/+2
| | | | | | _handle_multipart(): If there is an epilogue and the epilogue does not itself start with a newline, add a newline before writing the epilogue. Closes SF bug #472481.