summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* Add documentation for the MIMEAudio class/module, contributed byBarry Warsaw2001-10-091-0/+26
| | | | Anthony Baxter.
* Improve the documentation for the os.P_* constants used with the os.spawn*()Fred Drake2001-10-091-9/+29
| | | | | | | | | | functions to include information about how they affect the operation of those functions when used as the "mode" parameter. This closes SF bug #468384. Added warnings to the os.tempnam() and os.tmpnam() functions regarding their security problem. These warning mirror the warnings added to the runtime by Skip Montanaro.
* New markup: \note{...} and \warning{...}Fred Drake2001-10-094-0/+36
|
* 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.
* Note that the values for Boolean options are case-insensitive.Fred Drake2001-10-091-2/+3
|
* Add Cesar Eduardo Barros, for asyncore patches.Martin v. Löwis2001-10-091-0/+1
|
* 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-092-12/+30
| | | | | | | 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.
* Update URL. Fixes bug #468118.Martin v. Löwis2001-10-091-1/+1
|
* Add additional fields to Xxo_Type declaration. Fixes bug #469250.Martin v. Löwis2001-10-091-0/+31
|
* Patch #468647: Fix exception propagation in asyncore.Martin v. Löwis2001-10-091-34/+38
|
* A brand new implementation of Profile.calibrate(). This measures anTim Peters2001-10-092-41/+66
| | | | | | | | | actual run of the profiler, instead of timing a simplified simulation of part of what the profiler does. It computes a constant about 60% higher on my Win98SE box than the old method, and the new constant appears much more realistic. Deleted the undocumented simple(), instrumented(), and profiler_simulation() methods (which existed only to support the previous calibration method).
* Update outdated text about how to fix the font.Guido van Rossum2001-10-081-4/+5
|
* Replace all instances of err.strerror with err.Jeremy Hylton2001-10-081-6/+6
| | | | | | | The strerror attribute contained only partial information about the exception and produced some very confusing error messages. By passing err (the exception object itself) and letting it convert itself to a string, the error messages are better.
* Added tests that check getboolean() with the newly allowed values fromFred Drake2001-10-082-0/+38
| | | | SF patch #467580.
* type_subclasses(): debug build was broken due to typo in new assert().Tim Peters2001-10-081-1/+1
|
* Change all occurrences of verify(x == y) into vereq(x, y), since whenGuido van Rossum2001-10-081-374/+376
| | | | | | | | this type of test fails, vereq() does a better job of reporting than verify(). Change vereq(x, y) to use "not x == y" rather than "x != y" -- it makes a difference is some overloading tests.
* Update the description of getboolean() to reflect the changes made byFred Drake2001-10-081-3/+5
| | | | SF patch #467580.
* Mods by Alexandre Parenteau to allow embedding programs to disable the ↵Jack Jansen2001-10-083-45/+90
| | | | | | MacPython console window completely, and optionally route console output (and input) to routines provided by the embedding app. Things don't fully work yet, but at least it doesn't break anything.
* Brought up to date with the current state of affairs.Jack Jansen2001-10-082-5/+6
|
* Keep track of a type's subclasses (subtypes), in tp_subclasses, whichGuido van Rossum2001-10-082-1/+73
| | | | | | | | | | | | | | | | is a list of weak references to types (new-style classes). Make this accessible to Python as the function __subclasses__ which returns a list of types -- we don't want Python programmers to be able to manipulate the raw list. In order to make this possible, I also had to add weak reference support to type objects. This will eventually be used together with a trap on attribute assignment for dynamic classes for a major speed-up without losing the dynamic properties of types: when a __foo__ method is added to a class, the class and all its subclasses will get an appropriate tp_foo slot function.
* Mac OS X build instructions talked about --without-toolbox-glue, butJack Jansen2001-10-081-1/+1
| | | | the configure option is really called --disable-toolbox-glue.
* Do not add -shared to linker_so. Any necessary options should already beMartin v. Löwis2001-10-081-4/+1
| | | | in LDSHARED.
* Provide explicit program when trying to link pthread_create.Martin v. Löwis2001-10-082-250/+252
| | | | Contributed by Albert Chin in discussion of bug #210665.
* Added declarations for PyMac_SetConsoleHandler, PyMan_DUmmyReadHandlerJack Jansen2001-10-081-0/+19
| | | | and PyMac_DummyWriteHandler.
* Added weakrefobject.c and regenerated .exp files.Jack Jansen2001-10-084-6/+38
|
* Put the deprecated .ignore() method back where it was.Tim Peters2001-10-081-4/+4
|
* Widespread random code cleanup.Tim Peters2001-10-081-87/+54
| | | | | | | | | | | | | | | | | | | | | | | | Most of this code was old enough to vote. Examples of cleanups: + Backslashes were used for line continuation even inside unclosed bracket structures, from back in the days that was still needed. + There was no use of % formats, and e.g. the old fpformat module was still used to format floats "by hand" in conjunction with rjust(). + There was even use of a do-nothing .ignore() method to tack on to the end of a chain of method calls, else way back when Python would print the non-None result (as it does now in an interactive session -- it *used* to do that in batch mode too). + Perhaps controversial (although I can't imagine why for real <wink>), used augmented assignment where helpful. Stuff like self.total_calls = self.total_calls + other.total_calls is just plain harder to follow than self.total_calls += other.total_calls
* Implement isinstance(x, (A, B, ...)). Note that we only allow tuples,Guido van Rossum2001-10-072-3/+20
| | | | | not other sequences (then we'd have to except strings, and we'd still be susceptible to recursive attacks).
* merged port binding error message patchSteven M. Gava2001-10-071-14/+33
|
* merged win spawn patchSteven M. Gava2001-10-071-1/+1
|
* merged status bar packing patchSteven M. Gava2001-10-071-2/+4
|
* Only close sockets if they have been created. Reported by Blake Winton.Martin v. Löwis2001-10-075-6/+15
|
* Typo repair in comment.Tim Peters2001-10-071-1/+1
|
* Support OpenUNIX like UnixWare.Martin v. Löwis2001-10-072-9/+9
|
* Guido points out that the comments for self.cur[2] were subtly butTim Peters2001-10-071-17/+29
| | | | | | | | seriously wrong. This started out by just fixing the docs, but then it occurred to me that the doc confusion propagated into misleading vrbl names too, so I also renamed those to match reality. As a result, INO the time computations are much easier to understand now (within the limitations of vast quantities of 3-character names <wink>).
* Use AC_TRY_RUN for checking for -Kpthread.Martin v. Löwis2001-10-072-359/+378
|
* At Guido's request, changed the code that's conceptually asserting stuffTim Peters2001-10-071-11/+9
| | | | to use assert stmts (was raising unexpected kinds of exceptions).
* Repair some longstanding comment errors:Tim Peters2001-10-071-4/+4
| | | | | | + The last index in the timing tuple is 4, not 5 (noted by Guido). + The poorly named trace_dispatch_i works with float return values too.
* Guido suggests, and I agree, to insist that SIZEOF_VOID_P be a power of 2.Tim Peters2001-10-074-48/+32
| | | | | | This simplifies the rounding in _PyObject_VAR_SIZE, allows to restore the pre-rounding calling sequence, and allows some nice little simplifications in its callers. I'm still making it return a size_t, though.
* Remove code and docs for the OldProfile and HotProfile classes: codeTim Peters2001-10-073-285/+32
| | | | | hasn't worked in years, docs were wrong, and they aren't interesting anymore regardless.
* _PyObject_VAR_SIZE: always round up to a multiple-of-pointer-size value.Tim Peters2001-10-064-61/+70
| | | | | | | | | | | | | | | | | As Guido suggested, this makes the new subclassing code substantially simpler. But the mechanics of doing it w/ C macro semantics are a mess, and _PyObject_VAR_SIZE has a new calling sequence now. Question: The PyObject_NEW_VAR macro appears to be part of the public API. Regardless of what it expands to, the notion that it has to round up the memory it allocates is new, and extensions containing the old PyObject_NEW_VAR macro expansion (which was embedded in the PyObject_NEW_VAR expansion) won't do this rounding. But the rounding isn't actually *needed* except for new-style instances with dict pointers after a variable-length blob of embedded data. So my guess is that we do not need to bump the API version for this (as the rounding isn't needed for anything an extension can do unless it's recompiled anyway). What's your guess?
* Repaired the debug Windows deaths in test_descr, by allocating enoughTim Peters2001-10-063-21/+33
| | | | | | | | | | | | | | pad memory to properly align the __dict__ pointer in all cases. gcmodule.c/objimpl.h, _PyObject_GC_Malloc: + Added a "padding" argument so that this flavor of malloc can allocate enough bytes for alignment padding (it can't know this is needed, but its callers do). typeobject.c, PyType_GenericAlloc: + Allocated enough bytes to align the __dict__ pointer. + Sped and simplified the round-up-to-PTRSIZE logic. + Added blank lines so I could parse the if/else blocks <0.7 wink>.
* _PyObject_GetDictPtr():Tim Peters2001-10-061-8/+12
| | | | | | + Use the _PyObject_VAR_SIZE macro to compute object size. + Break the computation into lines convenient for debugger inspection. + Speed the round-up-to-pointer-size computation.
* _PyObject_GC_Malloc(): split a complicated line in two. As is, there wasTim Peters2001-10-061-2/+3
| | | | | no way to talk the debugger into showing me how many bytes were being allocated.