Commit Graph

2996 Commits

Author SHA1 Message Date
Amaury Forgeot d'Arc a40d573664 #3720: Interpreter crashes when an evil iterator removes its own next function.
Now the slot is filled with a function that always raises.

Will not backport: extensions compiled with 2.6.x would not run on 2.6.0.
2009-01-12 23:36:55 +00:00
Raymond Hettinger f94d7fa5fb Issue 1696199: Add collections.Counter(). 2009-01-12 22:58:41 +00:00
Kristján Valur Jónsson c22ab18e91 Misc/NEWS for issue 4293 2009-01-12 09:24:04 +00:00
Kristján Valur Jónsson 6220e41cb1 Update Misc/NEWS for issue 3582 2009-01-12 09:20:34 +00:00
Martin v. Löwis e3422fae8a Issue #4893: Use NT threading on CE. 2009-01-12 08:11:24 +00:00
Martin v. Löwis 1b3bef21b0 Issue #4915: Port sysmodule to Windows CE. 2009-01-12 07:57:11 +00:00
Martin v. Löwis eefda27e97 Issue #4895: Use _strdup on Windows CE. 2009-01-11 09:43:55 +00:00
Martin v. Löwis b3b7d859b3 Issue #4279: Fix build of parsermodule under Cygwin. 2009-01-11 09:26:54 +00:00
Matthias Klose 43723e2ad8 - Issue #4861: ctypes.util.find_library(): Robustify. Fix library detection on
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
2009-01-10 17:00:42 +00:00
Antoine Pitrou bd4b5f2b87 Add NEWS entry for r68484. 2009-01-10 16:15:24 +00:00
Antoine Pitrou 4c5ecb7cbb Issue #4074: Change the criteria for doing a full garbage collection (i.e.
collecting the oldest generation) so that allocating lots of objects without
destroying them does not show quadratic performance. Based on a proposal by
Martin von Löwis at http://mail.python.org/pipermail/python-dev/2008-June/080579.html.
2009-01-09 21:40:55 +00:00
Martin v. Löwis b90304acb9 Issue #4850: Change COUNT_ALLOCS variables to Py_ssize_t. 2009-01-07 18:40:40 +00:00
Antoine Pitrou e96d4ea4e2 Issue #1180193: When importing a module from a .pyc (or .pyo) file with
an existing .py counterpart, override the co_filename attributes of all
code objects if the original filename is obsolete (which can happen if the
file has been renamed, moved, or if it is accessed through different paths).
Patch by Ziga Seilnacht and Jean-Paul Calderone.
2009-01-06 18:10:47 +00:00
Antoine Pitrou f0d2c3f730 Issue #4272: Add an optional argument to the GzipFile constructor to override the timestamp in the gzip stream. 2009-01-04 21:29:23 +00:00
Mark Dickinson 514d483a7d Misc/NEWS entry for r68317 2009-01-04 21:25:40 +00:00
Tarek Ziadé 85d6fb5022 fixed #1702551: distutils sdist was not pruning VCS directories under win32 2009-01-04 00:04:49 +00:00
Georg Brandl fe427895b5 Manually merge r68095,68186,68187,68188,68190 from 2.6 branch. 2009-01-03 22:03:11 +00:00
Guilherme Polo e7f140355b The _tkinter module functions "createfilehandler", "deletefilehandler",
"createtimerhandler", "mainloop", "dooneevent" and "quit" have been
deprecated for removal in 3.x (part of issue #3638).
2009-01-03 21:51:09 +00:00
Raymond Hettinger f4d8597a59 Issue 4796: Add from_float methods to the decimal module. 2009-01-03 19:02:23 +00:00
Martin v. Löwis 0fa10b3cd5 Issue #4817: Remove unused function PyOS_GetLastModificationTime. 2009-01-03 17:19:26 +00:00
Mark Dickinson c5de0969ca Issue #4812: add missing underscore prefix to some internal-use-only
constants in the decimal module.  (Dec_0 becomes _Dec_0, etc.)
2009-01-02 23:07:08 +00:00
Martin v. Löwis 9ac4927125 Issue #4051: Prevent conflict of UNICODE macros in cPickle. 2009-01-02 20:40:14 +00:00
Martin v. Löwis 5344c99734 Issue #4075: Use OutputDebugStringW in Py_FatalError. 2009-01-02 20:32:55 +00:00
Ronald Oussoren 072bb405f3 Fix for issues #841800 and #900506 2009-01-02 15:25:36 +00:00
Ronald Oussoren abcc168c69 Fix for issue 1149804 2009-01-02 15:00:05 +00:00
Ronald Oussoren 919697cefe Fix for issue r1737832 2009-01-02 14:52:09 +00:00
Ronald Oussoren 7f8cbf0e73 Fix for issue 1627952 2009-01-02 14:48:17 +00:00
Ronald Oussoren 63b74feb51 Fix for issue 900949 2009-01-02 14:46:19 +00:00
Ronald Oussoren 0238497e93 Fix for issue1594 2009-01-02 14:10:20 +00:00
Ronald Oussoren f7d5405d57 Forgot to add a NEWS item in my previous checkin 2009-01-02 10:48:31 +00:00
Hirokazu Yamamoto 99a1b20bbf Issue #4797: IOError.filename was not set when _fileio.FileIO failed to open
file with `str' filename on Windows.
2009-01-01 15:45:39 +00:00
Antoine Pitrou aa687902f2 Issue #3680: Reference cycles created through a dict, set or deque iterator did not get collected. 2009-01-01 14:11:22 +00:00
Georg Brandl 6269fec171 #4228: Pack negative values the same way as 2.4
in struct's L format.
2009-01-01 12:15:31 +00:00
Benjamin Peterson 8ad09a4f2e #4795 inspect.isgeneratorfunction() should return False instead of None 2008-12-31 23:48:39 +00:00
Tarek Ziadé b1a85413b1 Fixed #4702: Throwing DistutilsPlatformError instead of IOError under win32 if MSVC is not found 2008-12-30 23:03:41 +00:00
Nick Coghlan 180e400766 Issue #4701: implicitly call PyType_Ready from PyObject_Hash 2008-12-30 01:18:48 +00:00
Tarek Ziadé c13acb18bc fixed #4646 : distutils was choking on empty options arg in the setup function. 2008-12-29 22:23:53 +00:00
Martin v. Löwis 03824e45f6 Issue #1040026: Fix os.times result on systems where HZ is incorrect. 2008-12-29 18:17:34 +00:00
Benjamin Peterson 7af65568ff #4764 in io.open, set IOError.filename when trying to open a directory on POSIX platforms 2008-12-29 17:56:58 +00:00
Benjamin Peterson fe231b07e4 #4764 set IOError.filename when trying to open a directory on POSIX platforms 2008-12-29 17:47:42 +00:00
Martin v. Löwis 732479f50b Issue #3767: Convert Tk object to string in tkColorChooser. 2008-12-29 16:22:25 +00:00
Martin v. Löwis e2eb2b4bc3 Issue #3248: Allow placing ScrolledText in a PanedWindow. 2008-12-29 15:51:01 +00:00
Benjamin Peterson fd9633ed36 fix WORD_BIGEDIAN declaration in Universal builds; fixes #4060 and #4728 2008-12-28 15:37:31 +00:00
Antoine Pitrou 697ca3d0cb Issue #4444: Allow assertRaises() to be used as a context handler. 2008-12-28 14:09:36 +00:00
Georg Brandl 6425a2fa8f Backport r67974:
#4759: allow None as first argument of bytearray.translate(), for consistency with bytes.translate().

Also fix segfault for bytearray.translate(x, None) -- will backport this part to 3.0 and 2.6.
2008-12-28 11:54:53 +00:00
Antoine Pitrou e555f581dc Issue #4677: add two list comprehension tests to pybench. 2008-12-27 20:34:52 +00:00
Benjamin Peterson 8d5934b25d #4748 lambda generators shouldn't return values 2008-12-27 18:24:11 +00:00
Georg Brandl c3a9803410 Patch #4739 by David Laban: add symbols to pydoc help topics,
so that ``help('@')`` works as expected.
2008-12-27 18:20:04 +00:00
Antoine Pitrou 6f193e0e95 Issue #4756: zipfile.is_zipfile() now supports file-like objects.
Patch by Gabriel Genellina.
2008-12-27 15:43:12 +00:00
Alexandre Vassalotti 6067f78ecf Add Misc/NEWS entry for r67934. 2008-12-27 07:13:01 +00:00