summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed doctest error (wrong prompts)Edward Loper2004-08-091-3/+3
|
* Previous commit was viewed as "perverse". Changed to just cast the unusedBrett Cannon2004-08-081-1/+3
| | | | | | variable to void.. Thanks to Sjoerd Mullender for the suggested change.
* Add a test for Context.copy().Raymond Hettinger2004-08-081-0/+8
|
* Tell unittest that source files with "badsyntax" in their names shouldTim Peters2004-08-081-1/+5
| | | | | raise SyntaxError. test_compiler passes now on WinXP, at least in a release-build non-O run.
* Renamed locals to better reflect their meanings.Tim Peters2004-08-081-6/+6
|
* In verbose mode, display the name of each file before trying to compileTim Peters2004-08-081-1/+4
| | | | | it. Else when this fails, there's no way to tell which file it was chewing on.
* Brief xrange news.Tim Peters2004-08-081-1/+3
|
* Bug 1003935: xrange overflowsTim Peters2004-08-083-11/+37
| | | | | | | | | | | | | | | Added XXX comment about why the undocumented PyRange_New() API function is too broken to be worth the considerable pain of repairing. Changed range_new() to stop using PyRange_New(). This fixes a variety of bogus errors. Nothing in the core uses PyRange_New() now. Documented that xrange() is intended to be simple and fast, and that CPython restricts its arguments, and length of its result sequence, to native C longs. Added some tests that failed before the patch, and repaired a test that relied on a bogus OverflowError getting raised.
* Trimmed trailing whitespace.Tim Peters2004-08-081-5/+5
|
* Get rid of the ignore_imports argument to DocTestFinder.find().Tim Peters2004-08-083-41/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This got slammed in when find() was fixed to stop grabbing doctests from modules imported *by* the module being tested. Such tests cannot be expected to succeed, since they'll be run with the current module's globals. Dozens of Zope3 doctests were failing because of that. It wasn't clear why ignore_imports got added then. Maybe it's because some existing tests failed when the change was made. Whatever, it's a Bad Idea so it's gone now. The only use of it was exceedingly obscure, in test_doctest's "Duplicate Removal" test. It was "needed" there because, as an artifact of running a doctest inside a doctest, the func_globals of functions compiled in the second-level doctest don't match the module globals, and so the test-finder believed these functions were from a foreign module and skipped them. But that took a long time to figure out, and I actually understand some of this stuff <0.9 wink>. That problem was resolved by moving the source code for the second-level doctest into an actual module (test/doctest_aliases.py). The only remaining difficulty was that the test for the deprecated Tester.rundict() then failed, because the test finder doesn't take module=None at face value, trying to guess which module the user really intended then. Its guess wasn't appropriate for what Tester.rundict needs when module=None is given to *it*, which is "no, there is no module here, and I mean it". So now passing module=False means exactly that. This is hokey, but ignore_imports=False was really a hack to worm around that there was no way to tell the test-finder that module=None *sometimes* means what it says. There was no use case for the combination of passing a real module with ignore_imports=False.
* * Context.copy() now makes a deepcopy.Raymond Hettinger2004-08-081-12/+21
| | | | * Facilitate reloads of local thread.
* Type in docstring.Tim Peters2004-08-081-1/+1
|
* Also deprecated the old Tester class, which is no longer used by anythingTim Peters2004-08-082-7/+33
| | | | except internal tests.
* Deprecate the doctest.is_private() function.Tim Peters2004-08-081-0/+6
|
* Deprecated testmod's useless & confusing isprivate gimmick.Tim Peters2004-08-082-61/+32
| | | | | | | Ripped out the docs for the new DocTestFinder's namefilter argument, and renamed it to _namefilter; this only existed to support isprivate. Removed the new DocTestFinder's objfilter argument. No point adding more cruft to a broken filtering design.
* Whitespace normalization.Tim Peters2004-08-082-6/+3
|
* Bug 1003471: Python 1.5.2 security vulnerability still present in 2.3.4Tim Peters2004-08-081-4/+10
| | | | | | | | | | | | | | That's the title of the report, but the hole was probably plugged since Python 2.0. See corresponding checkin to PC/getpathp.c: a crucial precondition for joinpath() was neither documented nor verified, and there are so many callers with so many conditional paths that no "eyeball analysis" is satisfactory. Now Python dies with a fatal error if the precondition isn't satisfied, instead of allowing a buffer overrun. NOT TESTED! The Windows version of the patch was, but not this one. I don't feel like waiting for someone to notice the patch I attached to the bug report. If it doesn't compile, sorry, but fix it <wink>. If it does compile, it's "obviously correct".
* Purged Berkeley code of references to the long-obsolete whrandom.Tim Peters2004-08-083-5/+4
|
* Trigger DeprecationWarningAndrew M. Kuchling2004-08-071-0/+4
|
* Remove MacOS 9 refAndrew M. Kuchling2004-08-071-4/+1
|
* Remove MacOS 9 refsAndrew M. Kuchling2004-08-071-25/+1
|
* [Patch #862531] Update version numbers.Andrew M. Kuchling2004-08-071-13/+13
|
* Let's not use string exceptions any more.Armin Rigo2004-08-071-1/+2
|
* FixMichael W. Hudson2004-08-071-2/+2
| | | | | | [ 777659 ] Uninitialized variable used in Tools/faqwiz/faqwiz.py with help from jlgijsbers on #python-dev IRC.
* This was quite a dark bug in my recent in-place string concatenationArmin Rigo2004-08-072-2/+3
| | | | | | hack: it would resize *interned* strings in-place! This occurred because their reference counts do not have their expected value -- stringobject.c hacks them. Mea culpa.
* Removing tests that fail because of changes in PyString_InternInPlace(),Armin Rigo2004-08-071-16/+0
| | | | | as discussed on IRC. The equivalent tests for the new behavior are in test_builtin.py.
* [Patch #999280 ] Update kwargs in pickle docs to match implementationsAndrew M. Kuchling2004-08-071-9/+9
|
* [Patch #1003861 from Dima Dorfman] Fix markup in concrete.tex:Andrew M. Kuchling2004-08-071-10/+5
| | | | | | | PyObject* o -> PyObject *o to be consistent with the rest of the file - Correct markup for Py_True - Remove duplicate description of PyBool_Check
* Use LaTeX markupAndrew M. Kuchling2004-08-071-1/+1
|
* [Bug #914375] Crude modulefinder docs, but the module's code is very hard to ↵Andrew M. Kuchling2004-08-071-0/+49
| | | | read and it's not clear which bits are public and which aren't. The module's author should really be doing this (and using docstrings in the code, too)
* eval_frame now has a PyAPI-style nameMichael W. Hudson2004-08-071-1/+1
|
* Fixed some compiler warnings.Armin Rigo2004-08-071-2/+2
|
* Add a trivial test for the compiler package, guarded by compiler resource.Jeremy Hylton2004-08-072-1/+39
| | | | | | This test is insanely slow, so it requires a resource. On my machine, it also appears to dump core. I think the problem is a stack overflow, but haven't been able to confirm.
* Remove various modules that have been documentedAndrew M. Kuchling2004-08-071-16/+2
|
* SF patch 836879.Jeremy Hylton2004-08-071-21/+19
| | | | Don't generate code for asserts in -O mode.
* Subclasses of string can no longer be interned. The semantics ofJeremy Hylton2004-08-074-22/+40
| | | | | | | | | | | interning were not clear here -- a subclass could be mutable, for example -- and had bugs. Explicitly interning a subclass of string via intern() will raise a TypeError. Internal operations that attempt to intern a string subclass will have no effect. Added a few tests to test_builtin that includes the old buggy code and verifies that calls like PyObject_SetAttr() don't fail. Perhaps these tests should have gone in test_string.
* [Bug #827209] Add footnote from Alex M. about listcomps leaking their index ↵Andrew M. Kuchling2004-08-071-1/+5
| | | | variables
* SF bug 1003471: Python 1.5.2 security vulnerabilityTim Peters2004-08-071-1/+11
| | | | | | | | | | | | | This was probably fixed in rev 1.32 of getpath.c, but there are so many paths thru the code that invoke joinpath() it's not at all obvious that it *is* fixed. It doesn't help confidence that a crucial precondition for calling joinpath() was neither documented nor verified. It is now, and joinpath() will barf with a fatal error now rather than overrun the buffer, if the precondition isn't met. Note that this patch only changes the Windows flavor. I attached another patch to the bug report for the POSIX flavor (which I can't test conveniently).
* Various minor editsAndrew M. Kuchling2004-08-071-14/+15
|
* [Bug #866222] Update docs to match the moduleAndrew M. Kuchling2004-08-071-7/+15
|
* [Bug #866222] Update docstrings.Andrew M. Kuchling2004-08-071-4/+3
|
* FixMichael W. Hudson2004-08-071-9/+7
| | | | | | | | | [ 991812 ] PyArg_ParseTuple can miss errors with warnings as exceptions as suggested in the report. This is definitely a 2.3 candidate (as are most of the checkins I've made in the last month...)
* [Bug #991883] Document calling conditionAndrew M. Kuchling2004-08-071-1/+2
|
* [Bug #990792] Mention that repl can be a callableAndrew M. Kuchling2004-08-071-2/+6
|
* Fix urllib2.urlopen() handling of chunked content encoding.Jeremy Hylton2004-08-073-2/+108
| | | | | | | | | | | | | | | | | The change to use the newer httplib interface admitted the possibility that we'd get an HTTP/1.1 chunked response, but the code didn't handle it correctly. The raw socket object can't be pass to addinfourl(), because it would read the undecoded response. Instead, addinfourl() must call HTTPResponse.read(), which will handle the decoding. One extra wrinkle is that the HTTPReponse object can't be passed to addinfourl() either, because it doesn't implement readline() or readlines(). As a quick hack, use socket._fileobject(), which implements those methods on top of a read buffer. (suggested by mwh) Finally, add some tests based on test_urllibnet. Thanks to Andrew Sawyers for originally reporting the chunked problem.
* FixMichael W. Hudson2004-08-071-3/+3
| | | | | | [ 1000841 ] "make pdf" failure w/ 2.4 docs in the suggested way, by uglifying a URL.
* [Bug #998066] Mention result mismatchAndrew M. Kuchling2004-08-071-0/+2
|
* [Bug #923315] Produce correct result on AIXAndrew M. Kuchling2004-08-071-1/+5
|
* Patch:Michael W. Hudson2004-08-071-1/+1
| | | | [ 1003863 ] adds an index entry for __all__ to the tutorial
* [Bug #873146] Document pickletools module (haven't tested the LaTeX yet)Andrew M. Kuchling2004-08-072-0/+33
|