summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* M-x untabifyNeal Norwitz2006-09-051-821/+821
|
* Add a comment about some refactoring. (There's probably more that should be ↵Neal Norwitz2006-09-051-6/+5
| | | | done.) I will reformat this file in the next checkin due to the inconsistent tabs/spaces.
* Bug #1520864 (again): unpacking singleton tuples in list comprehensions andNeal Norwitz2006-09-054-5/+23
| | | | | | | | | | | | | generator expressions (x for x, in ... ) works again. Sigh, I only fixed for loops the first time, not list comps and genexprs too. I couldn't find any more unpacking cases where there is a similar bug lurking. This code should be refactored to eliminate the duplication. I'm sure the listcomp/genexpr code can be refactored. I'm not sure if the for loop can re-use any of the same code though. Will backport to 2.5 (the only place it matters).
* Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].Neal Norwitz2006-09-055-4/+6
|
* Add a NEWS entry for str.rpartition() changeNeal Norwitz2006-09-051-0/+3
|
* This was found by Guido AFAIK on p3yk (sic) branch.Neal Norwitz2006-09-052-1/+4
|
* Fix SF #1552093, eval docstring typo (3 ps in mapping)Neal Norwitz2006-09-051-1/+1
|
* Fix SF bug #1546288, crash in dict_equal.Neal Norwitz2006-09-053-2/+15
|
* Add missing svn:eol-style property to text files.Tim Peters2006-09-051-77/+77
|
* Whitespace normalization.Tim Peters2006-09-051-78/+77
|
* "Conceptual" merge of rev 51711 from the 2.5 branch.Tim Peters2006-09-052-3/+6
| | | | | | | | | | | | i_divmod(): As discussed on Python-Dev, changed the overflow checking to live happily with recent gcc optimizations that assume signed integer arithmetic never overflows. This differs from the corresponding change on the 2.5 and 2.4 branches, using a less obscure approach, but one that /may/ tickle platform idiocies in their definitions of LONG_MIN. The 2.4 + 2.5 change avoided introducing a dependence on LONG_MIN, at the cost of substantially goofier code.
* Fix endcase for str.rpartition()Raymond Hettinger2006-09-045-11/+11
|
* NEWS entry on trunk for decimal module changesNick Coghlan2006-09-031-2/+5
|
* Typo fix for decimal docsNick Coghlan2006-09-031-1/+1
|
* Fix final documentation nits before backporting decimal module fixes to 2.5Nick Coghlan2006-09-032-6/+7
|
* Hmm, this test has failed at least twice recently on the OpenBSD andNeal Norwitz2006-09-021-1/+12
| | | | | | | Debian sparc buildbots. Since this goes through a lot of tests and hits the disk a lot it could be slow (especially if NFS is involved). I'm not sure if that's the problem, but printing periodic msgs shouldn't hurt. The code was stolen from test_compiler.
* Add missing word in commentNeal Norwitz2006-09-021-1/+1
|
* Fix documentation nits for decimal context managers.Raymond Hettinger2006-09-022-16/+11
|
* Further corrections to the decimal module context management documentationNick Coghlan2006-09-021-14/+11
|
* Make decimal.ContextManager a private implementation detail of ↵Nick Coghlan2006-09-022-37/+7
| | | | decimal.localcontext()
* Bug #1550714: fix SystemError from itertools.tee on negative value for n.Neal Norwitz2006-09-023-2/+9
| | | | Needs backport to 2.5.1 and earlier.
* Bug #1548092: fix curses.tparm seg fault on invalid input. Needs backport ↵Neal Norwitz2006-09-022-0/+6
| | | | to 2.5.1 and earlier.
* SF #1547931, fix typo (missing and). Will backport to 2.5Neal Norwitz2006-09-021-1/+1
|
* evalfile() should be execfile().Georg Brandl2006-09-011-1/+1
|
* - SF patch #1550263: Enhance and correct unittest docsFred Drake2006-09-011-32/+70
| | | | - various minor cleanups for improved consistency
* Have pre-existing C files use 8 spaces indents (to match old PEP 7 style), butBrett Cannon2006-08-311-2/+3
| | | | have all new files use 4 spaces (to match current PEP 7 style).
* Fix comment about indentation level in C files.Brett Cannon2006-08-311-1/+1
|
* Make sure memory is properly cleaned up in file_init.Brett Cannon2006-08-311-1/+1
| | | | Backport candidate.
* Remove the old decimal context management tests from test_contextlib (guess ↵Nick Coghlan2006-08-311-26/+0
| | | | who didn't run the test suite before committing...)
* Fix the wrongheaded implementation of context management in the decimal ↵Nick Coghlan2006-08-313-25/+122
| | | | module and add unit tests. (python-dev discussion is ongoing regarding what we do about Python 2.5)
* Doc fix: hashlib objects don't always return a digest of 16 bytes.Armin Rigo2006-08-311-2/+2
| | | | Backport candidate for 2.5.
* Fix a buglet in the error reporting (SF bug report #1546372).Marc-André Lemburg2006-08-291-2/+7
| | | | This should probably go into Python 2.5 or 2.5.1 as well.
* Fix a couple of typos.Neal Norwitz2006-08-291-2/+2
|
* - Move functions common to all path modules into genericpath.py and have theJack Diederich2006-08-266-476/+273
| | | | | OS speicifc path modules import them. - Have os2emxpath import common functions fron ntpath instead of using copies
* A new test here relied on preserving invisible trailingTim Peters2006-08-251-2/+3
| | | | whitespace in expected output. Stop that.
* Add missing svn:eol-style property to text files.Tim Peters2006-08-250-0/+0
|
* Whitespace normalization.Tim Peters2006-08-253-5/+5
|
* The regular expression engine in '_sre' can segfault when interpretingArmin Rigo2006-08-251-0/+47
| | | | | bogus bytecode. It is unclear whether this is a real bug or a "won't fix" case like bogus_code_obj.py.
* Build _ctypes.pyd for win AMD64 into the MSVC project file.Thomas Heller2006-08-252-1/+54
| | | | | | Since MSVC doesn't know about .asm files, a helper batch file is needed to find ml64.exe in predefined locations. The helper script hardcodes the path to the MS Platform SDK.
* Add missing file for _ctypes.pyd port to win64 on AMD64.Thomas Heller2006-08-251-0/+156
|
* Port _ctypes.pyd to win64 on AMD64.Thomas Heller2006-08-2510-43/+173
|
* importing types is not necessary if we use isinstanceNeal Norwitz2006-08-251-2/+2
|
* Patch #1545507: Exclude ctypes package in Win64 MSI file.Martin v. Löwis2006-08-251-0/+8
| | | | Will backport to 2.5.
* Fix SF bug #1545837: array.array borks on deepcopy.Thomas Wouters2006-08-243-1/+9
| | | | | array.__deepcopy__() needs to take an argument, even if it doesn't actually use it. Will backport to 2.5 and 2.4 (if applicable.)
* Reverting the patch that tried to fix the issue whereby x**2 raisesAlex Martelli2006-08-232-17/+4
| | | | | | | OverflowError while x*x succeeds and produces infinity; apparently these inconsistencies cannot be fixed across ``all'' platforms and there's a widespread feeling that therefore ``every'' platform should keep suffering forevermore. Ah well.
* Replace dead code with an assert.Jeremy Hylton2006-08-231-4/+1
| | | | | Now that COMMENT tokens are reliably followed by NL or NEWLINE, there is never a need to add extra newlines in untokenize.
* Bug fixes large and small for tokenize.Jeremy Hylton2006-08-233-66/+193
| | | | | | | | | | | | | | | | | | | | Small: Always generate a NL or NEWLINE token following a COMMENT token. The old code did not generate an NL token if the comment was on a line by itself. Large: The output of untokenize() will now match the input exactly if it is passed the full token sequence. The old, crufty output is still generated if a limited input sequence is provided, where limited means that it does not include position information for tokens. Remaining bug: There is no CONTINUATION token (\) so there is no way for untokenize() to handle such code. Also, expanded the number of doctests in hopes of eventually removing the old-style tests that compare against a golden file. Bug fix candidate for Python 2.5.1. (Sigh.)
* x**2 should about equal x*x (including for a float x such that the result isAlex Martelli2006-08-232-4/+17
| | | | | | inf) but didn't; added a test to test_float to verify that, and ignored the ERANGE value for errno in the pow operation to make the new test pass (with help from Marilyn Davis at the Google Python Sprint -- thanks!).
* Baby steps towards better tests for tokenizeJeremy Hylton2006-08-231-3/+46
|
* Move functional howto into trunkAndrew M. Kuchling2006-08-221-0/+1279
|