]>
granicus.if.org Git - python/log
Benjamin Peterson [Wed, 23 Jul 2008 13:25:06 +0000 (13:25 +0000)]
use isinstance
Jesus Cea [Wed, 23 Jul 2008 11:38:42 +0000 (11:38 +0000)]
bsddb module updated to version 4.7.2devel9.
This patch publishes the work done until now
for Python 3.0 compatibility. Still a lot
to be done.
When possible, we use 3.0 features in Python 2.6,
easing development and testing, and exposing internal
changes to a wider audience, for better test coverage.
Some mode details:
http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.2
Benjamin Peterson [Tue, 22 Jul 2008 23:44:37 +0000 (23:44 +0000)]
remove unneeded import
Raymond Hettinger [Tue, 22 Jul 2008 19:18:50 +0000 (19:18 +0000)]
One more attribution.
Raymond Hettinger [Tue, 22 Jul 2008 19:03:05 +0000 (19:03 +0000)]
Fix credits for math.sum()
Raymond Hettinger [Tue, 22 Jul 2008 19:00:47 +0000 (19:00 +0000)]
Tuples now have both count() and index().
Raymond Hettinger [Tue, 22 Jul 2008 18:54:02 +0000 (18:54 +0000)]
Remove out-of-date section on Exact/Inexact.
Ronald Oussoren [Tue, 22 Jul 2008 07:06:33 +0000 (07:06 +0000)]
Fix build issue on OSX 10.4, somehow this wasn't committed before.
Ronald Oussoren [Tue, 22 Jul 2008 07:06:00 +0000 (07:06 +0000)]
Fix buglet in fix for issue3381
Gregory P. Smith [Tue, 22 Jul 2008 04:46:32 +0000 (04:46 +0000)]
Issue #2620: Overflow checking when allocating or reallocating memory
was not always being done properly in some python types and extension
modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have
all been updated to perform better checks and places in the code that
would previously leak memory on the error path when such an allocation
failed have been fixed.
Benjamin Peterson [Mon, 21 Jul 2008 22:05:34 +0000 (22:05 +0000)]
don't use assert statement
Amaury Forgeot d'Arc [Mon, 21 Jul 2008 22:00:38 +0000 (22:00 +0000)]
Issue2378: pdb would delete free variables when stepping into a class statement.
The problem was introduced by r53954, the correction is to restore the symmetry between
PyFrame_FastToLocals and PyFrame_LocalsToFast
Amaury Forgeot d'Arc [Mon, 21 Jul 2008 21:36:24 +0000 (21:36 +0000)]
Increment version number in NEWS file, and move items that were added after 2.6b2.
(I thought there was a script to automate this kind of updates)
Amaury Forgeot d'Arc [Mon, 21 Jul 2008 21:06:46 +0000 (21:06 +0000)]
On Windows, silence a Purify warning and initialize the memory passed to CryptGenRandom.
Since python doesn't provide any particular random data, it seems more reasonable anyway.
Georg Brandl [Mon, 21 Jul 2008 18:26:21 +0000 (18:26 +0000)]
nonlocal is not in 2.6.
Facundo Batista [Mon, 21 Jul 2008 14:28:17 +0000 (14:28 +0000)]
Issue 3396. Fixed the autocompletion of 'int.', and worked
a little that part of the code, fixing a detail and enhancing
a bit others.
Georg Brandl [Sun, 20 Jul 2008 23:18:55 +0000 (23:18 +0000)]
Save the whole of sys.modules instead of using an import tracker.
This, when merged to py3k, will fix the spurious buildbot failure
in test_urllib2 ("<urlopen error unknown url type: do>").
Neal Norwitz [Sun, 20 Jul 2008 20:39:36 +0000 (20:39 +0000)]
Fix misspeeld method name (negative)
Neal Norwitz [Sun, 20 Jul 2008 19:35:23 +0000 (19:35 +0000)]
Fix a couple of names in error messages that were wrong
Georg Brandl [Sun, 20 Jul 2008 11:50:29 +0000 (11:50 +0000)]
#926501: add info where to put the docstring.
Georg Brandl [Sun, 20 Jul 2008 07:29:58 +0000 (07:29 +0000)]
Remove exception indexing in asyncore.
Gregory P. Smith [Sun, 20 Jul 2008 00:22:08 +0000 (00:22 +0000)]
fix issue3120 - don't truncate handles on 64-bit Windows.
This is still messy, realistically PC/_subprocess.c should never cast pointers
to python numbers and back at all.
I don't have a 64-bit windows build environment because microsoft apparently
thinks that should cost money. Time to watch the buildbots. It builds and
passes tests on 32-bit windows.
Raymond Hettinger [Sat, 19 Jul 2008 23:58:47 +0000 (23:58 +0000)]
Clean-up itertools docs and recipes.
Raymond Hettinger [Sat, 19 Jul 2008 23:21:57 +0000 (23:21 +0000)]
Fix compress() recipe in docs to use itertools.
Bob Ippolito [Sat, 19 Jul 2008 21:59:50 +0000 (21:59 +0000)]
#3322: bounds checking for _json.scanstring
Benjamin Peterson [Sat, 19 Jul 2008 14:14:06 +0000 (14:14 +0000)]
Merged revisions 65137 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65137 | georg.brandl | 2008-07-19 08:32:57 -0500 (Sat, 19 Jul 2008) | 2 lines
#3334: correctly set prefix of imports.
........
Georg Brandl [Sat, 19 Jul 2008 13:48:44 +0000 (13:48 +0000)]
Add ordering info for findall and finditer.
Georg Brandl [Sat, 19 Jul 2008 13:09:42 +0000 (13:09 +0000)]
#3323: mention that if inheriting from a class without __slots__,
the subclass will have a __dict__ available too.
Georg Brandl [Sat, 19 Jul 2008 13:00:22 +0000 (13:00 +0000)]
#3319: don't raise ZeroDivisionError if number of rounds is so
low that benchtime is zero.
Georg Brandl [Sat, 19 Jul 2008 12:46:12 +0000 (12:46 +0000)]
#3303: fix crash with invalid Py_DECREF in strcoll().
Georg Brandl [Sat, 19 Jul 2008 12:39:10 +0000 (12:39 +0000)]
#3302: fix segfaults when passing None for arguments that can't
be NULL for the C functions.
Georg Brandl [Sat, 19 Jul 2008 10:08:55 +0000 (10:08 +0000)]
#3378: in case of no memory, don't leak even more memory. :)
Raymond Hettinger [Sat, 19 Jul 2008 00:43:00 +0000 (00:43 +0000)]
Add recipe to the itertools docs.
Raymond Hettinger [Sat, 19 Jul 2008 00:42:03 +0000 (00:42 +0000)]
Improve accuracy of gamma test function
Eric Smith [Sat, 19 Jul 2008 00:24:05 +0000 (00:24 +0000)]
Fix issue 3411: default float format spec fails on negative numbers.
Brett Cannon [Fri, 18 Jul 2008 19:30:22 +0000 (19:30 +0000)]
Deprecate the sunaudio module for removal in Python 3.0. The sunau module can provide similar functionality.
Georg Brandl [Fri, 18 Jul 2008 19:30:10 +0000 (19:30 +0000)]
#3390: replace a remaining has_key().
Georg Brandl [Fri, 18 Jul 2008 19:06:13 +0000 (19:06 +0000)]
Replace all map(None, a) with list(a).
Benjamin Peterson [Fri, 18 Jul 2008 14:26:35 +0000 (14:26 +0000)]
now that test_lib2to3 actually works and isn't extremely slow, we don't need the lib2to3 resource
Benjamin Peterson [Fri, 18 Jul 2008 14:14:41 +0000 (14:14 +0000)]
backport test_fileio
Georg Brandl [Fri, 18 Jul 2008 11:15:06 +0000 (11:15 +0000)]
Document the different meaning of precision for {:f} and {:g}.
Also document how inf and nan are formatted. #3404.
Georg Brandl [Fri, 18 Jul 2008 10:29:30 +0000 (10:29 +0000)]
Correct attribute name.
Georg Brandl [Fri, 18 Jul 2008 10:20:59 +0000 (10:20 +0000)]
Remove duplicate entry in __all__.
Vinay Sajip [Fri, 18 Jul 2008 09:01:10 +0000 (09:01 +0000)]
Issue #3389: Allow resolving dotted names for handlers in logging configuration files. Thanks to Philip Jenvey for the patch.
Vinay Sajip [Fri, 18 Jul 2008 09:00:35 +0000 (09:00 +0000)]
Issue #3389: Allow resolving dotted names for handlers in logging configuration files. Thanks to Philip Jenvey for the patch.
Vinay Sajip [Fri, 18 Jul 2008 09:00:00 +0000 (09:00 +0000)]
Issue #3389: Allow resolving dotted names for handlers in logging configuration files. Thanks to Philip Jenvey for the patch.
Vinay Sajip [Fri, 18 Jul 2008 08:59:06 +0000 (08:59 +0000)]
Issue #3389: Allow resolving dotted names for handlers in logging configuration files. Thanks to Philip Jenvey for the patch.
Ronald Oussoren [Fri, 18 Jul 2008 05:48:03 +0000 (05:48 +0000)]
Last bit of a fix for issue3381 (addon for my patch in r65061)
Barry Warsaw [Fri, 18 Jul 2008 03:36:18 +0000 (03:36 +0000)]
Post release cleanup
Barry Warsaw [Fri, 18 Jul 2008 03:20:38 +0000 (03:20 +0000)]
Tagging 2.6 beta 2.
Barry Warsaw [Fri, 18 Jul 2008 03:20:07 +0000 (03:20 +0000)]
Bumping to 2.6b2
Jesse Noller [Thu, 17 Jul 2008 21:01:05 +0000 (21:01 +0000)]
Fix issue 3395, update _debugInfo to be _debug_info
Eric Smith [Thu, 17 Jul 2008 19:49:47 +0000 (19:49 +0000)]
Backed out r65069, pending fixing it in Windows.
Bill Janssen [Thu, 17 Jul 2008 18:01:57 +0000 (18:01 +0000)]
catch socket.error errors in badCertTest
Eric Smith [Thu, 17 Jul 2008 17:48:39 +0000 (17:48 +0000)]
Issue 3382: Make '%F' and float.__format__('F') convert results to upper case.
Benjamin Peterson [Thu, 17 Jul 2008 15:59:24 +0000 (15:59 +0000)]
#3381 fix framework builds on 10.4
Benjamin Peterson [Thu, 17 Jul 2008 12:57:22 +0000 (12:57 +0000)]
try to fix test_threading on the Windows bot
Gregory P. Smith [Thu, 17 Jul 2008 03:13:05 +0000 (03:13 +0000)]
news note for r63052
Benjamin Peterson [Thu, 17 Jul 2008 02:07:46 +0000 (02:07 +0000)]
Merged revisions 65053-65054 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65053 | benjamin.peterson | 2008-07-16 21:04:12 -0500 (Wed, 16 Jul 2008) | 1 line
massive optimizations for 2to3 (especially fix_imports) from Nick Edds
........
r65054 | benjamin.peterson | 2008-07-16 21:05:09 -0500 (Wed, 16 Jul 2008) | 1 line
normalize whitespace
........
Georg Brandl [Wed, 16 Jul 2008 23:35:54 +0000 (23:35 +0000)]
#3388: add a paragraph about using "with" for file objects.
Georg Brandl [Wed, 16 Jul 2008 23:18:51 +0000 (23:18 +0000)]
Byte items *can* be chars in 2.6.
Georg Brandl [Wed, 16 Jul 2008 23:17:46 +0000 (23:17 +0000)]
Backport part of r65043.
Georg Brandl [Wed, 16 Jul 2008 23:10:05 +0000 (23:10 +0000)]
Use _getbytevalue() in init too.
Georg Brandl [Wed, 16 Jul 2008 22:57:41 +0000 (22:57 +0000)]
#3156: fix consistency in what type bytearray methods accept as items.
Also rename confusing "item" parameters to "index".
Georg Brandl [Wed, 16 Jul 2008 22:33:18 +0000 (22:33 +0000)]
#3312: fix two sqlite3 crashes.
Georg Brandl [Wed, 16 Jul 2008 22:09:17 +0000 (22:09 +0000)]
#3345: fix docstring.
Georg Brandl [Wed, 16 Jul 2008 22:04:20 +0000 (22:04 +0000)]
#3305: self->stream can be NULL.
Georg Brandl [Wed, 16 Jul 2008 21:31:41 +0000 (21:31 +0000)]
#
1608818 : errno can get set by every call to readdir().
Georg Brandl [Wed, 16 Jul 2008 21:19:28 +0000 (21:19 +0000)]
#3045: fix pydoc behavior for TEMP path with spaces.
Benjamin Peterson [Wed, 16 Jul 2008 20:17:04 +0000 (20:17 +0000)]
fix framework install on Mac 10.4
Jesse Noller [Wed, 16 Jul 2008 20:03:47 +0000 (20:03 +0000)]
Apply patch for 874900: threading module can deadlock after fork
Benjamin Peterson [Wed, 16 Jul 2008 18:48:35 +0000 (18:48 +0000)]
Merged revisions 65025 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65025 | benjamin.peterson | 2008-07-16 13:46:30 -0500 (Wed, 16 Jul 2008) | 1 line
remove use of has_key
........
Eric Smith [Wed, 16 Jul 2008 18:29:51 +0000 (18:29 +0000)]
Renamed a parameter in calc_number_widths, for consistency with the same parameter in fill_non_digits.
Benjamin Peterson [Wed, 16 Jul 2008 17:03:06 +0000 (17:03 +0000)]
lib2to3 isn't broken anymore, so we can run the test
Benjamin Peterson [Wed, 16 Jul 2008 17:01:46 +0000 (17:01 +0000)]
Merged revisions 64863,64868,64870,64942,65001-65002,65017-65018 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r64863 | brett.cannon | 2008-07-10 19:42:32 -0500 (Thu, 10 Jul 2008) | 1 line
Add urlparse -> urllib.parse to fix_imports.
........
r64868 | brett.cannon | 2008-07-10 20:00:10 -0500 (Thu, 10 Jul 2008) | 1 line
Add robotparser -> urllib.robotparser to fix_imports.
........
r64870 | brett.cannon | 2008-07-11 00:56:27 -0500 (Fri, 11 Jul 2008) | 6 lines
Fix the fixers for the new dbm package.
Had to create a new fixer (fix_imports2) which did fixes in post-order. This
because ``import anydbm`` was being translated into ``import dbm`` which was
then subsequently changed into ``import dbm.ndbm``; one transform too many.
........
r64942 | collin.winter | 2008-07-13 20:19:05 -0500 (Sun, 13 Jul 2008) | 1 line
Add a comment explaining part of fix_imports.py
........
r65001 | brett.cannon | 2008-07-16 00:11:12 -0500 (Wed, 16 Jul 2008) | 2 lines
Remove some extraneous whitespace.
........
r65002 | brett.cannon | 2008-07-16 00:12:04 -0500 (Wed, 16 Jul 2008) | 4 lines
Implement a fixer for urllib(2).
Thanks Nick Edds for the patch.
........
r65017 | benjamin.peterson | 2008-07-16 11:04:19 -0500 (Wed, 16 Jul 2008) | 1 line
fix 2to3 in Python 2.6
........
r65018 | benjamin.peterson | 2008-07-16 11:55:21 -0500 (Wed, 16 Jul 2008) | 1 line
normalize whitespace
........
Jesse Noller [Wed, 16 Jul 2008 14:32:36 +0000 (14:32 +0000)]
Apply Amaury's patch to multiprocessing for issue 3125, removes the copy_reg and replaces it with ForkingPickler.register(), which should resolve the conflict with the global registry/ctypes
Jesse Noller [Wed, 16 Jul 2008 13:24:06 +0000 (13:24 +0000)]
Apply patch for issue 3090: ARCHFLAGS parsing incorrect
Mark Dickinson [Wed, 16 Jul 2008 09:40:03 +0000 (09:40 +0000)]
Issue #3360: Fix incorrect parsing of "
020000000000 .0".
Martin v. Löwis [Wed, 16 Jul 2008 05:28:26 +0000 (05:28 +0000)]
Add Antoine.
Benjamin Peterson [Wed, 16 Jul 2008 00:44:02 +0000 (00:44 +0000)]
disable lib2to3 in the trunk. It's broken just for 2.6
Eric Smith [Wed, 16 Jul 2008 00:11:49 +0000 (00:11 +0000)]
Complete issue 3083: add alternate (#) formatting to bin, oct, hex in str.format().
Georg Brandl [Wed, 16 Jul 2008 00:00:04 +0000 (00:00 +0000)]
Keep sorted.
Georg Brandl [Tue, 15 Jul 2008 23:59:15 +0000 (23:59 +0000)]
Move label to correct heading.
Mark Dickinson [Tue, 15 Jul 2008 21:55:23 +0000 (21:55 +0000)]
Fix float.from_hex tests. It appears that Linux/ia64 doesn't like
computing 2.0**-1074 accurately. Using ldexp(1.0, -1074) should be
safer.
Thomas Heller [Tue, 15 Jul 2008 20:18:46 +0000 (20:18 +0000)]
Fix test on 64-bit platforms.
Thomas Heller [Tue, 15 Jul 2008 19:44:25 +0000 (19:44 +0000)]
Add Victor Stinner, he provided the patch for issue #3313.
Thomas Heller [Tue, 15 Jul 2008 19:39:38 +0000 (19:39 +0000)]
Issue #3313: Contrary to the man page, a failed dlopen() call does not
always set a dlerror() message.
Mark Dickinson [Tue, 15 Jul 2008 19:08:33 +0000 (19:08 +0000)]
Issue #3008: add instance method float.hex and class method float.fromhex
to convert floats to and from hexadecimal strings respectively.
Jesse Noller [Tue, 15 Jul 2008 18:29:18 +0000 (18:29 +0000)]
Revert 3270 patch: self._address is in pretty widespread use, need to revisit
Thomas Heller [Tue, 15 Jul 2008 17:19:50 +0000 (17:19 +0000)]
NEWS entry for #issue 3258.
Thomas Heller [Tue, 15 Jul 2008 17:03:08 +0000 (17:03 +0000)]
Issue #3258: Fix an assertion error (in debug build) and a crash (in
release build) when the format string of a pointer to an incomplete
structure is created.
Nick Coghlan [Tue, 15 Jul 2008 15:40:22 +0000 (15:40 +0000)]
Add missing NEWS entry for r64962
Nick Coghlan [Tue, 15 Jul 2008 14:27:37 +0000 (14:27 +0000)]
Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful
Jesse Noller [Tue, 15 Jul 2008 13:47:33 +0000 (13:47 +0000)]
multiprocessing/connection.py patch to remove fqdn oddness for issue 3270
Eric Smith [Tue, 15 Jul 2008 10:10:07 +0000 (10:10 +0000)]
Added '#' formatting to integers. This adds the 0b, 0o, or 0x prefix for bin, oct, hex. There's still one failing case, and I need to finish the docs. I hope to finish those today.
Benjamin Peterson [Mon, 14 Jul 2008 17:42:17 +0000 (17:42 +0000)]
fix test_py3kwarns
The fact that this was failing and went unnoticed so long seems like a good argument for being able to enable and disble py3kwarnings through Python.
Robert Schuppenies [Mon, 14 Jul 2008 08:42:18 +0000 (08:42 +0000)]
Fixed test failure on Win64 machines.
Gregory P. Smith [Mon, 14 Jul 2008 06:06:48 +0000 (06:06 +0000)]
Fix posix.fork1() / os.fork1() to only call PyOS_AfterFork() in the child
process rather than both parent and child.
Does anyone actually use fork1()? It appears to be a Solaris thing
but if Python is built with pthreads on Solaris, fork1() and fork()
should be the same.
Andrew M. Kuchling [Mon, 14 Jul 2008 01:18:31 +0000 (01:18 +0000)]
Expand the multiprocessing section
Andrew M. Kuchling [Mon, 14 Jul 2008 01:18:16 +0000 (01:18 +0000)]
Typo fix