Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
080b094 More difflib examples. Written for GHOP by Josip Dzolonga. 23 February 2008, 15:19:54 UTC
ad61bc8 #2067: file.__exit__() now calls subclasses' close() method. 23 February 2008, 15:11:18 UTC
7e251e8 Issue 1089358. Adds the siginterrupt() function, that is just a wrapper around the system call with the same name. Also added test cases, doc changes and NEWS entry. Thanks Jason and Ralf Schmitt. 23 February 2008, 15:07:35 UTC
57826cf #2165: fix test_logging failure on some machines. 23 February 2008, 15:06:25 UTC
1647923 #1492: allow overriding BaseHTTPServer's content type for error messages. 23 February 2008, 15:02:28 UTC
5224d28 Patch #1759: Backport of PEP 3129 class decorators with some help from Georg 23 February 2008, 15:01:05 UTC
b12f0b5 Issue 1781. Now ConfigParser.add_section does not let you add a DEFAULT section any more, because it duplicated sections with the rest of the machinery. Thanks Tim Lesher and Manuel Kaufmann. 23 February 2008, 12:46:10 UTC
1660933 Issue 1776581. Minor corrections to smtplib, and two small tests. Thanks Alan McIntyre. 23 February 2008, 12:27:17 UTC
fc2d010 Issue 1881. Increased the stack limit from 500 to 1500. Also added a test for this (and because of this test you'll see in stderr a message that parser.c sends before raising MemoryError). Thanks Ralf Schmitt. 23 February 2008, 12:01:13 UTC
7832d4d Add recipe using itertools.product(). 23 February 2008, 10:04:15 UTC
532316d Add more comments 23 February 2008, 04:03:50 UTC
a73fbe7 Added future_builtins, which contains PEP 3127 compatible versions of hex() and oct(). 23 February 2008, 03:09:44 UTC
73d7963 Improve the implementation of itertools.product() * Fix-up issues pointed-out by Neal Norwitz. * Add extensive comments. * The lz->result variable is now a tuple instead of a list. * Use fast macro getitem/setitem calls so most code is in-line. * Re-use the result tuple if available (modify in-place instead of copy). 23 February 2008, 02:20:41 UTC
c5705a8 Document itertools.product(). 22 February 2008, 19:50:06 UTC
fb0742f Tests for bin() builtin. These need to get merged into py3k, which has no tests for bin. 22 February 2008, 17:43:17 UTC
3cd8194 Added bin() builtin. I'm going to check in the tests in a seperate checkin, because the builtin doesn't need to be ported to py3k, but the tests are missing in py3k and need to be merged there. 22 February 2008, 16:30:22 UTC
1699db1 Another fix. 22 February 2008, 12:57:05 UTC
4e37c66 Don't reference pyshell. 22 February 2008, 12:56:34 UTC
907a720 A lot more typo fixes by Ori Avtalion. 22 February 2008, 12:31:45 UTC
a14a4e8 Try to make command line error messages from runpy easier to understand (and suppress traceback cruft from the implicitly invoked runpy machinery) 22 February 2008, 10:54:06 UTC
50986cc First draft for itertools.product(). Docs and other updates forthcoming. 22 February 2008, 03:16:42 UTC
12db865 Part of #2154: minimal syntax fixes in doc example snippets. 21 February 2008, 20:38:13 UTC
359b9e9 #2079: typo in userdict docs. 21 February 2008, 20:33:38 UTC
ce584d4 Moved test_format into the correct TestCase. 21 February 2008, 20:17:08 UTC
af16ece Fix a few typos and layout glitches (more work is needed). Move 2.5 news to Misc/HISTORY. 21 February 2008, 19:46:35 UTC
31ce5cb Update more instances of has_key(). 21 February 2008, 19:24:53 UTC
8982cf5 Replace 'has_key()' with 'in'. Replace 'raise Error, stuff' with 'raise Error(stuff)'. 21 February 2008, 18:52:20 UTC
981f318 configure.ac: Remove the configure check for _Bool, it is already done in the top-level Python configure script. configure, fficonfig.h.in: regenerated. 21 February 2008, 18:28:48 UTC
8bc0965 Removed uses of dict.has_key() from distutils, and uses of callable() from copy_reg.py, so the interpreter now starts up without warnings when '-3' is given. More work like this needs to be done in the rest of the stdlib. 21 February 2008, 18:18:37 UTC
b5e2684 Remove news about float repr() -- issue 1580 is still in limbo. 21 February 2008, 17:46:16 UTC
2d6c13e Close manifest file. This change doesn't make any difference to CPython, but is a necessary fix for Jython. 21 February 2008, 14:23:38 UTC
8a803dd Now that PyOS_ascii_formatd supports the 'n' format, simplify the float formatting code to just call it. 20 February 2008, 23:39:28 UTC
7ef40bf Trim leading zeros from a floating point exponent, per C99. See issue 1600. As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description). 20 February 2008, 23:34:22 UTC
e1b8e9c Fixes contributed by Ori Avtalion. 20 February 2008, 19:12:36 UTC
5a3c135 Added PEP 3101. 19 February 2008, 13:21:56 UTC
ba486c5 Added dependencies for stringobject.o. This should fix failing tests in test_unicode.py. 19 February 2008, 12:27:59 UTC
bc32fee Added code to correct combining str and unicode in ''.format(). Added test case. 18 February 2008, 18:02:34 UTC
5299935 Perform correct handling of stack overflow for windows: Catch the correct exception code and reset the overflow condition when handled. 18 February 2008, 17:40:47 UTC
d50a5f2 Temporarily removed float tests. See issue 1600. 18 February 2008, 14:25:02 UTC
d14600e Issue 1224. Now we support again the double slash in the URL. Thanks Anthony Lenton. 18 February 2008, 12:48:43 UTC
759bfc6 Issue #1916. Added isgenerator() and isgeneratorfunction() to inspect.py. Thanks Javi Mansilla for patch review and corrections. 18 February 2008, 03:43:43 UTC
b169eaa #2133: fix HTML color spec. 17 February 2008, 21:18:55 UTC
e7fa408 Compilation was broken on Windows since the introduction of Advanced String Formatting. Only PCBuild (vs9) was really tested. Changes for older compilers were done manually. 17 February 2008, 20:56:31 UTC
a9f7d62 Backport of PEP 3101, Advanced String Formatting, from py3k. Highlights: - Adding PyObject_Format. - Adding string.Format class. - Adding __format__ for str, unicode, int, long, float, datetime. - Adding builtin format. - Adding ''.format and u''.format. - str/unicode fixups for formatters. The files in Objects/stringlib that implement PEP 3101 (stringdefs.h, unicodedefs.h, formatter.h, string_format.h) are identical in trunk and py3k. Any changes from here on should be made to trunk, and changes will propogate to py3k). 17 February 2008, 19:46:49 UTC
e139688 Issue 2112. mmap does not raises EnvironmentError no more, but a subclass of it. Thanks John Lenton. 17 February 2008, 18:59:29 UTC
f88a077 Now we handle different the backup copy, because of security issues regarding user/group and permissions. Fixes 1050828. 17 February 2008, 16:21:13 UTC
27cca3c Fix function name. 17 February 2008, 15:14:10 UTC
5e203f5 #2131: note that codecs.open() always opens files in binary mode. 17 February 2008, 11:33:38 UTC
f9db8a3 Move test_logging over to doctest. Thanks to Christopher White from GHOP. 17 February 2008, 01:59:18 UTC
632fad3 Prevent a crash with nested scopes, again caused by calling Py_DECREF when the pointer is still present in the containing structure. 16 February 2008, 20:55:24 UTC
588ff93 Crashers of the day: Py_CLEAR must be used when there is a chance that the function can be called recursively. This was discussed in issue1020188. In python codebase, all occurrences of Py_[X]DECREF(xxx->yyy) are suspect, except when they appear in tp_new or tp_dealloc functions, or when the member cannot be of a user-defined class. Note that tp_init is not safe. I do have a (crashing) example for every changed line. Is it worth adding them to the test suite? Example: class SpecialStr(str): def __del__(self): s.close() import cStringIO s = cStringIO.StringIO(SpecialStr("text")) s.close() # Segfault 16 February 2008, 14:34:57 UTC
943321d #2120: broken links in advocacy document. 16 February 2008, 09:37:32 UTC
71fa93a Add __all__ to logging module. 16 February 2008, 01:22:54 UTC
64d6843 mmap.PROT_READ does not exists on win32; Skip this test created by r60830. 16 February 2008, 00:16:50 UTC
d8bcbf2 Re-enable tests, they were failing since gc.collect() clears the various freelists. They still remain fragile. For example, a call to assertEqual currently does not make any allocation (which surprised me at first). But this can change when gc.collect also deletes the numerous "zombie frames" attached to each function. 15 February 2008, 22:44:20 UTC
f05fa33 Configured selection highlighting colors were ignored; updating highlighting in the config dialog would cause non-Python files to be colored as if they were Python source; improve use of ColorDelagator. Patch 1334. Tal Einat. 15 February 2008, 22:25:09 UTC
e312cfd ScriptBinding event handlers weren't returning 'break'. Patch 2050, Tal Einat. 15 February 2008, 21:56:36 UTC
f67abcc Temporarily let these tests pass 15 February 2008, 21:27:44 UTC
60d6c7f Issue #2115: __slot__ attributes setting was 10x slower. Also correct a possible crash using ABCs. This change is exactly the same as an optimisation done 5 years ago, but on slot *access*: http://svn.python.org/view?view=rev&rev=28297 15 February 2008, 21:22:45 UTC
e9b9b35 Update example to match the current syntax. 15 February 2008, 21:21:25 UTC
0473517 Two new functions: * place_summary_first copies the regrtest summary to the front of the file making it easier to scan quickly for problems. * count_failures gets the actual count of the number of failing tests, not just a 1 (some failures) or 0 (no failures). 15 February 2008, 19:03:59 UTC
3f91437 In PyNumber_ToBase, changed from an assert to returning an error when PyObject_Index() returns something other than an int or long. It should never be possible to trigger this, as PyObject_Index checks to make sure it returns an int or long. 15 February 2008, 12:14:32 UTC
7adfad8 Bug #2111: mmap segfaults when trying to write a block opened with PROT_READ Thanks to Thomas Herve for the fix. 15 February 2008, 08:20:11 UTC
2f0da53 Fixed repr() and str() of complex numbers. Complex suffered from the same problem as floats but I forgot to test and fix them. 15 February 2008, 06:57:08 UTC
e247f00 Use a static and interned string for __subclasscheck__ and __instancecheck__ as suggested by Thomas Heller in #2115 14 February 2008, 22:40:11 UTC
e7fb0c5 Try to correct a markup error that does hide the following paragraph. 14 February 2008, 21:00:28 UTC
36316e3 No need to register subclass of ABCs. 14 February 2008, 19:30:30 UTC
5111c52 Fix markup 14 February 2008, 19:02:39 UTC
0cd7170 Simplify moneyfmt() recipe. 14 February 2008, 12:49:37 UTC
3b718a7 Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation. 14 February 2008, 12:47:33 UTC
50361d4 Fix markup. 14 February 2008, 12:05:42 UTC
d68bf02 Show how to remove exponents. 14 February 2008, 11:57:25 UTC
27a90d9 Improve rst markup 14 February 2008, 11:01:10 UTC
4631481 Add fixed-point examples to the decimal FAQ 14 February 2008, 10:46:57 UTC
1b56324 Add diagnostic message to help figure-out why SocketServer tests occasionally crash when trying to remove a pid that in not in the activechildren list. 14 February 2008, 09:32:45 UTC
339f5e3 Change simple instances (in Fraction) of self.numerator and self.denominator to self._numerator and self._denominator. This speeds abs() up from 12.2us to 10.8us and trunc() from 2.07us to 1.11us. This doesn't change _add and friends because they're more complicated. 14 February 2008, 07:49:25 UTC
1c214d6 Performance optimizations on Fraction's constructor. ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3)` 31.7 usec/loop -> 9.2 usec/loop ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3, 2)'` 27.7 usec/loop -> 9.32 usec/loop ./python.exe -m timeit -s 'from fractions import Fraction; f = Fraction(3, 2)' 'Fraction(f)' 31.9 usec/loop -> 14.3 usec/loop 14 February 2008, 06:12:24 UTC
abe3237 Fix decimal repr which should have used single quotes like other reprs. 14 February 2008, 02:41:22 UTC
ddb164a Update notes on Decimal. 14 February 2008, 01:08:02 UTC
ac45aff Bring NEWS.txt up to date from check-in msgs. 14 February 2008, 00:08:55 UTC
4516451 Make the test somewhat clearer (I hope). 13 February 2008, 20:36:51 UTC
a06a1a8 Add pickle support to ctypes types. 13 February 2008, 20:21:53 UTC
91a1dec Fix --enable-universalsdk and its comment line so that zsh's flag completion works. Thanks to Jeroen Ruigrok van der Werven for the fix. 13 February 2008, 19:15:44 UTC
57bd60b Working on issue #1762: Brought ./python.exe -m timeit -s 'from fractions import Fraction; f = Fraction(3, 2)' 'isinstance(3, Fraction); isinstance(f, Fraction)' from 12.3 usec/loop to 3.44 usec/loop and ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3, 2)' from 48.8 usec to 23.6 usec by avoiding genexps and sets in __instancecheck__ and inlining the common case from __subclasscheck__. 13 February 2008, 17:58:04 UTC
0a40ffb #2063: correct order of utime and stime in os.times() result on Windows. 13 February 2008, 07:20:22 UTC
5f8bd37 Replace R=fractions.Fraction with F=fractions.Fraction in test_fractions.py. This should have been part of the name change from Rational to Fraction. 12 February 2008, 21:46:54 UTC
0aa52a1 Revert change in r60712: turn alternate constructors back into classmethods instead of staticmethods. 12 February 2008, 21:40:53 UTC
e1b8247 Implementation of Fraction.limit_denominator. Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction 12 February 2008, 21:31:59 UTC
a37430a dict.copy() rises from the ashes. Revert r60687. 12 February 2008, 19:05:36 UTC
dad88dc Patch #1966: Break infinite loop in httplib when the servers implements the chunked encoding incorrectly. Will backport to 2.5. 12 February 2008, 18:47:34 UTC
8d365c3 what??! Correct r60225. 12 February 2008, 15:45:50 UTC
e0d30ef Patch #1736: Fix file name handling of _msi.FCICreate. 12 February 2008, 13:47:26 UTC
116f72f Bring decimal a bit closer to the spec for Reals. 12 February 2008, 01:18:03 UTC
19a5c29 Fix typo in comments 12 February 2008, 00:48:20 UTC
596fdd0 Restore fractions.rst to the document tree. 12 February 2008, 00:15:32 UTC
bc4ffc1 Backport ABC docs 11 February 2008, 23:38:00 UTC
2ddbd80 Fix markup 11 February 2008, 23:34:56 UTC
48688d8 Add notes on how decimal fits into the model. 11 February 2008, 22:53:01 UTC
21290ea Add tests for pickletools.optimize(). 11 February 2008, 20:05:53 UTC
6bf51da Make sure that xstar headers are read correctly. 11 February 2008, 19:17:10 UTC
back to top