summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Refactor if/elif chain for clarity and speed. Remove dependency on ↵Raymond Hettinger2008-01-152-30/+31
| | | | subclasses having to implement _empty and _full.
* Issue #1786 (by myself): pdb should use its own stdin/stdout around anGuido van Rossum2008-01-152-3/+13
| | | | exec call and when creating a recursive instance.
* Restore description of sys.dont_write_bytecode.Andrew M. Kuchling2008-01-151-0/+11
| | | | | | | The duplication is intentional -- this paragraph is in a section describing additions to the sys module, and there's a later section that mentions the switch. I think most people scan the what's-new and don't read it in detail, so a bit of duplication is OK.
* Add rational.Rational as an implementation of numbers.Rational with infiniteJeffrey Yasskin2008-01-156-313/+777
| | | | | | | | | | | | | precision. This has been discussed at http://bugs.python.org/issue1682. It's useful primarily for teaching, but it also demonstrates how to implement a member of the numeric tower, including fallbacks for mixed-mode arithmetic. I expect to write a couple more patches in this area: * Rational.from_decimal() * Rational.trim/approximate() (maybe with different names) * Maybe remove the parentheses from Rational.__str__() * Maybe rename one of the Rational classes * Maybe make Rational('3/2') work.
* Remove duplicate entry.Georg Brandl2008-01-151-11/+3
|
* Typo.Georg Brandl2008-01-151-1/+1
|
* Small grammar nitRaymond Hettinger2008-01-151-2/+2
|
* Temporarily revert 59967 until GC can be added.Raymond Hettinger2008-01-154-12/+1
|
* Better (?) text describing the lack of guarantees provided by qsize(),Skip Montanaro2008-01-151-6/+11
| | | | empty() and full().
* Tighten the definition of a named tuple.Raymond Hettinger2008-01-151-1/+1
|
* Issue 1820: structseq objects did not work with the % formatting operator ↵Raymond Hettinger2008-01-154-1/+12
| | | | | | or isinstance(t, tuple). Orignal patch (without tests) by Leif Walsh.
* Repair unfinished sentenceAndrew M. Kuchling2008-01-151-3/+5
|
* Add many itemsAndrew M. Kuchling2008-01-151-7/+131
|
* Markup fixAndrew M. Kuchling2008-01-151-1/+1
|
* Typo fixesAndrew M. Kuchling2008-01-153-4/+4
|
* Fix 1698398: Zipfile.printdir() crashed because the format string expected ↵Raymond Hettinger2008-01-142-2/+5
| | | | a tuple object of length six instead of a time.struct_time object.
* Update description of float_infoAndrew M. Kuchling2008-01-141-4/+4
|
* Issue 1821: configure libffi for amd64 on FreeeBSD.Thomas Heller2008-01-142-104/+57
|
* Added more comments to the new structseq repr code and implemented several ↵Christian Heimes2008-01-141-17/+36
| | | | of Neal's suggestions.
* Now that I've learnt about structseq objects I felt like converting ↵Christian Heimes2008-01-145-33/+85
| | | | | | sys.float_info to a structseq. It's readonly and help(sys.float_info) explains the attributes nicely.
* Applied patch #1816: sys.flags patchChristian Heimes2008-01-144-5/+149
|
* I missed the most important fileChristian Heimes2008-01-141-5/+58
|
* Added new an better structseq representation. E.g. repr(time.gmtime(0)) now ↵Christian Heimes2008-01-142-1/+8
| | | | returns 'time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0)' instead of '(1970, 1, 1, 0, 0, 0, 3, 1, 0)'. The feature is part of #1816: sys.flags
* ?Why did my tests not notice this before?Amaury Forgeot d'Arc2008-01-141-1/+1
| | | | | Slots inheritance is very different from OO inheritance. This code lead to infinite recursion on classes derived from StructType.
* Re-apply patch #1700288 (first applied in r59931, rolled back in r59940)Amaury Forgeot d'Arc2008-01-144-6/+219
| | | | | | now that ctypes uses a more supported method to create types: Method cache optimization, by Armin Rigo, ported to 2.6 by Kevin Jacobs.
* As discussed in issue 1700288:Amaury Forgeot d'Arc2008-01-142-2/+2
| | | | | | | ctypes takes some liberties when creating python types: it modifies the types' __dict__ directly, bypassing all the machinery of type objects which deal with special methods. And this broke recent optimisations of method lookup. Now we try to modify the type with more "official" functions.
* Back out r59931 - test_ctypes fails with it.Georg Brandl2008-01-134-219/+6
|
* Check in the patch proposed by Ben Hayden (benjhayden) for issueKa-Ping Yee2008-01-131-3/+5
| | | | | | | | | #1550: help('modules') broken by several 3rd party libraries. Tested with Python build: trunk:54235:59936M -- the reported error occurs with Django installed (or with any __init__.py present on the path that raises an exception), and such errors indeed go away when this change is applied.
* Make Modules/socketobject.c compile for Windows again.Thomas Heller2008-01-131-4/+7
|
* Clarify the effect of text mode.Georg Brandl2008-01-131-1/+3
|
* Fix spelling.Raymond Hettinger2008-01-131-1/+1
|
* Named tuple is a concept, not a specific type.Raymond Hettinger2008-01-131-5/+11
|
* Fix editing glitch.Georg Brandl2008-01-121-5/+2
|
* Patch #1700288: Method cache optimization, by Armin Rigo, ported toGeorg Brandl2008-01-124-6/+219
| | | | 2.6 by Kevin Jacobs.
* Move OSError docs to exceptions doc, remove obsolete descriptionsGeorg Brandl2008-01-123-65/+44
| | | | from os docs, rework posix docs.
* Issue 1780: Allow leading and trailing whitespace in Decimal constructor,Mark Dickinson2008-01-124-6/+37
| | | | | when constructing from a string. Disallow trailing newlines in Context.create_decimal.
* Update the opcode docs for STORE_MAP and BUILD_MAPRaymond Hettinger2008-01-111-3/+7
|
* Fix a potential 'SystemError: NULL result without error'.Thomas Heller2008-01-111-1/+1
| | | | | | NULL may be a valid return value from PyLong_AsVoidPtr. Will backport to release25-maint.
* Raise an error instead of crashing with a segfault when a NULLThomas Heller2008-01-112-0/+11
| | | | | | function pointer is called. Will backport to release25-maint.
* Bug #1790: update link; remove outdated paragraphAndrew M. Kuchling2008-01-111-9/+3
|
* Speed-up and simplify code urlparse's result objects.Raymond Hettinger2008-01-111-52/+6
|
* Removed unused variableChristian Heimes2008-01-111-1/+1
|
* Revert revision 59913, because it was wrong:Thomas Heller2008-01-111-4/+4
| | | | | | The sqlite3 dll, when compiled in debug mode, must be linked with /MDd to use the debug runtime library. Further, the dll will be named sqlite3_d.dll.
* The sqlite3 dll, when compiled in debug mode, must be linked with /MDdThomas Heller2008-01-111-4/+4
| | | | | to use the debug runtime library. Further, the dll will be named sqlite3_d.dll.
* Documentation for r5990[3567].Georg Brandl2008-01-115-3/+36
|
* News entries for rev. 5990[567].Georg Brandl2008-01-111-0/+3
|
* Guard definition of TIPC_SUB_CANCEL with an #ifdef.Georg Brandl2008-01-111-1/+4
|
* Add an important missing blank.Thomas Heller2008-01-111-1/+1
|
* Improve usability of the SequenceMatcher by returning named tuples ↵Raymond Hettinger2008-01-111-7/+10
| | | | describing match ranges.
* Let most inspect functions return named tuplesRaymond Hettinger2008-01-111-5/+19
|