8887e54 | Andrew M. Kuchling | 23 February 2008, 16:39:43 UTC | #835521: Add index entries for various pickle-protocol methods and attributes | 23 February 2008, 16:39:43 UTC |
085f75a | Andrew M. Kuchling | 23 February 2008, 16:23:05 UTC | #1330538: Improve comparison of xmlrpclib.DateTime and datetime instances. Remove automatic handling of datetime.date and datetime.time. This breaks backward compatibility, but python-dev discussion was strongly against this automatic conversion; see the bug for a link. | 23 February 2008, 16:23:05 UTC |
8328bbc | Eric Smith | 23 February 2008, 16:05:26 UTC | Removed duplicate Py_CHARMASK define. It's already defined in Python.h. | 23 February 2008, 16:05:26 UTC |
322349e | Andrew M. Kuchling | 23 February 2008, 15:49:35 UTC | #1119331: ncurses will just call exit() if the terminal name isn't found. Call setupterm() first so that we get a Python exception instead of just existing. | 23 February 2008, 15:49:35 UTC |
5972493 | Georg Brandl | 23 February 2008, 15:43:48 UTC | #2161: Fix opcode name. | 23 February 2008, 15:43:48 UTC |
b678f98 | Andrew M. Kuchling | 23 February 2008, 15:41:51 UTC | #2072: correct documentation for .rpc_paths | 23 February 2008, 15:41:51 UTC |
080b094 | Georg Brandl | 23 February 2008, 15:19:54 UTC | More difflib examples. Written for GHOP by Josip Dzolonga. | 23 February 2008, 15:19:54 UTC |
ad61bc8 | Georg Brandl | 23 February 2008, 15:11:18 UTC | #2067: file.__exit__() now calls subclasses' close() method. | 23 February 2008, 15:11:18 UTC |
7e251e8 | Facundo Batista | 23 February 2008, 15:07:35 UTC | 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 | Georg Brandl | 23 February 2008, 15:06:25 UTC | #2165: fix test_logging failure on some machines. | 23 February 2008, 15:06:25 UTC |
1647923 | Georg Brandl | 23 February 2008, 15:02:28 UTC | #1492: allow overriding BaseHTTPServer's content type for error messages. | 23 February 2008, 15:02:28 UTC |
5224d28 | Christian Heimes | 23 February 2008, 15:01:05 UTC | Patch #1759: Backport of PEP 3129 class decorators with some help from Georg | 23 February 2008, 15:01:05 UTC |
b12f0b5 | Facundo Batista | 23 February 2008, 12:46:10 UTC | 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 | Facundo Batista | 23 February 2008, 12:27:17 UTC | Issue 1776581. Minor corrections to smtplib, and two small tests. Thanks Alan McIntyre. | 23 February 2008, 12:27:17 UTC |
fc2d010 | Facundo Batista | 23 February 2008, 12:01:13 UTC | 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 | Raymond Hettinger | 23 February 2008, 10:04:15 UTC | Add recipe using itertools.product(). | 23 February 2008, 10:04:15 UTC |
532316d | Raymond Hettinger | 23 February 2008, 04:03:50 UTC | Add more comments | 23 February 2008, 04:03:50 UTC |
a73fbe7 | Eric Smith | 23 February 2008, 03:09:44 UTC | Added future_builtins, which contains PEP 3127 compatible versions of hex() and oct(). | 23 February 2008, 03:09:44 UTC |
73d7963 | Raymond Hettinger | 23 February 2008, 02:20:41 UTC | 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 | Raymond Hettinger | 22 February 2008, 19:50:06 UTC | Document itertools.product(). | 22 February 2008, 19:50:06 UTC |
fb0742f | Eric Smith | 22 February 2008, 17:43:17 UTC | 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 | Eric Smith | 22 February 2008, 16:30:22 UTC | 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 | Georg Brandl | 22 February 2008, 12:57:05 UTC | Another fix. | 22 February 2008, 12:57:05 UTC |
4e37c66 | Georg Brandl | 22 February 2008, 12:56:34 UTC | Don't reference pyshell. | 22 February 2008, 12:56:34 UTC |
907a720 | Georg Brandl | 22 February 2008, 12:31:45 UTC | A lot more typo fixes by Ori Avtalion. | 22 February 2008, 12:31:45 UTC |
a14a4e8 | Nick Coghlan | 22 February 2008, 10:54:06 UTC | 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 | Raymond Hettinger | 22 February 2008, 03:16:42 UTC | First draft for itertools.product(). Docs and other updates forthcoming. | 22 February 2008, 03:16:42 UTC |
12db865 | Georg Brandl | 21 February 2008, 20:38:13 UTC | Part of #2154: minimal syntax fixes in doc example snippets. | 21 February 2008, 20:38:13 UTC |
359b9e9 | Georg Brandl | 21 February 2008, 20:33:38 UTC | #2079: typo in userdict docs. | 21 February 2008, 20:33:38 UTC |
ce584d4 | Eric Smith | 21 February 2008, 20:17:08 UTC | Moved test_format into the correct TestCase. | 21 February 2008, 20:17:08 UTC |
af16ece | Guido van Rossum | 21 February 2008, 19:46:35 UTC | 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 | Raymond Hettinger | 21 February 2008, 19:24:53 UTC | Update more instances of has_key(). | 21 February 2008, 19:24:53 UTC |
8982cf5 | Thomas Heller | 21 February 2008, 18:52:20 UTC | Replace 'has_key()' with 'in'. Replace 'raise Error, stuff' with 'raise Error(stuff)'. | 21 February 2008, 18:52:20 UTC |
981f318 | Thomas Heller | 21 February 2008, 18:28:48 UTC | 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 | Guido van Rossum | 21 February 2008, 18:18:37 UTC | 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 | Guido van Rossum | 21 February 2008, 17:46:16 UTC | Remove news about float repr() -- issue 1580 is still in limbo. | 21 February 2008, 17:46:16 UTC |
2d6c13e | Andrew M. Kuchling | 21 February 2008, 14:23:38 UTC | 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 | Eric Smith | 20 February 2008, 23:39:28 UTC | 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 | Eric Smith | 20 February 2008, 23:34:22 UTC | 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 | Georg Brandl | 20 February 2008, 19:12:36 UTC | Fixes contributed by Ori Avtalion. | 20 February 2008, 19:12:36 UTC |
5a3c135 | Eric Smith | 19 February 2008, 13:21:56 UTC | Added PEP 3101. | 19 February 2008, 13:21:56 UTC |
ba486c5 | Eric Smith | 19 February 2008, 12:27:59 UTC | Added dependencies for stringobject.o. This should fix failing tests in test_unicode.py. | 19 February 2008, 12:27:59 UTC |
bc32fee | Eric Smith | 18 February 2008, 18:02:34 UTC | Added code to correct combining str and unicode in ''.format(). Added test case. | 18 February 2008, 18:02:34 UTC |
5299935 | Kristján Valur Jónsson | 18 February 2008, 17:40:47 UTC | 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 | Eric Smith | 18 February 2008, 14:25:02 UTC | Temporarily removed float tests. See issue 1600. | 18 February 2008, 14:25:02 UTC |
d14600e | Facundo Batista | 18 February 2008, 12:48:43 UTC | Issue 1224. Now we support again the double slash in the URL. Thanks Anthony Lenton. | 18 February 2008, 12:48:43 UTC |
759bfc6 | Facundo Batista | 18 February 2008, 03:43:43 UTC | 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 | Georg Brandl | 17 February 2008, 21:18:55 UTC | #2133: fix HTML color spec. | 17 February 2008, 21:18:55 UTC |
e7fa408 | Amaury Forgeot d'Arc | 17 February 2008, 20:56:31 UTC | 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 | Eric Smith | 17 February 2008, 19:46:49 UTC | 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 | Facundo Batista | 17 February 2008, 18:59:29 UTC | 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 | Facundo Batista | 17 February 2008, 16:21:13 UTC | 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 | Georg Brandl | 17 February 2008, 15:14:10 UTC | Fix function name. | 17 February 2008, 15:14:10 UTC |
5e203f5 | Georg Brandl | 17 February 2008, 11:33:38 UTC | #2131: note that codecs.open() always opens files in binary mode. | 17 February 2008, 11:33:38 UTC |
f9db8a3 | Brett Cannon | 17 February 2008, 01:59:18 UTC | Move test_logging over to doctest. Thanks to Christopher White from GHOP. | 17 February 2008, 01:59:18 UTC |
632fad3 | Amaury Forgeot d'Arc | 16 February 2008, 20:55:24 UTC | 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 | Amaury Forgeot d'Arc | 16 February 2008, 14:34:57 UTC | 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 | Georg Brandl | 16 February 2008, 09:37:32 UTC | #2120: broken links in advocacy document. | 16 February 2008, 09:37:32 UTC |
71fa93a | Raymond Hettinger | 16 February 2008, 01:22:54 UTC | Add __all__ to logging module. | 16 February 2008, 01:22:54 UTC |
64d6843 | Amaury Forgeot d'Arc | 16 February 2008, 00:16:50 UTC | mmap.PROT_READ does not exists on win32; Skip this test created by r60830. | 16 February 2008, 00:16:50 UTC |
d8bcbf2 | Amaury Forgeot d'Arc | 15 February 2008, 22:44:20 UTC | 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 | Kurt B. Kaiser | 15 February 2008, 22:25:09 UTC | 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 | Kurt B. Kaiser | 15 February 2008, 21:56:36 UTC | ScriptBinding event handlers weren't returning 'break'. Patch 2050, Tal Einat. | 15 February 2008, 21:56:36 UTC |
f67abcc | Amaury Forgeot d'Arc | 15 February 2008, 21:27:44 UTC | Temporarily let these tests pass | 15 February 2008, 21:27:44 UTC |
60d6c7f | Amaury Forgeot d'Arc | 15 February 2008, 21:22:45 UTC | 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 | Raymond Hettinger | 15 February 2008, 21:21:25 UTC | Update example to match the current syntax. | 15 February 2008, 21:21:25 UTC |
0473517 | Skip Montanaro | 15 February 2008, 19:03:59 UTC | 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 | Eric Smith | 15 February 2008, 12:14:32 UTC | 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 | Christian Heimes | 15 February 2008, 08:20:11 UTC | 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 | Christian Heimes | 15 February 2008, 06:57:08 UTC | 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 | Christian Heimes | 14 February 2008, 22:40:11 UTC | 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 | Thomas Heller | 14 February 2008, 21:00:28 UTC | Try to correct a markup error that does hide the following paragraph. | 14 February 2008, 21:00:28 UTC |
36316e3 | Raymond Hettinger | 14 February 2008, 19:30:30 UTC | No need to register subclass of ABCs. | 14 February 2008, 19:30:30 UTC |
5111c52 | Raymond Hettinger | 14 February 2008, 19:02:39 UTC | Fix markup | 14 February 2008, 19:02:39 UTC |
0cd7170 | Raymond Hettinger | 14 February 2008, 12:49:37 UTC | Simplify moneyfmt() recipe. | 14 February 2008, 12:49:37 UTC |
3b718a7 | Christian Heimes | 14 February 2008, 12:47:33 UTC | 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 | Raymond Hettinger | 14 February 2008, 12:05:42 UTC | Fix markup. | 14 February 2008, 12:05:42 UTC |
d68bf02 | Raymond Hettinger | 14 February 2008, 11:57:25 UTC | Show how to remove exponents. | 14 February 2008, 11:57:25 UTC |
27a90d9 | Raymond Hettinger | 14 February 2008, 11:01:10 UTC | Improve rst markup | 14 February 2008, 11:01:10 UTC |
4631481 | Raymond Hettinger | 14 February 2008, 10:46:57 UTC | Add fixed-point examples to the decimal FAQ | 14 February 2008, 10:46:57 UTC |
1b56324 | Raymond Hettinger | 14 February 2008, 09:32:45 UTC | 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 | Jeffrey Yasskin | 14 February 2008, 07:49:25 UTC | 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 | Jeffrey Yasskin | 14 February 2008, 06:12:24 UTC | 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 | Raymond Hettinger | 14 February 2008, 02:41:22 UTC | Fix decimal repr which should have used single quotes like other reprs. | 14 February 2008, 02:41:22 UTC |
ddb164a | Raymond Hettinger | 14 February 2008, 01:08:02 UTC | Update notes on Decimal. | 14 February 2008, 01:08:02 UTC |
ac45aff | Kurt B. Kaiser | 14 February 2008, 00:08:55 UTC | Bring NEWS.txt up to date from check-in msgs. | 14 February 2008, 00:08:55 UTC |
4516451 | Thomas Heller | 13 February 2008, 20:36:51 UTC | Make the test somewhat clearer (I hope). | 13 February 2008, 20:36:51 UTC |
a06a1a8 | Thomas Heller | 13 February 2008, 20:21:53 UTC | Add pickle support to ctypes types. | 13 February 2008, 20:21:53 UTC |
91a1dec | Brett Cannon | 13 February 2008, 19:15:44 UTC | 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 | Jeffrey Yasskin | 13 February 2008, 17:58:04 UTC | 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 | Georg Brandl | 13 February 2008, 07:20:22 UTC | #2063: correct order of utime and stime in os.times() result on Windows. | 13 February 2008, 07:20:22 UTC |
5f8bd37 | Mark Dickinson | 12 February 2008, 21:46:54 UTC | 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 | Mark Dickinson | 12 February 2008, 21:40:53 UTC | Revert change in r60712: turn alternate constructors back into classmethods instead of staticmethods. | 12 February 2008, 21:40:53 UTC |
e1b8247 | Mark Dickinson | 12 February 2008, 21:31:59 UTC | Implementation of Fraction.limit_denominator. Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction | 12 February 2008, 21:31:59 UTC |
a37430a | Raymond Hettinger | 12 February 2008, 19:05:36 UTC | dict.copy() rises from the ashes. Revert r60687. | 12 February 2008, 19:05:36 UTC |
dad88dc | Martin v. Löwis | 12 February 2008, 18:47:34 UTC | 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 | Kurt B. Kaiser | 12 February 2008, 15:45:50 UTC | what??! Correct r60225. | 12 February 2008, 15:45:50 UTC |
e0d30ef | Martin v. Löwis | 12 February 2008, 13:47:26 UTC | Patch #1736: Fix file name handling of _msi.FCICreate. | 12 February 2008, 13:47:26 UTC |
116f72f | Raymond Hettinger | 12 February 2008, 01:18:03 UTC | Bring decimal a bit closer to the spec for Reals. | 12 February 2008, 01:18:03 UTC |
19a5c29 | Raymond Hettinger | 12 February 2008, 00:48:20 UTC | Fix typo in comments | 12 February 2008, 00:48:20 UTC |