summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SF bug 525705: [2.2] underflow raise OverflowException.Tim Peters2002-03-093-4/+38
| | | | | | | | | | | | | | | | | | | | Another year in the quest to out-guess random C behavior. Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y). The latter is useful for functions with complex results. Two corrections to errno- after-libm-call are attempted: 1. If the platform set errno to ERANGE due to underflow, clear errno. Some unknown subset of libm versions and link options do this. It's allowed by C89, but I never figured anyone would do it. 2. If the platform did not set errno but overflow occurred, force errno to ERANGE. C89 required setting errno to ERANGE, but C99 doesn't. Some unknown subset of libm versions and link options do it the C99 way now. Bugfix candidate, but hold off until some Linux people actually try it, with and without -lieee. I'll send a help plea to Python-Dev.
* Docstring for filter(): Someone on the Tutor list reasonably complainedTim Peters2002-03-091-5/+5
| | | | | that it didn't tell enough of the truth. Bugfix candidate (I guess -- it helps and it's harmless).
* Add more explanation of how data_files is used (esp. where the files end upFred Drake2002-03-081-2/+13
| | | | in the installation and how that location is determined).
* Add fix for AIX as reported by srubben in SF bug #477487.Jeremy Hylton2002-03-081-1/+1
| | | | Untested, of course.
* Fix pyclbr test of httplib without really understanding pyclbr.Jeremy Hylton2002-03-081-1/+2
| | | | | It seems that the new class HTTP11 in httplib.test() isn't discoverable by pyclbr, which causes this test to fail.
* Fix leak of NotImplemented in previous checkin to PyNumber_Add().Jeremy Hylton2002-03-081-4/+6
| | | | | If result == Py_NotImplemented, always DECREF it before assigning a new value to result.
* Fix for SF bug 516727: MyInt(2) + "3" -> NotImplementedJeremy Hylton2002-03-081-4/+3
| | | | | | PyNumber_Add() tries the nb_add slot first, then falls back to sq_concat. However, tt didn't check the return value of sq_concat. If sq_concat returns NotImplemented, raise the standard TypeError.
* SF bug report #405939: wrong Host header with proxyJeremy Hylton2002-03-081-3/+21
| | | | | | | | | | | | | | | In August, Greg said this looked good, so I'm going ahead with it. The fix is different from the one in the bug report. Instead of using a regular expression to extract the host from the url, I use urlparse.urlsplit. Martin commented that the patch doesn't address URLs that have basic authentication username and password in the header. I don't see any code anywhere in httplib that supports this feature, so I'm not going to address it for this fix. Bug fix candidate.
* [Bug #491820] Define two abstract methods to shut up Pychecker, and forAndrew M. Kuchling2002-03-081-0/+6
| | | | | documentation purposes. These implementations are the same as the ones suggested by Skip in the bug report.
* [Bug #517554] When a signal happens during the select call inAndrew M. Kuchling2002-03-081-0/+1
| | | | | | | | | asyncore.poll, the select fails with EINTR, which the code catches. However, the code fails to clear the r/w/e arrays (like poll3 does), which means it acts as if every descriptor had received all possible events. Bug report and patch by Cesar Eduardo Barros
* As part of fixing bug #523301, add a simple test of ConfigParser.write()Andrew M. Kuchling2002-03-082-0/+30
|
* [Bug #523301] ConfigParser.write() produces broken output for values thatAndrew M. Kuchling2002-03-081-2/+2
| | | | | were originally rfc822-like line continuations. Modified version of a patch from Matthias Ralfs.
* [Bug #486527] Note that the caller has to ensure there are no controlAndrew M. Kuchling2002-03-081-2/+12
| | | | | | | characters in strings being passed via XML-RPC. Fix some typos. 2.2.1 bugfix candidate.
* [Bug #512799] urllib.splittype() returns a 2-tuple. (Reported by seb bacon)Andrew M. Kuchling2002-03-081-1/+1
|
* Fix SF bug #526518Jeremy Hylton2002-03-081-1/+1
| | | | | | | | The doc string for cStringIO suggested that str() of a StringIO object was equivalent to getvalue(). This was never true, so repair the doc string. (doctest would have helped here.) Bug fix candidate for any past versions.
* When testing for availability of pthreads without special compiler optionsJack Jansen2002-03-082-363/+367
| | | | | | | or libraries also look for thread_detach. SGI has thread_create in libc but complete pthread support only in -lpthread. Fixes #522393. 2.2.1 candidate.Killed by signal 2.
* fixed missing IMAP4_SSL_PORTPiers Lauder2002-03-081-1/+2
|
* SF bug 515943: searching for data with \0 in mmap.Tim Peters2002-03-082-9/+30
| | | | | | | | | mmap_find_method(): this obtained the string to find via s#, but it ignored its length, acting as if it were \0-terminated instead. Someone please run on Linux too (the extended test_mmap works on Windows). Bugfix candidate.
* Add entry for mac/libscrap.tex.Fred Drake2002-03-081-1/+2
|
* I started writing more documentation on the Scrap module at one point, butFred Drake2002-03-082-15/+43
| | | | | | it is difficult to do without a Mac box to try things out on. This expands on what was there only a little bit; hopefully someone with a Mac can work on this as well!
* add Content-Type header to error responsesSkip Montanaro2002-03-081-0/+1
| | | | this closes patch 502080
* add SSL class submitted by Tino LangePiers Lauder2002-03-082-4/+97
|
* "Shortcut" should be "short-circuit".Fred Drake2002-03-081-6/+7
| | | | This closes SF bug #526277.
* add repr_str as alias for repr_string in both HTMLRepr and TextRepr classesSkip Montanaro2002-03-071-0/+4
| | | | | - reflects the change in type("").__name__ between 2.1 and 2.2. The __name__ field is used to find a method to call for particular types.
* Guido pointed out that I was missing a couple decrefs.Michael W. Hudson2002-03-071-1/+7
|
* Regenerate.Michael W. Hudson2002-03-071-273/+274
|
* Apply Jack's patch attached toMichael W. Hudson2002-03-072-5/+9
| | | | | | | | [ 508779 ] Disable flat namespace on MacOS X I presume you wanted this on the trunk too, Jack? 2.2.1 candidate.
* Test forMichael W. Hudson2002-03-061-0/+12
| | | | | | [ 526039 ] devious code can crash structseqs Bugfix candidate.
* Special support for pickling os.stat and os.stat_vfs results portablyMichael W. Hudson2002-03-062-0/+31
| | | | | | | | (the types come from different modules on different platforms). Added tests for pickling these types. May be a bugfix candidate.
* Apply (my) patch:Michael W. Hudson2002-03-061-23/+76
| | | | | | | | | | | | | | | | | [ 526072 ] pickling os.stat results round II structseq's constructors can now take "invisible" fields in a dict. Gave the constructors better error messages. their __reduce__ method puts these fields in a dict. (this is all in aid of getting os.stat_result's to pickle portably) Also fixes [ 526039 ] devious code can crash structseqs Thought needed about how much of this counts as a bugfix. Certainly #526039 needs to be fixed.
* Added missing version annotation for dict().Fred Drake2002-03-061-0/+2
|
* CGStubLib wasn't weak-linked, fixed. 221 candidate.Jack Jansen2002-03-051-0/+0
|
* Set default value for readlines.sizehint to None. Change needed for 2.2.1Martin v. Löwis2002-03-051-1/+1
| | | | as well.
* A fix & test forMichael W. Hudson2002-03-052-1/+37
| | | | | | | | [ 496873 ] structseqs unpicklable by adding a __reduce__ method to structseqs. Will also commit this to the 2.2.1 branch momentarily.
* Add implementations for \textgreater and \textless, defined in (relatively)Fred Drake2002-03-051-0/+2
| | | | recent versions of LaTeX2e but not support in LaTeX2HTML.
* Remove extra indenatation from sample interpreter session.Fred Drake2002-03-051-11/+11
| | | | | Remove whitespace from the middle of an inline RE example; it was OK for the typeset formats, but LaTeX2HTML is more touchy about this.
* remove debug cruftSteven M. Gava2002-03-051-6/+0
|
* further work on new config systemSteven M. Gava2002-03-052-9/+23
|
* add simple example of avoiding backtrackingSkip Montanaro2002-03-041-6/+22
|
* Added ClipCGContextToRegion() from Quickdraw.h.Just van Rossum2002-03-044-0/+30
|
* Remove tp_print.Martin v. Löwis2002-03-041-34/+1
|
* Python no longer compiled on Windows, due to #include file confusionTim Peters2002-03-031-4/+5
| | | | | | over SEP, ALTSEP and MAXPATHLEN. Patched up posixmodule.c for MSVC, but unsure what the story is now on other non-Unixish platforms -- the preprocessor maze has no exit <wink>.
* Removed two unused imports. Closes patch #525225.Barry Warsaw2002-03-031-4/+0
| | | | 2.2.1 candidate (but not terribly important).
* Patch #50002: Display line information for bad \x escapes:Martin v. Löwis2002-03-035-17/+55
| | | | | | - recognize "SyntaxError"s by the print_file_and_line attribute. - add the syntaxerror attributes to all exceptions in compile.c. Fixes #221791
* SF #506611, fix sys.setprofile(), sys.settrace() core dumpsNeal Norwitz2002-03-033-2/+12
| | | | when no arguments are passed
* OS/2 more program behaves like Win32 moreAndrew MacIntyre2002-03-031-1/+1
| | | | (see patch #514490, by Stefan Schwarzer)
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-031-17/+702
| | | | | | | | | | Modules/ posixmodule.c - use SEP,ALTSEP #defines instead of hard coded path separator chars - use EMX specific variants of chdir2(),getcwd() that support drive letters - OS/2+EMX spawnv(),spawnve() support - EMX specific popen[234]() derived from Win32 popen[234]() code
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-031-6/+11
| | | | | | | Modules/ socketmodule.c EMX handles sockets like Posix, rather than use native APIs
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-0311-11/+47
| | | | | | | | | | | | | | | Modules/ _hotshot.c dbmmodule.c fcntlmodule.c main.c pwdmodule.c readline.c selectmodule.c signalmodule.c termios.c timemodule.c unicodedata.c
* Added support for SyncCGContextOriginWithPort().Just van Rossum2002-03-024-0/+25
|