]> granicus.if.org Git - python/log
python
16 years ago* Set a custom icon on the Python installer DMG
Ronald Oussoren [Mon, 30 Mar 2009 19:34:51 +0000 (19:34 +0000)]
* Set a custom icon on the Python installer DMG
* Remove last traces of "MacPython"
* Add options to build different flavors of the installer
  (still defaulting to a 2-way universal build that
  runs on OSX 10.3)

16 years agoRemove usage of the deprecated '-cString' and '+stringWithCString:' API's
Ronald Oussoren [Mon, 30 Mar 2009 19:22:56 +0000 (19:22 +0000)]
Remove usage of the deprecated '-cString' and '+stringWithCString:' API's
in PythonLauncher, replacing them with the correct counterparts.

16 years agoAdd import_function method to test.test_support, and modify a number of
R. David Murray [Mon, 30 Mar 2009 19:04:00 +0000 (19:04 +0000)]
Add import_function method to test.test_support, and modify a number of
tests that expect to be skipped if imports fail or functions don't
exist to use import_function and import_module.  The ultimate goal is
to change regrtest to not skip automatically on ImportError.  Checking
in now to make sure the buldbots don't show any errors on platforms
I can't direct test on.

16 years agoFix issue where 'make altinstall' or 'make install' would install everything
Ronald Oussoren [Mon, 30 Mar 2009 17:53:39 +0000 (17:53 +0000)]
Fix issue where 'make altinstall' or 'make install' would install everything
that needs to be installed on OSX (depending on the configure flags)

16 years ago* Updates installed dependencies to latest releaases (bzip, zlib, ...)
Ronald Oussoren [Mon, 30 Mar 2009 17:15:29 +0000 (17:15 +0000)]
* Updates installed dependencies to latest releaases (bzip, zlib, ...)
* Changes code for updating folder icons from Python code
  that uses the deprecated Carbon module to a much simpler
  Cocoa program in Objective-C

16 years agoTk 8.5 Text widget requires 'wordprocessor' tabstyle attr to handle mixed space/tab...
Kurt B. Kaiser [Mon, 30 Mar 2009 16:22:00 +0000 (16:22 +0000)]
Tk 8.5 Text widget requires 'wordprocessor' tabstyle attr to handle mixed space/tab properly. Issue 5120, patch by Guilherme Polo.

16 years agoFix for issue 896199 (some Carbon modules aren't present in the documentation)
Ronald Oussoren [Mon, 30 Mar 2009 16:01:51 +0000 (16:01 +0000)]
Fix for issue 896199 (some Carbon modules aren't present in the documentation)

16 years agoIssue 5177: use socket.SO_REUSEADDR on multiprocessing SocketManager sockets
Jesse Noller [Mon, 30 Mar 2009 15:50:42 +0000 (15:50 +0000)]
Issue 5177: use socket.SO_REUSEADDR on multiprocessing SocketManager sockets

16 years agoRevert incorrect change.
R. David Murray [Mon, 30 Mar 2009 15:30:34 +0000 (15:30 +0000)]
Revert incorrect change.

16 years agoAdd an entry to developers.txt.
Brett Cannon [Mon, 30 Mar 2009 15:20:53 +0000 (15:20 +0000)]
Add an entry to developers.txt.

16 years agoThis patch fixes issue 1254695 (wrong argument type conversion in Carbon.Qt)
Ronald Oussoren [Mon, 30 Mar 2009 15:20:46 +0000 (15:20 +0000)]
This patch fixes issue 1254695 (wrong argument type conversion in Carbon.Qt)

16 years agodon't rely on the order dict repr #5605
Benjamin Peterson [Mon, 30 Mar 2009 15:15:38 +0000 (15:15 +0000)]
don't rely on the order dict repr #5605

16 years agoConvert import try/except to use test_support.import_module().
R. David Murray [Mon, 30 Mar 2009 15:14:01 +0000 (15:14 +0000)]
Convert import try/except to use test_support.import_module().

16 years agoadd missing import
Benjamin Peterson [Mon, 30 Mar 2009 14:42:23 +0000 (14:42 +0000)]
add missing import

16 years agothere's actually three methods here #5600
Benjamin Peterson [Mon, 30 Mar 2009 02:49:32 +0000 (02:49 +0000)]
there's actually three methods here #5600

16 years agofix import
Benjamin Peterson [Mon, 30 Mar 2009 02:14:21 +0000 (02:14 +0000)]
fix import

16 years agoIssue 5381: fix regression in pure python code path, Issue 5584: fix a decoder bug...
Bob Ippolito [Sun, 29 Mar 2009 22:33:58 +0000 (22:33 +0000)]
Issue 5381: fix regression in pure python code path, Issue 5584: fix a decoder bug for unicode float literals outside of a container

16 years agoadd missing import
Benjamin Peterson [Sun, 29 Mar 2009 22:27:26 +0000 (22:27 +0000)]
add missing import

16 years agouse the awesome new status iterator
Benjamin Peterson [Sun, 29 Mar 2009 21:50:14 +0000 (21:50 +0000)]
use the awesome new status iterator

16 years agothanks to guido's bytecode verifier, this is fixed
Benjamin Peterson [Sun, 29 Mar 2009 21:31:05 +0000 (21:31 +0000)]
thanks to guido's bytecode verifier, this is fixed

16 years agothis has been fixed since 2.6 (I love removing these)
Benjamin Peterson [Sun, 29 Mar 2009 21:22:35 +0000 (21:22 +0000)]
this has been fixed since 2.6 (I love removing these)

16 years agoMake life easier for non-CPython implementations.
Raymond Hettinger [Sun, 29 Mar 2009 18:51:11 +0000 (18:51 +0000)]
Make life easier for non-CPython implementations.

16 years agoIssue #532631: Apply floatformat changes to unicodeobject.c
Mark Dickinson [Sun, 29 Mar 2009 16:24:29 +0000 (16:24 +0000)]
Issue #532631: Apply floatformat changes to unicodeobject.c
as well as stringobject.c.

16 years agoIssue #532631: Add paranoid check to avoid potential buffer overflow
Mark Dickinson [Sun, 29 Mar 2009 16:17:16 +0000 (16:17 +0000)]
Issue #532631:  Add paranoid check to avoid potential buffer overflow
on systems with sizeof(int) > 4.

16 years agoIssue #532631: Replace confusing fabs(x)/1e25 >= 1e25 test
Mark Dickinson [Sun, 29 Mar 2009 14:37:51 +0000 (14:37 +0000)]
Issue #532631: Replace confusing fabs(x)/1e25 >= 1e25 test
with fabs(x) >= 1e50, and fix documentation.

16 years agoTypo fix.
Guilherme Polo [Sun, 29 Mar 2009 10:19:05 +0000 (10:19 +0000)]
Typo fix.

16 years agoAdd the ability to control the random seed used by regrtest.py -r.
Collin Winter [Sun, 29 Mar 2009 03:44:19 +0000 (03:44 +0000)]
Add the ability to control the random seed used by regrtest.py -r.

This adds a --randseed option, and makes regrtest.py -r indicate what random seed it's using so that that value can later be fed back to --randseed. This option is useful for tracking down test order-related issues found by make buildbottest, for example.

16 years agofix consistency
Benjamin Peterson [Sun, 29 Mar 2009 03:39:58 +0000 (03:39 +0000)]
fix consistency

16 years agostop the versionchanged directive from hiding the docs
Benjamin Peterson [Sun, 29 Mar 2009 03:31:40 +0000 (03:31 +0000)]
stop the versionchanged directive from hiding the docs

16 years agoa more realistic example
Benjamin Peterson [Sun, 29 Mar 2009 03:16:57 +0000 (03:16 +0000)]
a more realistic example

16 years agoAdd section numbering to some of the larger subdocuments.
Georg Brandl [Sat, 28 Mar 2009 19:57:36 +0000 (19:57 +0000)]
Add section numbering to some of the larger subdocuments.

16 years agoSwitch to fixed Sphinx version.
Georg Brandl [Sat, 28 Mar 2009 19:52:58 +0000 (19:52 +0000)]
Switch to fixed Sphinx version.

16 years agoAdd a script to fixup rst files if the pre-commit hook rejects them.
Georg Brandl [Sat, 28 Mar 2009 19:33:33 +0000 (19:33 +0000)]
Add a script to fixup rst files if the pre-commit hook rejects them.

16 years agoFix a typo and be more specific
Antoine Pitrou [Sat, 28 Mar 2009 19:17:54 +0000 (19:17 +0000)]
Fix a typo and be more specific

16 years agoTypo fix
Guilherme Polo [Sat, 28 Mar 2009 19:17:16 +0000 (19:17 +0000)]
Typo fix

16 years agogive os.symlink and os.link() better parameter names #5564
Benjamin Peterson [Sat, 28 Mar 2009 19:16:10 +0000 (19:16 +0000)]
give os.symlink and os.link() better parameter names #5564

16 years ago#5324: document __subclasses__().
Georg Brandl [Sat, 28 Mar 2009 19:10:37 +0000 (19:10 +0000)]
#5324: document __subclasses__().

16 years agoPublicize the GC untracking optimization
Antoine Pitrou [Sat, 28 Mar 2009 19:10:13 +0000 (19:10 +0000)]
Publicize the GC untracking optimization

16 years agoFix typo.
Georg Brandl [Sat, 28 Mar 2009 00:48:48 +0000 (00:48 +0000)]
Fix typo.

16 years agoAdjusted _tkinter to compile without warnings when WITH_THREAD is not
Guilherme Polo [Fri, 27 Mar 2009 21:43:08 +0000 (21:43 +0000)]
Adjusted _tkinter to compile without warnings when WITH_THREAD is not
defined (part of issue #5035)

16 years agofix another name
Benjamin Peterson [Thu, 26 Mar 2009 21:44:43 +0000 (21:44 +0000)]
fix another name

16 years agoupdate email tests to use SkipTest
Benjamin Peterson [Thu, 26 Mar 2009 21:40:29 +0000 (21:40 +0000)]
update email tests to use SkipTest

16 years ago** is required here
Benjamin Peterson [Thu, 26 Mar 2009 21:30:54 +0000 (21:30 +0000)]
** is required here

16 years agoadd missing import
Benjamin Peterson [Thu, 26 Mar 2009 21:30:10 +0000 (21:30 +0000)]
add missing import

16 years agomust pass argument to get expected behavior ;)
Benjamin Peterson [Thu, 26 Mar 2009 21:11:16 +0000 (21:11 +0000)]
must pass argument to get expected behavior ;)

16 years agofix incorrect auto-translation of TestSkipped -> unittest.SkipTest
Benjamin Peterson [Thu, 26 Mar 2009 21:10:30 +0000 (21:10 +0000)]
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest

16 years agofix naming
Benjamin Peterson [Thu, 26 Mar 2009 20:49:40 +0000 (20:49 +0000)]
fix naming

16 years agoremove test_support.TestSkipped and just use unittest.SkipTest
Benjamin Peterson [Thu, 26 Mar 2009 20:48:25 +0000 (20:48 +0000)]
remove test_support.TestSkipped and just use unittest.SkipTest

16 years agoapply the second part of #4242's patch; classify all the implementation details in...
Benjamin Peterson [Thu, 26 Mar 2009 20:17:27 +0000 (20:17 +0000)]
apply the second part of #4242's patch; classify all the implementation details in test_descr

16 years agorename TestCase.skip() to skipTest() because it causes annoying problems with trial...
Benjamin Peterson [Thu, 26 Mar 2009 20:05:50 +0000 (20:05 +0000)]
rename TestCase.skip() to skipTest() because it causes annoying problems with trial #5571

16 years agoadd some useful utilities for skipping tests with unittest's new skipping ability
Benjamin Peterson [Thu, 26 Mar 2009 19:58:18 +0000 (19:58 +0000)]
add some useful utilities for skipping tests with unittest's new skipping ability

most significantly apply a modified portion of the patch from #4242 with
patches for skipping implementation details

16 years agoadd support for PyPy
Benjamin Peterson [Thu, 26 Mar 2009 19:09:21 +0000 (19:09 +0000)]
add support for PyPy

16 years agoroll old test in with new one
Benjamin Peterson [Thu, 26 Mar 2009 18:58:30 +0000 (18:58 +0000)]
roll old test in with new one

16 years agomore and more implementations now support sys.subversion
Benjamin Peterson [Thu, 26 Mar 2009 18:55:48 +0000 (18:55 +0000)]
more and more implementations now support sys.subversion

16 years agoadd much better tests for python version information parsing
Benjamin Peterson [Thu, 26 Mar 2009 18:35:37 +0000 (18:35 +0000)]
add much better tests for python version information parsing

16 years agoremove uneeded function
Benjamin Peterson [Thu, 26 Mar 2009 16:32:23 +0000 (16:32 +0000)]
remove uneeded function

16 years agoSeparate initialization from clearing.
Raymond Hettinger [Wed, 25 Mar 2009 22:41:32 +0000 (22:41 +0000)]
Separate initialization from clearing.

16 years agothis can be slightly less ugly
Benjamin Peterson [Wed, 25 Mar 2009 21:42:51 +0000 (21:42 +0000)]
this can be slightly less ugly

16 years agoadd shorthands for expected failures and unexpected success
Benjamin Peterson [Wed, 25 Mar 2009 21:24:04 +0000 (21:24 +0000)]
add shorthands for expected failures and unexpected success

16 years agoNews item for the platform.py fix (r70594).
Marc-André Lemburg [Wed, 25 Mar 2009 19:45:33 +0000 (19:45 +0000)]
News item for the platform.py fix (r70594).

16 years agoRemove the sys.version_info shortcut, since they cause the APIs
Marc-André Lemburg [Wed, 25 Mar 2009 19:44:58 +0000 (19:44 +0000)]
Remove the sys.version_info shortcut, since they cause the APIs
to return different information than the _sys_version() output
used in previous Python versions.

This also fixes issue5561: platform.python_version_tuple returns tuple of ints, should be strings

Added more tests for the various platform functions.

16 years agoclarify the type of data returned
Skip Montanaro [Wed, 25 Mar 2009 00:52:11 +0000 (00:52 +0000)]
clarify the type of data returned

16 years agoanother style nit
Benjamin Peterson [Tue, 24 Mar 2009 23:07:07 +0000 (23:07 +0000)]
another style nit

16 years agofix newline issue in test summary
Benjamin Peterson [Tue, 24 Mar 2009 22:56:32 +0000 (22:56 +0000)]
fix newline issue in test summary

16 years agothis is better written using assertRaises
Benjamin Peterson [Tue, 24 Mar 2009 03:24:56 +0000 (03:24 +0000)]
this is better written using assertRaises

16 years agofix typo
Benjamin Peterson [Tue, 24 Mar 2009 01:11:37 +0000 (01:11 +0000)]
fix typo

16 years agoadd new skipping things to __all__
Benjamin Peterson [Tue, 24 Mar 2009 00:39:24 +0000 (00:39 +0000)]
add new skipping things to __all__

16 years agoupdate docstring
Benjamin Peterson [Tue, 24 Mar 2009 00:37:12 +0000 (00:37 +0000)]
update docstring

16 years agoremove special metadata
Benjamin Peterson [Tue, 24 Mar 2009 00:36:16 +0000 (00:36 +0000)]
remove special metadata

16 years agosome cleanup and modernization
Benjamin Peterson [Tue, 24 Mar 2009 00:35:20 +0000 (00:35 +0000)]
some cleanup and modernization

16 years agoAdd links to related resources.
Raymond Hettinger [Tue, 24 Mar 2009 00:17:11 +0000 (00:17 +0000)]
Add links to related resources.

16 years agoupdate from CVS
Benjamin Peterson [Mon, 23 Mar 2009 23:19:03 +0000 (23:19 +0000)]
update from CVS

16 years agoforgot to document that setUp can be skipped (silly me...)
Benjamin Peterson [Mon, 23 Mar 2009 23:13:36 +0000 (23:13 +0000)]
forgot to document that setUp can be skipped (silly me...)

16 years agorefactor unittest docs
Benjamin Peterson [Mon, 23 Mar 2009 23:10:14 +0000 (23:10 +0000)]
refactor unittest docs

16 years agocomply with the evilJavaNamingScheme for attribute names
Benjamin Peterson [Mon, 23 Mar 2009 22:29:45 +0000 (22:29 +0000)]
comply with the evilJavaNamingScheme for attribute names

It seems my love of PEP 8 overrode the need for consistentcy

16 years agoimplement test skipping and expected failures
Benjamin Peterson [Mon, 23 Mar 2009 21:50:21 +0000 (21:50 +0000)]
implement test skipping and expected failures

patch by myself #1034053

16 years agocomplain when there's no last exception
Benjamin Peterson [Mon, 23 Mar 2009 21:25:15 +0000 (21:25 +0000)]
complain when there's no last exception

16 years agorevert r70552; wrong fix
Benjamin Peterson [Mon, 23 Mar 2009 21:23:30 +0000 (21:23 +0000)]
revert r70552; wrong fix

16 years agofix very old names for exception terms #5543
Benjamin Peterson [Mon, 23 Mar 2009 20:47:59 +0000 (20:47 +0000)]
fix very old names for exception terms #5543

16 years agoThe tracking statistics were actually too pessimistic
Antoine Pitrou [Mon, 23 Mar 2009 19:17:00 +0000 (19:17 +0000)]
The tracking statistics were actually too pessimistic

16 years agoIssue #4688: Add a heuristic so that tuples and dicts containing only
Antoine Pitrou [Mon, 23 Mar 2009 18:41:45 +0000 (18:41 +0000)]
Issue #4688: Add a heuristic so that tuples and dicts containing only
untrackable objects are not tracked by the garbage collector. This can
reduce the size of collections and therefore the garbage collection overhead
on long-running programs, depending on their particular use of datatypes.

(trivia: this makes the "binary_trees" benchmark from the Computer Language
Shootout 40% faster)

16 years agoMake imported name private and wrap long-line.
Raymond Hettinger [Mon, 23 Mar 2009 18:26:59 +0000 (18:26 +0000)]
Make imported name private and wrap long-line.

16 years agoIssue #5512: speed up the long division algorithm for Python longs.
Mark Dickinson [Mon, 23 Mar 2009 18:25:13 +0000 (18:25 +0000)]
Issue #5512: speed up the long division algorithm for Python longs.
The basic algorithm remains the same; the most significant speedups
come from the following three changes:

  (1) normalize by shifting instead of multiplying and dividing
  (2) the old algorithm usually did an unnecessary extra iteration of
      the outer loop; remove this.  As a special case, this means that
      long divisions with a single-digit result run twice as fast as
      before.
  (3) make inner loop much tighter.

Various benchmarks show speedups of between 50% and 150% for long
integer divisions and modulo operations.

16 years agoMove initialization of root link to __init__.
Raymond Hettinger [Mon, 23 Mar 2009 04:42:18 +0000 (04:42 +0000)]
Move initialization of root link to __init__.

16 years agoAdd more comments. Improve variable names.
Raymond Hettinger [Mon, 23 Mar 2009 00:08:09 +0000 (00:08 +0000)]
Add more comments.  Improve variable names.
Make links clearer by using a Link object
instead of a list.  Use proxy links to avoid
circular references.

16 years agoAttributeError can be thrown during recursion errors
Benjamin Peterson [Sun, 22 Mar 2009 22:24:58 +0000 (22:24 +0000)]
AttributeError can be thrown during recursion errors

16 years agoIssue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loop
Lars Gustäbel [Sun, 22 Mar 2009 20:09:33 +0000 (20:09 +0000)]
Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loop
forever on incomplete input. That caused tarfile.open() to hang when used
with mode 'r' or 'r:bz2' and a fileobj argument that contained no data or
partial bzip2 compressed data.

16 years agoclose the file even if an exception occurs #5536
Benjamin Peterson [Sun, 22 Mar 2009 17:45:11 +0000 (17:45 +0000)]
close the file even if an exception occurs #5536

16 years ago- Fix comment macro in python.man
Matthias Klose [Sun, 22 Mar 2009 13:08:22 +0000 (13:08 +0000)]
- Fix comment macro in python.man

16 years agoThere is no macro named SIZEOF_SSIZE_T. Should use SIZEOF_SIZE_T instead.
Hirokazu Yamamoto [Sat, 21 Mar 2009 10:32:52 +0000 (10:32 +0000)]
There is no macro named SIZEOF_SSIZE_T. Should use SIZEOF_SIZE_T instead.

16 years agoRewrite Py_ARITHMETIC_RIGHT_SHIFT so that it's valid for all signed
Mark Dickinson [Fri, 20 Mar 2009 23:16:14 +0000 (23:16 +0000)]
Rewrite Py_ARITHMETIC_RIGHT_SHIFT so that it's valid for all signed
integer types T, not just those for which "unsigned T" is legal.

16 years agoAdd MutableSet example.
Raymond Hettinger [Fri, 20 Mar 2009 18:25:49 +0000 (18:25 +0000)]
Add MutableSet example.

16 years agoIssue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson [Fri, 20 Mar 2009 15:51:55 +0000 (15:51 +0000)]
Issue #4258:  Use 30-bit digits for Python longs, on 64-bit platforms.
Backport of r70459.

16 years agoFix typo
Raymond Hettinger [Thu, 19 Mar 2009 23:22:25 +0000 (23:22 +0000)]
Fix typo

16 years ago* Add implementation notes.
Raymond Hettinger [Thu, 19 Mar 2009 23:12:41 +0000 (23:12 +0000)]
* Add implementation notes.
* Re-order methods so that those touching the underlying data
  structure come first and the derived methods come last.

16 years ago* Add clearer comment to initialization code.
Raymond Hettinger [Thu, 19 Mar 2009 19:59:58 +0000 (19:59 +0000)]
* Add clearer comment to initialization code.
* Add optional argument to popitem() -- modeled
  after Anthon van der Neut's C version.
* Fix method markup in docs.

16 years agoSilence a compiler warning.
Raymond Hettinger [Thu, 19 Mar 2009 19:24:43 +0000 (19:24 +0000)]
Silence a compiler warning.

16 years agoIssue 5381: Add object_pairs_hook to the json module.
Raymond Hettinger [Thu, 19 Mar 2009 19:19:03 +0000 (19:19 +0000)]
Issue 5381:  Add object_pairs_hook to the json module.

16 years agoImprove implementation with better underlying data structure
Raymond Hettinger [Thu, 19 Mar 2009 15:21:10 +0000 (15:21 +0000)]
Improve implementation with better underlying data structure
for O(1) deletions.  Big-Oh performance now the same as regular
dictionaries.  Uses a doubly-linked list instead of a list/seq
to track insertion order.

16 years agoclose files after comparing them
Benjamin Peterson [Thu, 19 Mar 2009 03:04:31 +0000 (03:04 +0000)]
close files after comparing them