summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Temporarily disable the message to stderr. Jeremy will know what to doMarc-André Lemburg2001-06-131-1/+3
| | | | about this...
* Got rid of mactoolboxglue.cJack Jansen2001-06-131-0/+0
|
* Fixed an error in the signature of the QdRGB converter routines.Jack Jansen2001-06-132-4/+4
|
* The new {b,l}p_{u,}longlong() didn't check get_pylong()'s return for NULL.Tim Peters2001-06-132-0/+14
| | | | Repaired that, and added appropriate tests for it to test_struct.py.
* longobject.c:Tim Peters2001-06-132-141/+199
| | | | | | | | | | | Replaced PyLong_{As,From}{Unsigned,}LongLong guts with calls to _PyLong_{As,From}ByteArray. _testcapimodule.c: Added strong tests of PyLong_{As,From}{Unsigned,}LongLong. Fixes SF bug #432552 PyLong_AsLongLong() problems. Possible bugfix candidate, but the fix relies on code added to longobject to support the new q/Q structmodule format codes.
* The merest start of a test for the PyLong_{As,From}{Unsigned,}LongLong()Tim Peters2001-06-121-4/+57
| | | | | | | | | | functions. I intend to replace their guts with calls to the new _PyLong_{As,From}ByteArray() functions, but AFAICT there's no tests for them at all now; I also suspect PyLong_AsLongLong() isn't catching all overflow cases, but without a std test to demonstrate that why should you believe me <wink>. Also added a raiseTestError() utility function.
* _PyLong_{As,From}ByteArray: Minor code rearrangement aimed at improvingTim Peters2001-06-121-11/+14
| | | | clarity. Should have no effect visible to callers.
* Add new built-in 'help' which invokes pydoc.help (with a twist).Guido van Rossum2001-06-122-0/+19
|
* Removed the Python version from the PYTHONHOMEHELP string. It wasMarc-André Lemburg2001-06-121-1/+1
| | | | still set to python2.0 ...
* Make the option processing more robust.Fred Drake2001-06-121-7/+31
| | | | | | | Add a -F option similar to "cvs commit -F <file>". Add a -t option to allow specifying the prefix to the directory into which the docs should be unpacked (useful when I start trying out new styles for the presentation).
* Fix for bug #432384: Recursion in PyString_AsEncodedString?Marc-André Lemburg2001-06-121-1/+1
|
* Fixed reference to table notes for {}.keys() and {}.items() -- theseFred Drake2001-06-121-4/+4
| | | | | | | references did not get updated when the notes were renumbered in a previous update. This fixes SF bug #432208.
* Added q/Q standard (x-platform 8-byte ints) mode in struct module.Tim Peters2001-06-125-77/+337
| | | | | | | | | | | | | | This completes the q/Q project. longobject.c _PyLong_AsByteArray: The original code had a gross bug: the most-significant Python digit doesn't necessarily have SHIFT significant bits, and you really need to count how many copies of the sign bit it has else spurious overflow errors result. test_struct.py: This now does exhaustive std q/Q testing at, and on both sides of, all relevant power-of-2 boundaries, both positive and negative. NEWS: Added brief dict news while I was at it.
* Make copy, cut and paste events case insensitive. Reported by PatrickGuido van Rossum2001-06-121-3/+3
| | | | | | K. O'Brien on idle-dev. (Should other bindings follow suit?)
* Two new private longobject API functions,Tim Peters2001-06-112-0/+253
| | | | | | | | | | _PyLong_FromByteArray _PyLong_AsByteArray Untested and probably buggy -- they compile OK, but nothing calls them yet. Will soon be called by the struct module, to implement x-platform 'q' and 'Q'. If other people have uses for them, we could move them into the public API. See longobject.h for usage details.
* Add the appropriate availability annotations for the popen*() family ofFred Drake2001-06-111-4/+7
| | | | | | | functions -- these are not available on traditional Mac OS platforms. Corrected the version annotations for the spawn*() functions and related constants; these were added in Python 1.6, not 1.5.2.
* Trimmed trailing whitespace.Tim Peters2001-06-111-3/+3
|
* Simplify some convolution by simply not recognizing 'q' and 'Q' at allTim Peters2001-06-111-33/+0
| | | | in native mode on platforms that don't HAVE_LONG_LONG.
* 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
|