summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Sync version number with the current CVS version.Fred Drake2001-04-181-3/+3
| | | | | | (Note that the docs are also being maintained on the 2.1.1 maintenance branch, so users interested only in corrections and clarifications can get that.)
* Bump the version number in more placesGuido van Rossum2001-04-184-11/+11
|
* Change the version to 2.2a0. This may look strange, but indicatesGuido van Rossum2001-04-181-4/+4
| | | | it's 2.2 before the first alpha release.
* update_yourself(): Removed unused local variable reported byBarry Warsaw2001-04-181-1/+0
| | | | PyChecker.
* __init__(): Removed unused local variable reported by PyChecker.Barry Warsaw2001-04-181-1/+0
|
* StripWidget.__init__(), update_yourself(): Removed some unused localBarry Warsaw2001-04-181-21/+20
| | | | | | | | variables reported by PyChecker. __togglegentype(): PyChecker accurately reported that the variable __gentypevar was unused -- actually this whole method is currently unused so comment it out.
* Helpwin.__init__(): Removed an unused local variable (via import)Barry Warsaw2001-04-181-1/+1
| | | | reported by PyChecker.
* Bump the version to 1.1Barry Warsaw2001-04-181-1/+1
|
* There have been a few new Python releases <wink> in the 2 years sinceBarry Warsaw2001-04-181-10/+7
| | | | | this tool was last touched! Update some of the introductory material and bump the version to 1.1.
* Add note about the version in which GetoptError was added -- this canFred Drake2001-04-181-0/+3
| | | | bite people interested in 1.5.2 compatibility.
* Added support for optional explanation parameter to the \versionaddedFred Drake2001-04-181-13/+14
| | | | | | | | macro. Refactored do_cmd_versionadded() and do_cmd_versionchanged() to do most of the work in a helper function, with the do_cmd_*() wrappers just supplying a portion of the replacement text.
* \versionadded: Add support for including an explanatory note along withFred Drake2001-04-181-2/+7
| | | | the versioning information, similar to \versionchanged.
* Fix compileall.py so that it fails on SyntaxErrorsJeremy Hylton2001-04-182-10/+29
| | | | | | | | | | | | | | | | The changes cause compilation failures in any file in the Python installation lib directory to cause the install to fail. It looks like compileall.py intended to behave this way, but a change to py_compile.py and a separate bug defeated it. Fixes SF bug #412436 This change affects the test suite, which contains several files that contain intentional errors. The solution is to extend compileall.py with the ability to skip compilation of selected files. NB compileall.py is changed so that compile_dir() returns success only if all recursive calls to compile_dir() also check success.
* Fix compileall.py so that it fails on SyntaxErrorsJeremy Hylton2001-04-1810-16/+11
| | | | | | | | | | | | | | | | | | | | | The changes cause compilation failures in any file in the Python installation lib directory to cause the install to fail. It looks like compileall.py intended to behave this way, but a change to py_compile.py and a separate bug defeated it. Fixes SF bug #412436 This change affects the test suite, which contains several files that contain intentional errors. The solution is to extend compileall.py with the ability to skip compilation of selected files. In the test suite, rename nocaret.py and test_future[3..7].py to start with badsyntax_nocaret.py and badsyntax_future[3..7].py. Update the makefile to skip compilation of these files. Update the tests to use the name names for imports. NB compileall.py is changed so that compile_dir() returns success only if all recursive calls to compile_dir() also check success.
* Unused variable (caught by PyChecker) removed.Eric S. Raymond2001-04-171-1/+0
|
* This commit was manufactured by cvs2svn to create tag 'release21'.v2.1cvs2svn2001-04-161-0/+1
|
* Noted what's new in 2.1 (final).Guido van Rossum2001-04-161-0/+21
| | | | Hopefully this is the last checkin for 2.1!
* Fix three PyChecker-detected gotchas.Jeremy Hylton2001-04-161-4/+10
| | | | | Import OPT_ symbols from _symtable. Define has_exec() and has_import_star().
* Export three optimization (fast locals) flagsJeremy Hylton2001-04-161-0/+4
|
* Update Windows installer & buildno for 2.1 final.Tim Peters2001-04-163-4/+6
|
* In walk(), don't die when os.lstat() raises os.error, e.g. because aGuido van Rossum2001-04-161-1/+4
| | | | | | | | | file was deleted by a previous call to the visitor function. This used to be the behavior in 1.5.2 and before, but a patch to avoid making two stat() calls accidentally broke this in 2.0. Moshe, this would be a good one for 2.0.1 too!
* Update the version to 2.1final (again :-).Guido van Rossum2001-04-161-4/+4
|
* Add a test case for Weak*Dictionary.update() that would have caught aFred Drake2001-04-161-0/+25
| | | | recently reported bug; also exposed some other bugs in the implementation.
* Weak*Dictionary.update(): Fix calls to [].append() to only have oneFred Drake2001-04-161-4/+15
| | | | | | | | parameter. Weak*Dictionary.get(): Make the second parameter optional. WeakKeyDictionary.has_key(), .keys(): Make these actually work!
* Implement Mark Favas's suggestion. There's a clear bug in _group():Guido van Rossum2001-04-161-1/+1
| | | | | | | | | | its first return statement returns a single value while its caller always expects it to return a tuple of two items. Fix this by returning (s, 0) instead. This won't make the locale test on Irix succeed, but now it will fail because of a bug in the platform's en_US locale rather than because of a bug in the locale module.
* Update document for the actual 2.1rc1Andrew M. Kuchling2001-04-161-6/+13
|
* This commit was manufactured by cvs2svn to create tag 'r21c2'.v2.1c2cvs2svn2001-04-161-0/+1
|
* This is (hopefully) last checkin before releasing 2.1c2 -- get rid ofGuido van Rossum2001-04-161-21/+21
| | | | trailing whitespace.
* Added news for 2.1c2.Guido van Rossum2001-04-161-11/+192
| | | | Greatly updated news for 2.1c1 (!).
* Update Windows installer & build number to 2.1c2 release.Tim Peters2001-04-163-4/+6
|
* We need another release candidate after so many "small" changes.Guido van Rossum2001-04-161-2/+2
| | | | DO NOT CHECK ANYTHHING IN FROM NOW ON WITHOUT ASKING ME.
* Change the test data to ask for class C from module __main__ ratherGuido van Rossum2001-04-161-2/+3
| | | | | | than from module pickletester. Using the latter turned out to cause the test to break when invoked as "import test.test_pickle" or "import test.autotest".
* Reverting Moshe's EGD patch *and* Martin's patch to make it work withGuido van Rossum2001-04-161-34/+0
| | | | | | | | | | OpenSSL versions beore 0.9.5. This just is too experimental to be worth it, especially since the user would have to do some severe hacking of the Modules/Setup file to even enable the EGD code, and without the EGD code it would always spit out a warning on some systems -- even when socket.ssl() is not used. Fixing that properly is not my job; the EGD patch is clearly not so important that it should hold up the 2.1 release.
* Tim pointed out a remaining vulnerability in popitem(): theGuido van Rossum2001-04-161-5/+6
| | | | | | | | | | | PyTuple_New() could *conceivably* clear the dict, so move the test for an empty dict after the tuple allocation. It means that we waste time allocating and deallocating a 2-tuple when the dict is empty, but who cares. It also means that when the dict is empty *and* there's no memory to allocate a 2-tuple, we raise MemoryError, not KeyError -- but that may actually a good idea: if there's no room for a lousy 2-tuple, what are the chances that there's room for a KeyError instance?
* Tentative fix for a problem that Tim discovered at the last moment,Guido van Rossum2001-04-151-61/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and reported to python-dev: because we were calling dict_resize() in PyDict_Next(), and because GC's dict_traverse() uses PyDict_Next(), and because PyTuple_New() can cause GC, and because dict_items() calls PyTuple_New(), it was possible for dict_items() to have the dict resized right under its nose. The solution is convoluted, and touches several places: keys(), values(), items(), popitem(), PyDict_Next(), and PyDict_SetItem(). There are two parts to it. First, we no longer call dict_resize() in PyDict_Next(), which seems to solve the immediate problem. But then PyDict_SetItem() must have a different policy about when *it* calls dict_resize(), because we want to guarantee (e.g. for an algorithm that Jeremy uses in the compiler) that you can loop over a dict using PyDict_Next() and make changes to the dict as long as those changes are only value replacements for existing keys using PyDict_SetItem(). This is done by resizing *after* the insertion instead of before, and by remembering the size before we insert the item, and if the size is still the same, we don't bother to even check if we might need to resize. An additional detail is that if the dict starts out empty, we must still resize it before the insertion. That was the first part. :-) The second part is to make keys(), values(), items(), and popitem() safe against side effects on the dict caused by allocations, under the assumption that if the GC can cause arbitrary Python code to run, it can cause other threads to run, and it's not inconceivable that our dict could be resized -- it would be insane to write code that relies on this, but not all code is sane. Now, I have this nagging feeling that the loops in lookdict probably are blissfully assuming that doing a simple key comparison does not change the dict's size. This is not necessarily true (the keys could be class instances after all). But that's a battle for another day.
* SF bug reporters.Guido van Rossum2001-04-151-0/+2
|
* Fix SF bug [ #416231 ] urllib.basejoin fails to apply some ../.Guido van Rossum2001-04-151-0/+2
| | | | Reported by Juan M. Bello Rivas.
* SRE: made "copyright" string static, to avoid potential linkingFredrik Lundh2001-04-151-1/+8
| | | | conflicts.
* Patch by Mark Favas to ensure that the zlib we find is 1.1.3 orGuido van Rossum2001-04-151-3/+17
| | | | | | | | | | later. This assumes that zlib.h has a line of the form #define ZLIB_VERSION "1.1.3" This solves the problem where a zlib installation is found but it is an older version -- this would break the build, while a better solution is to simply ignore that zlib installation.
* Get rid of the seek() method on the _Mailbox class. This was aGuido van Rossum2001-04-151-8/+0
| | | | | | | | | | | | cut-and-paste copy of the seek() method on the _Subfile class, but it didn't make one bit of sense: it sets self.pos, which is not used in this class or its subclasses, and it uses self.start and self.stop, which aren't defined on this class or its subclasses. This is purely my own fault -- I added this in rev 1.4 and apparently never tried to use it. Since it's not documented, and of very questionable use given that there's no tell(), I'm ripping it out. This resolves SF bug 416199 by Andrew Dalke: mailbox.py seek problems.
* In order to make this test work on Windows, the test locale has to beGuido van Rossum2001-04-151-2/+7
| | | | | set to 'en' there -- Windows does not understand the 'en_US' locale. The test succeeds there.
* Fix typo (missing "req." prefix on error_302_dict) found by NeilGuido van Rossum2001-04-151-1/+2
| | | | Norwitz's PyChecker.
* Fix typo in exception name (UnimplementedError should beGuido van Rossum2001-04-151-2/+2
| | | | NotImplementedError) found by Neil Norwitz's PyChecker.
* Fix typo in exception name (SGMLParserError should be SGMLParseError)Guido van Rossum2001-04-151-1/+1
| | | | found by Neil Norwitz's PyChecker.
* Fix typo in attribute name (file should be filename) found byGuido van Rossum2001-04-151-1/+1
| | | | Neil Norwitz's PyChecker.
* Fix typo in attribute name (chunk_size should be chunksize) found byGuido van Rossum2001-04-151-1/+1
| | | | Neil Norwitz's PyChecker.
* - Typo in message for TestCase.failIfEqual()Steve Purcell2001-04-151-2/+1
| | | | - Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)
* Set the SO_REUSEADDR socket option in the server thread -- this seemsGuido van Rossum2001-04-151-0/+1
| | | | | needed on some platforms (e.g. Solaris 8) when the test is run twice in quick succession.
* Bump version number and set date.Fred Drake2001-04-142-3/+3
|
* Remove shared libraries as part of "make clean" rather than in "makeGuido van Rossum2001-04-141-1/+2
| | | | | clobber". This is done so that after a "make clean", setup.py will also recompile all extensions.