summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improved clarity and thoroughness of docstring.Raymond Hettinger2002-11-131-20/+41
| | | | | | | | Added design notes in comments. Used better variable names. Eliminated the unsavory "pool[-k:]" which was an aspiring bug (for k==0). Used if/else to show the two algorithms in parallel style. Added one more test assertion.
* Clarify that PyImport_AddModule() and PyImport_ExecCodeModule() don'tFred Drake2002-11-131-3/+7
| | | | | | add any package support structure even if a dotted-name is passed for the module. Closes SF bug #424106.
* Normalize whitespace.Fred Drake2002-11-131-61/+62
| | | | Fix a number of markup consistency buglets.
* Fix typo in comment.Fred Drake2002-11-131-2/+2
|
* Update fileAndrew M. Kuchling2002-11-131-10/+14
|
* Docstring typo fixAndrew M. Kuchling2002-11-131-1/+1
|
* Fill out the 'Porting' sectionAndrew M. Kuchling2002-11-131-2/+62
| | | | Add random.sample()
* The libsocket/libnsl problem is specific to IRIX 4. Confirmed by Tim Rice.Martin v. Löwis2002-11-132-3/+3
|
* Fix SF # 464405, freeze doesn't like DOS files on LinuxNeal Norwitz2002-11-121-2/+2
| | | | Use universal newline support when opening a file for freezing.
* Clarified meaning of \w and \W with respect to the UNICODE and LOCALE flags.Fred Drake2002-11-121-5/+5
| | | | Closes SF bug #635595.
* SF # 627900, Bytecode copy bug in freezeNeal Norwitz2002-11-121-1/+2
| | | | | Pass co_freevars and co_cellvars to new.code(). Will backport.
* Fix SF # 635969, No error "not all arguments converted"Neal Norwitz2002-11-123-2/+12
| | | | | | | | | When mwh added extended slicing, strings and unicode became mappings. Thus, dict was set which prevented an error when doing: newstr = 'format without a percent' % string_value This fix raises an exception again when there are no formats and % with a string value.
* Handle the Content-Type header a little more appropriately: if itFred Drake2002-11-121-0/+3
| | | | | | contains options, drop them to get the major/minor content type. Modified from the supplied patch to support more whitespace variation. Closes SF patch #613605.
* SF patch 637176: list.sort crasherTim Peters2002-11-125-100/+78
| | | | | | | | | | | Armin Rigo's Draconian but effective fix for SF bug 453523: list.sort crasher slightly fiddled to catch more cases of list mutation. The dreaded internal "immutable list type" is gone! OTOH, if you look at a list *while* it's being sorted now, it will appear to be empty. Better than a core dump.
* Clarified documentation of tempnam().Fred Drake2002-11-121-0/+4
| | | | Closes SF bug #635656.
* Update text to refer to 2.2.2Andrew M. Kuchling2002-11-121-5/+5
| | | | | Remove an XXX item: I'm not going to write a section on the email package at this point
* Remove extra wordAndrew M. Kuchling2002-11-121-3/+3
|
* SF patch 629637: Add sample(population, k) method to the random module.Raymond Hettinger2002-11-123-2/+78
| | | | Used for random sampling without replacement.
* delete reference to building on Minix, which will be unsupported in 2.3Skip Montanaro2002-11-121-2/+0
|
* Use PyInt_AsLong instead of PyInt_AS_LONG after the call toWalter Dörwald2002-11-121-1/+1
| | | | | | | PyNumber_Int, because now PyNumber_Int might return a long, and PyInt_AsLong can handle that, whereas PyInt_AS_LONG can't. This closes SF bug #629989.
* Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.Martin v. Löwis2002-11-123-44/+43
|
* Forgot a paren in the MSVC + 64-bit + Intel case.Tim Peters2002-11-111-1/+1
|
* Added a blurb about the change to sys.version under MSVC.Tim Peters2002-11-111-0/+5
|
* Some help for SF 614770: MSVC 7.0 compiler supportTim Peters2002-11-111-20/+33
| | | | | | | | | | | | | | | This changes sys.version under Microsoft builds to include the MS compiler version number (_MSC_VER). Since VC 6 and VC 7 are apparently incompatible, and both can be installed on a single box, distutils needs some way to figure out which version of MSVC a given Python was compiled under. As also suggested by MvL, got rid of #ifdef'ery for the defunct _M_ALPHA target. Bugfix candidate? Hard to say. As far as I'm concerned, VC 7 wasn't a supported platform in the 2.2 line. If somebody thinks it should be, they can do the work.
* Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.hMartin v. Löwis2002-11-113-38/+19
| | | | Fixes #636431.
* Protect pyconfig.h from multiple inclusions.Martin v. Löwis2002-11-113-1/+16
|
* Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034Martin v. Löwis2002-11-111-2/+25
|
* Don't define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012].Martin v. Löwis2002-11-112-5/+27
|
* Check whether we can take the address of chown, link, and symlink.Martin v. Löwis2002-11-113-13/+175
|
* - Use imp to find appletrawmain.py in stead of hand-crafting the pathJack Jansen2002-11-111-2/+5
| | | | | to it. - Allow for symlinks in the applet template.
* - Building IDE is optional on waste being available, similar to buildingJack Jansen2002-11-111-21/+28
| | | | | | IDLE (it was a fatal error before) - Shuffled a few things around to facilitate the experimental building of MacPython for Jaguar's pre-installed python.
* Make private functions static so we don't pollute the namespaceNeal Norwitz2002-11-102-2/+3
|
* Allow both string and Unicode objects in levels.Martin v. Löwis2002-11-091-2/+2
|
* Don't try to convert the test filename to Unicode with -U.Martin v. Löwis2002-11-091-1/+6
|
* Fix typo.Martin v. Löwis2002-11-091-1/+1
|
* Look in db4 directories when checking for db4.Martin v. Löwis2002-11-091-4/+4
|
* Search for tix subdirectories. Fixes #564729. Will backport to 2.2.Martin v. Löwis2002-11-091-9/+14
|
* Restore to ANSI C.Michael W. Hudson2002-11-091-2/+2
|
* Install the bz2 DLL on Windows.Tim Peters2002-11-091-0/+10
|
* I already forgot what I changed -- it wasn't important <wink>.Tim Peters2002-11-091-2/+0
|
* OK -- all tests pass on Windows now. The rest were due to 3 moreTim Peters2002-11-091-22/+5
| | | | binary-vs-text-mode screwups.
* More tests run on Windows now. Something is still wrong here, but noTim Peters2002-11-091-27/+34
| | | | idea what. Added liberal XXX explanations for the next guy.
* Many changes to get this to pass on Windows, and to make it easier toTim Peters2002-11-091-11/+45
| | | | | | | | figure out what the code was doing. The fixes were a combination of closing open files before deletion, opening files in binary mode, and plain skipping things that can't work on Windows (BaseTest.decompress uses a process gimmick that doesn't exist on Windows, and, even if it did, assumes a "bunzip2" executable is on PATH).
* Whitespace normalization.Tim Peters2002-11-097-296/+296
|
* Comment out the test docstrings so we can at least tell which tests areTim Peters2002-11-091-28/+28
| | | | failing.
* Whitespace normalization.Tim Peters2002-11-097-28/+27
|
* Start building the bz2 module on Windows.Tim Peters2002-11-094-0/+140
| | | | | | | | | | CAUTION: The Python test still has many failures, but I'm out of time for this now (already took much longer than hoped to get this far). The base bz2 library does pass its own tests (see next). CAUTION: People building on Windows have to download and build tne bz2 compression libraries now. See PCbuild\readme.txt for complete instructions.
* Open at least one binary file in binary mode. This allows a few of theTim Peters2002-11-091-1/+1
| | | | bz2 tests to pass on Windows; most are still failing.
* bz2_compress/bz2_decompress: more casting away LONG_LONG forTim Peters2002-11-091-2/+2
| | | | _PyString_Resize calls.
* BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.Tim Peters2002-11-091-2/+2
|