Eric Smith
6a92860a3e
Note that PEP 378 also applies to int.
2010-04-06 15:17:33 +00:00
Eric Smith
c4663856d9
Fixed PEP 378 example.
2010-04-06 14:30:15 +00:00
Georg Brandl
abe448c49b
#8320 : document return value of recv_into().
2010-04-06 08:18:15 +00:00
Ezio Melotti
021f334b9f
Fix several links and other mistakes.
2010-04-06 03:26:49 +00:00
Antoine Pitrou
f9de534c21
Issue #8321 : Give access to OpenSSL version numbers from the `ssl` module,
...
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.
2010-04-05 21:35:07 +00:00
Tarek Ziadé
0b93a6b19a
added a note for Andrew, about distutils2
2010-04-05 14:58:14 +00:00
Ezio Melotti
425aa2e11b
Fix some broken URLs.
2010-04-05 12:51:45 +00:00
Michael Foord
d341ec82c7
Further documentation fix for unittest.rst
2010-04-05 10:30:14 +00:00
Michael Foord
c5ff3f6ff0
Furterh documentation fix for unittest.rst
2010-04-05 10:28:27 +00:00
Michael Foord
3165503b4a
Documentation fixes for unittest
2010-04-05 10:26:26 +00:00
Ezio Melotti
9ccc58113e
Fix markup errors.
2010-04-05 08:16:41 +00:00
Ezio Melotti
01fa86a0bd
Fix markup, punctuation and whitespaces in _winreg.rst.
2010-04-05 08:02:54 +00:00
Ezio Melotti
c0deec1839
#8212 : rephrase the webservers howto and fix some mistakes.
2010-04-05 03:51:38 +00:00
Michael Foord
554303530c
Document signal handling functions in unittest.rst
2010-04-05 00:39:50 +00:00
Michael Foord
ddb20df018
Adding documentation for new unittest.main() parameters
2010-04-04 23:28:44 +00:00
Ezio Melotti
6f65d2dd1b
Fix markup in decimal.rst.
2010-04-04 23:21:53 +00:00
Michael Foord
09e2980c15
unittest documentation formatting changes
2010-04-04 22:41:54 +00:00
Raymond Hettinger
06bc0b6d2e
Add tests for functools.total_ordering.
2010-04-04 22:24:03 +00:00
Mark Dickinson
b1affc517f
Add versionchanged entry for Decimal(float) construction.
...
Also add an example of constructing a Decimal directly from a float,
update the quickstart tutorial, and tweak another couple of
sentences.
2010-04-04 22:09:21 +00:00
Raymond Hettinger
bb006cf26c
Add tests for cmp_to_key.
...
Adopt PEP 8 compliant function name.
Factor-out existing uses cmp_to_key.
Update documentation to use internal pointers instead of external resource.
2010-04-04 21:45:01 +00:00
Raymond Hettinger
a551f31d48
Add functools.CmpToKey()
2010-04-04 18:34:45 +00:00
Raymond Hettinger
0d57caa267
Documentation nit
2010-04-04 07:33:46 +00:00
Ezio Melotti
4edfe96381
Revert 79733 - Counter is new in 2.7, the versionadded is not necessary - and fix a typo.
2010-04-04 06:50:58 +00:00
Ezio Melotti
0cee3794c7
Add a versionadded to Counter.subtract() doc.
2010-04-04 06:41:27 +00:00
Raymond Hettinger
20ae90d887
Issue 5479: Add functools.total_ordering class decorator.
2010-04-04 01:24:59 +00:00
Antoine Pitrou
945d4ccdd9
Fix wording / typography, and a slightly misleading statement
...
(memoryviews don't support complex structures right now)
2010-04-03 21:22:38 +00:00
Raymond Hettinger
5f516edd77
Add count() method to collections.deque().
2010-04-03 18:10:37 +00:00
Michael Foord
ba097ec1be
Documenting new features in unittest
2010-04-03 17:03:11 +00:00
Mark Dickinson
4846a8e828
Issue #8300 : Let struct.pack use __index__ to convert and pack non-integers.
...
Based on a patch by Meador Inge.
2010-04-03 14:05:10 +00:00
Raymond Hettinger
34c35b2788
Add subtract() method to collections.Counter() objects.
2010-04-03 10:22:00 +00:00
Victor Stinner
f70c581056
Issue #8227 : Fix C API documentation, argument parsing
...
* 'z', 'z#', 'z*' does also accept Unicode
* unify types name: replace "string or Unicode objet" by "string or Unicode"
2010-04-03 08:40:16 +00:00
Brian Curtin
e5aa886b44
Implement #1220212 . Add os.kill support for Windows.
...
os.kill takes one of two newly added signals, CTRL_C_EVENT and
CTRL_BREAK_EVENT, or any integer value. The events are a special case
which work with subprocess console applications which implement a
special console control handler. Any other value but those two will
cause os.kill to use TerminateProcess, outright killing the process.
This change adds win_console_handler.py, which is a script to implement
SetConsoleCtrlHandler and applicable handler function, using ctypes.
subprocess also gets another attribute which is a necessary flag to
creationflags in Popen in order to send the CTRL events.
2010-04-02 23:26:06 +00:00
Mark Dickinson
7c63eee485
Issue #8294 : Allow float and Decimal arguments in Fraction constructor.
2010-04-02 22:27:36 +00:00
Tarek Ziadé
51f2f16ee3
removed documentation on code that was reverted and pushed into distutils2
2010-04-02 21:34:19 +00:00
Brian Curtin
e33fa887d3
Implement #7347 . Add CreateKeyEx, DeleteKeyEx, and update _winreg tests.
...
*ReflectionKey functions used to not be documented or tested, but they are
now sufficiently documented and tested on platforms where they apply.
Additionally, fixed a bug in QueryReflectionKey which was returning an
incorrect value.
All tests pass from XP through Windows 7, on 32 and 64-bit platforms.
2010-04-02 21:18:14 +00:00
Raymond Hettinger
ed171abd93
Issue 8257: Decimal constructor to accept float.
2010-04-02 18:39:24 +00:00
Andrew M. Kuchling
dc36d7cf85
#6647 : add note to two examples
2010-04-02 17:54:26 +00:00
Andrew M. Kuchling
d886290464
#6647 : document that catch_warnings is not thread-safe
2010-04-02 17:48:23 +00:00
Georg Brandl
ea2d389474
#8012 : clarification in generator glossary entry.
2010-04-02 09:11:49 +00:00
Georg Brandl
677fdec8fc
Document PyImport_ExecCodeModuleEx().
2010-04-02 09:07:42 +00:00
Georg Brandl
d3bab6aba9
Remove col-spanning cells in logging docs.
2010-04-02 09:03:18 +00:00
Mark Dickinson
99d8096c17
Issue #2531 : Make float-to-decimal comparisons return correct results.
...
Float to decimal comparison operations now return a result based on
the numeric values of the operands. Decimal.__hash__ has also been
fixed so that Decimal and float values that compare equal have equal
hash value.
2010-04-02 08:53:22 +00:00
Georg Brandl
6eba779235
Fix typo in unicode character name.
2010-04-02 08:51:31 +00:00
Georg Brandl
49b9192b12
#2768 : add a note on how to get a file descriptor.
2010-04-02 08:39:09 +00:00
Raymond Hettinger
f28dd0d1bf
Cleanup itertools recipes
2010-04-02 06:23:12 +00:00
Raymond Hettinger
4bfd3bda2e
Add and update itertools recipes.
2010-04-02 02:44:31 +00:00
Raymond Hettinger
f54c268326
Document link to Sorting HowTo
2010-04-01 07:54:16 +00:00
R. David Murray
6c9fc4cf2b
A couple small grammar fixes in test.rst, and rewrite the
...
check_warnings docs to be clearer.
2010-04-01 01:28:39 +00:00
Florent Xicluna
ad59833649
Fix typo
2010-03-31 21:40:32 +00:00
Ezio Melotti
eb72991fbb
Revert r79179 and merge r75584 to explain how to implement a queue using collection.deque instead of a list.
2010-03-31 07:26:24 +00:00