summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* pstats-compatible analysis module.Fred Drake2001-10-151-0/+93
| | | | | hotshot.stats.load(logfilename) returns a pstats.Stats instance, which is about as compatible as it gets.
* runcall(): Expose the return value of the profiled function; this allowsFred Drake2001-10-151-1/+1
| | | | | | changing an application to collect profile data on one part of the app while still making use of the profiled component, without relying on side effects.
* Avoid deep recursion when reading the header of the log file.Fred Drake2001-10-151-28/+39
| | | | | Add support for extracting function names from the log file, keeping the extract-names-from-sources support as a fallback.
* Get rid of __defined__ and tp_defined -- there's no need toGuido van Rossum2001-10-151-16/+1
| | | | | distinguish __dict__ and __defined__ any more. In the C structure, tp_cache takes its place -- but this hasn't been implemented yet.
* Covert pickle tests to use unittest.Jeremy Hylton2001-10-155-193/+294
| | | | | Extend tests to cover a few more cases. For cPickle, test several of the undocumented features.
* Use cStringIO when available.Jeremy Hylton2001-10-151-36/+4
| | | | Remove test code. It's available in Lib/test/picklertester.py.
* Completely get rid of __dynamic__ and the correspondingGuido van Rossum2001-10-151-53/+21
| | | | | Py_TPFLAGS_DYNAMICTYPE bit. There is no longer a performance benefit, and I don't really see the use case any more.
* Patch 471400: escape single-dot lines; by Jason Hildebrand.Guido van Rossum2001-10-151-0/+2
| | | | | RFC 2049 recommends never outputting a line consisting of a single dot.
* SF bug #469910 by Alfonso Baciero: Bugfix for imaplib for macintoshGuido van Rossum2001-10-151-1/+1
| | | | Pass binary mode to makefile().
* test_typed_subpart_iterator_default_type(): Test for when the messageBarry Warsaw2001-10-151-0/+18
| | | | has no Content-Type: header, it should be treated as text/plain.
* typed_subpart_iterator(): When getting the main type use 'text' as theBarry Warsaw2001-10-151-2/+2
| | | | | | failobj, and when getting the subtype use 'plain' as the failobj. text/plain is supposed to be the default if the message contains no Content-Type: header.
* "ib" should be "boundary"; reported by Neal Norwitz.Fred Drake2001-10-131-1/+1
|
* Added missing parameter in call to http_error_default();Fred Drake2001-10-131-1/+1
| | | | reported by Neal Norwitz.
* SMTPError should be SMTPException; reported by Neal Norwitz.Fred Drake2001-10-131-2/+2
|
* Ignore execfile() return value; reported by Neal Norwitz.Fred Drake2001-10-131-1/+1
|
* "f" should be "self"; reported by Neal Norwitz.Fred Drake2001-10-131-1/+1
|
* _os should be os; reported by Neal Norwitz.Fred Drake2001-10-131-1/+1
|
* Remove extra param from call to self.error().Fred Drake2001-10-131-1/+1
| | | | Reported by Neal Norwitz.
* Move grid_location into Misc. Fixes bug #426892.Martin v. Löwis2001-10-131-8/+8
|
* Remove some unused imports.Fred Drake2001-10-131-4/+17
| | | | | | Remove the log file after we are done with it. This should clean up after the test even on Windows, since the file is now closed before we attempt removal.
* When we reach the end of the log file, close the logreader object.Fred Drake2001-10-131-1/+3
|
* You can't unlink open files on Windows.Tim Peters2001-10-131-1/+1
| | | | | | Simply commented it out, and then test_hotshot passes on Windows. Leaving to Fred to fix "the right way" (it seems to be a feature of unittest that all unittests try to unlink open files <wink>).
* Correct __repr__: include module name, avoid extra space for empty status,Martin v. Löwis2001-10-121-3/+2
| | | | use 0x format for id. Proposed by Cesar Eduardo Barros in patch #470680.
* Preliminary user-level interface to HotShot. We still need the analysisFred Drake2001-10-122-0/+173
| | | | tool; look for that on Monday.
* A most trivial test for HotShot -- make sure we get reasonable eventsFred Drake2001-10-121-0/+81
| | | | reported and can read the log back in.
* Suggestion from SF patch #470433 to avoid clobbering TCL_LIBRARY etGuido van Rossum2001-10-121-4/+9
| | | | | al. if already set. Also adds TIX_LIBRARY (just in case). (Note that this is entirely Windows specific.)
* SF bug [#470040] ParseTuple t# vs subclasses.Tim Peters2001-10-121-1/+32
| | | | | | | inherit_slots(): tp_as_buffer was getting inherited as if it were a method pointer, rather than a pointer to a vector of method pointers. As a result, inheriting from a type that implemented buffer methods was ineffective, leaving all the tp_as_buffer slots NULL in the subclass.
* Another step in the right direction: when a new class's attributeGuido van Rossum2001-10-111-16/+79
| | | | | | | | | corresponding to a dispatch slot (e.g. __getitem__ or __add__) is set, calculate the proper dispatch slot and propagate the change to all subclasses. Because of multiple inheritance, there's no easy way to avoid always recursing down the tree of subclasses. Who cares? (There's more to do, but this works. There's also a test for this now.)
* Somebody checked in a version of httplib that doesn't even compile --Tim Peters2001-10-111-1/+1
| | | | SyntaxError. Fix it.
* Fix for SF buf #458835Jeremy Hylton2001-10-111-3/+14
| | | | | | | | | | | | | | | | | Try to be systematic about dealing with socket and ssl exceptions in FakeSocket.makefile(). The previous version of the code caught all ssl errors and treated them as EOF, even though most of the errors don't mean EOF. An SSL error can mean on of three things: 1. The SSL/TLS connection was closed. 2. The operation should be retried. 3. An error occurred. Also, if a socket error occurred and the error was EINTR, retry the call. Otherwise, it was a legitimate error and the caller should receive the exception.
* Add a test for the HeaderParser class.Barry Warsaw2001-10-111-1/+17
|
* HeaderParser: A new subclass of Parser which only parses the messageBarry Warsaw2001-10-111-0/+16
| | | | | | headers. It does not parse the body of the message, instead simply assigning it as a string to the container's payload. This can be much faster when you're only interested in a message's header.
* Add test of hexlify on Unicode stringsJeremy Hylton2001-10-111-0/+4
|
* allow long ints to be marshalled as ints - no check is made to the incomingSkip Montanaro2001-10-101-0/+6
| | | | | | | value, so the programmer will have to catch OverflowError. I'm not sure what /F's perspective is on this. Perhaps it should be caught and mapped to an xmlrpclib-specific exception. None of the other type-specific dump methods seem to do any exception handling though.
* SF bug [#469732] os.path.walk docstring inconsistent.Tim Peters2001-10-105-27/+67
| | | | | We have 5 implementations of walk(), and 5 different docstrings. Combined 'em. Let's see how long it takes before they're all different again!
* SF patch [ #468662 ] Allow jython to complete test_grammarJeremy Hylton2001-10-101-4/+14
| | | | | | The behavior of co_varnames in the presence of nested argument tuples is not consistent across Python and Jython. Test each platform separately.
* Repair key stutter + auto-complete ugliness.Tim Peters2001-10-091-2/+2
|
* Remove obsolete email address.Fred Drake2001-10-091-1/+1
|
* Allow the profiler's calibration constant to be specified in the constructorTim Peters2001-10-091-19/+27
| | | | | | | | call, or via setting an instance or class vrbl. Rewrote the calibration docs. Modern boxes are so friggin' fast, and a profiler event does so much work anyway, that the cost of looking up an instance vrbl (the bias constant) per profile event just isn't a big deal.
* Add a bunch of tests for a list subclass that would have caught theGuido van Rossum2001-10-091-0/+22
| | | | previous embarrassment (typeobject.c checking crashing minidom).
* An audio/* class, like MIMEImage, contributed by Anthony Baxter.Barry Warsaw2001-10-091-0/+71
| | | | | Rewritten for style and the email package naming conventions by Barry.
* Halfway checkin. This is still messy, but it's beginning to addressGuido van Rossum2001-10-091-0/+1
| | | | | | | | | | the problem that slots weren't inherited properly. override_slots() no longer exists; in its place comes fixup_slot_dispatchers() which does more and different work and is table-based. (Eventually I want this table also to replace all the little tab_foo tables.) Also add a wrapper for __delslice__; this required a change in test_descrtut.py.
* Added tests for MIMEAudio class/moduleBarry Warsaw2001-10-091-4/+69
|
* Fix __all__ to the current list of exported modules (must pass theBarry Warsaw2001-10-091-3/+4
| | | | tests in test_email.py).
* Fix [ #465502 ] urllib2: urlopen unicode problemJeremy Hylton2001-10-091-67/+36
| | | | | | | | When checking for strings use, ! if isinstance(uri, (types.StringType, types.UnicodeType)): Also get rid of some dodgy code that tried to guess whether attributes were callable or not.
* Add a test for get_all() returning failobj. msg_20.txt is a sampleBarry Warsaw2001-10-092-0/+28
| | | | message with multiple CC: fields, used in the get_all() test.
* get_all(): We never returned failobj if we found no matching headers.Barry Warsaw2001-10-091-0/+4
| | | | Fix that, and also make the docstring describe failobj.
* SMTPServer.__init__(): The asyncore.dispatcher base class has a methodBarry Warsaw2001-10-091-3/+1
| | | | set_reuse_addr() that does the setsockopt fiddling. Use it instead.
* Add entry parameter to HList.item_cget. Fixes bug #466981.Martin v. Löwis2001-10-091-2/+2
|
* It turned out not so difficult to support old-style numbers (thoseGuido van Rossum2001-10-091-5/+6
| | | | | | | without the Py_TPFLAGS_CHECKTYPES flag) in the wrappers. This required a few changes in test_descr.py to cope with the fact that the complex type has __int__, __long__ and __float__ methods that always raise an exception.