summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Describe how to support the iterator protocol in extension types.Fred Drake2002-03-131-4/+60
| | | | This closes SF bug #420851.
* SF #515015, raise exception if code not found in findsource()Neal Norwitz2002-03-131-0/+1
|
* Extend the list of special characters and magic markup used to produce themFred Drake2002-03-131-6/+10
| | | | | | to include various characters used in code samples, URLs, and other special contexts. This closes SF bug #525684.
* Change the way \textasciitilde is implemented so it works more consistentlyFred Drake2002-03-131-1/+1
| | | | | (dropping tildes into data that still goes through LaTeX-like processing is a bad idea).
* Verify arguments for nl_langinfo. Fixes #528879.Martin v. Löwis2002-03-121-84/+106
|
* Change the example code to prefer PyModule_Add*() instead of using theFred Drake2002-03-122-12/+12
| | | | | module dictionary directly. Also, be more careful about not re-initializing globals in the event of re-initialization of a C extension.
* Update docstrings to use te attribute names of the new structures returnedFred Drake2002-03-122-4/+7
| | | | | by stat and time functions. This closes SF patch #523271.
* Test for the fix I just checked in to moduleobject.c.Guido van Rossum2002-03-121-0/+12
| | | | Bugfix candidate.
* Fix for SF bug #529050 - ModuleType.__new__ crash.Guido van Rossum2002-03-121-7/+19
| | | | | | | | | | There were several places that assumed the md_dict field was always set, but it needn't be. Fixed these to be more careful. I changed PyModule_GetDict() to initialize md_dict to a new dictionary if it's NULL. Bugfix candidate.
* Add a note that Py_None needs the same reference count treatment as anyFred Drake2002-03-121-1/+2
| | | | | other PyObject *. This closes SF bug #494007.
* "level" keyword argument in example should be "stacklevel".Fred Drake2002-03-121-1/+1
| | | | This closes SF bug #517684.
* back out spurious change from 1.22Skip Montanaro2002-03-121-1/+1
|
* Popen3 and Popen4 should be in __all__Skip Montanaro2002-03-121-1/+1
|
* Add a -Wno-long-double flag to the compile flags on Mac OS X. Fixes bugJack Jansen2002-03-122-4/+4
| | | | | 525481. (Probably not a 2.2.1 candidate, unless the fix that introduced a long double into objimpl.h (rev. 2.44) is backported to 2.2.1).
* Set/update self.cwd properly.Fred Drake2002-03-121-14/+51
|
* Change Windows file.truncate() to (a) restore the original file position,Tim Peters2002-03-123-49/+73
| | | | | | | | | | | | and (b) stop trying to prevent file growth. Beef up the file.truncate() docs. Change test_largefile.py to stop assuming that f.truncate() moves the file pointer to the truncation point, and to verify instead that it leaves the file position alone. Remove the test for what happens when a specified size exceeds the original file size (it's ill-defined, according to the Single Unix Spec).
* fixes to tabwidth code removalSteven M. Gava2002-03-121-6/+6
|
* remove tabwidth (for tabs) config stuff,Steven M. Gava2002-03-122-12/+11
| | | | | because of the way the tk text widget handles tabs they must remain a fixed size in idle
* further work on dynamic config changes;Steven M. Gava2002-03-122-2/+16
| | | | editor font
* Documentation for PyObject_GetIter(), contributed by Greg ChapmanFred Drake2002-03-111-3/+18
| | | | | (with only minor changes by Fred). This closes SF bug #498607.
* Make the extension manual format using the Makefile; recent changes brokeFred Drake2002-03-111-1/+1
| | | | the dependency information.
* Fix typoNeal Norwitz2002-03-111-1/+1
|
* Add a check that SF bug 516727 is really fixed.Guido van Rossum2002-03-111-0/+10
|
* Changed C++ comment into standard comment.Sjoerd Mullender2002-03-111-1/+1
|
* Patch #443899: Check modes on files before performing operations.Martin v. Löwis2002-03-111-1/+9
| | | | Use IOErrors where file objects use them.
* Update version number in README.Guido van Rossum2002-03-111-1/+1
|
* file_truncate(): provide full "large file" support on Windows, byTim Peters2002-03-114-39/+86
| | | | | | | | | | | | | | | | | | | | dropping MS's inadequate _chsize() function. This was inspired by SF patch 498109 ("fileobject truncate support for win32"), which I rejected. libstdtypes.tex: Someone who knows should update the availability blurb. For example, if it's available on Linux, it would be good to say so. test_largefile: Uncommented the file.truncate() tests, and reworked to do more. The old comment about "permission errors" in the truncation tests under Windows was almost certainly due to that the file wasn't open for *write* access at this point, so of course MS wouldn't let you truncate it. I'd be appalled if a Unixish system did. CAUTION: Someone should run this test on Linux (etc) too. The truncation part was commented out before. Note that test_largefile isn't run by default.
* Bugfix candidate.Guido van Rossum2002-03-111-0/+3
| | | | | | | Adapter from SF patch 528038; fixes SF bug 527816. The wrapper for __nonzero__ should be wrap_inquiry rather than wrap_unaryfunc, since the slot returns an int, not a PyObject *.
* mkalias() now also works for folders. Fixes bug #515830.Just van Rossum2002-03-101-3/+7
|
* Access the exception argument to see whether it starts with '500'.Martin v. Löwis2002-03-101-2/+2
| | | | Fixes #527855.
* Bugfix candidate.Guido van Rossum2002-03-101-1/+1
| | | | | | | Adapter from SF patch 528038; fixes SF bug 527816. The wrapper for __nonzero__ should be wrap_inquiry rather than wrap_unaryfunc, since the slot returns an int, not a PyObject *.
* SF patch 499062: Minor typo in test_generators.py.Tim Peters2002-03-101-1/+1
| | | | | | There's no actual patch there. It's an objection that Guido's example doesn't actually generator "leaves", so change the comment that says it does.
* Patch #504224: add plan9 threads include to thread.c.Martin v. Löwis2002-03-091-0/+4
|
* Patch #494045: patches errno and stat to cope on plan9.Martin v. Löwis2002-03-092-16/+36
|
* Patch #494047: removes 64-bit ?: to cope on plan9.Martin v. Löwis2002-03-091-2/+10
|
* Patch #500136: Update Update ext build documentation. 2.2.1 candidate.Martin v. Löwis2002-03-094-190/+148
|
* Fix SF bug 525520.Jeremy Hylton2002-03-091-20/+34
| | | | | Don't automatically add a Host: header if the headers passed to request() already has a Host key.
* 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.