summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add wrappers around the rich-comparison operations.Fred Drake2001-08-091-1/+22
| | | | | | | This closes SF patch #428320. Add wrappers to expose "floor" and "true" division. This closes SF feature request #449093.
* Restore the test for 'object' that I removed when object wasGuido van Rossum2001-08-091-0/+24
| | | | uninstantiable. All is well now.
* Sigh. Strengthen the resriction of the previous checkin: tp_new isGuido van Rossum2001-08-091-1/+2
| | | | | inherited unless *both*: (a) the base type is 'object', and (b) the subtype is not a "heap" type.
* Thinking back to the 2.22 revision, I didn't like what I did there oneGuido van Rossum2001-08-091-13/+4
| | | | | | | | | | | | | | | | | bit. For one, this class: class C(object): def __new__(myclass, ...): ... would have no way to call the __new__ method of its base class, and the workaround (to create an intermediate base class whose __new__ you can call) is ugly. So, I've come up with a better solution that restores object.__new__, but still solves the original problem, which is that built-in and extension types shouldn't inherit object.__new__. The solution is simple: only "heap types" inherit tp_new. Simpler, less code, perfect!
* Use type(x).__name__ to get the name of the type instead of parsingGuido van Rossum2001-08-091-1/+1
| | | | repr(type(x)).
* Unittests for mhlib, by Nick Mathewson.Guido van Rossum2001-08-091-0/+328
|
* Apply anonymous SF patch #441229.Guido van Rossum2001-08-091-0/+6
| | | | | | | | | | | | Previously, f.read() and f.readlines() checked for errors on their file object and possibly raised an IOError, but f.readline() didn't. This patch makes f.readline() behave like the others. Note that I've added a call to clearerr() since the other calls to ferror() include that too. I have no way to test this code. :-)
* SF patch #403640: incomplete proxy handling in URLLIBTim Peters2001-08-091-0/+62
| | | | Look specific to Windows. Don't know whether it works.
* SF Patch #420725 by Walter Doerwald:Guido van Rossum2001-08-091-4/+17
| | | | | | | | | | | | | | | | | | | | For local files urllib.py doesn't return the MIME headers that the documentation says it does: http://www.python.org/doc/current/lib/module- urllib.html#l2h-2187 states that "When the method is local-file, returned headers will include a Date representing the file's last-modified time, a Content- Length giving file size, and a Content-Type containing a guess at the file's type" But in Python 2.1 the only header that gets returned is the Content-Type: >>> import urllib >>> f = urllib.urlopen("gurk.txt") >>> f.info().headers ['Content-Type: text/plain\n']
* Patch #403514: precompute _subst_format_str to avoid a call toMartin v. Löwis2001-08-091-2/+2
| | | | string.join() on each invocation of _bind.
* Added Josh Cogliati (turtle.py contributor).Guido van Rossum2001-08-091-0/+1
|
* Applied SF patch #438424 by Josh Cogliati:Guido van Rossum2001-08-091-4/+42
| | | | | | | | | Python's logolike module turtle.py did not display the turtle except when actually drawing lines. This patch changes the turtle.py module so that it displays the turtle at all times when tracing is on. This is similar to the the way that logo works. When tracing is off the turtle will not be displayed.
* Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead ofGuido van Rossum2001-08-091-5/+1
| | | | asking to print the references.
* One more.Neil Schemenauer2001-08-091-0/+1
|
* Add get_objects function. This is a low level function (likeNeil Schemenauer2001-08-091-0/+38
| | | | | get_referents, and is not yet documented in the library manual). Suggestions for a better name welcome.
* Add get_referents function. Closes SF patch #402925.Neil Schemenauer2001-08-091-0/+50
|
* Regenerate for glibc 2.2.3.Martin v. Löwis2001-08-094-342/+769
|
* Regenerate for Solaris 8.Martin v. Löwis2001-08-095-739/+1778
|
* When representing #includes as imports, do from MOD import *.Martin v. Löwis2001-08-091-1/+1
|
* Patch #437683: Use re instead of regex.Martin v. Löwis2001-08-091-33/+38
| | | | | | | If multiple header files are processed simultaneously which include each other, the corresponding modules mport each other. Specifically, if h2py is invoked with sys/types.h first, later header files won't contain the complete contents of TYPES.py.
* Move IPv6 test further down so that usage of -lnsl has been tested.Martin v. Löwis2001-08-092-692/+710
| | | | Recognize Solaris IPv6 by checking /etc/netconfig.
* Patch #433537: Cache ac_cv_bad_static_forward.Martin v. Löwis2001-08-092-523/+537
| | | | Also move up AC_AIX and AC_MINIX further up.
* Michael Hudson correctly pointed out we should cvsignore pyconfig.h, notThomas Wouters2001-08-091-1/+1
| | | | | config.h (anymore). People will still have to delete config.h from their source trees manually :)
* Patch #448474: Add support for tell() and seek() to gzip.GzipFile.Martin v. Löwis2001-08-093-4/+60
|
* In the acks, CamelCase InstallMaster the same way Wise does it.Tim Peters2001-08-091-1/+1
|
* Add a comma.Tim Peters2001-08-081-1/+1
|
* Mark binary operators as done.Guido van Rossum2001-08-081-1/+2
| | | | | (This file could stand some reorganization -- it's hard to tell the open items apart from those that are done or nearly done.)
* Give some special thanks on the final "Installation Completed!" screen.Tim Peters2001-08-081-1/+21
|
* A test suite for binary operators, disguised as a rational numberGuido van Rossum2001-08-081-0/+340
| | | | class.
* Proper support for binary operators, including true division and floorGuido van Rossum2001-08-081-136/+199
| | | | | | | | | | | | | | | division. The basic binary operators now all correctly call the __rxxx__ variant when they should. In type_new(), I now make the new type a new-style number unless it inherits from an old-style number that has numeric methods. By way of cosmetics, I've changed the signatures of the SLOT<i> macros to take actual function names and operator names as strings, rather than rely on C preprocessor symbol manipulations. This makes the calls slightly more verbose, but greatly helps simple searches through the file: you can now find out where "__radd__" is used or where the function slot_nb_power() is defined and where it is used.
* Resource files for OSX Python.framework. Incomplete, and they should probablyJack Jansen2001-08-083-0/+49
| | | | | eventually be generated so version numbers and such are automatically correct, but they do the job for now.
* Typo fix (spelling mistake in error message).Greg Ward2001-08-081-1/+1
|
* Thanks toTim Peters2001-08-083-4/+5
| | | | | | | | | LettError, Erik van Blokland, http://www.letterror.com/ the Python Windows installer finally has an attractive Pythonic bitmap to delight the senses and dampen the fears of the millions and millions of eager new Windows users anticipating their first Python programming joy. Always knew Mac users secretly wanted to switch to Windows <wink>.
* Patch #422471: Install IDLE Help FileMartin v. Löwis2001-08-081-1/+1
|
* Add the new Tools/compiler/README to the WIndows install, as README.txt.Tim Peters2001-08-082-4/+11
| | | | | | In the Wise installer's "Advanced Options" dialog, substitute in the actual name of "the system directory" -- this is clearer, and especially for people reading this dialog who aren't me <wink>.
* Added documentation for PyNumber_*FloorDivide(), PyNumber_*TrueDivide(),Fred Drake2001-08-081-48/+138
| | | | | | | PyInterpreterState_*Head(), PyInterpreterState_Next(), and PyThreadState_Next(). Wrapped some long lines, added some others.
* Added README to this directoryAndrew M. Kuchling2001-08-081-0/+21
|
* Reference counting information for PyNumber_*FloorDivide() andFred Drake2001-08-081-0/+16
| | | | PyNumber_*TrueDivide().
* Remove 6-year old hack to worm around a bug in "NextSpec/Sparc 3.3Tim Peters2001-08-081-12/+0
| | | | pre-release limits.h".
* Added note to self about __new__ issue.Guido van Rossum2001-08-081-0/+9
|
* Patch #449083: Use builtins to initalize the module.Martin v. Löwis2001-08-081-7/+7
|
* Removed extraneous semicolons that caused a gazzilion "empty declaration" ↵Jack Jansen2001-08-081-49/+49
| | | | warnings in the MetroWerks compiler.
* Adapted for pymactoolbox.c and changed externals elsewhere.Jack Jansen2001-08-084-2/+0
|
* Got rid of unused includes.Jack Jansen2001-08-081-22/+2
|
* Various fixes to streamline build process on Mac OS X:Jack Jansen2001-08-082-387/+432
| | | | | | | | | | | - Give a warning if you're on a case-insensitive filesystem and have not specified --with-suffix. - Don't require --with-dyld, it is now default for OSX/Darwin (suggested by Martin v. Loewis) - Don't define _POSIX_THREADS on Darwin, it's done by standard headers already (fix by Tony Lownds) - Don't use the Mac subtree anymore, the routines relevant to OSX/Darwin have moved to a new file Python/mactoolboxglue.c.
* - Don't return mac-style pathnames in unix-Python.Jack Jansen2001-08-082-168/+79
| | | | | - Fixed up a lot more prototypes (gcc also wants them on static routines) - Fixed various other gcc warnings.
* Removed special rule for Mac/Python/macglue.o, it is not needed anymore.Jack Jansen2001-08-081-3/+0
|
* Split macglue.c into two: a new mactoolboxglue.c (in ./Python)Jack Jansen2001-08-084-403/+478
| | | | | | | | | | | | with functionality needed for both unix-Python and MacPython and a new smaller ./Mac/Python/macglue.c which contains MacPython stuff only. pymactoolbox.h has moved to ./Include from ./Mac/Include and now also contains the relevant stuff from macglue.h. The net effect of this is that the ./Mac subdirectory is not needed anymore for building the unix-Python core on MacOSX (it is needed for building the extension modules).
* Put conditional S_IFMT definition into pyport.h.Martin v. Löwis2001-08-081-5/+0
|
* Remove redundant check for 'getaddrinfo' (it's already checked the blockThomas Wouters2001-08-081-1/+1
| | | | before.)