summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Removed all traces of accessobject.c.Guido van Rossum1996-12-252-374/+2
|
* PySequence_Index(): set exception when object is not found inBarry Warsaw1996-12-181-0/+1
| | | | | | | | | sequence, otherwise operator.indexOf([4, 3, 2, 1], 9) would raise a SystemError! Note: it might be wise to double check all these functions. I haven't done that yet.
* Better tuple hash function.Guido van Rossum1996-12-161-1/+1
|
* Change comment about MINSIZE -- 10 is optimal for Python.Guido van Rossum1996-12-161-3/+6
|
* Some more tuning of quicksort: use pointers instead of indexing.Guido van Rossum1996-12-111-54/+60
|
* Added new quicksort implementation, tailored to sorting arrays ofGuido van Rossum1996-12-101-0/+227
| | | | | | | | object pointers. Should be a bit faster than the C library's qsort(), and doesn't have the prohibition on recursion that Solaris qsort() has in the threaded version of their C library. Thanks to discussions with Tim Peters.
* Add const to error and newstring functionsGuido van Rossum1996-12-101-2/+2
|
* Fix core dump from pow(x,y,0).Guido van Rossum1996-12-061-7/+9
| | | | Make gcc -Wall happy.
* Make gcc -Wall happyGuido van Rossum1996-12-055-20/+6
|
* Fix newlongobject so it will work for 64-bit as well as 32-bit hardwareGuido van Rossum1996-12-051-12/+15
| | | | | | (although for 32-bit hardware it's a bit slower than it was). Make gcc -Wall happy.
* Experimental new implementation of dictionary comparison. ThisGuido van Rossum1996-12-052-0/+126
| | | | | | | defines that a shorter dictionary is always smaller than a longer one. For dictionaries of the same size, the smallest differing element determines the outcome (which yields the same results as before, without explicit sorting).
* Make gcc -Wall happy.Guido van Rossum1996-12-051-0/+4
|
* Better implementation of PyCObject_AsVoidPtr().Guido van Rossum1996-12-051-7/+18
|
* Yet more elaborate message for exception in __del__.Guido van Rossum1996-12-051-11/+23
| | | | Make gcc -Wall happy.
* Added missing PySequence_List.Guido van Rossum1996-12-051-15/+44
| | | | | Correct typo in error msg (expec[t]ed). Make gcc -Wall happy.
* Make Py_ReturnNullError() statis as it should be.Guido van Rossum1996-11-111-1/+1
|
* Only call sq_length in Sequence_GetItem for negative index.Guido van Rossum1996-11-091-4/+6
|
* correct typo in return variable for PySequence_Index()Guido van Rossum1996-11-061-1/+1
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-2521-269/+416
|
* Fixed compare function to do first char comparison in unsigned mode,Guido van Rossum1996-10-231-1/+1
| | | | for consistency with the way other characters are compared.
* Support passing in an empty dictionary of keywords to newinstanceobject.Guido van Rossum1996-10-211-1/+3
|
* Ellipses -> Ellipsis rename (the dictionary really says that it shouldGuido van Rossum1996-10-111-9/+9
| | | | | | | | be Ellipsis!). Bumped the API version because a linker-visible symbol is affected. Old C code will still compile -- there's a b/w compat macro. Similarly, old Python code will still run, builtin exports both Ellipses and Ellipsis.
* Fix subtle bug detected by Jim F.Guido van Rossum1996-09-301-1/+1
|
* Oops... Need to clear c_error before calling c_quot().Guido van Rossum1996-09-121-0/+2
|
* Properly(?) implemented remainder and divmod (Tim Hochberg)Guido van Rossum1996-09-121-5/+34
|
* Raise exception instead of dropping imag part for conversion to int,Guido van Rossum1996-09-111-11/+9
| | | | | | long, float. Raise exception instead of dumping core for remainder and divmod.
* More detailed error message about exception in __del__Guido van Rossum1996-09-111-3/+6
|
* Correct typo in setattr: return -1 for error, not NULLGuido van Rossum1996-09-111-1/+1
|
* Multiply by 1000003 instead of 3 in string hachGuido van Rossum1996-09-111-1/+1
|
* Get rid of bogus MSC_VER undef of CHECK()Guido van Rossum1996-09-111-4/+0
|
* Don't dump core on complex % or divmod -- raise a TypeError exception.Guido van Rossum1996-09-111-2/+14
|
* Use getstringsize where available instead of strlen.Guido van Rossum1996-08-261-1/+1
|
* Be a bit more careful with printing a warning for a failed __del__.Guido van Rossum1996-08-221-2/+5
|
* Added PyObject_DelItem and PySequence_Del{Item,Slice}.Guido van Rossum1996-08-211-0/+61
|
* More efficient handling of "__doc__" lookup.Guido van Rossum1996-08-211-2/+8
|
* Write warning about exception in __del__ to stderr, not stdout.Guido van Rossum1996-08-201-1/+1
|
* Changes to make the file acceptable to K&R C compilers (HPUX, SunOS 4.x).Guido van Rossum1996-08-191-25/+38
|
* Test for negative # to the nonintegral float power here.Guido van Rossum1996-08-161-15/+12
| | | | Expanded powi() in-line.
* Disable support for access statementGuido van Rossum1996-08-123-4/+37
|
* Define reference count admin debug functions to return void.Guido van Rossum1996-08-121-0/+4
|
* Optimizations by Sjoerd:Guido van Rossum1996-08-091-81/+172
| | | | | - define tp_getattro, tp_setattro - use precreated string objects for most common exceptions and method names
* Support for tp_getattro, tp_setattro (Sjoerd)Guido van Rossum1996-08-093-0/+33
|
* Use pre-created string objects for most common exceptionsGuido van Rossum1996-08-091-2/+8
| | | | (especially IndexError which is caught by 'for')
* Correct wrong calculation of pow(0.0, 0.0, negative_number)Guido van Rossum1996-08-091-5/+6
|
* Allow compilation by K&R C compiler.Guido van Rossum1996-08-011-8/+8
|
* repr("...") -> "Ellipses"Guido van Rossum1996-07-301-1/+1
|
* Added sliceobject.cGuido van Rossum1996-07-302-2/+189
|
* Speedup suggested by SjoerdGuido van Rossum1996-07-302-6/+8
|
* Use NEWOBJ() macro instead of calling newobject() directly.Guido van Rossum1996-07-221-1/+1
|
* complex -> Py_complexGuido van Rossum1996-07-211-40/+40
|