summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Patch #758910: Add pthread flag to CXX if possible.Martin v. Löwis2003-06-282-1/+85
|
* Patch #751916: Check for signals, fix some refcounting errors.Martin v. Löwis2003-06-281-2/+13
|
* SF 662923: iterator for dbm keysRaymond Hettinger2003-06-281-1/+2
| | | | | When shelve and the bsdbm where expanded to a full mapping interface, this module was missed.
* Add take() to examples. Tighten the islice() exampleRaymond Hettinger2003-06-282-2/+11
|
* fix markup nitsFred Drake2003-06-281-12/+12
|
* SF patch #756996: Bare except in ZipFile.testzip()Raymond Hettinger2003-06-273-1/+26
| | | | | | | | | (Contributed by Steven Taschuk) Replaces a bare except that caused all errors to be mis-reported as archive errors. Added a related NEWS item.
* SF patch #761519: Fixes for bugs 760703 and 757821Raymond Hettinger2003-06-275-32/+59
| | | | | | | | | | | | | | | | | | SF bug #760703: SocketHandler and LogRecord don't work well together SF bug #757821: logging module docs Applied Vinay Sajip's patch with a few minor fixups and a NEWS item. Patched __init__.py - added new function makeLogRecord (for bug report 760703). Patched handlers.py - updated some docstrings and deleted some old commented-out code. Patched test_logging.py to make use of makeLogRecord. Patched liblogging.tex to fill documentation gaps (both 760703 and bug 757821).
* A hack to ease compatibility with pre-2.3 Pythons: by default, doctestTim Peters2003-06-273-17/+83
| | | | | | | | | | | | | | now accepts "True" when a test expects "1", and similarly for "False" versus "0". This is un-doctest-like, but on balance makes it much more pleasant to write doctests that pass under 2.2 and 2.3. I expect it to go away again, when 2.2 is forgotten. In the meantime, there's a new doctest module constant that can be passed to a new optional argument, if you want to turn this behavior off. Note that this substitution is very simple-minded: the expected and actual outputs have to consist of single tokens. No attempt is made, e.g., to accept [True, False] when a test expects [1, 0]. This is a simple hack for simple tests, and I intend to keep it that way.
* Do not add extra "\n" after bang line.Gustavo Niemeyer2003-06-271-2/+2
|
* fix typoFred Drake2003-06-271-1/+1
|
* add mention of -l, --listfuncs to usage() small part of 542562Skip Montanaro2003-06-271-0/+3
|
* Add a trivial test of getargspec() with a method.Jeremy Hylton2003-06-271-16/+21
|
* A bit o' reformatting and removal of non-_getframe currentframe().Jeremy Hylton2003-06-271-19/+14
|
* Don't assume the name of the table of contents will be contents.html;Fred Drake2003-06-271-1/+4
| | | | | | | | | that won't be right when mkhowto is called with --numeric (as it is for the Python Tutorial). Save the actual name we use when we build the table of contents, then use that in the page head metadata. The node2label.pl script will munge this properly when --numeric isn't given, so this works in both cases. Closes SF bug #761830.
* Fix for SF bug 620190: getargspec() doesn't work with methods.Jeremy Hylton2003-06-271-3/+10
|
* Add tests for __nonzero__() problems.Jeremy Hylton2003-06-271-0/+21
|
* Require that __nonzero__() return a bool or exactly an int.Jeremy Hylton2003-06-271-6/+2
|
* Add definitions of the test and testlist symbols in the grammar soFred Drake2003-06-271-0/+5
| | | | | there are no gaps in the definitions. Closes SF bug #726150.
* Revert previous checkin and just add a comment about constructor_ob.Jeremy Hylton2003-06-271-3/+5
| | | | | There's no point to passing it anymore, but there's a test that expects the call to fail if you pass a non-callable object.
* Check return type of __nonzero__() method.Jeremy Hylton2003-06-271-1/+13
| | | | | | The language reference says you must return an int or a bool. This fix limits the scope of SF bug 759227 (infinite recursion) to subclasses of int.
* fix link-hovering so <a name='...'> (no href attribute) doesn't getFred Drake2003-06-271-4/+10
| | | | the hovering background
* Fix several bugs in handling of exceptions with trace function enabled.Jeremy Hylton2003-06-271-15/+48
| | | | | | | | | | | | | | | | | | | If the callback raised an exception but did not set curexc_traceback, the trace function was called with PyTrace_RETURN. That is, the trace function was called with an exception set. The main loop detected the exception when the trace function returned; it complained and disabled tracing. Fix the logic error so that PyTrace_RETURN only occurs if the callback returned normally. The trace function must be called for exceptions, too. So we had to add new functionality to call with PyTrace_EXCEPTION. (Leads to a rather ugly ifdef / else block that contains only a '}'.) Reverse the logic and name of NOFIX_TRACE to FIX_TRACE. Joint work with Fred.
* Some Windows changes preparing for 2.3b2.Tim Peters2003-06-274-5/+10
|
* (HTML|Text)Repr.repr1: Guard against objects whos types have no __name__Skip Montanaro2003-06-271-10/+10
| | | | attribute. Patch and bug report from Geoff Talvola. Closes patch #672855.
* Jacob Hallen cornered me here at EuroPython and got me to look atMichael W. Hudson2003-06-271-1/+5
| | | | | | | | | | patch: [ 750008 ] 'compiler' module bug with 'import foo.bar as baz' which I'm now checking in. after import foo.bar as baz, baz would refer to foo.
* SF bug #761337: datetime.strftime fails on trivial format stringRaymond Hettinger2003-06-272-1/+2
| | | | | | | | | | | | | | The interning of short strings violates the refcnt==1 assumption for _PyString_Resize(). A simple fix is to boost the initial value of "totalnew" by 1. Combined with an NULL argument to PyString_FromStringAndSize(), this assures that resulting format string is not interned. This will remain true even if the implementation of PyString_FromStringAndSize() changes because only the uninitialized strings that can be interned are those of zero length. Added a test case.
* * Markup nits for the Invoking Descriptors sectionRaymond Hettinger2003-06-271-7/+121
| | | | | | | * Documented __slots__ * Documented __metaclass__ Shamelessly plagarized from Guido's tutorial.
* Don't call constructor() from pickle().Jeremy Hylton2003-06-261-3/+3
| | | | | | | The constructor() call only made sense when it registered the constructor as safe for unpickling. We should probably remove the module-global function, but need to worry about backwards compatibility.
* SF patch #760792: "wo" in "word" now valid but not documented as suchRaymond Hettinger2003-06-261-4/+7
| | | | | | Revised version of a contribution from Gerrit Holl. Update the docs for the extended behavior of __contains__
* Portion of SF patch #761104. Fixes a minor docstring error.Raymond Hettinger2003-06-261-4/+3
| | | | _TemporarilyImmutableSet is in fact a subclass of BaseSet
* * Fixed an unmatched parenthesis early in the text.Raymond Hettinger2003-06-261-2/+10
| | | | | * Clarified the meaning of lexicographic sequence ordering as discussed on comp.lang.python: http://groups.google.com/groups?th=e163c9f9ba114493
* Enable tracing of multi-threaded applications.Jeremy Hylton2003-06-261-1/+6
| | | | | Fix bug in computation of coverage percentage: Only count a line if it was executed or if we print the >>>>>> marker.
* Fixing bug described in patch #756032, where SRE reads invalid dataGustavo Niemeyer2003-06-261-1/+1
| | | | due to a corrupted end pointer.
* markup consistency nitsFred Drake2003-06-261-9/+10
|
* remove _ from label: LaTeX rejects this due to all the magic we use toFred Drake2003-06-261-1/+1
| | | | get the _ character to format like a normal character
* Removed useless intra-section references which jump to the top of theRaymond Hettinger2003-06-251-4/+2
| | | | section instead of the specific item being referenced.
* SF bug #696777: How to make a class iterable using a member generator.Raymond Hettinger2003-06-251-0/+6
| | | | | * Added a note that a container class can implement the iterator protocol by defining its __iter__() method as a generator.
* * Document how descriptors are invoked.Raymond Hettinger2003-06-251-3/+63
| | | | * Fix minor parenthesis matching errors in ref3.tex.
* SF bug #757822: Additional index items, other minor detailsRaymond Hettinger2003-06-251-2/+2
| | | | * Minor grammatical fix.
* Whitespace normalization.Walter Dörwald2003-06-251-3/+3
|
* SF bug #759889: Pickling of Random is brokenRaymond Hettinger2003-06-242-0/+10
| | | | | * Implement __reduce__() to support pickling. * Add a test case to prove a successful roundtrip through pickle.
* _make_boundary(): A minor optimization suggested by the Timbot.Barry Warsaw2003-06-241-1/+1
|
* Deal with a couple XXX comments which asked questions.Greg Stein2003-06-241-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | In response to "shouldn't the client close the file?", the answer is "no". The original design behind HTTPConnection is that the client did not have to worry about it. The response would close itself when you read the last of the data from it. This closing also dealt with allowing the connection to perform another request/response (if it was a persistent connection). However... the auto-close behavior broke compatibility with the classic httplib.HTTP class' behavior when a zero-length response body was present. In that situation, the HTTPResponse object was auto-closing it since there was no data present, and for an HTTP/1.0 connection-close socket (or an HTTP/0.9 request) connection, that also ended up closing the socket. When an httplib.HTTP user went to read the socket... boom. A patch to correct the auto-close (for compat with old httplib users) was added in rev 1.22. But for non-zero-length *chunked* bodies, we should keep the auto-close behavior. The library user is not reading the socket (they can't cuz of the chunked response we just got done handling), so they should be immune to the response closing the socket. In fact, I would like to see (one day) the auto-close restored, and the HTTP subclass would simply have a flag to disable that behavior (for back-compat purposes).
* SF patch #736962. Converted test_compile to unittest format.Raymond Hettinger2003-06-232-167/+140
|
* Idlefork patch #682347: convert Unicode strings from readline toMartin v. Löwis2003-06-222-4/+15
| | | | | IOBinding.encoding. Also set sys.std{in,out,err}.encoding, for both the local and the subprocess case.
* 2.3b2 on Windows will ship with Tcl/Tk 8.4.3. Note: this still didn'tTim Peters2003-06-222-11/+16
| | | | | | | fix the hangs on Win98SE when starting IDLE via "python" from a DOS box, but did appear to make them harder to provoke. I closed that bug report as being hopeless (and if someone wants to open it again, don't dare assign it to me again <0.1 wink>).
* Give compileall a -d option so it works correctly in the face ofJack Jansen2003-06-211-2/+2
| | | | DESTDIR being non-null.
* Better error messageJeremy Hylton2003-06-211-1/+7
|
* some old changes to this unused moduleJust van Rossum2003-06-211-13/+6
|
* changed 8-space indentation to 4Just van Rossum2003-06-214-1935/+1935
|