summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mark treatment of binary operators for __rop__-before-__op__ as done.Guido van Rossum2001-10-031-5/+15
| | | | | Add more detail about the speed optimizations needed for __dynamic__. The weak reference solution becomes more attractive...
* call_method(), call_maybe(): fix a performance bug: the argumentGuido van Rossum2001-10-031-8/+3
| | | | | | | pointing to a static variable to hold the object form of the string was never used, causing endless calls to PyString_InternFromString(). One particular test (with lots of __getitem__ calls) became a third faster with this!
* Note removal of Demo/dns, point to PyDNS.Guido van Rossum2001-10-021-1/+5
|
* Removed Demo/dns -- see sf.net/projects/pydns/ instead.Guido van Rossum2001-10-026-717/+0
|
* SF patch [#466616] Exclude imported items from doctest.Tim Peters2001-10-021-7/+13
| | | | | Another installment; the new functionality wasn't actually enabled in normal use, only in the strained use checked by the test case.
* SF bug [#467265] Compile errors on SuSe Linux on IBM/s390.Tim Peters2001-10-022-2/+7
| | | | | | | Unknown whether this fixes it. - stringobject.c, PyString_FromFormatV: don't assume that va_list is of a type that can be copied via an initializer. - errors.c, PyErr_Format: add a va_end() to balance the va_start().
* Add Garbage Collection support to new-style classes (not yet to theirGuido van Rossum2001-10-025-39/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | instances). Also added GC support to various auxiliary types: super, property, descriptors, wrappers, dictproxy. (Only type objects have a tp_clear field; the other types are.) One change was necessary to the GC infrastructure. We have statically allocated type objects that don't have a GC header (and can't easily be given one) and heap-allocated type objects that do have a GC header. Giving these different metatypes would be really ugly: I tried, and I had to modify pickle.py, cPickle.c, copy.py, add a new invent a new name for the new metatype and make it a built-in, change affected tests... In short, a mess. So instead, we add a new type slot tp_is_gc, which is a simple Boolean function that determines whether a particular instance has GC headers or not. This slot is only relevant for types that have the (new) GC flag bit set. If the tp_is_gc slot is NULL (by far the most common case), all instances of the type are deemed to have GC headers. This slot is called by the PyObject_IS_GC() macro (which is only used twice, both times in gcmodule.c). I also changed the extern declarations for a bunch of GC-related functions (_PyObject_GC_Del etc.): these always exist but objimpl.h only declared them when WITH_CYCLE_GC was defined, but I needed to be able to reference them without #ifdefs. (When WITH_CYCLE_GC is not defined, they do the same as their non-GC counterparts anyway.)
* CVS patch [#466628] Doc changes for doctest patch (#466616), fromTim Peters2001-10-021-25/+2
| | | | Tim Hochberg. Doctest no longer searches imported objects.
* pickles():Guido van Rossum2001-10-021-18/+22
| | | | | | | | - The test for deepcopy() in pickles() was indented wrongly, so it got run twice (one for binary pickle mode, one for text pickle mode; but the test doesn't depend on the pickle mode). - In verbose mode, show which subtest (pickle/cPickle/deepcopy, text/bin).
* The error reporting here was a bit sparse. In verbose mode, the codeGuido van Rossum2001-10-021-30/+24
| | | | | | | | | | in run_test() referenced two non-existent variables, and in non-verbose mode, the tests didn't report the actual number, when it differed from the expected number. Fixed this. Also added an extra call to gc.collect() at the start of test_all(). This will be needed when I check in the changes to add GC to new-style classes.
* Under certain conditions (sometimes triggered by the test suite),Guido van Rossum2001-10-021-0/+2
| | | | | "from xml.parsers import expat" succeeds but the imported expat module is an empty shell. Make sure we don't be fooled by that.
* Correct the URL for the license (only used when the LICENSE[.txt] fileGuido van Rossum2001-10-021-1/+1
| | | | | is not found). Being fancy: insert the first 3 characters of sys.version in the URL.
* Update reference to pydns.Guido van Rossum2001-10-021-5/+3
|
* SF patch [#466616] Exclude imported items from doctest,Tim Peters2001-10-023-53/+76
| | | | | | | from Tim Hochberg. Also mucho fiddling to change the way doctest determines whether a thing is a function, module or class. Under 2.2, this really requires the functions in inspect.py (e.g., types.ClassType is close to meaningless now, if not outright misleading).
* Fredrik tells me the truefalse parameter for boolean() is not part of theFred Drake2001-10-011-5/+3
| | | | public interface, so we can simplify the documentation.
* Removed stray backslash (a typo -- my fault).Tim Peters2001-10-011-1/+1
|
* The description of dictionary comparison was out of date. Rather thanTim Peters2001-10-011-9/+12
| | | | | | try to explain the complex general scheme we actually use now, I decided to spell out only what equality means (which is easy to explain and intuitive), leaving the other outcomes unspecified beyond consistency.
* SF patch [#466353] Py_HUGE_VAL on BeOS for Intel.Tim Peters2001-10-011-1/+5
| | | | | | The patch repaired internal gcc compiler errors on BeOS. This checkin repairs them in a simpler way, by explicitly casting the platform INFINITY to double.
* restored 1.5.2 compatibilityFredrik Lundh2001-10-011-46/+39
| | | | | added local escape method (made the dumps method some 50-80% faster) minor tweaks to the unmarshalling code
* SF patch [#466877] SIGBREAK is missing from signal module.Tim Peters2001-10-013-0/+26
| | | | Patch from Steve Scott to add SIGBREAK support (unique to Windows).
* approximately double dump performance by moving import of cgi.escape back toSkip Montanaro2001-10-011-6/+4
| | | | top level.
* simple dumps/loads test case for xmlrpclibSkip Montanaro2001-10-011-0/+23
|
* Miscellaneous code fiddling:Guido van Rossum2001-10-011-28/+41
| | | | | | | | | | | | | | | - SLOT1BINFULL() macro: changed this to check for __rop__ overriding __op__, like binary_op1() in abstract.c -- the latter only calls the slot function once if both types use the same slot function, so the slot function must make both calls -- which it already did for the __op__, __rop__ order, but not yet for the __rop__, __op__ order when B.__class__ is a subclass of A.__class__. - slot_sq_contains(), slot_nb_nonzero(): use lookup_maybe() rather than lookup_method() which sets an exception which we then clear. - slot_nb_coerce(): don't give up when left argument's __coerce__ returns NotImplemented, but give the right argument a chance.
* binary_op1(), ternary_op(): rearrange the code so that slotw is testedGuido van Rossum2001-10-011-14/+14
| | | | | (to see whether __rop__ should go before __op__) only when slotv is set. This saves a test+branch when only slotw is set.
* "boolean" --> "Boolean" (per the style guide).Fred Drake2001-10-014-5/+5
|
* Fix some minor style-guide conformance bugs.Fred Drake2001-10-011-7/+8
|
* Undo last checkin.Martin v. Löwis2001-10-011-2/+0
|
* Straighten out some markup.Fred Drake2001-10-011-3/+4
| | | | "boolean" --> "Boolean" (per the style guide).
* Undo last checkin, since it duplicated the code.Martin v. Löwis2001-10-011-25/+0
|
* slot_sq_length(): squash a leak.Guido van Rossum2001-10-011-1/+4
|
* Refer to the objects which define __len__(), __*item__(), and __iter__()Fred Drake2001-10-011-17/+35
| | | | | | as container objects rather than as mapping objects (in the index entries). Change the section heading and intro sentence to be a little more general, since that's how things have actually evolved.
* slot_tp_new(): newargs was leaking.Guido van Rossum2001-10-011-0/+1
|
* Clarify comments about mailbox objects being iterable.Fred Drake2001-10-011-2/+3
|
* Docs for SF patch #462628Guido van Rossum2001-10-011-2/+8
|
* Another SF patch contributor.Guido van Rossum2001-10-011-0/+1
|
* SF patch #462628 (Travers Naran) NNTPLib supports saving BODY to a file.Guido van Rossum2001-10-011-19/+37
| | | | | | | | | | I modified nntplib so the body method can accept an optional second parameter pointing to a filehandle or filename (string). This way, really long body articles can be stored to disk instead of kept in memory. The way I made the modification should make it easy to extend this functionality to other extended return methods.
* Fix typo found by doerwalter.Guido van Rossum2001-10-011-1/+1
|
* Patch #426880: Implement Listbox itemcget and itemconfigure.Martin v. Löwis2001-10-012-0/+27
|
* Patch #462122: add readline startup and pre_event hooks.Martin v. Löwis2001-09-307-33/+209
|
* Patch #462190, patch #464070: Support quoted printable in the binascii module.Martin v. Löwis2001-09-306-18/+391
| | | | Decode and encode underscores for header style encoding. Fixes bug #463996.
* Properly detect recursive structures. Adopted from patch #465298.Martin v. Löwis2001-09-301-0/+6
|
* The execfile() docs imply it acts on locals same as exec. But in truthTim Peters2001-09-301-0/+7
| | | | | it acts more like assigning to keys in locals(), i.e. modifications to function locals aren't reflected in the locals when execfile() returns.
* Correct docs for long(float).Tim Peters2001-09-301-2/+1
|
* SF bug [#466173] unpack TypeError unclearTim Peters2001-09-304-4/+8
| | | | | | Replaced 3 instances of "iter() of non-sequence" with "iteration over non-sequence". Restored "unpack non-sequence" for stuff like "a, b = 1".
* SF [#466125] PyLong_AsLongLong works for any integer.Tim Peters2001-09-305-1/+67
| | | | | | Generalize PyLong_AsLongLong to accept int arguments too. The real point is so that PyArg_ParseTuple's 'L' code does too. That code was undocumented (AFAICT), so documented it.
* Handle PEP references the same way RFC references.Fred Drake2001-09-291-6/+5
|
* Fix two typos in the text about compile(), and add two caveats fromGuido van Rossum2001-09-291-2/+9
| | | | | recent user feedback: you must end the input with \n and you must use \n, not \r\n to represent line endings.
* forgot to mark use of StringType and UnicodeType in the text.Skip Montanaro2001-09-291-2/+3
|
* added description of StringTypes objectSkip Montanaro2001-09-291-0/+5
|
* Fix up whitespace in <args> elements; reduce sequences of consecutiveFred Drake2001-09-291-17/+15
| | | | | whitespace characters to a single space. Small changes elsewhere, mostly to clean up the code a little.