summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make clear in the docstring that "std" applies to both size and alignment,Tim Peters2001-06-111-6/+6
| | | | | | not just to alignment. Spotted by Guido. Bugfix candidate.
* Protect the use of the VWERASE symbol by an #ifdef, it's apparently missingThomas Wouters2001-06-111-0/+2
| | | | on (some versions of ?) AIX.
* Fixed parameter order for os.popen2(), os.popen3(), and os.popen(4). AddedFred Drake2001-06-111-3/+11
| | | | | | | a reference to these functions and popen() from the "Process Management" section. Based on a suggestion from comp.lang.python.
* Fix recent changes so that this section will format again.Fred Drake2001-06-111-2/+3
|
* Renamed some stuff to tell the truth about what it does.Tim Peters2001-06-101-4/+4
|
* Initial support for 'q' and 'Q' struct format codes: for now, only inTim Peters2001-06-104-16/+247
| | | | | | | | | | | | | | | | | | native mode, and only when config #defines HAVE_LONG_LONG. Standard mode will eventually treat them as 8-byte ints across all platforms, but that likely requires a new set of routines in longobject.c first (while sizeof(long) >= 4 is guaranteed by C, there's nothing in C we can rely on x-platform to hold 8 bytes of int, so we'll have to roll our own; I'm thinking of a simple pair of conversion functions, Python long to/from sized vector of unsigned bytes; that may be useful for GMP conversions too; std q/Q would call them with size fixed at 8). test_struct.py: In addition to adding some native-mode 'q' and 'Q' tests, got rid of unused code, and repaired a non-portable assumption about native sizeof(short) (it isn't 2 on some Cray boxes). libstruct.tex: In addition to adding a bit of 'q'/'Q' docs (more needed later), removed an erroneous footnote about 'I' behavior.
* Added a missing cast to the hashfunc initializer.Jack Jansen2001-06-101-1/+1
|
* SF bug 431772: traceback.print_exc() causes tracebackTim Peters2001-06-101-13/+14
| | | | | | | Patch from Michael Hundson. format_exception_only() blew up when trying to report a SyntaxError from a string input (line is None in this case, but it assumed a string). Bugfix candidate.
* annoying whitespace inconsistencyPeter Schneider-Kamp2001-06-101-1/+1
|
* SF bug 430991: wrong co_lnotabTim Peters2001-06-094-44/+83
| | | | | | | | | Armin Rigo pointed out that the way the line-# table got built didn't work for lines generating more than 255 bytes of bytecode. Fixed as he suggested, plus corresponding changes to pyassem.py, plus added some long overdue docs about this subtle table to compile.c. Bugfix candidate (line numbers may be off in tracebacks under -O).
* Cast the result of xxxPyCObject_Import to PycStringIO_CAPI*.Martin v. Löwis2001-06-091-1/+1
| | | | This fixes bug #431557.
* Patch #424475: Speed-up tp_compare usage, by special-casing the commonMartin v. Löwis2001-06-093-23/+62
| | | | | | case of objects with equal types which support tp_compare. Give type objects a tp_compare function. Also add c<0 tests before a few PyErr_Occurred tests.
* Fix the attributions for the new floating point text.Fred Drake2001-06-081-2/+1
|
* Added credits in the right places.Fred Drake2001-06-081-0/+2
|
* Text from Tim & Guido discussing floating point arithmetic and what usersFred Drake2001-06-081-0/+265
| | | | | | | | need to understand about the binary & decimal fp, so that representation weirdness is documented somewhere. This makes it easier to repond to "bug" reports caused by user confusion & ignorance of the issues. This closes SF patch #426208.
* add warning about situation where code may be executed twice, once whenSkip Montanaro2001-06-081-0/+10
| | | | module is __main__ and once when module is imported.
* In the section on extending the profiler, add some additional discussionFred Drake2001-06-081-10/+45
| | | | | | about setting up the dispatch table, and update the OldProfile and HotProfile classes to the current implementations, showing the adjusted construction for the dispatch table.
* call_trace(): Add an additional parameter -- pointer to a PyObject*Fred Drake2001-06-081-13/+36
| | | | | | | | | | | | | | | that should be used to cache an interned version of the event string passed to the profile/trace function. call_trace() will create interned strings and cache them in using the storage specified by this additional parameter, avoiding a lot of string object creation at runtime when using the profiling or tracing functions. All call sites are modified to pass the additional parameter, and four static PyObject* variables are allocated to cache the interned string objects. This closes SF patch #431257.
* Performance improvements to the profiler:Fred Drake2001-06-081-57/+93
| | | | | | | | | | | | | | | | | Ensure that all the default timers are called as functions, not an expensive method wrapper around a variety of different functions. Agressively avoid dictionary lookups. Modify the dispatch scheme (Profile.trace_dispatch_*(), where * is not 'call', 'exception' or 'return') so that the callables dispatched to are simple functions and not bound methods -- this reduces the number of layers of Python call machinery that gets touched. Remove a couple of duplicate imports from the "if __name__ == ..." section. This closes SF patch #430948.
* Patch #429957: Add support for cp1140, which is identical to cp037,Martin v. Löwis2001-06-072-0/+50
| | | | | with the addition of the euro character. Also added a few EDBDIC aliases.
* Document filter.Martin v. Löwis2001-06-071-0/+5
|
* check in for patch #430846Peter Schneider-Kamp2001-06-071-10/+6
| | | | | use faster code for base64.encodestring (courtesy of Mr. Tim Peters) and for base64.decodestring (courtesy of Anthony Baxter)
* Patch #430754: Makes ftpmirror.py .netrc awareMartin v. Löwis2001-06-071-3/+10
|
* Fixes [ #430986 ] Buglet in PyUnicode_FromUnicode.Marc-André Lemburg2001-06-071-1/+1
|
* Previous check-in was by mistake, undo it.Martin v. Löwis2001-06-071-1/+3
|
* This closes bug #430849 (internal error produced by binascii.a2b_base64)Peter Schneider-Kamp2001-06-071-0/+4
|
* Patch #416220: Fix misplaced paren.Martin v. Löwis2001-06-072-4/+2
|
* Acknowledge the existence of the 'platform' file, generated by theGuido van Rossum2001-06-062-1/+2
| | | | | Makefile and used by the setup.py script. Ignore it in .cvsignore; remove it in "make clobber".
* Typo: "descrition" --> "description"Fred Drake2001-06-061-3/+10
| | | | | | | | Add reference to the documentation for the Python documentation markup. Fixed up a couple of descriptions. This closes SF bug #430627.
* Add references to the documentation for the Python documentation markup.Fred Drake2001-06-062-0/+14
| | | | Suggested by the comments in SF bug #430627.
* Added quopri codec.Guido van Rossum2001-06-061-0/+1
|
* Report on fnmatch.filter.Martin v. Löwis2001-06-061-0/+2
|
* Patch #409973: Speedup glob.glob, add fnmatch.filter.Martin v. Löwis2001-06-062-7/+26
|
* Wrap with extern "C". Fixes bug #428419.Martin v. Löwis2001-06-051-0/+11
| | | | Also protect against multiple inclusion.
* Fix bug #422702: Make flag argument to open optional, and document it that way.Martin v. Löwis2001-06-052-2/+2
|
* Add .pyo as an extension, fixes bug #416462. Also restore alphabetic order.Martin v. Löwis2001-06-051-1/+2
|
* Make it possible to find the use of tp_as_buffer here with a global search.Tim Peters2001-06-051-1/+1
| | | | (Just a change to a comment)
* Update a "Programmer's note" about lambda forms and scoping to reflectFred Drake2001-06-051-5/+19
| | | | the availability of nested scoping in Python 2.1 and 2.2.
* Quick update to the extension mechanism (extend.py is gone, long liveGuido van Rossum2001-06-041-6/+20
| | | | | | config.txt). *** This is a bugfix-release candidate (for 2.1.1 and 2.0.1)! ***
* Store the mask instead of the size in dictobjects. The mask is moreTim Peters2001-06-041-23/+29
| | | | | | | frequently used, and in particular this allows to drop the last remaining obvious time-waster in the crucial lookdict() and lookdict_string() functions. Other changes consist mostly of changing "i < ma_size" to "i <= ma_mask" everywhere.
* is -> if in rename descriptionSkip Montanaro2001-06-041-1/+1
|
* Convert the parser module test to use PyUnit.Fred Drake2001-06-042-300/+212
|
* Add some useful Windows encodings - patch #423221.Mark Hammond2001-06-041-0/+5
|
* Implement testGetElementsByTagNameNS.Martin v. Löwis2001-06-032-1/+9
|
* Fix getElementsByTagNameNS:Martin v. Löwis2001-06-031-3/+7
| | | | | - actually return a result - Compare with tag.localName in getElementsByTagNameNSHelper
* lookdict: stop more insane core-dump mutating comparison cases. ShouldTim Peters2001-06-032-6/+99
| | | | | | | be possible to provoke unbounded recursion now, but leaving that to someone else to provoke and repair. Bugfix candidate -- although this is getting harder to backstitch, and the cases it's protecting against are mondo contrived.
* lookdict: Reduce obfuscating code duplication with a judicious goto.Tim Peters2001-06-031-25/+21
| | | | | This code is likely to get even hairier to squash core dumps due to mutating comparisons, and it's hard enough to follow without that.
* Explained more differences between PyList_SetItem() and PyList_SET_ITEM().Fred Drake2001-06-031-2/+7
| | | | | | | In particular, the affect on existing list content was not sufficiently explained. This closes SF bug #429554.
* Finish the dict->string coredump fix. Need sleep.Tim Peters2001-06-021-1/+1
| | | | Bugfix candidate.
* Fix comment.Tim Peters2001-06-021-1/+1
|