]>
granicus.if.org Git - python/log
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
Gregory P. Smith [Sun, 11 Jan 2009 17:57:54 +0000 (17:57 +0000)]
Update the documentation for binascii and zlib crc32/adler32 functions
to better describe the signed vs unsigned return value behavior on
different platforms and versions of python. Mention the workaround to
make them all return the same thing by using & 0xffffffff.
Fixes issue4903.
Also needs to be merged into release26-maint, release30-maint, & py3k.
Gregory P. Smith [Sun, 11 Jan 2009 17:53:33 +0000 (17:53 +0000)]
correct email address
Kristján Valur Jónsson [Sun, 11 Jan 2009 16:23:37 +0000 (16:23 +0000)]
Issue 4879: Allow buffering for HTTPResponse
Martin v. Löwis [Sun, 11 Jan 2009 09:43:55 +0000 (09:43 +0000)]
Issue #4895: Use _strdup on Windows CE.
Martin v. Löwis [Sun, 11 Jan 2009 09:26:54 +0000 (09:26 +0000)]
Issue #4279: Fix build of parsermodule under Cygwin.
Hirokazu Yamamoto [Sun, 11 Jan 2009 03:28:13 +0000 (03:28 +0000)]
Fixed version number in build_ssl.bat.
Benjamin Peterson [Sat, 10 Jan 2009 23:49:08 +0000 (23:49 +0000)]
macos 9 isn't supported
Benjamin Peterson [Sat, 10 Jan 2009 23:41:59 +0000 (23:41 +0000)]
move seealso to a more appropiate place
Benjamin Peterson [Sat, 10 Jan 2009 22:42:10 +0000 (22:42 +0000)]
make tests fail if they can't be imported
Vinay Sajip [Sat, 10 Jan 2009 19:22:57 +0000 (19:22 +0000)]
Corrected minor typo and added .currentmodule directives to fix missing cross-references.
Mark Dickinson [Sat, 10 Jan 2009 19:14:55 +0000 (19:14 +0000)]
Remove an unnecessary check from test_decimal.
Benjamin Peterson [Sat, 10 Jan 2009 19:08:49 +0000 (19:08 +0000)]
fix encoding
Antoine Pitrou [Sat, 10 Jan 2009 18:33:21 +0000 (18:33 +0000)]
Add ACKS entries for some of the patches I've been committing.
Benjamin Peterson [Sat, 10 Jan 2009 17:36:44 +0000 (17:36 +0000)]
tp_iter only exists with Py_TPFLAGS_HAVE_ITER #4901
Benjamin Peterson [Sat, 10 Jan 2009 17:18:55 +0000 (17:18 +0000)]
rewrite verbose conditionals
Matthias Klose [Sat, 10 Jan 2009 17:00:42 +0000 (17:00 +0000)]
- Issue #4861: ctypes.util.find_library(): Robustify. Fix library detection on
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
Antoine Pitrou [Sat, 10 Jan 2009 16:15:24 +0000 (16:15 +0000)]
Add NEWS entry for r68484.
Antoine Pitrou [Sat, 10 Jan 2009 16:13:45 +0000 (16:13 +0000)]
Issue #3860: GzipFile and BZ2File now support the context manager protocol.
Vinay Sajip [Sat, 10 Jan 2009 13:42:04 +0000 (13:42 +0000)]
Corrected an incorrect self-reference.
Vinay Sajip [Sat, 10 Jan 2009 13:38:04 +0000 (13:38 +0000)]
Minor documentation changes cross-referencing NullHandler to the documentation on configuring logging in a library.
Kristján Valur Jónsson [Sat, 10 Jan 2009 12:14:31 +0000 (12:14 +0000)]
Issue 4906: Preserve windows error state across PyThread_get_key_value
Hirokazu Yamamoto [Sat, 10 Jan 2009 09:18:16 +0000 (09:18 +0000)]
Added helper script to build Tcl/Tk.
Hirokazu Yamamoto [Sat, 10 Jan 2009 08:12:09 +0000 (08:12 +0000)]
Link to debug version of Tcl/Tk when python is built as debug version.
Hirokazu Yamamoto [Sat, 10 Jan 2009 08:09:43 +0000 (08:09 +0000)]
Bump up Tcl/Tk version on VC6. (tcl8.4.12 -> tcl8.5.2, tk8.4.12 -> tk8.5.2, tix8.4.0 -> tix8.4.3)
Antoine Pitrou [Fri, 9 Jan 2009 21:40:55 +0000 (21:40 +0000)]
Issue #4074: Change the criteria for doing a full garbage collection (i.e.
collecting the oldest generation) so that allocating lots of objects without
destroying them does not show quadratic performance. Based on a proposal by
Martin von Löwis at http://mail.python.org/pipermail/python-dev/2008-June/080579.html.
Kristján Valur Jónsson [Fri, 9 Jan 2009 21:35:16 +0000 (21:35 +0000)]
Issue 4293: Make Py_AddPendingCall() thread safe
Add test cases and documentation
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:31:26 +0000 (20:31 +0000)]
Issue 4293: Make Py_AddPendingCall() thread safe
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:27:16 +0000 (20:27 +0000)]
Issue 4336: Let users of HTTPConnection.endheaders() submit a message body to the function if required.
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:23:16 +0000 (20:23 +0000)]
Issue 4336: HTTPRequest._send_output() now deals with the case of the message body not being a string. This allows clients to use endheaders(message_body) instead of endheaders() + send(message_body) without making any extra checks.
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:10:59 +0000 (20:10 +0000)]
Issue 3677: Fix import from UNC paths on Windows.
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:03:27 +0000 (20:03 +0000)]
Issue 3582. Improved thread support and TLS for Windows
Jeffrey Yasskin [Fri, 9 Jan 2009 16:47:07 +0000 (16:47 +0000)]
Fix issue 4884, preventing a crash in the socket code when python is compiled
with llvm-gcc and run with a glibc <2.10.
Hirokazu Yamamoto [Fri, 9 Jan 2009 04:10:40 +0000 (04:10 +0000)]
Bump up bsddb version on VC6. (db-4.4.20 -> db-4.7.25)
Hirokazu Yamamoto [Fri, 9 Jan 2009 03:32:46 +0000 (03:32 +0000)]
Bump up bzip2 version on VC6. (bzip2-1.0.3 -> bzip2-1.0.5)
Benjamin Peterson [Fri, 9 Jan 2009 03:15:00 +0000 (03:15 +0000)]
remove temporary code now
Benjamin Peterson [Fri, 9 Jan 2009 03:07:27 +0000 (03:07 +0000)]
be more specific in -3 option help
Benjamin Peterson [Fri, 9 Jan 2009 03:05:14 +0000 (03:05 +0000)]
add -3 to manpage
Benjamin Peterson [Fri, 9 Jan 2009 03:03:05 +0000 (03:03 +0000)]
fix spelling
Benjamin Peterson [Fri, 9 Jan 2009 02:56:32 +0000 (02:56 +0000)]
fix markup
Benjamin Peterson [Fri, 9 Jan 2009 02:53:35 +0000 (02:53 +0000)]
specify what -3 warnings are about
Benjamin Peterson [Fri, 9 Jan 2009 02:13:34 +0000 (02:13 +0000)]
Merged revisions 68306-68308,68340,68368,68422 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r68306 | benjamin.peterson | 2009-01-04 12:27:19 -0600 (Sun, 04 Jan 2009) | 1 line
fix_urllib: add mappings for the url parsing functions
........
r68307 | benjamin.peterson | 2009-01-04 12:30:01 -0600 (Sun, 04 Jan 2009) | 1 line
remove duplicated function
........
r68308 | benjamin.peterson | 2009-01-04 12:50:34 -0600 (Sun, 04 Jan 2009) | 1 line
turtle is no longer renamed
........
r68340 | georg.brandl | 2009-01-05 02:11:39 -0600 (Mon, 05 Jan 2009) | 2 lines
Fix undefined locals in parse_tokens().
........
r68368 | benjamin.peterson | 2009-01-06 17:56:10 -0600 (Tue, 06 Jan 2009) | 1 line
fix typo (thanks to Robert Lehmann)
........
r68422 | benjamin.peterson | 2009-01-08 20:01:03 -0600 (Thu, 08 Jan 2009) | 1 line
run the imports fixers after fix_import, so fix_import doesn't try to make stdlib renames into relative imports #4876
........
Tarek Ziadé [Thu, 8 Jan 2009 23:56:31 +0000 (23:56 +0000)]
fixed #4394 make the storage of the password optional in .pypirc
Raymond Hettinger [Thu, 8 Jan 2009 06:39:04 +0000 (06:39 +0000)]
Forward port r68394 for issue 4816.
Benjamin Peterson [Thu, 8 Jan 2009 04:01:00 +0000 (04:01 +0000)]
use new sphinx modules
Benjamin Peterson [Thu, 8 Jan 2009 03:39:46 +0000 (03:39 +0000)]
string exceptions are gone
Martin v. Löwis [Wed, 7 Jan 2009 18:40:40 +0000 (18:40 +0000)]
Issue #4850: Change COUNT_ALLOCS variables to Py_ssize_t.
Mark Dickinson [Wed, 7 Jan 2009 17:48:33 +0000 (17:48 +0000)]
Issue #4869: clarify documentation for random.expovariate.
Hirokazu Yamamoto [Wed, 7 Jan 2009 09:42:28 +0000 (09:42 +0000)]
Issue #4864: test_msvc9compiler failed on VC6/7.
Reviewed by Amaury Forgeot d'Arc.
Antoine Pitrou [Tue, 6 Jan 2009 18:34:08 +0000 (18:34 +0000)]
Use shutil.rmtree rather than os.rmdir.
Antoine Pitrou [Tue, 6 Jan 2009 18:10:47 +0000 (18:10 +0000)]
Issue #
1180193 : When importing a module from a .pyc (or .pyo) file with
an existing .py counterpart, override the co_filename attributes of all
code objects if the original filename is obsolete (which can happen if the
file has been renamed, moved, or if it is accessed through different paths).
Patch by Ziga Seilnacht and Jean-Paul Calderone.
Marc-André Lemburg [Mon, 5 Jan 2009 19:43:35 +0000 (19:43 +0000)]
Fix #4846 (Py_UNICODE_ISSPACE causes linker error) by moving the declaration
into the extern "C" section.
Add a few more comments and apply some minor edits to make the file contents
fit the original structure again.
Neal Norwitz [Mon, 5 Jan 2009 03:57:25 +0000 (03:57 +0000)]
Make sure to checkout any new packages
Georg Brandl [Sun, 4 Jan 2009 22:03:10 +0000 (22:03 +0000)]
Update make.bat.
Benjamin Peterson [Sun, 4 Jan 2009 22:00:18 +0000 (22:00 +0000)]
use Jinja 2.1.1
Antoine Pitrou [Sun, 4 Jan 2009 21:29:23 +0000 (21:29 +0000)]
Issue #4272: Add an optional argument to the GzipFile constructor to override the timestamp in the gzip stream.
Mark Dickinson [Sun, 4 Jan 2009 21:25:40 +0000 (21:25 +0000)]
Misc/NEWS entry for r68317
Mark Dickinson [Sun, 4 Jan 2009 21:22:02 +0000 (21:22 +0000)]
More Python 2.3 compatibility fixes for decimal.py.
Mark Dickinson [Sun, 4 Jan 2009 21:10:56 +0000 (21:10 +0000)]
Fix Decimal.from_float to use valid Python 2.3 syntax, as per
comments at top of decimal.py. (But note that the from_float
method itself with still not be usable before Python 2.7.)
See issue 4796 for discussion.