summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* deque_traverse(): If the deque had one block, and its rightindex wasTim Peters2004-10-012-10/+22
| | | | | BLOCKLEN-1, this assert-failed in a debug build, or went wild with a NULL pointer in a release build. Reported on c.l.py by Stefan Behnel.
* Typos in new comments.Tim Peters2004-10-011-2/+2
|
* Document some reverse-engineered invariants and pragmatic hints.Tim Peters2004-10-011-2/+17
|
* Get references working (except for references to "Extending optparse",Greg Ward2004-10-011-30/+29
| | | | which isn't being converted from reST yet).
* Definition consistency.Tim Peters2004-10-011-1/+2
|
* Trimmed trailing whitespace.Tim Peters2004-10-011-26/+26
|
* Add tests for syntax errors.Raymond Hettinger2004-09-301-0/+13
|
* Added 2 notes about the complexities of testing SyntaxErrors.Edward Loper2004-09-301-0/+31
|
* Expand scope to include general mapping protocol tests.Raymond Hettinger2004-09-301-0/+13
| | | | | | Many of these tests are redundant, but this will ensure that the mapping protocols all stay in sync. Also, added a test for dictionary subclasses.
* Add missing test_dict.py from patch #736962.Walter Dörwald2004-09-301-0/+404
|
* Improve test coverage.Raymond Hettinger2004-09-305-34/+49
|
* SF bug #1035279: hex() and oct() documentation is incorrectRaymond Hettinger2004-09-301-13/+5
| | | | | * Updated docs to reflected signed return values. * Fixed a doubled word typo.
* Improve error message for augmented assignments to genexps or listcomps.Raymond Hettinger2004-09-291-2/+2
| | | | | Rather than introduce new logic, took the approach of making the message itself more general.
* Fix two erroneous error messages.Raymond Hettinger2004-09-291-2/+2
|
* Fix typo in PyDict_Items docNicholas Bastin2004-09-291-1/+1
|
* Improve test coverage.Raymond Hettinger2004-09-292-0/+45
|
* Improve test coverage.Raymond Hettinger2004-09-292-5/+116
|
* minor doc tweaks for writexmlSkip Montanaro2004-09-281-5/+9
|
* typoSkip Montanaro2004-09-281-1/+1
|
* Replaced a test with an assertion.Raymond Hettinger2004-09-281-3/+1
| | | | (Suggested by Michael Hudson.)
* A number of list examples used 66.6, but I doubt there's any box on whichTim Peters2004-09-281-9/+9
| | | | | | repr(66.6) == "66.6", so doubt that the claimed output has ever been seen. Changed it to 66.25 everywhere, and manually verified that the new claimed output is correct.
* Reverted the addition of a NORMALIZE_NUMBERS option, per Tim Peter'sEdward Loper2004-09-283-199/+2
| | | | | | | | request. Tim says that "correct 'fuzzy' comparison of floats cannot be automated." (The motivation behind adding the new option was verifying interactive examples in Python's latex documentation; several such examples use numbers that don't print consistently on different platforms.)
* * Increase test coverage.Raymond Hettinger2004-09-282-5/+38
| | | | * Have groupby() be careful about decreffing structure members.
* Added a new NORMALIZE_NUMBERS option, which causes number literals inEdward Loper2004-09-283-2/+199
| | | | | the expected output to match corresponding number literals in the actual output if their values are equal (to ten digits of precision).
* Add note about inclusion of DarwinPorts directories in setup.py on darwin.Brett Cannon2004-09-281-0/+4
|
* Add the directories where DarwinPorts installs library and include files toBrett Cannon2004-09-281-2/+5
| | | | the proper path directories for compiling extension modules.
* Fixed minor typo in interactive example (extra '.'s in '...' prompts)Edward Loper2004-09-281-2/+2
|
* Fixed minor typo in interactive example (extra blank line)Edward Loper2004-09-281-1/+0
|
* SF bug #1033038: Misleading error message in random.choiceRaymond Hettinger2004-09-281-0/+1
| | | | Added a clarifying line to the docs.
* Fixed minor typo in interactive exampleEdward Loper2004-09-281-1/+1
|
* Fixed minor typo in interactive example (backslash shouldn't be doubled)Edward Loper2004-09-281-1/+1
|
* Updated interactive examples in the "Examples" session to reflect theEdward Loper2004-09-281-7/+10
| | | | fact that compiler.ast.Function now takes a "decorators" argument.
* Silence a compiler warning by supplying the correct argument type toRaymond Hettinger2004-09-281-2/+2
| | | | the htons() function.
* Use Py_CLEAR(). Add unrelated test.Raymond Hettinger2004-09-282-1/+4
|
* Major overhaul to reflect Optik 1.5. Section references currently broken.Greg Ward2004-09-281-1192/+904
|
* Plug a leak and beef-up test coverage.Raymond Hettinger2004-09-282-4/+161
|
* Rename test for comparision errors.Raymond Hettinger2004-09-271-1/+1
|
* Beef-up tests for greater coverage and refcount checking.Raymond Hettinger2004-09-271-1/+59
|
* Patch #1009075, bug #952953: allow execve with empty 2nd argumentArmin Rigo2004-09-272-14/+2
|
* Patch #1011240: SystemError generated by struct.pack('P', 'foo').Armin Rigo2004-09-272-7/+10
|
* Trivial bug fix: deque == [] is not a good way to check if a deque is empty.Armin Rigo2004-09-271-1/+1
|
* Use floor division operator.Raymond Hettinger2004-09-277-8/+8
|
* Use floor division operator.Raymond Hettinger2004-09-271-3/+3
|
* - Added a "parser" option to testfile() and DocFileTest().Edward Loper2004-09-271-1/+10
|
* - Added a "parser" option to testfile() and DocFileTest().Edward Loper2004-09-271-5/+12
|
* - Fixed typo in multi-line exception exampleEdward Loper2004-09-271-6/+6
| | | | - Fixed indentation for a verbatim block
* Give a saner example for script_from_examples(); also mention an intendedTim Peters2004-09-261-11/+25
| | | | but not entirely obvious use case.
* Made most module references "clickable".Tim Peters2004-09-261-71/+70
|
* Docs for run_docstring_examples().Tim Peters2004-09-261-0/+30
|
* Checkin Tim's fix to an error discussed on python-dev.Raymond Hettinger2004-09-262-10/+25
| | | | | | | | | | | | | | | | | Also, add a testcase. Formerly, the list_extend() code used several local variables to remember its state across iterations. Since an iteration could call arbitrary Python code, it was possible for the list state to be changed. The new code uses dynamic structure references instead of C locals. So, they are always up-to-date. After list_resize() is called, its size has been updated but the new cells are filled with NULLs. These needed to be filled before arbitrary iteration code was called; otherwise, that code could attempt to modify a list that was in a semi-invalid state. The solution was to change the ob->size field back to a value reflecting the actual number of valid cells.