Georg Brandl
70cd7bc748
#10200 : typo.
2010-10-26 19:31:06 +00:00
Georg Brandl
19208900f4
Markup fix.
2010-10-26 06:59:23 +00:00
Vinay Sajip
a39c571061
logging: Added style option to Formatter to allow %, {} or himBHformatting.
2010-10-25 13:57:39 +00:00
Georg Brandl
2062937aff
Add documentation about the default warnings filters.
2010-10-24 15:16:02 +00:00
Georg Brandl
08be72d0aa
Add a new warning gategory, ResourceWarning, as discussed on python-dev. It is silent by default,
...
except when configured --with-pydebug.
Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
2010-10-24 15:11:22 +00:00
Georg Brandl
872a702bbd
Fix style.
2010-10-24 14:32:45 +00:00
Nick Coghlan
543af75961
Issue 5178: Add tempfile.TemporaryDirectory (original patch by Neil Schemenauer)
2010-10-24 11:23:25 +00:00
R. David Murray
8451c4b6e0
#1349106 : add linesep argument to generator.flatten and header.encode.
2010-10-23 22:19:56 +00:00
Georg Brandl
1e908af335
#6518 : enable context manager protocol for ossaudiodev types.
2010-10-23 17:31:52 +00:00
Antoine Pitrou
ff150f2921
Revert r85797 (and r85798): it broke the Windows buildbots because of
...
test_multiprocessing's misbehaviour.
2010-10-22 21:41:05 +00:00
Antoine Pitrou
45f9cf96cd
Update what's new
2010-10-22 19:45:13 +00:00
Antoine Pitrou
d532321f7b
Issue #5639 : Add a *server_hostname* argument to `SSLContext.wrap_socket`
...
in order to support the TLS SNI extension. `HTTPSConnection` and
`urlopen()` also use this argument, so that HTTPS virtual hosts are now
supported.
2010-10-22 18:19:07 +00:00
Alexander Belopolsky
c08f544844
Fixed a typo
2010-10-21 22:29:36 +00:00
Alexander Belopolsky
41f56f0192
Issue #7061 : Fixed section title
2010-10-21 18:15:39 +00:00
Antoine Pitrou
9583cac633
Issue #10089 : Add support for arbitrary -X options on the command-line.
...
They can be retrieved through a new attribute `sys._xoptions`.
2010-10-21 13:42:28 +00:00
Vinay Sajip
05ed69590b
logging: Improved StreamHandler documentation.
2010-10-20 20:34:09 +00:00
Vinay Sajip
22246fdd9d
logging: clarified Filter documentation.
2010-10-20 11:40:02 +00:00
R. David Murray
f19076e592
Correct signature of BytesGenerator in docs.
2010-10-19 23:05:35 +00:00
Vinay Sajip
fc082cafa6
logging: Documented usage of callables as filters.
2010-10-19 21:13:49 +00:00
Alexander Belopolsky
435d306aa9
Issue #7061 : Fixed some of the issues in turtle module documentation
...
reported by Terry J. Reedy.
2010-10-19 21:07:52 +00:00
Georg Brandl
f285bcca28
Be consistent in the spelling of thread-safe(ty).
2010-10-19 21:07:16 +00:00
Georg Brandl
7004bd1a3d
#10092 : Properly reset locale in Locale*Calendar classes. The context manager was buggy because setlocale() returns the *new* locale, not the old. Also add a test for this.
2010-10-19 18:54:25 +00:00
R. David Murray
7cefc30d34
Tighten up 'byte string' wording in base64 docs.
2010-10-17 23:12:16 +00:00
R. David Murray
a90032a3fb
#1343 : Add short_empty_elements option to XMLGenerator.
...
Patch and tests by Neil Muller.
2010-10-17 22:46:45 +00:00
Skip Montanaro
961aaf5cfa
Note the resolution of issue 9778.
2010-10-17 22:22:24 +00:00
Benjamin Peterson
8f67d0893f
make hashes always the size of pointers; introduce Py_hash_t #9778
2010-10-17 20:54:53 +00:00
Senthil Kumaran
c961322f4f
Syntax fixes for examples in the Doc/includes
2010-10-17 11:42:21 +00:00
Georg Brandl
134c35b191
#9730 : fix example.
2010-10-17 11:36:28 +00:00
Georg Brandl
2379877246
Fix documentation of dis.opmap direction.
2010-10-17 11:29:07 +00:00
Georg Brandl
c16e8f17ac
Make twisted example a bit more logical.
2010-10-17 11:23:56 +00:00
Georg Brandl
c8148265dc
Port changes to pickle docs apparently lost in py3k.
2010-10-17 11:13:37 +00:00
Georg Brandl
8527126f85
#9237 : document sys.call_tracing().
2010-10-17 11:06:14 +00:00
Georg Brandl
12c695cea9
#5121 : fix claims about default values leading to segfaults.
2010-10-17 11:03:22 +00:00
Georg Brandl
2aff335c36
#9204 : remove mentions of removed types in the types module.
2010-10-17 10:59:41 +00:00
Georg Brandl
418cc73403
Fix capitalization.
2010-10-17 10:53:54 +00:00
Georg Brandl
6f4e68d82c
#5962 : clarify sys.exit() vs. threads.
2010-10-17 10:51:45 +00:00
Georg Brandl
a192828ea1
#9138 : reword introduction to classes in Python.
2010-10-17 10:44:11 +00:00
Georg Brandl
f41427263c
#9117 : fix syntax for class definition.
2010-10-17 10:38:20 +00:00
Georg Brandl
e0bf91d597
Some markup and style fixes in argparse docs.
2010-10-17 10:34:28 +00:00
Georg Brandl
9375492be3
#9112 : document error() and exit() methods of ArgumentParser.
2010-10-17 10:28:04 +00:00
Georg Brandl
0036bcf8d8
#9105 : move pickle warning to a bit more prominent location.
2010-10-17 10:24:54 +00:00
Georg Brandl
047e486c45
Remove second parser module example; it referred to non-readily-available example files, and this kind of discovery is much better done with the AST nowadays anyway.
2010-10-17 10:22:28 +00:00
Georg Brandl
fc9794a8fc
Make file names consistent.
2010-10-17 10:15:50 +00:00
Georg Brandl
4985ff2e61
#9086 : correct wrong terminology about linking with pythonXY.dll.
2010-10-17 10:14:38 +00:00
Georg Brandl
531d76b096
#5212 : md5 weaknesses do not affect hmac, so remove the note about that.
2010-10-17 10:09:06 +00:00
Georg Brandl
f3d008737e
Fix copy-paste error in example.
2010-10-17 10:07:29 +00:00
Georg Brandl
7306ad53da
#459007 : merge info from PC/getpathp.c and using/windows.rst to document the forming of sys.path under Windows.
2010-10-17 10:05:13 +00:00
Georg Brandl
eec2d768cd
#8968 : add actual name of token constants.
2010-10-17 09:46:11 +00:00
Georg Brandl
80b75fd288
Fix hmac docs: it takes and returns bytes, except for hexdigest().
2010-10-17 09:43:35 +00:00
Georg Brandl
7716ca6cdd
#8855 : add shelve security warning.
2010-10-17 09:37:54 +00:00
Georg Brandl
96115fb2d3
#8811 : small fixes to sqlite3 docs.
2010-10-17 09:33:24 +00:00
Georg Brandl
8e9eb95c40
#8686 : remove potentially confusing wording that does not add any value.
2010-10-17 09:23:05 +00:00
Georg Brandl
edc9e7ff17
#8556 : use less confusing mapping key in example.
2010-10-17 09:19:03 +00:00
Georg Brandl
dd909db1a9
#10058 : tweak wording about exception returns.
2010-10-17 06:32:59 +00:00
Georg Brandl
17ef0d51d7
Note that maxtasksperchild is new in 3.2.
2010-10-17 06:21:59 +00:00
Georg Brandl
573caa3476
#10124 : typo fix.
2010-10-16 18:53:08 +00:00
Georg Brandl
8e4ddcfaea
#10122 : typo fix.
2010-10-16 18:51:05 +00:00
Barry Warsaw
a40453df37
abiflags: alphabetize and versionadded
2010-10-16 14:17:50 +00:00
Barry Warsaw
8cf4eae522
First (uncontroversial) part of issue 9807.
...
* Expose the build flags to Python as sys.abiflags
* Shared library libpythonX.Y<abiflags>.so
* python-config --abiflags
* Make two distutils tests that failed with --enable-shared (even before this
patch) succeed.
* Fix a few small style issues.
2010-10-16 01:04:07 +00:00
Georg Brandl
392c92a0c6
#10072 : assume a bit less knowledge of the FTP protocol in the ftplib docs.
2010-10-15 19:46:19 +00:00
Georg Brandl
d4460aaacd
#4785 : document strict argument of JSONDecoder, plus add object_pairs_hook in the docstrings.
2010-10-15 17:03:02 +00:00
Georg Brandl
b67878a522
#7790 : move table of struct_time members to the actual description of struct_time.
2010-10-15 17:01:15 +00:00
Georg Brandl
39cadc3ffe
#4968 : updates to inspect.is* function docs.
2010-10-15 16:53:24 +00:00
Georg Brandl
d0b0e1d869
#6798 : fix wrong docs for the arguments to several trace events.
2010-10-15 16:42:37 +00:00
Georg Brandl
f1f8d47d38
#7303 : add documentation for useful pkgutil functions and classes.
2010-10-15 16:35:46 +00:00
Alexander Belopolsky
e8f583244a
Issue #9308 : Removed redundant coding cookies. Added tests for
...
importing encoded modules that do not depend on specific stdlib
modules being encoded in a certain way.
2010-10-15 16:28:20 +00:00
Georg Brandl
3ed4114f7d
#9801 : document how list and dict proxies created by Managers behave w.r.t. mutable items.
2010-10-15 16:19:43 +00:00
Georg Brandl
c1c4bf85c1
#9683 : remove broken dead code dealing with nested arguments removed from Py3k, and update the docs and docstrings accordingly.
2010-10-15 16:07:41 +00:00
Georg Brandl
f74cf77c8d
#7771 : reference to documentation of dictview methods and operations.
2010-10-15 16:03:02 +00:00
Georg Brandl
1f7fffb308
#2830 : add html.escape() helper and move cgi.escape() uses in the standard library to it. It defaults to quote=True and also escapes single quotes, which makes casual use safer. The cgi.escape() interface is not touched, but emits a (silent) PendingDeprecationWarning.
2010-10-15 15:57:45 +00:00
Georg Brandl
70543acfa1
Refrain from using inline suites.
2010-10-15 15:32:05 +00:00
Senthil Kumaran
279b56d9a7
Fix a minor docs bug.
2010-10-15 15:21:19 +00:00
Georg Brandl
b4dac71a87
#5355 : Provide mappings from Expat error numbers to string descriptions and backwards, in order to actually make it possible to analyze error codes provided by ExpatError.
2010-10-15 14:46:48 +00:00
Senthil Kumaran
8227045bbe
Fix sphinx role markups.
2010-10-15 13:29:33 +00:00
Senthil Kumaran
46a48bef3f
Fix ``make check`` warnings.
2010-10-15 13:10:10 +00:00
Senthil Kumaran
916bd38a06
Fixing some sphinx inline directives - detected using ``make check``.
2010-10-15 12:55:19 +00:00
Victor Stinner
f3170ccef8
Use locale encoding if Py_FileSystemDefaultEncoding is not set
...
* PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefaultAndSize() and
PyUnicode_DecodeFSDefault() use the locale encoding instead of UTF-8 if
Py_FileSystemDefaultEncoding is NULL
* redecode_filenames() functions and _Py_code_object_list (issue #9630 )
are no more needed: remove them
2010-10-15 12:04:23 +00:00
Senthil Kumaran
d449a8ad87
Issue10100 - fromfd is now available on all platforms
2010-10-15 09:02:14 +00:00
Antoine Pitrou
b1c5496738
Issue #7523 : Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,
...
where supported by the system. Patch by Nikita Vetoshkin.
2010-10-14 15:05:38 +00:00
Senthil Kumaran
383c32dd38
Issue10063 - file:// scheme will stop accessing remote hosts via ftp protocol
2010-10-14 11:57:35 +00:00
Georg Brandl
268e4d4cf3
#1710703 : write zipfile structures also in the case of closing a new, but empty, archive.
2010-10-14 06:59:45 +00:00
Georg Brandl
539c165299
#6825 : small correction to split() docs.
2010-10-14 06:46:08 +00:00
Georg Brandl
7c4cad51ba
#10046 : small correction to atexit docs.
2010-10-14 06:43:22 +00:00
Georg Brandl
4eb6597b62
#3865 : add note about benchmarking with profilers, and move licensing stuff to bottom of document.
2010-10-14 06:41:42 +00:00
Georg Brandl
8f7b427b5b
#7642 : update to os.system() docs.
2010-10-14 06:35:53 +00:00
Victor Stinner
8f6b6b0cc3
Issue #9992 : Remove PYTHONFSENCODING environment variable.
2010-10-13 22:02:27 +00:00
Antoine Pitrou
834bd81c51
Issue #10041 : The signature of optional arguments in socket.makefile()
...
didn't match that of io.open(), and they also didn't get forwarded
properly to TextIOWrapper in text mode. Patch by Kai Zhu.
2010-10-13 16:17:14 +00:00
Antoine Pitrou
1ab19ca161
Fix grammar
2010-10-13 10:39:21 +00:00
Antoine Pitrou
803e6d670c
Issue #9003 : http.client.HTTPSConnection, urllib.request.HTTPSHandler and
...
urllib.request.urlopen now take optional arguments to allow for
server certificate checking, as recommended in public uses of HTTPS.
2010-10-13 10:36:15 +00:00
Benjamin Peterson
73a3f2d4d4
fix spelling #10078
2010-10-12 23:07:13 +00:00
Benjamin Peterson
5c4bfc4af0
prefer clearing global objects to obscure module.__dict__ bugs #10068
2010-10-12 22:57:59 +00:00
Antoine Pitrou
6c314ec946
Update whatsnew about pickle optimizations
2010-10-12 21:07:20 +00:00
Antoine Pitrou
b0182c8ca5
Issue #10075 : Add a session_stats() method to SSLContext objects.
2010-10-12 20:09:02 +00:00
Antoine Pitrou
0518842b69
Make comment about SSL support more accurate
2010-10-12 16:44:39 +00:00
Senthil Kumaran
79941b5c09
Fix Issue7285 - multiprocessing module, example code error.
2010-10-10 06:13:49 +00:00
Raymond Hettinger
2f08df3690
Issue #10029 : Fix sample code in the docs for zip().
2010-10-10 05:54:39 +00:00
Victor Stinner
62165d67a2
Document that the 'strict' error handler is used to encode/decode filenames on
...
Windows
2010-10-09 10:34:37 +00:00
Victor Stinner
257d38ffdd
Issue #9738 : Document PyErr_SetString() and PyErr_SetFromErrnoWithFilename()
...
encodings
2010-10-09 10:12:11 +00:00
Benjamin Peterson
fc8408cbe8
remove author names from prose
2010-10-09 01:58:37 +00:00
R. David Murray
7c0a2271ff
What's new entry for email 5.1.
2010-10-08 21:37:39 +00:00
Antoine Pitrou
0ee4c9f274
Update what's new
2010-10-08 16:46:17 +00:00
R. David Murray
96fd54eaec
#4661 : add bytes parsing and generation to email (email version bump to 5.1.0)
...
The work on this is not 100% complete, but everything is present to
allow real-world testing of the code. The only remaining major todo
item is to (hopefully!) enhance the handling of non-ASCII bytes in headers
converted to unicode by RFC2047 encoding them rather than replacing them with
'?'s.
2010-10-08 15:55:28 +00:00
Antoine Pitrou
59fdd6736b
Issue #1589 : Add ssl.match_hostname(), to help implement server identity
...
verification for higher-level protocols.
2010-10-08 10:37:08 +00:00
Victor Stinner
beb4135b8c
PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*
...
All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the
prototype for the new function PyUnicode_AsWideCharString().
2010-10-07 01:02:42 +00:00
Antoine Pitrou
cd889af917
More new things in what's new
2010-10-06 21:13:56 +00:00
Georg Brandl
5ad8ed5f26
Update to Sphin 1.0.4.
2010-10-06 12:29:49 +00:00
Georg Brandl
19b3e00627
Fix the suspicious builder not to write CRLF, update suspicious file and add instructions to Makefile.
2010-10-06 10:35:24 +00:00
Georg Brandl
682d7e0e07
Fix errors found by "make suspicious".
2010-10-06 10:26:05 +00:00
Georg Brandl
fa4f7f97b8
Fix spelling and markup.
2010-10-06 10:14:08 +00:00
Georg Brandl
60203b41b0
Migrate to Sphinx 1.0 C language constructs.
2010-10-06 10:11:56 +00:00
Georg Brandl
64a41edb03
Copyedit of os.symlink() docs.
2010-10-06 08:52:48 +00:00
Georg Brandl
a102ae3426
#10034 : import readline in longer example.
2010-10-06 05:08:32 +00:00
Senthil Kumaran
c08d9070db
fix a typo.
2010-10-05 18:46:56 +00:00
Senthil Kumaran
242690f870
Remove the references of FTPS from the urllib Documentation. There is no support for it yet.
2010-10-05 18:35:41 +00:00
Georg Brandl
eeed95538e
Indent version tags properly.
2010-10-05 07:16:01 +00:00
Antoine Pitrou
7b998e9f52
GzipFile.peek improvements, suggested by Nir Aides.
2010-10-04 21:55:14 +00:00
Giampaolo Rodolà
977c707b42
Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher
2010-10-04 21:08:36 +00:00
Gerhard Häring
e0941c5bd2
Fixes #10020
2010-10-03 21:47:06 +00:00
Victor Stinner
1c24bd0252
Issue #8870 : PyUnicode_AsWideCharString() doesn't count the trailing nul character
...
And write unit tests for PyUnicode_AsWideChar() and PyUnicode_AsWideCharString().
2010-10-02 11:03:13 +00:00
Senthil Kumaran
7cafd2644a
Fix - issue10010 .. index:: position in the docs.
2010-10-02 03:16:04 +00:00
Amaury Forgeot d'Arc
ea8676bf8b
Lower the tone of the warning about SSL certificate validation.
2010-10-01 23:42:24 +00:00
Georg Brandl
d0ffa4cc8c
Fix weird markup that caused latex to fail.
2010-10-01 05:38:10 +00:00
Senthil Kumaran
0f476d49f8
Issue1491 - BaseHTTPServer incorrectly implements response code 100
2010-09-30 06:09:18 +00:00
Antoine Pitrou
69ab95105f
Issue #9360 : Cleanup and improvements to the nntplib module. The API
...
now conforms to the philosophy of bytes and unicode separation in Python 3.
A test suite has also been added.
2010-09-29 15:03:40 +00:00
Antoine Pitrou
79ecd7621e
Issue #9983 : warn that urllib and httplib don't perform SSL certificate validation.
2010-09-29 11:24:21 +00:00
Antoine Pitrou
c3ed2e7f83
Issue #9962 : GzipFile now has the peek() method.
2010-09-29 10:49:46 +00:00
Victor Stinner
137c34c027
Issue #9979 : Create function PyUnicode_AsWideCharString().
2010-09-29 10:25:54 +00:00
Antoine Pitrou
c663b58c9a
Give a dedicated page to memoryview objects, so that they can be part
...
of the concrete objects layer, while the buffer protocol is part of
the abstract objects layer.
2010-09-28 23:59:51 +00:00
Antoine Pitrou
f7ba2fa3d6
Buffers are not sequence objects (!). Put them in the abstract objects layers
...
instead.
2010-09-28 23:39:41 +00:00
Antoine Pitrou
99a00a455c
Various improvements to the docs of the buffer API
2010-09-28 23:04:04 +00:00
Antoine Pitrou
a0b6873d47
Discourage use of the old buffer API funcs
2010-09-28 21:52:30 +00:00
Antoine Pitrou
826903ece3
Issue #9970 : improve C API documentation for memoryview objects
2010-09-28 15:29:16 +00:00
Brian Curtin
1771b54bed
Implement #8521 . Added named argument handling to winreg's CreateKeyEx,
...
DeleteKeyEx, and OpenKeyEx.
Note that CKE and DKE are new functions for 3.2 so I didn't give them a
versionchanged because of the existing versionadded. OpenKeyEx already
existed so it gets a versionchanged tag.
2010-09-27 17:56:36 +00:00
Vinay Sajip
76ca3b430c
logging: Updated library configuration documentation.
2010-09-27 13:53:47 +00:00
Kristján Valur Jónsson
3b69db27d7
issue 9910
...
Add a Py_SetPath api to override magic path computations when starting up python.
2010-09-27 05:32:54 +00:00
Antoine Pitrou
a305ca786c
Fix typo.
2010-09-25 22:12:00 +00:00
Georg Brandl
fda2106ac2
#9562 : slight clarification.
2010-09-25 16:56:36 +00:00
Georg Brandl
a0fc3d37d3
#9944 : fix typo.
2010-09-25 13:30:03 +00:00
Vinay Sajip
972412d168
Updated SysLogHandler documentation.
2010-09-23 20:31:24 +00:00
Brian Curtin
e8e4b3bfd6
#9808 . Implement os.getlogin for Windows, completed by Jon Anglin.
...
The test is semi-dumb, it just makes sure something comes back since we
don't have a solid source to validate the returned login. We can't be 100%
sure that the USERNAME env var will always match what os.getlogin() returns,
so we don't make any specific assertion there.
2010-09-23 20:04:14 +00:00
Antoine Pitrou
e5768cf348
Small fixes in the gzip docs
2010-09-23 16:45:17 +00:00
Antoine Pitrou
7b9698435d
Issue #1675951 : Allow GzipFile to work with unseekable file objects.
...
Patch by Florian Festi.
2010-09-23 16:22:51 +00:00
Brian Curtin
5a7a52fbb0
#9582 - add a missing "are" and reflow the line.
2010-09-23 13:45:21 +00:00
Vinay Sajip
5577892ca9
logging: Improved documentation re. blocking handlers.
2010-09-23 09:09:15 +00:00
Vinay Sajip
0637d493e9
logging: added QueueListener and documentation.
2010-09-23 08:15:54 +00:00
Vinay Sajip
0258ce8f0a
logging: Added QueueHandler.prepare and updated documentation.
2010-09-22 20:34:53 +00:00
Benjamin Peterson
b5d23b4dfc
note version
2010-09-21 21:29:26 +00:00
Georg Brandl
6faee4e2ce
#9911 : doc copyedits.
2010-09-21 14:48:28 +00:00
Marc-André Lemburg
45fb9a1c23
Add missing word.
2010-09-21 11:55:27 +00:00
Marc-André Lemburg
6b91fc4d62
Add OpenSSL license to the Python license documenation page.
...
See #9119 .
2010-09-21 11:37:43 +00:00