summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove the __unicode__ method from exceptions. Allows unicode() to be calledBrett Cannon2006-09-092-2/+10
| | | | | | | on exception classes. Would require introducing a tp_unicode slot to make it work otherwise. Fixes bug #1551432 and will be backported.
* The cast function did not accept c_char_p or c_wchar_p instancesThomas Heller2006-09-071-0/+16
| | | | | as first argument, and failed with a 'bad argument to internal function' error message.
* Anonymous structure fields that have a bit-width specified did not work,Thomas Heller2006-09-071-0/+9
| | | | | | | and they gave a strange error message from PyArg_ParseTuple: function takes exactly 2 arguments (3 given). With tests.
* Fix the speed regression in inspect.py by adding another cache to speed up ↵Nick Coghlan2006-09-072-2/+28
| | | | getmodule(). Patch #1553314
* Fixed subprocess bug #1531862 again, after removing testsGustavo Niemeyer2006-09-072-8/+10
| | | | offending buildbot
* Fix missing import of the types module in logging.config.Georg Brandl2006-09-061-1/+1
|
* Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.Georg Brandl2006-09-061-26/+13
| | | | | Also make sure that every exception class has __module__ set to 'exceptions'.
* with and as are now keywords. There are some generated files I can't recreate.Neal Norwitz2006-09-063-7/+7
|
* Revert 51758 because it broke all the buildbotsNeal Norwitz2006-09-062-46/+8
|
* Fixing #1531862: Do not close standard file descriptors in theGustavo Niemeyer2006-09-062-8/+46
| | | | subprocess module.
* [Bug #1526834] Fix crash in pdb when you do 'b f(';Andrew M. Kuchling2006-09-051-1/+1
| | | | | the function name was placed into a regex pattern and the unbalanced paren caused re.compile() to report an error
* [Bug #1525469] SimpleXMLRPCServer still uses the sys.exc_{value,type} ↵Andrew M. Kuchling2006-09-051-2/+4
| | | | module-level globals instead of calling sys.exc_info(). Reported by Russell Warren
* Fix a few bugs on cjkcodecs found by Oren Tirosh:Hye-Shik Chang2006-09-052-0/+8
| | | | | | | | - gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly. - iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312 codepoints to conform the standard. - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 2013:2 codepoints now.
* Bug #1520864 (again): unpacking singleton tuples in list comprehensions andNeal Norwitz2006-09-051-0/+4
| | | | | | | | | | | | | 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-052-2/+2
|
* This was found by Guido AFAIK on p3yk (sic) branch.Neal Norwitz2006-09-051-1/+1
|
* Fix SF bug #1546288, crash in dict_equal.Neal Norwitz2006-09-051-1/+9
|
* Add missing svn:eol-style property to text files.Tim Peters2006-09-051-77/+77
|
* Whitespace normalization.Tim Peters2006-09-051-78/+77
|
* Fix endcase for str.rpartition()Raymond Hettinger2006-09-041-1/+1
|
* 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
|
* 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-021-0/+1
| | | | Needs backport to 2.5.1 and earlier.
* 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-312-15/+104
| | | | module and add unit tests. (python-dev discussion is ongoing regarding what we do about Python 2.5)
* 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.
* Whitespace normalization.Tim Peters2006-08-252-4/+4
|
* 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.
* Port _ctypes.pyd to win64 on AMD64.Thomas Heller2006-08-252-1/+4
|
* importing types is not necessary if we use isinstanceNeal Norwitz2006-08-251-2/+2
|
* Fix SF bug #1545837: array.array borks on deepcopy.Thomas Wouters2006-08-241-0/+7
| | | | | 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-231-14/+1
| | | | | | | 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-231-1/+14
| | | | | | 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
|
* Expose column offset information in parse trees.Jeremy Hylton2006-08-221-0/+38
|
* Patch #1541585: fix buffer overrun when performing repr() onNeal Norwitz2006-08-211-0/+4
| | | | | | a unicode string in a build with wide unicode (UCS-4) support. This code could be improved, so add an XXX comment.
* Patch #1542451: disallow continue anywhere under a finallyNeal Norwitz2006-08-211-0/+87
| | | | | | I'm undecided if this should be backported to 2.5 or 2.5.1. Armin suggested to wait (I'm of the same opinion). Thomas W thinks it's fine to go in 2.5.
* Fix bug #1543303, tarfile adds padding that breaks gunzip.Neal Norwitz2006-08-212-3/+21
| | | | | | Patch # 1543897. Will backport to 2.5
* Patch #1542948: fix urllib2 header casing issue. With new test.Georg Brandl2006-08-202-20/+85
|
* Updating IDLE's version number to match Python's (as per python-devAnthony Baxter2006-08-182-1/+10
| | | | discussion).
* Bug #1541863: uuid.uuid1 failed to generate unique identifiersMartin v. Löwis2006-08-182-3/+3
| | | | on systems with low clock resolution.
* Fix a bug in the ``compiler`` package that caused invalid code to beNeil Schemenauer2006-08-164-9/+23
| | | | generated for generator expressions.
* File menu hotkeys: there were three 'p' assignments. Reassign theKurt B. Kaiser2006-08-163-3/+7
| | | | | | | | | 'Save Copy As' and 'Print' hotkeys to 'y' and 't'. Change the Shell menu hotkey from 's' to 'l'. M Bindings.py M PyShell.py M NEWS.txt
* SF#1534630Fredrik Lundh2006-08-161-0/+11
| | | | ignore data that arrives before the opening start tag
* Remove the special casing of Py_None when converting the return valueThomas Heller2006-08-162-0/+2
| | | | | | | | | | of the Python part of a callback function to C. If it cannot be converted, call PyErr_WriteUnraisable with the exception we got. Before, arbitrary data has been passed to the calling C code in this case. (I'm not really sure the NEWS entry is understandable, but I cannot find better words)