Commit graph

35785 commits

Author SHA1 Message Date
Nick Coghlan
c495c66ea9 Fix the speed regression in inspect.py by adding another cache to speed up getmodule(). Patch #1553314 2006-09-07 10:50:34 +00:00
Raymond Hettinger
c563a1c32b Fix refcounts and add error checks. 2006-09-07 02:42:48 +00:00
Gustavo Niemeyer
c36bede6ff Fixed subprocess bug #1531862 again, after removing tests
offending buildbot
2006-09-07 00:48:33 +00:00
Marc-André Lemburg
9614868ece Add news item for bug fix of SF bug report #1546372. 2006-09-06 20:40:22 +00:00
Georg Brandl
4e933137af Fix missing import of the types module in logging.config. 2006-09-06 20:05:58 +00:00
Georg Brandl
38f6237dfe Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.
Also make sure that every exception class has __module__ set to
'exceptions'.
2006-09-06 06:50:05 +00:00
Neal Norwitz
ca460d9722 with and as are now keywords. There are some generated files I can't recreate. 2006-09-06 06:28:06 +00:00
Georg Brandl
98775dfebc Bug #1550983: emit better error messages for erroneous relative
imports (if not in package and if beyond toplevel package).
2006-09-06 06:09:31 +00:00
Georg Brandl
74bb783c2f Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom().
2006-09-06 06:03:59 +00:00
Neal Norwitz
314bef9fff Revert 51758 because it broke all the buildbots 2006-09-06 03:58:34 +00:00
Gustavo Niemeyer
8cb64eaaf3 Fixing #1531862: Do not close standard file descriptors in the
subprocess module.
2006-09-06 01:58:52 +00:00
Kristján Valur Jónsson
b15a0ccf6d Update the PCBuild8 solution.
Facilitate cross-compilation by having binaries in separate Win32 and x64 directories.
Rationalized configs by making proper use of platforms/configurations.
Remove pythoncore_pgo project.
Add new PGIRelease and PGORelease configurations to perform Profile Guided Optimisation.
Removed I64 support, but this can be easily added by copying the x64 platform settings.
2006-09-05 17:58:12 +00:00
Andrew M. Kuchling
e6728252a3 [Bug #1526834] Fix crash in pdb when you do 'b f(';
the function name was placed into a regex pattern and the unbalanced paren
caused re.compile() to report an error
2006-09-05 13:19:18 +00:00
Andrew M. Kuchling
a5453c48d5 [Bug #1525469] SimpleXMLRPCServer still uses the sys.exc_{value,type} module-level globals instead of calling sys.exc_info(). Reported by Russell Warren 2006-09-05 13:15:41 +00:00
Andrew M. Kuchling
a60b60e72e Rearrange example a bit, and show rpartition() when separator is not found 2006-09-05 13:02:40 +00:00
Georg Brandl
c48c9e266f Bug #1552618: change docs of dict.has_key() to reflect recommendation
to use "in".
2006-09-05 12:44:58 +00:00
Hye-Shik Chang
2cad3e9299 Fix a typo: 2013 -> 0213 2006-09-05 12:14:57 +00:00
Hye-Shik Chang
199f1db1fa Fix a few bugs on cjkcodecs found by Oren Tirosh:
- 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.
2006-09-05 12:07:09 +00:00
Neal Norwitz
d042132268 M-x untabify 2006-09-05 04:00:12 +00:00
Neal Norwitz
e4d4f00aee Add a comment about some refactoring. (There's probably more that should be done.) I will reformat this file in the next checkin due to the inconsistent tabs/spaces. 2006-09-05 03:58:26 +00:00
Neal Norwitz
dac090d3e6 Bug #1520864 (again): unpacking singleton tuples in list comprehensions and
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).
2006-09-05 03:53:08 +00:00
Neal Norwitz
4bc2c0919b Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34]. 2006-09-05 02:57:01 +00:00
Neal Norwitz
d34e4272e0 Add a NEWS entry for str.rpartition() change 2006-09-05 02:36:20 +00:00
Neal Norwitz
919d5cc163 This was found by Guido AFAIK on p3yk (sic) branch. 2006-09-05 02:35:08 +00:00
Neal Norwitz
477ca1c953 Fix SF #1552093, eval docstring typo (3 ps in mapping) 2006-09-05 02:25:41 +00:00
Neal Norwitz
a22975fb35 Fix SF bug #1546288, crash in dict_equal. 2006-09-05 02:24:03 +00:00
Tim Peters
c4a70fbb78 Add missing svn:eol-style property to text files. 2006-09-05 02:22:17 +00:00
Tim Peters
dd5e7b9ae3 Whitespace normalization. 2006-09-05 02:21:19 +00:00
Tim Peters
c10c9d0d6b "Conceptual" merge of rev 51711 from the 2.5 branch.
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.
2006-09-05 02:18:09 +00:00
Raymond Hettinger
a0c95fa4d8 Fix endcase for str.rpartition() 2006-09-04 15:32:48 +00:00
Nick Coghlan
bb0996ccc5 NEWS entry on trunk for decimal module changes 2006-09-03 01:20:46 +00:00
Nick Coghlan
5a901c62cc Typo fix for decimal docs 2006-09-03 01:06:07 +00:00
Nick Coghlan
f1f42d850f Fix final documentation nits before backporting decimal module fixes to 2.5 2006-09-03 01:02:00 +00:00
Neal Norwitz
c1120b4b66 Hmm, this test has failed at least twice recently on the OpenBSD and
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.
2006-09-02 19:40:19 +00:00
Neal Norwitz
681d86743c Add missing word in comment 2006-09-02 18:51:34 +00:00
Raymond Hettinger
68b6d3b85a Fix documentation nits for decimal context managers. 2006-09-02 17:07:23 +00:00
Nick Coghlan
e7877d930c Further corrections to the decimal module context management documentation 2006-09-02 04:04:18 +00:00
Nick Coghlan
ced1218dd1 Make decimal.ContextManager a private implementation detail of decimal.localcontext() 2006-09-02 03:54:17 +00:00
Neal Norwitz
69e8897505 Bug #1550714: fix SystemError from itertools.tee on negative value for n.
Needs backport to 2.5.1 and earlier.
2006-09-02 02:58:13 +00:00
Neal Norwitz
6aefa916a9 Bug #1548092: fix curses.tparm seg fault on invalid input. Needs backport to 2.5.1 and earlier. 2006-09-02 02:50:35 +00:00
Neal Norwitz
d7df712ed7 SF #1547931, fix typo (missing and). Will backport to 2.5 2006-09-02 02:43:17 +00:00
Georg Brandl
f29882d8e7 evalfile() should be execfile(). 2006-09-01 22:30:52 +00:00
Fred Drake
eef345aa97 - SF patch #1550263: Enhance and correct unittest docs
- various minor cleanups for improved consistency
2006-09-01 03:57:19 +00:00
Brett Cannon
76b24c0926 Have pre-existing C files use 8 spaces indents (to match old PEP 7 style), but
have all new files use 4 spaces (to match current PEP 7 style).
2006-08-31 22:42:37 +00:00
Brett Cannon
6edd150172 Fix comment about indentation level in C files. 2006-08-31 21:47:52 +00:00
Brett Cannon
2b3666f737 Make sure memory is properly cleaned up in file_init.
Backport candidate.
2006-08-31 18:54:26 +00:00
Nick Coghlan
db38588a25 Remove the old decimal context management tests from test_contextlib (guess who didn't run the test suite before committing...) 2006-08-31 12:51:25 +00:00
Nick Coghlan
8b6999b4c5 Fix the wrongheaded implementation of context management in the decimal module and add unit tests. (python-dev discussion is ongoing regarding what we do about Python 2.5) 2006-08-31 12:00:43 +00:00
Armin Rigo
f580b104a4 Doc fix: hashlib objects don't always return a digest of 16 bytes.
Backport candidate for 2.5.
2006-08-31 08:51:06 +00:00
Marc-André Lemburg
f6fc454084 Fix a buglet in the error reporting (SF bug report #1546372).
This should probably go into Python 2.5 or 2.5.1 as well.
2006-08-29 10:34:12 +00:00