Raymond Hettinger
fbcf749479
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.
2009-01-13 08:38:14 +00:00
Georg Brandl
dd958e0d28
Fix call signature and markup.
2009-01-13 08:11:07 +00:00
Raymond Hettinger
35288c6b6c
Speed-up __repr__. Eliminate duplicate tests. Use a from-irmport.
2009-01-13 04:50:35 +00:00
Raymond Hettinger
783d73fc2f
Fixup and simplify docstrings and doctests.
2009-01-13 04:13:53 +00:00
Raymond Hettinger
8278385a05
Minor documentation tweaks and simpler update() example.
2009-01-13 03:49:43 +00:00
Benjamin Peterson
5a0c864045
small logic correction
2009-01-13 01:49:10 +00:00
Raymond Hettinger
aaa6e630f8
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.
2009-01-13 01:05:03 +00:00
Amaury Forgeot d'Arc
a40d573664
#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.
2009-01-12 23:36:55 +00:00
Raymond Hettinger
f94d7fa5fb
Issue 1696199: Add collections.Counter().
2009-01-12 22:58:41 +00:00
Vinay Sajip
99234c5c74
Minor changes/corrections in markup.
2009-01-12 20:36:18 +00:00
Kristján Valur Jónsson
1c62b650d0
Add tests for invalid format specifiers in strftime, and for handling of invalid file descriptors in the os module.
2009-01-12 18:09:27 +00:00
Raymond Hettinger
b5bc33cdab
Optimize heapq.nsmallest/nlargest for cases where n==1 or n>=size.
2009-01-12 10:37:32 +00:00
Kristján Valur Jónsson
c22ab18e91
Misc/NEWS for issue 4293
2009-01-12 09:24:04 +00:00
Kristján Valur Jónsson
6220e41cb1
Update Misc/NEWS for issue 3582
2009-01-12 09:20:34 +00:00
Martin v. Löwis
e3422fae8a
Issue #4893 : Use NT threading on CE.
2009-01-12 08:11:24 +00:00
Martin v. Löwis
1b3bef21b0
Issue #4915 : Port sysmodule to Windows CE.
2009-01-12 07:57:11 +00:00
Benjamin Peterson
51a37034db
add email addresses
2009-01-11 19:48:15 +00:00
Gregory P. Smith
987735c4ec
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.
2009-01-11 17:57:54 +00:00
Gregory P. Smith
26f8d1bbe2
correct email address
2009-01-11 17:53:33 +00:00
Kristján Valur Jónsson
3c43fcba8b
Issue 4879: Allow buffering for HTTPResponse
2009-01-11 16:23:37 +00:00
Martin v. Löwis
eefda27e97
Issue #4895 : Use _strdup on Windows CE.
2009-01-11 09:43:55 +00:00
Martin v. Löwis
b3b7d859b3
Issue #4279 : Fix build of parsermodule under Cygwin.
2009-01-11 09:26:54 +00:00
Hirokazu Yamamoto
14aa4599ed
Fixed version number in build_ssl.bat.
2009-01-11 03:28:13 +00:00
Benjamin Peterson
5ed4f6cfb9
macos 9 isn't supported
2009-01-10 23:49:08 +00:00
Benjamin Peterson
4db53b212c
move seealso to a more appropiate place
2009-01-10 23:41:59 +00:00
Benjamin Peterson
164b0455b6
make tests fail if they can't be imported
2009-01-10 22:42:10 +00:00
Vinay Sajip
c2211adcc1
Corrected minor typo and added .currentmodule directives to fix missing cross-references.
2009-01-10 19:22:57 +00:00
Mark Dickinson
da62f81d1d
Remove an unnecessary check from test_decimal.
2009-01-10 19:14:55 +00:00
Benjamin Peterson
590c66810f
fix encoding
2009-01-10 19:08:49 +00:00
Antoine Pitrou
e7231cc14c
Add ACKS entries for some of the patches I've been committing.
2009-01-10 18:33:21 +00:00
Benjamin Peterson
35b80e0442
tp_iter only exists with Py_TPFLAGS_HAVE_ITER #4901
2009-01-10 17:36:44 +00:00
Benjamin Peterson
eee9583065
rewrite verbose conditionals
2009-01-10 17:18:55 +00:00
Matthias Klose
43723e2ad8
- Issue #4861 : ctypes.util.find_library(): Robustify. Fix library detection on
...
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
2009-01-10 17:00:42 +00:00
Antoine Pitrou
bd4b5f2b87
Add NEWS entry for r68484.
2009-01-10 16:15:24 +00:00
Antoine Pitrou
b74fc2b5fe
Issue #3860 : GzipFile and BZ2File now support the context manager protocol.
2009-01-10 16:13:45 +00:00
Vinay Sajip
7c303e9a98
Corrected an incorrect self-reference.
2009-01-10 13:42:04 +00:00
Vinay Sajip
99505c841e
Minor documentation changes cross-referencing NullHandler to the documentation on configuring logging in a library.
2009-01-10 13:38:04 +00:00
Kristján Valur Jónsson
abb70e9c9f
Issue 4906: Preserve windows error state across PyThread_get_key_value
2009-01-10 12:14:31 +00:00
Hirokazu Yamamoto
dbf558888e
Added helper script to build Tcl/Tk.
2009-01-10 09:18:16 +00:00
Hirokazu Yamamoto
420ab8a84f
Link to debug version of Tcl/Tk when python is built as debug version.
2009-01-10 08:12:09 +00:00
Hirokazu Yamamoto
e0f8b3d528
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)
2009-01-10 08:09:43 +00:00
Antoine Pitrou
4c5ecb7cbb
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 .
2009-01-09 21:40:55 +00:00
Kristján Valur Jónsson
0e2d8c36e3
Issue 4293: Make Py_AddPendingCall() thread safe
...
Add test cases and documentation
2009-01-09 21:35:16 +00:00
Kristján Valur Jónsson
0e91938e58
Issue 4293: Make Py_AddPendingCall() thread safe
2009-01-09 20:31:26 +00:00
Kristján Valur Jónsson
84040dbe81
Issue 4336: Let users of HTTPConnection.endheaders() submit a message body to the function if required.
2009-01-09 20:27:16 +00:00
Kristján Valur Jónsson
7e876f5e93
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.
2009-01-09 20:23:16 +00:00
Kristján Valur Jónsson
3b2a6b819d
Issue 3677: Fix import from UNC paths on Windows.
2009-01-09 20:10:59 +00:00
Kristján Valur Jónsson
00f2df495a
Issue 3582. Improved thread support and TLS for Windows
2009-01-09 20:03:27 +00:00
Jeffrey Yasskin
d89f5b20b2
Fix issue 4884, preventing a crash in the socket code when python is compiled
...
with llvm-gcc and run with a glibc <2.10.
2009-01-09 16:47:07 +00:00
Hirokazu Yamamoto
343b970da9
Bump up bsddb version on VC6. (db-4.4.20 -> db-4.7.25)
2009-01-09 04:10:40 +00:00