summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* First part of fix for #493826: if 'errn' key exists in return value this ↵Jack Jansen2002-04-231-1/+1
| | | | | | | | doesn't necesarily signal an error, only if the value is non-zero it does. This does not correspond with my reading of the documentation, but the OSX Finder can return 'errn'=0, and it knows better than me:-) Bugfix candidate.
* Ignore SIGXFSZ.Jeremy Hylton2002-04-231-0/+3
| | | | | | | | | | | | The SIGXFSZ signal is sent when the maximum file size limit is exceeded (RLIMIT_FSIZE). Apparently, it is also sent when the 2GB file limit is reached on platforms without large file support. The default action for SIGXFSZ is to terminate the process and dump core. When it is ignored, the system call that caused the limit to be exceeded returns an error and sets errno to EFBIG. Python always checks errno on I/O syscalls, so there is nothing to do with the signal.
* Add tests for the recent resource module change.Jeremy Hylton2002-04-232-0/+50
| | | | | | Also add a test that Python doesn't die with SIGXFSZ if it exceeds the file rlimit. (Assuming this will also test the behavior when the 2GB limit is exceed on a platform that doesn't have large file support.)
* Check for overflow errors in setrlimit(),Jeremy Hylton2002-04-231-1/+10
| | | | and reflow a long line.
* Minor change to an index entry.Fred Drake2002-04-231-1/+1
|
* Clarify return value of PyLong_AsLongLong().Jeremy Hylton2002-04-231-1/+1
| | | | | | The function is documented to return -1 on error. If res was < 0, it returned res. It wasn't clear that the invariant was res < 0 iff res == -1.
* Backport of 1.6.4.2.2.3 from release22-maint branch.Jack Jansen2002-04-231-0/+0
|
* Updated URL.Jack Jansen2002-04-231-1/+1
|
* Backport of select parts of release22-maint (up to 1.38.4.2.2.3).Jack Jansen2002-04-231-61/+21
|
* Whitespace normalization. Unka Timmy would be proud.Barry Warsaw2002-04-232-57/+57
|
* Clarify the return value of PyObject_IsInstance().Fred Drake2002-04-231-8/+9
|
* WCOREDUMP(), WIFCONTINUED(), WCONTINUED, WUNTRACED: New.Fred Drake2002-04-232-17/+113
| | | | | isatty(), WIFEXITED(), WIFSIGNALED(), WIFSTOPPED(): Changed to return bools instead of ints.
* SF patch 546244 by John Williams: add Text.dump() method.Guido van Rossum2002-04-233-1/+41
|
* Add warning about the HP PA-RISC 2.0 C compiler's optimizer.Guido van Rossum2002-04-231-0/+5
|
* There was a non-ascii character in the source. Replaced by a hex escape.Jack Jansen2002-04-231-1/+1
|
* whitespace fixup. test__all__ and test_sundry were failingAnthony Baxter2002-04-231-1/+1
| | | | for me on linux because of the inconsistent whitespace.
* don't fail if the audio device is busy, just skip.Anthony Baxter2002-04-231-1/+1
| | | | SF patch 545486
* SF patch [ 545523 ] patch for 514433 bsddb.dbopen (NULL)Anthony Baxter2002-04-234-25/+42
| | | | | | | | | | | | closes SF #514433 can now pass 'None' as the filename for the bsddb.*open functions, and you'll get an in-memory temporary store. docs are ripped out of the bsddb dbopen man page. Fred may want to clean them up. Considering this for 2.2, but not 2.1.
* Merge in Skip's last few updates w.r.t. py-help-at-point:Barry Warsaw2002-04-221-2/+6
| | | | | | | | (py-mode-map): Bind py-help-at-point to f1 as well as C-c C-h (py-help-at-point): Make sure the symbol is quoted so things like pydoc.help('sys.platform') work correctly. Also, leave the *Python Output* buffer in help-mode; this may be a bit more controversial.
* Some contributions and ideas by Alexander Schmolck: add a keybindingBarry Warsaw2002-04-221-9/+52
| | | | | | | | | | | | | | | | | | | to call pychecker on the current file, add a face for pseudo keywords self, None, True, False, and Ellipsis. Specifically, (py-pychecker-command, py-pychecker-command-args): New variables. (py-pseudo-keyword-face): New face variable, defaulting to a copy of font-lock-keyword-face. (python-font-lock-keywords): Add an entry for self, None, True, False, Ellipsis to be rendered in py-pseudo-keyword-face. (py-pychecker-history): New variable. (py-mode-map): Bind C-c C-w to py-pychecker-run. (py-pychecker-run): New command.
* unicode_memchr(): Squashed gratuitous int-vs-size_t mismatch (whichTim Peters2002-04-221-3/+3
| | | | | gives a compiler wng under MSVC because of the resulting signed-vs- unsigned comparison).
* SF bug 546078: IDLE calltips cause application error.Tim Peters2002-04-221-0/+6
| | | | | | | | Assorted crashes on Windows and Linux when trying to display a very long calltip, most likely a Tk bug. Wormed around by clamping the calltip display to a maximum of 79 characters (why 79? why not ...). Bugfix candidate, for all Python releases.
* Apply patch diff.txt from SF feature requestWalter Dörwald2002-04-226-78/+241
| | | | | | | | | http://www.python.org/sf/444708 This adds the optional argument for str.strip to unicode.strip too and makes it possible to call str.strip with a unicode argument and unicode.strip with a str argument.
* Skip Montanaro's contribution (slightly mod'd by Barry) to provide aBarry Warsaw2002-04-221-4/+54
| | | | | | | | | | | | | | "help-on-symbol-at-point" feature which uses pydoc to provide help on the symbol under point, if available. Mods include some name changes, a port to Emacs, binding the command to C-c C-h, and providing a more informative error message if the symbol's help can't be found (through use of a nasty bare except). Note also that py-describe-mode has been moved off of C-c C-h m; it's now just available on C-c ? Closes SF patch #545439.
* (py-execute-region): If the line at the beginning of the region is aBarry Warsaw2002-04-221-6/+11
| | | | | | | | | | | | | | | #! line, use the command on that line as the shell command to use to execute the region. I.e. if the region looks like ---------------- #! /usr/bin/env python1.5 print 'hello world'.startswith('hello') ---------------- you'll get an exception! :) This closes SF bug #232398.
* (py-execute-region): If you ran this without having visited aBarry Warsaw2002-04-221-45/+23
| | | | | | | | | | | | | | | | | | python-mode file, py-which-shell would have been nil and the command to use would not get set correctly. This changes things so that 1) the temporary file has a .py extension, 2) the temporary file is put into python-mode, and 3) the temporary file's py-which-shell is captured in a local `shell' variable, which is used to calculate the command to use. Closes SF bug #545436. (py-parse-state): Rip out the XEmacs-specific calls to buffer-syntactic-context, which can get quite confused if there's an open paren in column zero say, embedded in a triple quoted string. This was always a performance hack anyway, and computers are fast enough now that we should be able to get away with the slower, more portable, full-parse branch. Closes SF bug #451841. Update the comments at the top of the file.
* Added Christopher Smith.Jack Jansen2002-04-221-1/+2
|
* Fixes based on ideas from Christopher Smith:Jack Jansen2002-04-221-5/+21
| | | | | | | | - islink() now returns true for alias files - walk() no longer follows aliases while traversing - realpath() implemented, returning an alias-free pathname. As this could conceivably break existing code I think it isn't a bugfix candidate.
* Removed note on test_time failing.Jack Jansen2002-04-221-3/+0
| | | | Bugfix candidate.
* Regenerated to include Internet Config error strings.Jack Jansen2002-04-223-18/+144
| | | | Bugfix candidate.
* Added an optional file with MacErrors.h extensions: IC errors aren't in there.Jack Jansen2002-04-222-0/+19
| | | | Bugfix candidate.
* Py_GETENV is used by obmalloc and needs Py_IgnoreEnvironmentFlag. Provide it.Neil Schemenauer2002-04-221-0/+1
|
* pgen now needs pymallocNeil Schemenauer2002-04-221-0/+1
|
* Moving pymalloc along.Tim Peters2002-04-223-32/+12
| | | | | | | | | | | | | | | | | | + Redirect PyMem_{Del, DEL} to the object allocator's free() when pymalloc is enabled. Needed so old extensions can continue to mix PyObject_New with PyMem_DEL. + This implies that pgen needs to be able to see the PyObject_XYZ declarations too. pgenheaders.h now includes Python.h. An implication is that I expect obmalloc.o needs to get linked into pgen on non-Windows boxes. + When PYMALLOC_DEBUG is defined, *all* Py memory API functions now funnel through the debug allocator wrapper around pymalloc. This is the default in a debug build. + That caused compile.c to fail: it indirectly mixed PyMem_Malloc with raw platform free() in one place. This is verbotten.
* tracking python idle changes:Steven M. Gava2002-04-221-1/+1
| | | | Provisional fix for writefile() [SF bug # 541730]
* Update the Windows makefile for 2.3.Tim Peters2002-04-221-3/+3
|
* tracking python idle changes:Steven M. Gava2002-04-221-4/+12
| | | | Patch #540583: Open MS Help Docs if available.
* #546156, Remove load_false()/load_true(), they are not usedNeal Norwitz2002-04-211-14/+0
|
* Py_UniversalNewlineFread(): small speed boost on non-Windows boxes.Tim Peters2002-04-211-3/+3
|
* PyUnicode_EncodeUTF8(): tightened the memory asserts a bit, and at leastTim Peters2002-04-211-12/+20
| | | | tried to catch some possible arithmetic overflows in the debug build.
* #544265, Remove warnings for passing const to free()Neal Norwitz2002-04-211-1/+1
|
* Back out 2.140.Martin v. Löwis2002-04-211-43/+55
|
* Enable universal newlines on Windows. Note that NEWS needs more words!Tim Peters2002-04-213-1/+6
|
* Py_UniversalNewlineFread(): Many changes.Tim Peters2002-04-212-42/+52
| | | | | | | | | | | | | | | | | | | | + Continued looping until n bytes in the buffer have been filled, not just when n bytes have been read from the file. This repairs the bug that f.readlines() only sucked up the first 8192 bytes of the file on Windows when universal newlines was enabled and f was opened in U mode (see Python-Dev -- this was the ultimate cause of the test_inspect.py failure). + Changed prototye to take a char* buffer (void* doesn't make much sense). + Squashed size_t vs int mismatches (in particular, besides the unsigned vs signed distinction, size_t may be larger than int). + Gets out under all error conditions now (it's possible for fread() to suffer an error even if it returns a number larger than 0 -- any "short read" is an error or EOF condition). + Rearranged and simplified declarations.
* Assorted code cleanups for readability. Greatly boosted the size of theTim Peters2002-04-211-26/+33
| | | | | | test data: this test fails on WIndows now if universal newlines are enabled (which they aren't yet, by default). I don't know whether the test will also fail on Linux now.
* Hack around the "2.1.6 Blank lines" bug in a way that the TOC stillTim Peters2002-04-211-8/+10
| | | | | displays a recognizable section title (there are extra blanks at the end of it now, due to the nested anchor, but that's fine).
* PyUnicode_EncodeUTF8: squash compiler wng. The difference of twoTim Peters2002-04-211-4/+5
| | | | | | pointers is a signed type. Changing "allocated" to a signed int makes undetected overflow more likely, but there was no overflow detection before either.
* Give the Help viewer a font-size button. This isn't documented by MS,Tim Peters2002-04-211-1/+30
| | | | | but is documented by others on the web, and the defn of the magic flag needed appears in MS's htmlhelp.h header file.
* Move "everything left one": the TOC now shows each doc directory as aTim Peters2002-04-201-9/+10
| | | | | | | distinct top-level node. Before they were all nested under an artificial top-level node, uselessly chewing up horizontal space, and ensuring that the only thing the user saw in the TOC upon opening the file was a single collapsed top-level folder.
* Stopped all warnings from the HTML Help Compiler, by generating properTim Peters2002-04-201-21/+34
| | | | | | | | | | | | | | | HTML (or, at least, proper in its view). The TOC file is now identical to what the HTML compiler itself generates, except for whitespace and a glitch identified below. The pretty-printing done by prechm.py is pretty much destroyed for now; if you need it pretty-printed, just make the Help Compiler save the files (it's got its own idea of pretty- printing anyway). Glitch: The title of Ref Man "2.1.6 Blank lines" shows up as a blank for now. This is because the relevant entry in ref/index.html contains nested anchors, and pychm really has no idea what to do with that. I hacked it for now to avoid any error messages or worse insanity, and filed a bug report against the docs.