]>
granicus.if.org Git - python/log
Antoine Pitrou [Sat, 28 Mar 2009 19:10:13 +0000 (19:10 +0000)]
Publicize the GC untracking optimization
Georg Brandl [Sat, 28 Mar 2009 00:48:48 +0000 (00:48 +0000)]
Fix typo.
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)
Benjamin Peterson [Thu, 26 Mar 2009 21:44:43 +0000 (21:44 +0000)]
fix another name
Benjamin Peterson [Thu, 26 Mar 2009 21:40:29 +0000 (21:40 +0000)]
update email tests to use SkipTest
Benjamin Peterson [Thu, 26 Mar 2009 21:30:54 +0000 (21:30 +0000)]
** is required here
Benjamin Peterson [Thu, 26 Mar 2009 21:30:10 +0000 (21:30 +0000)]
add missing import
Benjamin Peterson [Thu, 26 Mar 2009 21:11:16 +0000 (21:11 +0000)]
must pass argument to get expected behavior ;)
Benjamin Peterson [Thu, 26 Mar 2009 21:10:30 +0000 (21:10 +0000)]
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
Benjamin Peterson [Thu, 26 Mar 2009 20:49:40 +0000 (20:49 +0000)]
fix naming
Benjamin Peterson [Thu, 26 Mar 2009 20:48:25 +0000 (20:48 +0000)]
remove test_support.TestSkipped and just use unittest.SkipTest
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
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
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
Benjamin Peterson [Thu, 26 Mar 2009 19:09:21 +0000 (19:09 +0000)]
add support for PyPy
Benjamin Peterson [Thu, 26 Mar 2009 18:58:30 +0000 (18:58 +0000)]
roll old test in with new one
Benjamin Peterson [Thu, 26 Mar 2009 18:55:48 +0000 (18:55 +0000)]
more and more implementations now support sys.subversion
Benjamin Peterson [Thu, 26 Mar 2009 18:35:37 +0000 (18:35 +0000)]
add much better tests for python version information parsing
Benjamin Peterson [Thu, 26 Mar 2009 16:32:23 +0000 (16:32 +0000)]
remove uneeded function
Raymond Hettinger [Wed, 25 Mar 2009 22:41:32 +0000 (22:41 +0000)]
Separate initialization from clearing.
Benjamin Peterson [Wed, 25 Mar 2009 21:42:51 +0000 (21:42 +0000)]
this can be slightly less ugly
Benjamin Peterson [Wed, 25 Mar 2009 21:24:04 +0000 (21:24 +0000)]
add shorthands for expected failures and unexpected success
Marc-André Lemburg [Wed, 25 Mar 2009 19:45:33 +0000 (19:45 +0000)]
News item for the platform.py fix (r70594).
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.
Skip Montanaro [Wed, 25 Mar 2009 00:52:11 +0000 (00:52 +0000)]
clarify the type of data returned
Benjamin Peterson [Tue, 24 Mar 2009 23:07:07 +0000 (23:07 +0000)]
another style nit
Benjamin Peterson [Tue, 24 Mar 2009 22:56:32 +0000 (22:56 +0000)]
fix newline issue in test summary
Benjamin Peterson [Tue, 24 Mar 2009 03:24:56 +0000 (03:24 +0000)]
this is better written using assertRaises
Benjamin Peterson [Tue, 24 Mar 2009 01:11:37 +0000 (01:11 +0000)]
fix typo
Benjamin Peterson [Tue, 24 Mar 2009 00:39:24 +0000 (00:39 +0000)]
add new skipping things to __all__
Benjamin Peterson [Tue, 24 Mar 2009 00:37:12 +0000 (00:37 +0000)]
update docstring
Benjamin Peterson [Tue, 24 Mar 2009 00:36:16 +0000 (00:36 +0000)]
remove special metadata
Benjamin Peterson [Tue, 24 Mar 2009 00:35:20 +0000 (00:35 +0000)]
some cleanup and modernization
Raymond Hettinger [Tue, 24 Mar 2009 00:17:11 +0000 (00:17 +0000)]
Add links to related resources.
Benjamin Peterson [Mon, 23 Mar 2009 23:19:03 +0000 (23:19 +0000)]
update from CVS
Benjamin Peterson [Mon, 23 Mar 2009 23:13:36 +0000 (23:13 +0000)]
forgot to document that setUp can be skipped (silly me...)
Benjamin Peterson [Mon, 23 Mar 2009 23:10:14 +0000 (23:10 +0000)]
refactor unittest docs
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
Benjamin Peterson [Mon, 23 Mar 2009 21:50:21 +0000 (21:50 +0000)]
implement test skipping and expected failures
patch by myself #
1034053
Benjamin Peterson [Mon, 23 Mar 2009 21:25:15 +0000 (21:25 +0000)]
complain when there's no last exception
Benjamin Peterson [Mon, 23 Mar 2009 21:23:30 +0000 (21:23 +0000)]
revert r70552; wrong fix
Benjamin Peterson [Mon, 23 Mar 2009 20:47:59 +0000 (20:47 +0000)]
fix very old names for exception terms #5543
Antoine Pitrou [Mon, 23 Mar 2009 19:17:00 +0000 (19:17 +0000)]
The tracking statistics were actually too pessimistic
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)
Raymond Hettinger [Mon, 23 Mar 2009 18:26:59 +0000 (18:26 +0000)]
Make imported name private and wrap long-line.
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.
Raymond Hettinger [Mon, 23 Mar 2009 04:42:18 +0000 (04:42 +0000)]
Move initialization of root link to __init__.
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.
Benjamin Peterson [Sun, 22 Mar 2009 22:24:58 +0000 (22:24 +0000)]
AttributeError can be thrown during recursion errors
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.
Benjamin Peterson [Sun, 22 Mar 2009 17:45:11 +0000 (17:45 +0000)]
close the file even if an exception occurs #5536
Matthias Klose [Sun, 22 Mar 2009 13:08:22 +0000 (13:08 +0000)]
- Fix comment macro in python.man
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.
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.
Raymond Hettinger [Fri, 20 Mar 2009 18:25:49 +0000 (18:25 +0000)]
Add MutableSet example.
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.
Raymond Hettinger [Thu, 19 Mar 2009 23:22:25 +0000 (23:22 +0000)]
Fix typo
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.
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.
Raymond Hettinger [Thu, 19 Mar 2009 19:24:43 +0000 (19:24 +0000)]
Silence a compiler warning.
Raymond Hettinger [Thu, 19 Mar 2009 19:19:03 +0000 (19:19 +0000)]
Issue 5381: Add object_pairs_hook to the json module.
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.
Benjamin Peterson [Thu, 19 Mar 2009 03:04:31 +0000 (03:04 +0000)]
close files after comparing them
Raymond Hettinger [Wed, 18 Mar 2009 22:13:20 +0000 (22:13 +0000)]
Use mixin methods where possible. (2.7 only -- these don't all exist in 3.0)
Benjamin Peterson [Wed, 18 Mar 2009 20:58:09 +0000 (20:58 +0000)]
a much better example
Benjamin Peterson [Wed, 18 Mar 2009 20:52:15 +0000 (20:52 +0000)]
fix strange errors when setting attributes on tracebacks #4034
Antoine Pitrou [Wed, 18 Mar 2009 17:10:04 +0000 (17:10 +0000)]
Attempt to fix Solaris buildbot failure on test_locale
Mark Dickinson [Wed, 18 Mar 2009 16:07:26 +0000 (16:07 +0000)]
Issue 4474: On platforms with sizeof(wchar_t) == 4 and
sizeof(Py_UNICODE) == 2, PyUnicode_FromWideChar now converts
each character outside the BMP to the appropriate surrogate pair.
Thanks Victor Stinner for the patch.
(backport of r70452 from py3k to trunk)
Hirokazu Yamamoto [Wed, 18 Mar 2009 10:17:26 +0000 (10:17 +0000)]
Updated openssl support on VC6. (openssl-0.9.6g is old, cannot compile with _ssl.c)
If you use http://svn.python.org/projects/external/openssl-0.9.8g, Perl is not needed.
This scheme was ported from PCBuild.
Mark Dickinson [Wed, 18 Mar 2009 08:22:51 +0000 (08:22 +0000)]
Fix bug in _insert_thousands_sep: too much zero padding could be
added for 'n' formats with non-repeating thousands-separator.
Bob Ippolito [Tue, 17 Mar 2009 23:19:00 +0000 (23:19 +0000)]
merge json library with simplejson 2.0.9 (issue 4136)
Mark Dickinson [Tue, 17 Mar 2009 23:03:46 +0000 (23:03 +0000)]
Issue #2110: Add support for thousands separator and 'n' format specifier
to Decimal __format__ method.
Benjamin Peterson [Tue, 17 Mar 2009 20:29:51 +0000 (20:29 +0000)]
I thought this was begging for an example
Mark Dickinson [Tue, 17 Mar 2009 18:01:03 +0000 (18:01 +0000)]
Fix bug in Decimal __format__ method that swapped left and right
alignment.
Georg Brandl [Mon, 16 Mar 2009 19:42:03 +0000 (19:42 +0000)]
Add token markup.
Hirokazu Yamamoto [Sun, 15 Mar 2009 22:43:14 +0000 (22:43 +0000)]
Added skip for old MSVC.
Georg Brandl [Sun, 15 Mar 2009 22:11:07 +0000 (22:11 +0000)]
Move the previously local import of threading to module level.
This is cleaner and avoids lockups in obscure cases where a Queue
is instantiated while the import lock is already held by another thread.
OKed by Tim Peters.
Georg Brandl [Sun, 15 Mar 2009 21:59:37 +0000 (21:59 +0000)]
Fix markup in re docs and give a mail address in regex howto, so that
the recommendation to send suggestions to the author can be followed.
Georg Brandl [Sun, 15 Mar 2009 21:53:56 +0000 (21:53 +0000)]
#5469: add with statement to list of name-binding constructs.
Georg Brandl [Sun, 15 Mar 2009 21:51:48 +0000 (21:51 +0000)]
#5276: document IDLESTARTUP and .Idle.py.
Georg Brandl [Sun, 15 Mar 2009 21:47:42 +0000 (21:47 +0000)]
#5478: fix copy-paste oversight in function signature.
Georg Brandl [Sun, 15 Mar 2009 21:46:00 +0000 (21:46 +0000)]
#5488: add missing struct member.
Georg Brandl [Sun, 15 Mar 2009 21:44:43 +0000 (21:44 +0000)]
#5491: clarify nested() semantics.
Georg Brandl [Sun, 15 Mar 2009 21:43:38 +0000 (21:43 +0000)]
Fix a small nit in the error message if bool() falls back on __len__ and it returns the wrong type: it would tell the user that __nonzero__ should return bool or int.
Georg Brandl [Sun, 15 Mar 2009 21:37:16 +0000 (21:37 +0000)]
#5493: clarify __nonzero__ docs.
Georg Brandl [Sun, 15 Mar 2009 21:32:06 +0000 (21:32 +0000)]
#5496: fix docstring of lookup().
Benjamin Peterson [Sun, 15 Mar 2009 14:38:55 +0000 (14:38 +0000)]
fix tuple.index() error message #5495
Nick Coghlan [Sun, 15 Mar 2009 03:24:46 +0000 (03:24 +0000)]
Make marshalling errors a little more informative as to what went wrong
Eric Smith [Sat, 14 Mar 2009 14:37:38 +0000 (14:37 +0000)]
Unicode format tests weren't actually testing unicode. This was probably due to the original backport from py3k.
Eric Smith [Sat, 14 Mar 2009 11:57:26 +0000 (11:57 +0000)]
Issue 5237, Allow auto-numbered replacement fields in str.format() strings.
For simple uses for str.format(), this makes the typing easier. Hopfully this
will help in the adoption of str.format().
For example:
'The {} is {}'.format('sky', 'blue')
You can mix and matcth auto-numbering and named replacement fields:
'The {} is {color}'.format('sky', color='blue')
But you can't mix and match auto-numbering and specified numbering:
'The {0} is {}'.format('sky', 'blue')
ValueError: cannot switch from manual field specification to automatic field numbering
Will port to 3.1.
Antoine Pitrou [Sat, 14 Mar 2009 00:07:21 +0000 (00:07 +0000)]
Issue #1222: locale.format() bug when the thousands separator is a space character.
Georg Brandl [Fri, 13 Mar 2009 19:03:58 +0000 (19:03 +0000)]
#5486: typos.
Raymond Hettinger [Thu, 12 Mar 2009 00:31:58 +0000 (00:31 +0000)]
Issue 5477: Fix buglet in the itertools documentation.
Raymond Hettinger [Thu, 12 Mar 2009 00:25:03 +0000 (00:25 +0000)]
Add reference to solution for a commonly asked question.
Tarek Ziadé [Wed, 11 Mar 2009 12:48:04 +0000 (12:48 +0000)]
Issue #5472: Fixed distutils.test_util tear down
Brett Cannon [Wed, 11 Mar 2009 04:51:06 +0000 (04:51 +0000)]
Require implementations for warnings.showwarning() support the 'line' argument.
Was a DeprecationWarning for not supporting it since Python 2.6.
Closes issue #3652.
Raymond Hettinger [Tue, 10 Mar 2009 13:04:30 +0000 (13:04 +0000)]
Fix typo.
Raymond Hettinger [Tue, 10 Mar 2009 12:50:59 +0000 (12:50 +0000)]
For collections.deque() objects, expose the maxlen parameter as a read-only attribute.
Raymond Hettinger [Tue, 10 Mar 2009 09:31:48 +0000 (09:31 +0000)]
Small optimization for corner case where maxlen==0.
Raymond Hettinger [Tue, 10 Mar 2009 08:16:05 +0000 (08:16 +0000)]
Update the decimal FAQ for the from_float() classmethod and improve the recipe for remove_exponent() to make it cut and pasteable.