summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Patch #640236: Better eplain unused data.Martin v. Löwis2003-06-211-7/+12
|
* Patch #755087: Deal with emptied dumbdbm files correctly.Martin v. Löwis2003-06-211-3/+3
|
* Patch #755683: Document that there might be a maximum indentation limit.Martin v. Löwis2003-06-211-1/+3
| | | | Fixes #700827
* Set -d in compileall, to get proper path in case DESTDIR is not empty.Martin v. Löwis2003-06-211-0/+4
| | | | | Also add force, to recompile string.pyc in DESTDIR (which would normally compiled by running compileall.py).
* Added a field that allows the user to set sys.argv-style argumentsJack Jansen2003-06-209-5/+21
| | | | to the script. Fixes #757544.
* Add some documentation which describes how to use the email packageBarry Warsaw2003-06-201-1/+35
| | | | instead of rfc822 as the Message factory.
* - do the right thing with symlinks inside directories we're copyingJust van Rossum2003-06-201-6/+13
| | | | | - move the normpath stuff around a bit - added dubious special case to addPythonFramework()
* Cop out, and set things to be group-writeable recursively. The variousJack Jansen2003-06-203-1/+7
| | | | | xxxMODE flags don't cut it. Also set the umask to 2 before doing the compileall on the destination system.
* make sure paths to dirs don't end in a /Just van Rossum2003-06-201-2/+2
|
* Reworked --strip option: it will now look at _any_ file that's markedJust van Rossum2003-06-201-13/+24
| | | | executable in the bundle. Therefore got rid of the "binaries" attribute.
* Set the executable bits when installing the shared library in a MacOSXJack Jansen2003-06-201-1/+1
| | | | framework. Fixes #758112.
* register the library inside Python.framework as eligable for strippingJust van Rossum2003-06-201-2/+4
|
* Add initial standalone support for Python.frameworkJust van Rossum2003-06-201-2/+32
|
* Added regression test for SF #757818Raymond Hettinger2003-06-201-0/+5
|
* SF #757229, fix libsocket.tex typoNeal Norwitz2003-06-201-1/+1
|
* Removed bytecode transformation for sequence packing/unpacking.Raymond Hettinger2003-06-201-28/+0
| | | | | | | It depended on the previously removed basic block checker to prevent a jump into the middle of the transformed block. Clears SF 757818: tuple assignment -- SystemError: unknown opcode
* Updated.Jack Jansen2003-06-201-45/+37
|
* At startup, test that PythonLauncher is the default application for filesJack Jansen2003-06-203-18/+44
| | | | of type .py, .pyw and .pyc. If not, post a warning.
* Installation of PythonLauncher has been failing silently, probably sinceJack Jansen2003-06-201-2/+2
| | | | the DESTDIR patch. Fixed.
* Remove heading from orphan section.Fred Drake2003-06-201-1/+1
|
* Update link to Python book information.Fred Drake2003-06-201-1/+1
|
* minor __doc__ string tweakageSkip Montanaro2003-06-201-5/+5
|
* typoSkip Montanaro2003-06-201-1/+1
|
* Many new tests, based on gcov's coverage information.Gustavo Niemeyer2003-06-201-0/+172
| | | | | | From gcov's output (based on a locally changed _sre.c): 82.07% of 1372 source lines executed in file ./Modules/_sre.c
* Install Demo and Tools too.Jack Jansen2003-06-191-0/+1
|