summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Christopher Fandrich <cfandrich@8cs.com>:Fred Drake2000-06-201-3/+6
| | | | Fix memory leak in initializing __debug__.
* Patch from Rene Liebscher <R.Liebscher@gmx.de>, slightly modified andFred Drake2000-06-191-0/+8
| | | | | commented by Fred Drake, to prevent usage of sufficiently broken GCC versions.
* Fixed docstring typo, reported by Skip Montanaro <skip@mojam.com>.Fred Drake2000-06-191-1/+1
|
* Patch from Michael Hudson to fix flatten recursive data structures:Andrew M. Kuchling2000-06-191-5/+8
| | | | | | | | | [mwh21@atrus build]$ ./python >>> import Tkinter >>> l = [] >>> l.append(l) >>> Tkinter._flatten(l) Segmentation fault (core dumped)
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-181-6/+4
| | | | | | | | Fixed a bug in PyUnicode_Count() which would have caused a core dump in case of substring coercion failure. Synchronized .count() with the string method of the same name to return len(s)+1 for s.count('').
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-181-1/+2
| | | | | Added optimization proposed by Andrew Kuchling to the Unicode matching macro.
* Fix bug when the replacement template is a callable objectAndrew M. Kuchling2000-06-181-1/+1
|
* Patch from Lorenzo M. Catucci:Andrew M. Kuchling2000-06-181-0/+5
| | | | | | I discovered the [MREMAP_MAYMOVE] symbol is only defined when _GNU_SOURCE is defined; therefore, here is the change: if we are compiling for linux, define _GNU_SOURCE before including mman.h, and all is done.
* Patch from /F:Andrew M. Kuchling2000-06-182-0/+106
| | | | | | | | | | this patch adds a fast _flatten function to the _tkinter module, and imports it from Tkinter.py (if available). this speeds up canvas operations like create_line and create_polygon. for example, a create_line with 5000 vertices runs about 50 times faster with this patch in place.
* Patch from /F:Andrew M. Kuchling2000-06-183-22/+56
| | | | | this patch introduces PySequence_Fast and PySequence_Fast_GET_ITEM, and modifies the list.extend method to accept any kind of sequence.
* 'get_platform()' now just returns 'sys.platform' on all platforms.Greg Ward2000-06-181-12/+4
|
* Regenerated autoconf files. There's an extra change to config.h.in beyondAndrew M. Kuchling2000-06-182-127/+134
| | | | | the mremap() change I made; did someone modify configure.in previously without recreating these files?
* Check for existence of mremap()Andrew M. Kuchling2000-06-181-1/+2
|
* Support resizing the mapping depending on whether HAVE_MREMAP is definedAndrew M. Kuchling2000-06-181-4/+6
| | | | Remove two unused variables
* Markup consistency nits.Fred Drake2000-06-181-89/+43
|
* Additional tests for seek() method, written by Trent MickAndrew M. Kuchling2000-06-182-1/+36
|
* Patch from Trent Mick:Andrew M. Kuchling2000-06-181-34/+105
| | | | | | | The seek() method is broken for any 'whence' value (seek from start, current, orend) other than the default. I have a patch that fixes that as well as gets mmap'd files working on Linux64 and Win64.
* Removed MS_INVALIDATE flagsAndrew M. Kuchling2000-06-181-2/+2
|
* Make changes and clarifications suggested by Mark HammondAndrew M. Kuchling2000-06-181-14/+23
|
* Pulled the MSVC++-specific hackery out to a new method, 'prelink_hook()',Greg Ward2000-06-171-36/+63
| | | | | | and added (empty) 'precompile_hook()' for symmetry. One can envision a much more elaborate hook mechanism, but this looks like it'll do for now.
* Fix the size() method to return the size of the file on Unix, not theAndrew M. Kuchling2000-06-171-3/+12
| | | | | size of the mapped area. This seems to be what the Windows version does. This change requires keeping around the fd of the mapped file.
* Documentation for the mmap module: proofreaders welcomedAndrew M. Kuchling2000-06-171-0/+120
|
* Vladimir MARANGOZOV <Vladimir.Marangozov@inrialpes.fr>:Marc-André Lemburg2000-06-171-3/+4
| | | | | This patch fixes an optimisation mystery in _PyUnicodeNew causing segfaults on AIX when the interpreter is compiled with -O.
* Renamed PATH_CREATED to _path_created, on the grounds that it's private andGreg Ward2000-06-171-8/+8
| | | | mutable, rather than public and constant.
* Changed 'remove_tree()' to use the new 'grok_environment_error()' functionGreg Ward2000-06-171-7/+6
| | | | instead of muddling through IOError and OSError exception objects itself.
* Changed to use the new 'grok_environment_error()' function instead ofGreg Ward2000-06-171-10/+1
| | | | muddling through IOError and OSError exception objects right here.
* Added 'grok_environment_error()' function to deal with the variousGreg Ward2000-06-171-0/+20
| | | | forms that IOError and OSError can take (taken from core.py).
* Bastian Kleineidam: added 'remove_tree()' function. Needed so thatGreg Ward2000-06-171-10/+25
| | | | | | | | | 'remove_tree()' can cooperate with 'mkpath()' in the maintenance of the PATH_CREATED cache: specifically, if a directory is created with 'mkpath()', later removed with 'remove_tree()', and 'mkpath()' is again requested to create it, then it would erroneously think the directory already existed, because it was in the PATH_CREATED cache. The patch (slightly tweaked by me) fixes that.
* Fixed install directory for header files on Unix.Greg Ward2000-06-171-1/+1
|
* Updates from Marc-Andre Lemburg <mal@leburg.com> for the Unicode support.Fred Drake2000-06-162-2/+273
|
* Added reference count information for PySequence_List().Fred Drake2000-06-161-0/+3
|
* Documented PySequence_List() and PySequence_Tuple().Fred Drake2000-06-161-20/+54
| | | | | | | Added a bit more documentation in the chapter on building extension types, including Py_FindMethod() documentation. Several minor consistency nits were fixed.
* Michael Hudson <mwh21@cam.ac.uk>:Marc-André Lemburg2000-06-161-1/+1
| | | | | The error message refers to "append", yet the operation in question is "concat".
* do_cmd_textasciitilde(): New function.Fred Drake2000-06-151-0/+5
|
* Fix markup error that hid a tilde character; reported long ago byFred Drake2000-06-151-1/+12
| | | | Carl Feynman <carlf@abinitio.com>.
* Michael Hudson <mwh21@cam.ac.uk>:Fred Drake2000-06-151-4/+4
| | | | | | This patch corrects a little glitch and two outright errors. (Including one reported earlier by Thomas Wouters.)
* Thomas Wouters <thomas@xs4all.net>:Fred Drake2000-06-153-0/+46
| | | | | | | | | | | | | | | The following patch adds "sq_contains" support to rangeobject, and enables the already-written support for sq_contains in listobject and tupleobject. The rangeobject "contains" code should be a bit more efficient than the current default "in" implementation ;-) It might not get used much, but it's not that much to add. listobject.c and tupleobject.c already had code for sq_contains, and the proper struct member was set, but the PyType structure was not extended to include tp_flags, so the object-specific code was not getting called (Go ahead, test it ;-). I also did this for the immutable_list_type in listobject.c, eventhough it is probably never used. Symmetry and all that.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-142-0/+48
| | | | Added code so that .isXXX() testing returns 0 for emtpy strings.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-141-6/+0
| | | | | Removed a test which can fail when the default locale setting uses a Latin-1 encoding. The test case is not applicable anymore.
* Oops, default type and creator were reversed.Jack Jansen2000-06-141-1/+1
|
* Hook in the documentation for the unicodedata module.Fred Drake2000-06-132-0/+2
|
* Marc-Andre Lemburg <mal@lemburg.com>:Fred Drake2000-06-131-0/+72
| | | | | Documentation for the unicodedata module (massaged by Fred for minor consistency issues).
* James C. Ahlstron <jim@interet.com>:Fred Drake2000-06-131-1/+1
| | | | Thanks to Hubert Hoegl <hubert.hoegl@dlr.de> for finding this bug.
* Also add a one-line description of the "optional" directive.Jack Jansen2000-06-131-0/+1
|
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-131-3/+12
| | | | | | | | Fixed some tests to not cause the script to fail, but rather output a warning (which then is caught by regrtest.py as wrong output). This is needed to make test_unicode.py run through on JPython. Thanks to Finn Bock.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-131-2/+2
| | | | | Removed import of string module -- use string methods directly. Thanks to Finn Bock.
* Documentation for the pyexpat module.Andrew M. Kuchling2000-06-111-0/+262
|
* Applied simplifications suggested by Greg Stein.Andrew M. Kuchling2000-06-101-15/+4
|
* Renamed the C extension for ncurses support from 'curses' to '_curses'.Andrew M. Kuchling2000-06-102-8/+8
| | | | (The SourceForge admins have been asked to rename the ,v file.)
* Install the contents of the Lib/curses directoryAndrew M. Kuchling2000-06-101-1/+1
|