]> granicus.if.org Git - python/log
python
14 years agoIssue #5180: Fixed a bug that prevented loading 2.x pickles in 3.x
Alexander Belopolsky [Sat, 17 Jul 2010 22:50:45 +0000 (22:50 +0000)]
Issue #5180: Fixed a bug that prevented loading 2.x pickles in 3.x
python when they contain instances of old-style classes.

14 years agosharedinstall should depend on sharedmods #9280
Benjamin Peterson [Sat, 17 Jul 2010 20:39:23 +0000 (20:39 +0000)]
sharedinstall should depend on sharedmods #9280

14 years agoIssue #9268: Add annotation option to pickletools.dis
Alexander Belopolsky [Sat, 17 Jul 2010 15:51:21 +0000 (15:51 +0000)]
Issue #9268: Add annotation option to pickletools.dis

14 years agoIssue #7384: On Gentoo, libreadline.so is a "fake library", so ldd fails.
Stefan Krah [Sat, 17 Jul 2010 11:46:52 +0000 (11:46 +0000)]
Issue #7384: On Gentoo, libreadline.so is a "fake library", so ldd fails.
In that case, do not attempt to parse stderr output.

14 years ago#1555570: correctly handle a \r\n that is split by the read buffer.
R. David Murray [Sat, 17 Jul 2010 01:19:57 +0000 (01:19 +0000)]
#1555570: correctly handle a \r\n that is split by the read buffer.

Patch and test by Tony Nelson.

14 years agoAdd comma grouping to max result so it's easier to read.
Brett Cannon [Fri, 16 Jul 2010 19:26:23 +0000 (19:26 +0000)]
Add comma grouping to max result so it's easier to read.

14 years agoFix possible failure in pickling tests due to different instantiations
Antoine Pitrou [Fri, 16 Jul 2010 19:10:38 +0000 (19:10 +0000)]
Fix possible failure in pickling tests due to different instantiations
of the random module being around.

14 years agoAdd benchmarks for importing just source w/o writing bytecode, importing source
Brett Cannon [Fri, 16 Jul 2010 19:04:29 +0000 (19:04 +0000)]
Add benchmarks for importing just source w/o writing bytecode, importing source
while writing bytecode, and importing bytecode with source existing (don't care
about sourceless imports).

14 years agoCorrected TUPLE<N> opcodes' docs.
Alexander Belopolsky [Fri, 16 Jul 2010 14:39:45 +0000 (14:39 +0000)]
Corrected TUPLE<N> opcodes' docs.

14 years agoTouch up comments and code along with outputting what the unit of measure is.
Brett Cannon [Thu, 15 Jul 2010 06:24:04 +0000 (06:24 +0000)]
Touch up comments and code along with outputting what the unit of measure is.

14 years agoFix issue9132 - Documentation for comparing dictionaries is out of date
Senthil Kumaran [Wed, 14 Jul 2010 20:30:02 +0000 (20:30 +0000)]
Fix issue9132 - Documentation for comparing dictionaries is out of date

14 years agoFix a mistake, https proxy shoud be https://
Senthil Kumaran [Wed, 14 Jul 2010 20:10:52 +0000 (20:10 +0000)]
Fix a mistake, https proxy shoud be https://

14 years agoFix: Issue6853 - Get HTTPS system proxy in Windows.
Senthil Kumaran [Wed, 14 Jul 2010 19:15:23 +0000 (19:15 +0000)]
Fix: Issue6853 - Get HTTPS system proxy in Windows.

14 years agoPEP 8 conformance: class_ -> cls
Alexander Belopolsky [Wed, 14 Jul 2010 13:46:57 +0000 (13:46 +0000)]
PEP 8 conformance: class_ -> cls

14 years agoIssue #9251: test_threaded_import didn't fail when run through regrtest
Antoine Pitrou [Wed, 14 Jul 2010 11:52:38 +0000 (11:52 +0000)]
Issue #9251: test_threaded_import didn't fail when run through regrtest
if the import lock was disabled.

14 years agoFix Issue5842 - Moving the tests out of urllib.parse module
Senthil Kumaran [Wed, 14 Jul 2010 10:21:22 +0000 (10:21 +0000)]
Fix Issue5842 - Moving the tests out of urllib.parse module

14 years agoHigh byte is the exit status.
Stefan Krah [Wed, 14 Jul 2010 10:16:11 +0000 (10:16 +0000)]
High byte is the exit status.

14 years ago#9235: fix missing import of sys.
Georg Brandl [Wed, 14 Jul 2010 08:54:40 +0000 (08:54 +0000)]
#9235: fix missing import of sys.

14 years agoRemove unused code that would raise a NameError.
Georg Brandl [Wed, 14 Jul 2010 08:53:36 +0000 (08:53 +0000)]
Remove unused code that would raise a NameError.

14 years agoRemove XXX from text.
Georg Brandl [Wed, 14 Jul 2010 08:53:18 +0000 (08:53 +0000)]
Remove XXX from text.

14 years ago#9258: fix copy-paste errors.
Georg Brandl [Wed, 14 Jul 2010 08:00:22 +0000 (08:00 +0000)]
#9258: fix copy-paste errors.

14 years agoWoops, test_sndhdr.py contains the same code twice: fix it
Victor Stinner [Tue, 13 Jul 2010 23:08:01 +0000 (23:08 +0000)]
Woops, test_sndhdr.py contains the same code twice: fix it

14 years agoIssue #9243: Fix sndhdr module and add unit tests, contributed by James Lee.
Victor Stinner [Tue, 13 Jul 2010 23:04:56 +0000 (23:04 +0000)]
Issue #9243: Fix sndhdr module and add unit tests, contributed by James Lee.

14 years agoSet sys.modules[name] to None instead of 0 to block module import.
Alexander Belopolsky [Tue, 13 Jul 2010 14:50:16 +0000 (14:50 +0000)]
Set sys.modules[name] to None instead of 0 to block module import.

14 years agoFix documentation typo: wprite() -> write().
Jeroen Ruigrok van der Werven [Tue, 13 Jul 2010 14:47:01 +0000 (14:47 +0000)]
Fix documentation typo: wprite() -> write().

14 years agoAdd bytes in literal_eval doc.
Georg Brandl [Tue, 13 Jul 2010 06:38:10 +0000 (06:38 +0000)]
Add bytes in literal_eval doc.

14 years agoYield more information on failure in test_struct boolean test.
Mark Dickinson [Mon, 12 Jul 2010 20:03:24 +0000 (20:03 +0000)]
Yield more information on failure in test_struct boolean test.

14 years agoFix definition of len() and indexing for memoryview objects (part of #7696).
Antoine Pitrou [Mon, 12 Jul 2010 20:01:52 +0000 (20:01 +0000)]
Fix definition of len() and indexing for memoryview objects (part of #7696).

14 years ago#6026: skip test_get_file_list when zlib is not available.
Ezio Melotti [Mon, 12 Jul 2010 19:49:41 +0000 (19:49 +0000)]
#6026: skip test_get_file_list when zlib is not available.

14 years agoRegenerate Python/graminit.c.
Mark Dickinson [Mon, 12 Jul 2010 14:18:21 +0000 (14:18 +0000)]
Regenerate Python/graminit.c.

14 years agoIssue #2009: refactor varargslist and typedargslist productions to make them more...
Mark Dickinson [Mon, 12 Jul 2010 14:14:18 +0000 (14:14 +0000)]
Issue #2009: refactor varargslist and typedargslist productions to make them more friendly for third-party parsers.

14 years agoRemove mention of execfile from the tutorial.
Mark Dickinson [Mon, 12 Jul 2010 09:37:40 +0000 (09:37 +0000)]
Remove mention of execfile from the tutorial.

14 years agoUse raw string literals for regexes containing backlash.
Georg Brandl [Mon, 12 Jul 2010 09:06:13 +0000 (09:06 +0000)]
Use raw string literals for regexes containing backlash.

14 years agoTake care of duplicate target name warnings.
Georg Brandl [Mon, 12 Jul 2010 09:00:29 +0000 (09:00 +0000)]
Take care of duplicate target name warnings.

14 years agoRemove myself.
Martin v. Löwis [Mon, 12 Jul 2010 06:03:18 +0000 (06:03 +0000)]
Remove myself.

14 years agoPut my name down for winreg.
Brian Curtin [Sun, 11 Jul 2010 23:32:11 +0000 (23:32 +0000)]
Put my name down for winreg.

14 years agoallow byte literals
Benjamin Peterson [Sun, 11 Jul 2010 23:06:06 +0000 (23:06 +0000)]
allow byte literals

14 years agoInclude versionadded in (c)math.isfinite docs (thanks Ezio Melotti). Other minor...
Mark Dickinson [Sun, 11 Jul 2010 19:47:37 +0000 (19:47 +0000)]
Include versionadded in (c)math.isfinite docs (thanks Ezio Melotti).  Other minor doc cleanups.

14 years agoassertEquals -> assertEqual
Mark Dickinson [Sun, 11 Jul 2010 19:12:10 +0000 (19:12 +0000)]
assertEquals -> assertEqual

14 years agoIssue #9137: Fix issue in MutableMapping.update, which incorrectly
Mark Dickinson [Sun, 11 Jul 2010 18:53:06 +0000 (18:53 +0000)]
Issue #9137: Fix issue in MutableMapping.update, which incorrectly
treated keyword arguments called 'self' or 'other' specially.

14 years agoImprove docstrings for isnan, isinf and isfinite.
Mark Dickinson [Sun, 11 Jul 2010 18:13:41 +0000 (18:13 +0000)]
Improve docstrings for isnan, isinf and isfinite.

14 years agoIssue #8974: fix print calls in msgfmt.py.
Martin v. Löwis [Sun, 11 Jul 2010 17:39:46 +0000 (17:39 +0000)]
Issue #8974: fix print calls in msgfmt.py.

14 years agoIssue #9165: Add math.isfinite and cmath.isfinite.
Mark Dickinson [Sun, 11 Jul 2010 17:38:24 +0000 (17:38 +0000)]
Issue #9165: Add math.isfinite and cmath.isfinite.

14 years agotest for set literals
Benjamin Peterson [Sun, 11 Jul 2010 12:59:24 +0000 (12:59 +0000)]
test for set literals

14 years agoIssue #7616: Fix copying of overlapping memoryview slices with the Intel
Antoine Pitrou [Sun, 11 Jul 2010 12:12:00 +0000 (12:12 +0000)]
Issue #7616: Fix copying of overlapping memoryview slices with the Intel
compiler.

14 years ago#9223: link to Command class reference, and move Command interface docs nearer to...
Georg Brandl [Sun, 11 Jul 2010 10:22:44 +0000 (10:22 +0000)]
#9223: link to Command class reference, and move Command interface docs nearer to class docs.

14 years ago#7935: cross-reference to ast.literal_eval() from eval() docs.
Georg Brandl [Sun, 11 Jul 2010 09:42:10 +0000 (09:42 +0000)]
#7935: cross-reference to ast.literal_eval() from eval() docs.

14 years agoAllow set literals in literal_eval().
Georg Brandl [Sun, 11 Jul 2010 09:41:21 +0000 (09:41 +0000)]
Allow set literals in literal_eval().

14 years ago#9184: fix default value for "buffering" param of open().
Georg Brandl [Sun, 11 Jul 2010 09:33:39 +0000 (09:33 +0000)]
#9184: fix default value for "buffering" param of open().

14 years agoFix typo.
Georg Brandl [Sun, 11 Jul 2010 09:26:57 +0000 (09:26 +0000)]
Fix typo.

14 years ago#6774: explain shutdown() behavior varying with platform.
Georg Brandl [Sun, 11 Jul 2010 09:23:11 +0000 (09:23 +0000)]
#6774: explain shutdown() behavior varying with platform.

14 years agoFix for issue 9164
Ronald Oussoren [Sun, 11 Jul 2010 09:05:07 +0000 (09:05 +0000)]
Fix for issue 9164

14 years ago#3214 followup: add link to ABC entry.
Georg Brandl [Sun, 11 Jul 2010 08:36:20 +0000 (08:36 +0000)]
#3214 followup: add link to ABC entry.

14 years agoSilence makeindex.
Georg Brandl [Sun, 11 Jul 2010 08:33:16 +0000 (08:33 +0000)]
Silence makeindex.

14 years agoIssue2007: Removing reference to MSIE Cookie handling by mechanize. Suggested by...
Senthil Kumaran [Sun, 11 Jul 2010 05:01:52 +0000 (05:01 +0000)]
Issue2007: Removing reference to MSIE Cookie handling by mechanize. Suggested by John J Lee.

14 years agoremove unneeded error check
Benjamin Peterson [Sun, 11 Jul 2010 03:36:35 +0000 (03:36 +0000)]
remove unneeded error check

14 years agoStricter verification for file based url scheme and reliance on ftp protocol.
Senthil Kumaran [Sun, 11 Jul 2010 03:12:43 +0000 (03:12 +0000)]
Stricter verification for file based url scheme and reliance on ftp protocol.

14 years agoValueError is eventually what we want to move to, I suppose
Benjamin Peterson [Sat, 10 Jul 2010 15:14:45 +0000 (15:14 +0000)]
ValueError is eventually what we want to move to, I suppose

14 years agoAdd missing docs for re module 'purge' function.
R. David Murray [Sat, 10 Jul 2010 14:23:36 +0000 (14:23 +0000)]
Add missing docs for re module 'purge' function.

14 years agoFix error message for comparing single line strings in unittest.TestCase.assertEqual.
Michael Foord [Sat, 10 Jul 2010 13:52:22 +0000 (13:52 +0000)]
Fix error message for comparing single line strings in unittest.TestCase.assertEqual.
Issue 9174.

14 years agoFix 'refleak' introduced by fnmatch cache purge tests.
R. David Murray [Sat, 10 Jul 2010 13:52:13 +0000 (13:52 +0000)]
Fix 'refleak' introduced by fnmatch cache purge tests.

This introduces a 'purge' function for the fnmatch module analogous
to the 'purge' function in the re module.

14 years ago#8564: update docs on integrating doctest/unittest with unittest(2) test discovery.
Georg Brandl [Sat, 10 Jul 2010 12:20:38 +0000 (12:20 +0000)]
#8564: update docs on integrating doctest/unittest with unittest(2) test discovery.

14 years ago#8456: fix signature of sqlite3.connect().
Georg Brandl [Sat, 10 Jul 2010 12:01:34 +0000 (12:01 +0000)]
#8456: fix signature of sqlite3.connect().

14 years ago#8338: fix outdated class name.
Georg Brandl [Sat, 10 Jul 2010 11:51:06 +0000 (11:51 +0000)]
#8338: fix outdated class name.

14 years ago#1434090: properly append child in expatbuilder doctype handler.
Georg Brandl [Sat, 10 Jul 2010 11:40:13 +0000 (11:40 +0000)]
#1434090: properly append child in expatbuilder doctype handler.

14 years ago#3214: improve description of duck-typing in glossary.
Georg Brandl [Sat, 10 Jul 2010 10:39:57 +0000 (10:39 +0000)]
#3214: improve description of duck-typing in glossary.

14 years ago#3071: tell how many values were expected when unpacking too many.
Georg Brandl [Sat, 10 Jul 2010 10:32:36 +0000 (10:32 +0000)]
#3071: tell how many values were expected when unpacking too many.

14 years agoEmphasize role of count for Pascal string.
Georg Brandl [Sat, 10 Jul 2010 10:23:40 +0000 (10:23 +0000)]
Emphasize role of count for Pascal string.

14 years agoFix markup.
Georg Brandl [Sat, 10 Jul 2010 08:58:37 +0000 (08:58 +0000)]
Fix markup.

14 years agoOops. Fix distutils tests that r82746 broke.
Jeffrey Yasskin [Fri, 9 Jul 2010 19:55:05 +0000 (19:55 +0000)]
Oops. Fix distutils tests that r82746 broke.

14 years agobe more robust across platforms
Benjamin Peterson [Fri, 9 Jul 2010 19:37:00 +0000 (19:37 +0000)]
be more robust across platforms

14 years agoSilence gcc warning. (In function 'bytearray_init': warning: 'value' may be used...
Mark Dickinson [Fri, 9 Jul 2010 19:25:48 +0000 (19:25 +0000)]
Silence gcc warning. (In function 'bytearray_init': warning: 'value' may be used uninitialized in this function).

14 years agoremove SocketIO.__del__; close() can handle it
Benjamin Peterson [Fri, 9 Jul 2010 18:28:25 +0000 (18:28 +0000)]
remove SocketIO.__del__; close() can handle it

14 years agoIssue #9189: Allow users to set $CFLAGS, $CPPFLAGS, and $LDFLAGS when running
Jeffrey Yasskin [Fri, 9 Jul 2010 16:30:58 +0000 (16:30 +0000)]
Issue #9189: Allow users to set $CFLAGS, $CPPFLAGS, and $LDFLAGS when running
configure to append to Python's default values for those variables, and
similarly allow users to set $XXFLAGS on the make command line to append to the
values set by configure.

In the makefile, this renames the variables that used to be $XXFLAGS to
$PY_XXFLAGS, and renames the old $PY_CFLAGS to $PY_CORE_CFLAGS.  To compensate,
sysconfig now aliases $XXFLAGS=$PY_XXFLAGS so that scripts using it keep
working.  I see that as the right interface, not a backward-compatibility hack,
since these are logically the $XXFLAGS variables; we just use a different name
in the makefile to deal with make's semantics.

14 years agoRe-flow several long lines from #1578269.
Brian Curtin [Fri, 9 Jul 2010 15:58:59 +0000 (15:58 +0000)]
Re-flow several long lines from #1578269.

14 years agoAdding versionchanged to the various Windows os.symlink additions, along
Brian Curtin [Fri, 9 Jul 2010 15:15:09 +0000 (15:15 +0000)]
Adding versionchanged to the various Windows os.symlink additions, along
with a few minor touchups.

14 years agoFix the breakage of Lib/tarfile.py on non-Windows platforms due to
Brian Curtin [Fri, 9 Jul 2010 13:54:27 +0000 (13:54 +0000)]
Fix the breakage of Lib/tarfile.py on non-Windows platforms due to
using WindowsError in a try/except. Only add WindowsError to the list of
exceptions to catch when we are actually running on Windows.

Additionally, add a call that was left out in test_posixpath.

Thanks Amaury, Antoine, and Jason.

14 years agowrap
Benjamin Peterson [Fri, 9 Jul 2010 13:31:11 +0000 (13:31 +0000)]
wrap

14 years agoallow more exceptions
Benjamin Peterson [Fri, 9 Jul 2010 13:28:42 +0000 (13:28 +0000)]
allow more exceptions

14 years agoReorder Jason "two O's" Coombs
Brian Curtin [Fri, 9 Jul 2010 13:22:07 +0000 (13:22 +0000)]
Reorder Jason "two O's" Coombs

14 years agoOverflowError is fine
Benjamin Peterson [Fri, 9 Jul 2010 13:20:40 +0000 (13:20 +0000)]
OverflowError is fine

14 years agoFix sort order mistake in Misc/ACKS.
R. David Murray [Fri, 9 Jul 2010 13:14:03 +0000 (13:14 +0000)]
Fix sort order mistake in Misc/ACKS.

14 years ago7846: limit fnmatch pattern cache to _MAXCACHE=100 entries.
R. David Murray [Fri, 9 Jul 2010 12:23:21 +0000 (12:23 +0000)]
7846: limit fnmatch pattern cache to _MAXCACHE=100 entries.

Patch by Andrew Clegg.

14 years ago2.7 is now stable.
Georg Brandl [Fri, 9 Jul 2010 07:33:15 +0000 (07:33 +0000)]
2.7 is now stable.

14 years agouse assert method
Benjamin Peterson [Fri, 9 Jul 2010 01:58:26 +0000 (01:58 +0000)]
use assert method

14 years agofix repr of complicated structseqs #9206
Benjamin Peterson [Thu, 8 Jul 2010 22:33:03 +0000 (22:33 +0000)]
fix repr of complicated structseqs #9206

14 years agoassert tuple inheritance
Benjamin Peterson [Thu, 8 Jul 2010 22:16:05 +0000 (22:16 +0000)]
assert tuple inheritance

14 years agoUndo inadvertant checkin.
Brian Curtin [Thu, 8 Jul 2010 22:13:25 +0000 (22:13 +0000)]
Undo inadvertant checkin.

14 years agoImplement #1578269. Patch by Jason R. Coombs.
Brian Curtin [Thu, 8 Jul 2010 21:39:08 +0000 (21:39 +0000)]
Implement #1578269. Patch by Jason R. Coombs.

Added Windows support for os.symlink when run on Windows 6.0 or greater,
aka Vista. Previous Windows versions will raise NotImplementedError
when trying to symlink.

Includes numerous test updates and additions to test_os, including
a symlink_support module because of the fact that privilege escalation
is required in order to run the tests to ensure that the user is able
to create symlinks. By default, accounts do not have the required
privilege, so the escalation code will have to be exposed later (or
documented on how to do so). I'll be following up with that work next.

Note that the tests use ctypes, which was agreed on during the PyCon
language summit.

14 years agoIssue #9136: Profiling Decimal gave 'dictionary changed size during iteration'.
Mark Dickinson [Thu, 8 Jul 2010 21:15:36 +0000 (21:15 +0000)]
Issue #9136: Profiling Decimal gave 'dictionary changed size during iteration'.
Remove the use of locals() that caused this error.

14 years agoFix misplaced exactness check that was causing unnecessary work in Decimal.__pow__.
Mark Dickinson [Thu, 8 Jul 2010 19:09:16 +0000 (19:09 +0000)]
Fix misplaced exactness check that was causing unnecessary work in Decimal.__pow__.

14 years agoFix a performance issue in Decimal.pow. Thanks Stefan Krah for finding this.
Mark Dickinson [Thu, 8 Jul 2010 19:03:34 +0000 (19:03 +0000)]
Fix a performance issue in Decimal.pow.  Thanks Stefan Krah for finding this.

14 years agoIssue #8605: Skip test_gdb if Python is compiled with optimizations.
Antoine Pitrou [Thu, 8 Jul 2010 18:51:30 +0000 (18:51 +0000)]
Issue #8605: Skip test_gdb if Python is compiled with optimizations.

14 years agoIn test_decimal, convert heuristic for skipping tests into an explicit skiplist.
Mark Dickinson [Thu, 8 Jul 2010 17:23:40 +0000 (17:23 +0000)]
In test_decimal, convert heuristic for skipping tests into an explicit skiplist.

14 years agoFix typo in a comment in mathmodule.c.
Ezio Melotti [Thu, 8 Jul 2010 15:03:02 +0000 (15:03 +0000)]
Fix typo in a comment in mathmodule.c.

14 years agoIssue #5288: Eliminated round-trips between timdelta and int offsets
Alexander Belopolsky [Wed, 7 Jul 2010 23:56:38 +0000 (23:56 +0000)]
Issue #5288: Eliminated round-trips between timdelta and int offsets

14 years agoValueError in this case is also acceptable
Benjamin Peterson [Wed, 7 Jul 2010 22:45:06 +0000 (22:45 +0000)]
ValueError in this case is also acceptable

14 years agomake struct sequences subclass tuple; kill lots of code
Benjamin Peterson [Wed, 7 Jul 2010 20:54:01 +0000 (20:54 +0000)]
make struct sequences subclass tuple; kill lots of code

This fixes #8413.

14 years agoadd NEWS
Benjamin Peterson [Wed, 7 Jul 2010 19:04:48 +0000 (19:04 +0000)]
add NEWS

14 years agoTurn more notes into comments.
Georg Brandl [Wed, 7 Jul 2010 19:04:36 +0000 (19:04 +0000)]
Turn more notes into comments.