Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Convert some old-style string exceptions to class exceptions. | Fred Drake | 2000-08-18 | 2 | -2/+4 |
| | |||||
* | Removed references to Py_FPROTO. | Sjoerd Mullender | 2000-08-18 | 1 | -2/+2 |
| | |||||
* | PyUnicode_AsUTF8String(): Don't need to explicitly incref str since | Barry Warsaw | 2000-08-18 | 1 | -7/+3 |
| | | | | | PyUnicode_EncodeUTF8() already returns the created object with the proper reference count. This fixes an Insure reported memory leak. | ||||
* | ANSI-fy function headers. Not much more can be done since I don't | Barry Warsaw | 2000-08-18 | 1 | -249/+82 |
| | | | | have access to Purify anymore. | ||||
* | lad_dealloc(): if xp->x_fd == -1, it means the descriptor's already | Barry Warsaw | 2000-08-18 | 1 | -1/+3 |
| | | | | been closed. Don't try to reclose it. Found by Insure. | ||||
* | pattern_findall(): Plug small memory leak discovered by Insure. | Barry Warsaw | 2000-08-18 | 1 | -3/+3 |
| | | | | | PyList_Append() always incref's the inserted item. Be sure to decref it regardless of whether the append succeeds or fails. | ||||
* | init_locale(): This file defines the _locale module, so the | Barry Warsaw | 2000-08-18 | 1 | -1/+1 |
| | | | | Py_FatalError() should reflect that. | ||||
* | SyntaxError__classinit__(): Slight reorg for simplicity. | Barry Warsaw | 2000-08-18 | 1 | -4/+4 |
| | |||||
* | PyParser_ParseString(): When the err_ret structure is initialized, the | Barry Warsaw | 2000-08-18 | 1 | -0/+2 |
| | | | | | | fields token and expected must also be initialized, otherwise the tests in parsetok() can generate uninitialized memory read errors. This quiets an Insure warning. | ||||
* | comples_from_string(): Move s_buffer[] up to the top-level function | Barry Warsaw | 2000-08-18 | 1 | -2/+1 |
| | | | | | | scope. Previously, s_buffer[] was defined inside the PyUnicode_Check() scope, but referred to in the outer scope via assignment to s. This quiets an Insure portability warning. | ||||
* | make_pair(): When comparing the pointers, they must be cast to integer | Barry Warsaw | 2000-08-18 | 1 | -2/+6 |
| | | | | | | types (i.e. Py_uintptr_t, our spelling of C9X's uintptr_t). ANSI specifies that pointer compares other than == and != to non-related structures are undefined. This quiets an Insure portability warning. | ||||
* | PyFloat_FromString(): Move s_buffer[] up to the top-level function | Barry Warsaw | 2000-08-18 | 1 | -2/+1 |
| | | | | | | scope. Previously, s_buffer[] was defined inside the PyUnicode_Check() scope, but referred to in the outer scope via assignment to s. This quiets an Insure portability warning. | ||||
* | PyInstance_DoBinOp(): When comparing the pointers, they must be cast | Barry Warsaw | 2000-08-18 | 1 | -1/+4 |
| | | | | | | | to integer types (i.e. Py_uintptr_t, our spelling of C9X's uintptr_t). ANSI specifies that pointer compares other than == and != to non-related structures are undefined. This quiets an Insure portability warning. | ||||
* | Added test for uintptr_t, the C9X acceptable way to spell "type to | Barry Warsaw | 2000-08-18 | 3 | -212/+291 |
| | | | | | | | which I can cast void* to and back again without losing information". In pyport.h, we typedef Py_uintptr_t to mean this thing, which if the platform supports, will be uintptr_t (otherwise, other accomodations are made). | ||||
* | Added #undef HAVE_UINTPTR_T for autoconf's delight. | Barry Warsaw | 2000-08-18 | 1 | -0/+3 |
| | |||||
* | Moved LONG_LONG #define from here to pyport.h. | Barry Warsaw | 2000-08-18 | 1 | -3/+0 |
| | |||||
* | Moved LONG_LONG #define from longobject.h to here, since it's needed | Barry Warsaw | 2000-08-18 | 1 | -0/+43 |
| | | | | | | | | | | by the following. typedef in a portable way the Python name for the C9X uintptr_t type. This latter is the most portable way to spell an integral type to which a void* can be cast to and back again without losing information. Parallel checkin hacks configure to check if the platform/compiler supports the C9X name. | ||||
* | As pointed out by Denis S. Otkidach <den@analyt.chem.msu.ru>, xrange() | Fred Drake | 2000-08-18 | 1 | -14/+15 |
| | | | | | | | | returns an xrange object, not a range object, despite the name of the source file they're implemented in. In the list of comparison operators, list != before <>, since <> is described as obsolescent. | ||||
* | Adjust the way __getslice__() is marked as deprecated; this will also | Fred Drake | 2000-08-18 | 1 | -2/+4 |
| | | | | stand out more. | ||||
* | Fix a markup error that caused formatting to fail. | Fred Drake | 2000-08-18 | 1 | -16/+17 |
| | | | | Lots of minor markup adjustments as well. | ||||
* | Mention the new 'import X as Y' syntax | Andrew M. Kuchling | 2000-08-17 | 1 | -0/+4 |
| | |||||
* | Document the returns_unicode attribute | Andrew M. Kuchling | 2000-08-17 | 1 | -4/+11 |
| | |||||
* | Update to reflect the recent Grammar changes. | Fred Drake | 2000-08-17 | 1 | -40/+42 |
| | |||||
* | Apply SF patch #101135, adding 'import module as m' and 'from module import | Thomas Wouters | 2000-08-17 | 12 | -743/+895 |
| | | | | | | | | name as n'. By doing some twists and turns, "as" is not a reserved word. There is a slight change in semantics for 'from module import name' (it will now honour the 'global' keyword) but only in cases that are explicitly undocumented. | ||||
* | Apply SF patch #101029: call __getitem__ with a proper slice object if there | Thomas Wouters | 2000-08-17 | 5 | -18/+435 |
| | | | | | | | | is no __getslice__ available. Also does the same for C extension types. Includes rudimentary documentation (it could use a cross reference to the section on slice objects, I couldn't figure out how to do that) and a test suite for all Python __hooks__ I could think of, including the new behaviour. | ||||
* | Remove an item that's been done. | Fred Drake | 2000-08-17 | 1 | -2/+0 |
| | |||||
* | A little more text, and some really minor cleanups. | Fred Drake | 2000-08-17 | 1 | -3/+10 |
| | |||||
* | Small cleanups, and note when zip() entered the menagerie. | Fred Drake | 2000-08-17 | 1 | -3/+1 |
| | |||||
* | Revise the comments about the exceptions module to not refer to source | Fred Drake | 2000-08-17 | 1 | -4/+4 |
| | | | | | code; it is not sufficiently readable now that it in written in C, and is less likely to be available to end users. | ||||
* | Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>: | Fred Drake | 2000-08-17 | 1 | -0/+19 |
| | | | | Document opcodes added to support extended call syntax. | ||||
* | Package with suites for talking to CodeWarrior. | Jack Jansen | 2000-08-17 | 5 | -0/+3554 |
| | |||||
* | Package with suites for talking to netscape. | Jack Jansen | 2000-08-17 | 8 | -0/+1362 |
| | |||||
* | The package with standard suites. These are used separately and as base ↵ | Jack Jansen | 2000-08-17 | 10 | -0/+4440 |
| | | | | classes for other suite packages (StdSuite is slightly magical, in that it is the gensuitemodule default base package). | ||||
* | Use the new package-based scripting support. | Jack Jansen | 2000-08-17 | 1 | -6/+16 |
| | |||||
* | Generate packages in stead of separate modules. The package main module ↵ | Jack Jansen | 2000-08-17 | 1 | -22/+120 |
| | | | | imports everything, it knows about the app signature, suites can extend standard suites, and lots more. Automatically finding declarations in other suites TBD. | ||||
* | Removed temporary code to disable OT networking (this was a workaround for ↵ | Jack Jansen | 2000-08-17 | 1 | -1/+1 |
| | | | | getpeername() not working in a previous release of GUSI, but it has been fixed). | ||||
* | Removed temporary code that always set creator to SimpleText. | Jack Jansen | 2000-08-17 | 1 | -2/+7 |
| | |||||
* | Reran autoconf. | Sjoerd Mullender | 2000-08-17 | 2 | -92/+39 |
| | |||||
* | Fix up problems when compiling in a directory other than the source | Sjoerd Mullender | 2000-08-17 | 4 | -35/+56 |
| | | | | directory. | ||||
* | Convert some old-style string exceptions to class exceptions. | Fred Drake | 2000-08-17 | 6 | -12/+17 |
| | |||||
* | Convert some old-style string exceptions to class exceptions. | Fred Drake | 2000-08-17 | 6 | -6/+14 |
| | |||||
* | \citetitle: Format the title, not the optional URL! | Fred Drake | 2000-08-17 | 1 | -1/+1 |
| | |||||
* | Add section on list comprehension | Andrew M. Kuchling | 2000-08-17 | 1 | -4/+120 |
| | | | | | Comment out the unwritten XML section mymalloc.h -> pymem.h | ||||
* | Insure properly identifies the `interned' dictionary as leaking at | Barry Warsaw | 2000-08-16 | 1 | -0/+12 |
| | | | | | | shutdown time, but CVS log entry for revision 2.45 explains why this is so. Simply include a comment so we don't have to re-figure it out again 5 years from now. | ||||
* | _PySys_Init(): Fix another Insure discovered memory leak; the PyString | Barry Warsaw | 2000-08-16 | 1 | -1/+2 |
| | | | | created from the "big"/"little" constant needs to be decref'd. | ||||
* | The sre test suite currently overruns the stack on Win64, Linux64, and Monterey | Trent Mick | 2000-08-16 | 1 | -2/+11 |
| | | | | | | | | | (64-bit AIX) This is because the RECURSION_LIMIT is too low. This patch lowers to recusion limit to 7500 such that the recusion check fires before a segfault. Fredrik suggested/approved the fix in private email, modulo sre's recusion limit checking no being necessary when PyOS_CheckStack is implemented for Windows. | ||||
* | Ka-Ping Yee <ping@lfw.org>: | Fred Drake | 2000-08-16 | 1 | -6/+10 |
| | | | | Further examples of list comprehensions. | ||||
* | updated occurences of fqdn algorithm (closes patch #101197) | Peter Schneider-Kamp | 2000-08-16 | 3 | -36/+8 |
| | |||||
* | SyntaxError__str__(): Fix two memory problems discovered by Insure. | Barry Warsaw | 2000-08-16 | 1 | -4/+9 |
| | | | | | | | First, the allocated buffer was never freed after using it to create the PyString object. Second, it was possible that have_filename would be false (meaning that filename was not a PyString object), but that the code would still try to PyString_GET_SIZE() it. | ||||
* | add dummy 'add2lib' target to Grammar/Makefile so non-GNU makes don't bail out | Trent Mick | 2000-08-16 | 1 | -0/+3 |
| | | | | | This closes patch: http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=101176&group_id=5470 |