]>
granicus.if.org Git - python/log
Georg Brandl [Thu, 22 Jan 2009 18:29:28 +0000 (18:29 +0000)]
Clarify wording.
Raymond Hettinger [Thu, 22 Jan 2009 09:05:43 +0000 (09:05 +0000)]
Update comments and add an optimized path for Counter.update().
Raymond Hettinger [Thu, 22 Jan 2009 05:20:47 +0000 (05:20 +0000)]
More doc tweaks.
Raymond Hettinger [Wed, 21 Jan 2009 23:12:51 +0000 (23:12 +0000)]
Tighten-up the docs for Counter().
Raymond Hettinger [Wed, 21 Jan 2009 20:31:50 +0000 (20:31 +0000)]
Simplify explanation of multiset operations by removing restrictions on negative inputs.
Andrew M. Kuchling [Wed, 21 Jan 2009 02:16:26 +0000 (02:16 +0000)]
Markup fixes
Andrew M. Kuchling [Wed, 21 Jan 2009 02:15:43 +0000 (02:15 +0000)]
Add some items
Jesse Noller [Wed, 21 Jan 2009 02:08:17 +0000 (02:08 +0000)]
Issue 5009: multiprocessing: failure in manager._debug_info()
Antoine Pitrou [Wed, 21 Jan 2009 00:45:36 +0000 (00:45 +0000)]
Issue #5008: When a file is opened in append mode with the new IO library,
do an explicit seek to the end of file (so that e.g. tell() returns the
file size rather than 0). This is consistent with the behaviour of the
traditional 2.x file object.
Raymond Hettinger [Tue, 20 Jan 2009 23:42:54 +0000 (23:42 +0000)]
Beautify and cleanup the references section.
Vinay Sajip [Tue, 20 Jan 2009 23:16:08 +0000 (23:16 +0000)]
Issue 5013: Fixed bug in FileHandler when delay was set - added fix for RotatingFileHandler and changed header comment slightly.
Vinay Sajip [Tue, 20 Jan 2009 22:43:17 +0000 (22:43 +0000)]
Issue 5013: Fixed bug in FileHandler when delay was set.
Raymond Hettinger [Tue, 20 Jan 2009 20:34:19 +0000 (20:34 +0000)]
Issue 4998: __slots__ on Fractions was useless.
Benjamin Peterson [Tue, 20 Jan 2009 18:58:27 +0000 (18:58 +0000)]
fix url
Benjamin Peterson [Tue, 20 Jan 2009 14:31:08 +0000 (14:31 +0000)]
backport r68802 (bugfix)
Benjamin Peterson [Tue, 20 Jan 2009 14:21:16 +0000 (14:21 +0000)]
allow unicode keyword arguments for the ** syntax #4978
Raymond Hettinger [Tue, 20 Jan 2009 12:59:36 +0000 (12:59 +0000)]
Fix typos.
Raymond Hettinger [Tue, 20 Jan 2009 10:46:23 +0000 (10:46 +0000)]
Use Georg's new permalinks to documentation by version number.
That assures that IDLE's help always points to the correct
version and the latest update with all bug fixes.
Raymond Hettinger [Tue, 20 Jan 2009 07:11:47 +0000 (07:11 +0000)]
Don't disrupt automatic url target name generation
with manually specified, conflicting names.
Before:
http://docs.python.org/dev/library/collections.html#id1
After:
http://docs.python.org/dev/library/collections.html#counter-objects
Raymond Hettinger [Tue, 20 Jan 2009 03:36:36 +0000 (03:36 +0000)]
Make merging easier by formattng comment blocks the same in Py3.1
Raymond Hettinger [Tue, 20 Jan 2009 02:24:38 +0000 (02:24 +0000)]
Add Counter() to __all__.
Raymond Hettinger [Tue, 20 Jan 2009 01:19:26 +0000 (01:19 +0000)]
Build-outs for Counter() class:
* Constructor and update() support keyword args (like their dict counterparts).
* The 'del' statement no longer raises KeyError for missing values.
* Add multiset operations: __add__, __sub__, __and__, __or__.
Jesse Noller [Tue, 20 Jan 2009 00:16:38 +0000 (00:16 +0000)]
issue 5002: fix windows warning that I intro'ed with r68768
Benjamin Peterson [Mon, 19 Jan 2009 21:08:37 +0000 (21:08 +0000)]
I'm sick of these deprecations warnings in test_os
Benjamin Peterson [Mon, 19 Jan 2009 17:37:42 +0000 (17:37 +0000)]
make bad file descriptor tests more robust
Benjamin Peterson [Mon, 19 Jan 2009 16:18:27 +0000 (16:18 +0000)]
add email address
Benjamin Peterson [Mon, 19 Jan 2009 16:17:54 +0000 (16:17 +0000)]
move BufferedIOBase into the base class section
Benjamin Peterson [Mon, 19 Jan 2009 15:51:27 +0000 (15:51 +0000)]
simplify code
Benjamin Peterson [Mon, 19 Jan 2009 15:42:23 +0000 (15:42 +0000)]
add a note about the ftruncate change
Jesse Noller [Mon, 19 Jan 2009 15:12:22 +0000 (15:12 +0000)]
Resolve issue 3321: (segfault) _multiprocessing.Connection() doesn't check handle
Benjamin Peterson [Mon, 19 Jan 2009 15:06:33 +0000 (15:06 +0000)]
Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/python/branches/tnelson-trunk-bsddb-47-upgrade
Benjamin Peterson [Mon, 19 Jan 2009 15:04:35 +0000 (15:04 +0000)]
Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/python/branches/trunk-math
Kristján Valur Jónsson [Mon, 19 Jan 2009 13:10:27 +0000 (13:10 +0000)]
Issue 4957
Let os.ftruncate raise OSError like documented.
Vinay Sajip [Mon, 19 Jan 2009 06:49:19 +0000 (06:49 +0000)]
Added more cross-reference targets and tidied up list of useful handlers.
Benjamin Peterson [Mon, 19 Jan 2009 00:08:08 +0000 (00:08 +0000)]
raise an OSError for invalid fds #4991
Benjamin Peterson [Sun, 18 Jan 2009 22:47:04 +0000 (22:47 +0000)]
fix encoding cookie case
Benjamin Peterson [Sun, 18 Jan 2009 21:11:38 +0000 (21:11 +0000)]
fix test that wasn't working as expected #4990
Jesse Noller [Sun, 18 Jan 2009 21:04:36 +0000 (21:04 +0000)]
issue 4301: patch logging to add processName, remove the old _check_logger_class code
Georg Brandl [Sun, 18 Jan 2009 18:25:30 +0000 (18:25 +0000)]
#4986: augassigns are not expressions.
Georg Brandl [Sun, 18 Jan 2009 14:41:52 +0000 (14:41 +0000)]
#4923: clarify what was added.
Georg Brandl [Sun, 18 Jan 2009 13:47:26 +0000 (13:47 +0000)]
#4857: fix augmented assignment target spec.
Georg Brandl [Sun, 18 Jan 2009 13:24:10 +0000 (13:24 +0000)]
#4979: correct result range for some random functions.
Kristján Valur Jónsson [Sun, 18 Jan 2009 10:58:44 +0000 (10:58 +0000)]
issue 4293: make test_capi.py more robutst, it times out on some platforms, presumably waiting for threads. Lower the thread count to 16.
Georg Brandl [Sun, 18 Jan 2009 10:48:16 +0000 (10:48 +0000)]
#4914: trunc is in math.
Georg Brandl [Sun, 18 Jan 2009 10:45:22 +0000 (10:45 +0000)]
#4974: fix redundant mention of lists and tuples.
Georg Brandl [Sun, 18 Jan 2009 10:42:35 +0000 (10:42 +0000)]
#4976: union() and intersection() take multiple args, but talk about "the other".
Jesse Noller [Sun, 18 Jan 2009 02:45:38 +0000 (02:45 +0000)]
Resolve issue 4449: AssertionError in mp_benchmarks.py
Benjamin Peterson [Sun, 18 Jan 2009 01:28:46 +0000 (01:28 +0000)]
fix grammar
Benjamin Peterson [Sun, 18 Jan 2009 01:28:09 +0000 (01:28 +0000)]
bytearrays are mutable sequences
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 22:43:50 +0000 (22:43 +0000)]
follow-up of #3997: since 0xFFFF numbers are not enough to indicate a zip64 format,
always try to read the "zip64 end of directory structure".
Benjamin Peterson [Sat, 17 Jan 2009 22:27:54 +0000 (22:27 +0000)]
fix inspect.isclass() on instances with a custom __getattr__ #
1225107
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 20:18:59 +0000 (20:18 +0000)]
#4077: No need to append \n when calling Py_FatalError
+ fix a declaration to make it match the one in pythonrun.h
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 17:11:50 +0000 (17:11 +0000)]
#4930: Slightly cleaner (and faster) code in type creation:
compare slots by address, not by name.
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 16:40:17 +0000 (16:40 +0000)]
#3997: zipfiles generated with more than 65536 files could not be opened
with other applications.
Reviewed by Martin, will backport to 2.6 and 3.0
Benjamin Peterson [Sat, 17 Jan 2009 04:39:05 +0000 (04:39 +0000)]
trying to find some fpathconf() settings that all unixs support...
Benjamin Peterson [Sat, 17 Jan 2009 04:28:57 +0000 (04:28 +0000)]
use enumerate
Thomas Heller [Fri, 16 Jan 2009 18:53:44 +0000 (18:53 +0000)]
Change an example in the docs to avoid a mistake when the code is copy
pasted and changed afterwards.
Benjamin Peterson [Fri, 16 Jan 2009 02:55:24 +0000 (02:55 +0000)]
compare with == not is #4946
Vinay Sajip [Thu, 15 Jan 2009 23:04:47 +0000 (23:04 +0000)]
Minor changes/corrections in markup.
Vinay Sajip [Thu, 15 Jan 2009 22:48:13 +0000 (22:48 +0000)]
Made minor changes/corrections in markup. Added a couple of section headings.
Kristján Valur Jónsson [Thu, 15 Jan 2009 22:46:26 +0000 (22:46 +0000)]
Make all the invalid fd tests for os subject to the function being available.
Kristján Valur Jónsson [Thu, 15 Jan 2009 22:40:03 +0000 (22:40 +0000)]
Fix two test cases in test_os. ftruncate raises IOError unlike all the others which raise OSError. And close() on some platforms doesn't complain when given an invalid file descriptor.
Kristján Valur Jónsson [Thu, 15 Jan 2009 17:20:21 +0000 (17:20 +0000)]
Issue 4929: Handle socket errors when receiving
Mark Dickinson [Thu, 15 Jan 2009 15:17:43 +0000 (15:17 +0000)]
Another typo fix.
Mark Dickinson [Thu, 15 Jan 2009 14:58:28 +0000 (14:58 +0000)]
Comment typo
Mark Dickinson [Thu, 15 Jan 2009 14:54:37 +0000 (14:54 +0000)]
Issue #4397. Fix occasional test_socket failure on OS X.
Kristján Valur Jónsson [Thu, 15 Jan 2009 09:09:13 +0000 (09:09 +0000)]
Fix recently introduced test cases.
For datetime, gentoo didn't seem to mind the %e format for strftime. So, we just excercise those instead making sure that we don't crash.
For test_os, two cases were incorrect.
Kristján Valur Jónsson [Wed, 14 Jan 2009 10:50:57 +0000 (10:50 +0000)]
Re-enable all tests for windows platforms.
Also, explicitly connect to the IPV4 address. On windows platforms supporting AF_INET6, the SocketProxy would connect using socket.create_connection('localhost', port) which would cycle through all address families and try to connect. It would try connecting using AF_INET6 first and this would cause a delay of up to a second.
Raymond Hettinger [Wed, 14 Jan 2009 01:39:51 +0000 (01:39 +0000)]
Fix-up indentation of sample code blocks for namedtuple mthod definitions.
Raymond Hettinger [Wed, 14 Jan 2009 01:15:06 +0000 (01:15 +0000)]
Add tests for __init__() and update() with no args.
Raymond Hettinger [Wed, 14 Jan 2009 00:15:21 +0000 (00:15 +0000)]
Minor doc tweaks.
Benjamin Peterson [Tue, 13 Jan 2009 23:43:50 +0000 (23:43 +0000)]
fix test_xmlrpc failures #4939
Amaury Forgeot d'Arc [Tue, 13 Jan 2009 23:39:22 +0000 (23:39 +0000)]
#
1162154 : inspect.getmembers() now skips attributes that raise AttributeError,
e.g. a __slots__ attribute which has not been set.
Amaury Forgeot d'Arc [Tue, 13 Jan 2009 23:19:08 +0000 (23:19 +0000)]
#4807: Remove a wrong usage of wsprintf in the winreg module
("windows sprintf", different than swprintf)
Needed for the windows CE port.
Antoine Pitrou [Tue, 13 Jan 2009 23:13:52 +0000 (23:13 +0000)]
Issue #4935: The overflow checking code in the expandtabs() method common
to str, bytes and bytearray could be optimized away by the compiler, letting
the interpreter segfault instead of raising an error.
Benjamin Peterson [Tue, 13 Jan 2009 22:22:41 +0000 (22:22 +0000)]
de-spacify
Georg Brandl [Tue, 13 Jan 2009 22:14:01 +0000 (22:14 +0000)]
Use assertRaises.
Benjamin Peterson [Tue, 13 Jan 2009 21:43:11 +0000 (21:43 +0000)]
add bytearrayobject.h to PYTHON_HEADERS
Benjamin Peterson [Tue, 13 Jan 2009 21:42:23 +0000 (21:42 +0000)]
make bytearrayobject.o depend on the stringlib #4936
Thomas Heller [Tue, 13 Jan 2009 17:32:28 +0000 (17:32 +0000)]
Fix refcount leak in error cases. Bug found by coverity.
Andrew M. Kuchling [Tue, 13 Jan 2009 13:40:54 +0000 (13:40 +0000)]
Note that first coord. is left alone
Armin Ronacher [Tue, 13 Jan 2009 11:52:23 +0000 (11:52 +0000)]
ast.literal_eval can properly evaluate complex numbers now. This fixes issue4907.
Raymond Hettinger [Tue, 13 Jan 2009 09:08:32 +0000 (09:08 +0000)]
Issue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard().
Needs to be backported to 2.6 and forward ported to 3.0 and 3.1.
Raymond Hettinger [Tue, 13 Jan 2009 08:38:14 +0000 (08:38 +0000)]
Add table of idioms/patterns for using Counter objects.
Improve the appearance and flow of the References section -- it used
to have a box around it that wasn't distinct from the preceding code
boxes and it had a weird bolding pattern and hanging indents that
made the section disproportionately large.
Georg Brandl [Tue, 13 Jan 2009 08:11:07 +0000 (08:11 +0000)]
Fix call signature and markup.
Raymond Hettinger [Tue, 13 Jan 2009 04:50:35 +0000 (04:50 +0000)]
Speed-up __repr__. Eliminate duplicate tests. Use a from-irmport.
Raymond Hettinger [Tue, 13 Jan 2009 04:13:53 +0000 (04:13 +0000)]
Fixup and simplify docstrings and doctests.
Raymond Hettinger [Tue, 13 Jan 2009 03:49:43 +0000 (03:49 +0000)]
Minor documentation tweaks and simpler update() example.
Benjamin Peterson [Tue, 13 Jan 2009 01:49:10 +0000 (01:49 +0000)]
small logic correction
Raymond Hettinger [Tue, 13 Jan 2009 01:05:03 +0000 (01:05 +0000)]
Simplify Counter() API. Replace items keyword argument
with a mapping. Makes Counter() idempotent, makes update()
API the same as Counter.__init__(), makes a more readable
repr, makes the API more dict-like, and allows Steven
Bethard's update() example to work.
Amaury Forgeot d'Arc [Mon, 12 Jan 2009 23:36:55 +0000 (23:36 +0000)]
#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.
Raymond Hettinger [Mon, 12 Jan 2009 22:58:41 +0000 (22:58 +0000)]
Issue
1696199 : Add collections.Counter().
Vinay Sajip [Mon, 12 Jan 2009 20:36:18 +0000 (20:36 +0000)]
Minor changes/corrections in markup.
Kristján Valur Jónsson [Mon, 12 Jan 2009 18:09:27 +0000 (18:09 +0000)]
Add tests for invalid format specifiers in strftime, and for handling of invalid file descriptors in the os module.
Raymond Hettinger [Mon, 12 Jan 2009 10:37:32 +0000 (10:37 +0000)]
Optimize heapq.nsmallest/nlargest for cases where n==1 or n>=size.
Kristján Valur Jónsson [Mon, 12 Jan 2009 09:24:04 +0000 (09:24 +0000)]
Misc/NEWS for issue 4293
Kristján Valur Jónsson [Mon, 12 Jan 2009 09:20:34 +0000 (09:20 +0000)]
Update Misc/NEWS for issue 3582
Martin v. Löwis [Mon, 12 Jan 2009 08:11:24 +0000 (08:11 +0000)]
Issue #4893: Use NT threading on CE.
Martin v. Löwis [Mon, 12 Jan 2009 07:57:11 +0000 (07:57 +0000)]
Issue #4915: Port sysmodule to Windows CE.
Benjamin Peterson [Sun, 11 Jan 2009 19:48:15 +0000 (19:48 +0000)]
add email addresses