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
Vinay Sajip
c84f016988
Added some methods to LoggerAdapter, and updated documentation.
2010-09-21 11:25:39 +00:00
Senthil Kumaran
ceff566886
Document HTTPReponse.fileno() method
2010-09-21 01:57:43 +00:00
Benjamin Peterson
2c53971b37
add PyErr_SyntaxLocationEx, to support adding a column offset
2010-09-20 22:42:10 +00:00
Barry Warsaw
ebbef6fef2
Issue 9877: expose sysconfig.get_makefile_filename() in the public API.
2010-09-20 15:29:53 +00:00
Vinay Sajip
83eadd1488
logging: hasHandlers additions documented.
2010-09-20 10:31:18 +00:00
Georg Brandl
f1d633c386
Mention % as string formatting.
2010-09-20 06:29:01 +00:00
Georg Brandl
448f20b8b1
Fix typo.
2010-09-20 06:27:02 +00:00
Antoine Pitrou
e1f2f30328
Be more precise as to what operations are supported
2010-09-19 13:56:11 +00:00
Antoine Pitrou
dab642605b
Remove references to read() and write() methods, which are useless synonyms of
...
recv() and send()
2010-09-19 13:31:06 +00:00
Antoine Pitrou
792ff3e7be
Mention that SSL sockets provide the basic socket API.
2010-09-19 13:19:21 +00:00
Georg Brandl
035cedb4a3
Edit concurrent docs, add versionadded and see also reference to the PEP.
2010-09-19 09:31:09 +00:00
Benjamin Peterson
c713fc73cb
edit concurrent.future docs
2010-09-19 04:23:17 +00:00
Brian Quinlan
81c4d36928
Initial implementation of PEP 3148
2010-09-18 22:35:02 +00:00
Vinay Sajip
ac00799d61
Improved Filter documentation.
2010-09-17 12:45:26 +00:00
Vinay Sajip
c8c8c6968b
Improved basicConfig and custom level documentation.
2010-09-17 10:09:04 +00:00
Raymond Hettinger
8f5dbc83ea
Fix typo in example regular expression.
2010-09-17 06:26:45 +00:00
Raymond Hettinger
37ade9cb61
Add tokenizer example to regex docs.
2010-09-16 12:02:17 +00:00
Antoine Pitrou
7d49bc9911
Move library changes to the right section
2010-09-15 15:13:17 +00:00
Antoine Pitrou
d305200755
Add entries to whatsnew
2010-09-15 15:09:40 +00:00
Antoine Pitrou
11cb961b38
Add cross-references to the glossary entry for file objects.
2010-09-15 11:11:28 +00:00
Antoine Pitrou
6a11a98b7c
Update file-related information in the FAQ.
2010-09-15 10:08:31 +00:00
Antoine Pitrou
0b65b0fc83
Add a glossary entry for file objects.
2010-09-15 09:58:26 +00:00
Antoine Pitrou
5aa0d10560
Improve docs for socket.makefile() and SocketIO
2010-09-15 09:32:45 +00:00
Raymond Hettinger
f77c1d6adb
Clarify where support for negative indices fall in the language hierarchy.
2010-09-15 00:09:26 +00:00
Raymond Hettinger
476a31ef1e
Issue 9802: Document min()/max() sort stability
2010-09-14 23:13:42 +00:00
Antoine Pitrou
328ec7455f
Issue #9854 : The default read() implementation in io.RawIOBase now
...
handles non-blocking readinto() returning None correctly.
2010-09-14 18:37:24 +00:00
Antoine Pitrou
9e0b864ac0
Issue #1552 : socket.socketpair() now returns regular socket.socket
...
objects supporting the whole socket API (rather than the "raw"
_socket.socket objects).
2010-09-14 18:00:02 +00:00
Daniel Stutzbach
38615993b0
Remove pointers to a FAQ entry that no longer exists. Incorporate some text from the old FAQ into the docs
2010-09-14 16:02:01 +00:00
Vinay Sajip
0055c421fe
Tidied example script.
2010-09-14 09:42:39 +00:00
Vinay Sajip
de72692465
Tidied example script.
2010-09-14 06:59:24 +00:00
Raymond Hettinger
98a5f3f838
Issue 9840: Add reprlib.recursive_repr(), a decorator for handling recursive calls to __repr__ methods.
2010-09-13 21:36:00 +00:00
Daniel Stutzbach
9f0cbf1c72
Issue #9213 : Add index and count methods to range objects, needed to
...
meet the API of the collections.Sequence ABC.
2010-09-13 21:16:29 +00:00
Vinay Sajip
1b5646ac56
Enhanced HTTPHandler documentation.
2010-09-13 20:37:50 +00:00
Vinay Sajip
63891ed082
Expanded QueueHandler documentation.
2010-09-13 20:02:39 +00:00
Benjamin Peterson
0f4dd9a8e5
add spaces
2010-09-13 01:31:57 +00:00
Benjamin Peterson
c7b1cfa463
remove less complete of duplicate docs
2010-09-13 01:30:04 +00:00
Benjamin Peterson
c985f1f013
remove duplicate statement
2010-09-13 01:25:38 +00:00
Amaury Forgeot d'Arc
feb7307db4
#9210 : remove --with-wctype-functions configure option.
...
The internal unicode database is now always used.
(after 5 years: see
http://mail.python.org/pipermail/python-dev/2004-December/050193.html
)
2010-09-12 22:42:57 +00:00
Victor Stinner
0cbec571ae
Document changes on mbcs encoding
2010-09-12 20:32:57 +00:00
Matthias Klose
62d52fd966
- Issue #9817 : Add expat COPYING file; add expat, libffi and expat licenses
...
to Doc/license.rst.
2010-09-12 16:31:58 +00:00
R. David Murray
44ef7749dc
#9608 , #8518 : clarify and improve discussion of exceptions in howto.
2010-09-11 18:12:25 +00:00
Vinay Sajip
4039aff814
Issue #9827 : clarified LogRecord documentation.
2010-09-11 10:25:28 +00:00
Victor Stinner
1205f2774e
Issue #9738 : PyUnicode_FromFormat() and PyErr_Format() raise an error on
...
a non-ASCII byte in the format string.
Document also the encoding.
2010-09-11 00:54:47 +00:00
Victor Stinner
b55e498f56
Issue #767645 : fix os.path.supports_unicode_filenames definition
...
os.listdir(str) always returns unicode and it can return non-ascii filenames
even if supports_unicode_filenames is False.
2010-09-11 00:22:12 +00:00
Benjamin Peterson
d032532bb9
add newline
2010-09-10 21:59:21 +00:00
Victor Stinner
5b519e0201
Issue #9632 : Remove sys.setfilesystemencoding() function: use PYTHONFSENCODING
...
environment variable to set the filesystem encoding at Python startup.
sys.setfilesystemencoding() creates inconsistencies because it is unable to
reencode all filenames in all objects.
2010-09-10 21:57:59 +00:00
Amaury Forgeot d'Arc
ba117ef7e9
#4617 : Previously it was illegal to delete a name from the local
...
namespace if it occurs as a free variable in a nested block. This limitation
of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF).
This sample was valid in 2.6, but fails to compile in 3.x without this change::
>>> def f():
... def print_error():
... print(e)
... try:
... something
... except Exception as e:
... print_error()
... # implicit "del e" here
This sample has always been invalid in Python, and now works::
>>> def outer(x):
... def inner():
... return x
... inner()
... del x
There is no need to bump the PYC magic number: the new opcode is used
for code that did not compile before.
2010-09-10 21:39:53 +00:00
Georg Brandl
4785916d62
release() is probably not the most important method
2010-09-10 20:43:53 +00:00
Benjamin Peterson
4f5e298075
add reference to file object
2010-09-10 18:50:38 +00:00
Nick Coghlan
e8814fbb32
As per python-dev discussion with Eli, properly document and publish dis.show_code
2010-09-10 14:08:04 +00:00
Antoine Pitrou
6e6cc830c4
Issue #9757 : memoryview objects get a release() method to release the
...
underlying buffer (previously this was only done when deallocating the
memoryview), and gain support for the context management protocol.
2010-09-09 12:59:39 +00:00
Raymond Hettinger
6c60d099e5
Improve the repr for the TokenInfo named tuple.
2010-09-09 04:32:39 +00:00
Raymond Hettinger
44d7b6ad60
Add docstring to cmd.Cmd.do_help()
2010-09-09 03:53:22 +00:00
Raymond Hettinger
bd889e8c40
Add a working example for the cmd module.
2010-09-09 01:40:50 +00:00
Giampaolo Rodolà
b383dbb45e
Fix issue 9794: adds context manager protocol to socket.socket so that socket.create_connection() can be used with the 'with' statement.
2010-09-08 22:44:12 +00:00
Vinay Sajip
121a1c4e11
logging: Added QueueHandler.
2010-09-08 10:46:15 +00:00
Éric Araujo
cc6aac60da
Fix typo in whatsnew ( #9793 )
2010-09-07 21:35:35 +00:00
Amaury Forgeot d'Arc
4b6fdf3852
#6394 : Add os.getppid() support for Windows.
2010-09-07 21:31:17 +00:00
Antoine Pitrou
e339651b6f
Update nntplib examples to use a public news server.
...
The example still doesn't work as-is under py3k, due to incomplete
or buggy porting of the nntplib module.
2010-09-07 18:44:12 +00:00
Georg Brandl
e572bcec78
Add stub entry for argparse.
2010-09-07 08:18:26 +00:00
Raymond Hettinger
3149f9c614
typo
2010-09-07 05:35:10 +00:00
Raymond Hettinger
b21dac1e38
Remove outdated reference to Wichmann-Hill algorithm.
2010-09-07 05:32:49 +00:00
Raymond Hettinger
0515661314
Issues #7889 , #9025 and #9379 : Improvements to the random module.
2010-09-07 04:44:52 +00:00
Raymond Hettinger
f763a728ad
Document which part of the random module module are guaranteed.
2010-09-07 00:38:15 +00:00
Raymond Hettinger
435cb0f233
Document which part of the random module module are guaranteed.
2010-09-06 23:36:31 +00:00
Vinay Sajip
c31be6307f
Updated information on logging contextual information.
2010-09-06 22:18:20 +00:00
Raymond Hettinger
f45abc97bf
Add method to OrderedDict for repositioning keys to the ends.
2010-09-06 21:26:09 +00:00
Raymond Hettinger
09e4ebb6cd
Fix markup nits
2010-09-06 19:55:51 +00:00
Antoine Pitrou
4bc12ef47d
Issue #9754 : Similarly to assertRaises and assertRaisesRegexp, unittest
...
test cases now also have assertWarns and assertWarnsRegexp methods to
check that a given warning type was triggered by the code under test.
2010-09-06 19:25:46 +00:00
Antoine Pitrou
972ee13e03
Issue #5506 : BytesIO objects now have a getbuffer() method exporting a
...
view of their contents without duplicating them. The view is both readable
and writable.
2010-09-06 18:48:21 +00:00
Brian Curtin
6285774f06
Implement #7566 - os.path.sameopenfile for Windows.
...
This uses the GetFileInformationByHandle function to return a tuple of values
to identify a file, then ntpath.sameopenfile compares file tuples, which
is exposed as os.path.sameopenfile.
2010-09-06 17:07:27 +00:00
Gregory P. Smith
13b55291ac
hashlib has two new constant attributes: algorithms_guaranteed and
...
algorithms_avaiable that respectively list the names of hash algorithms
guaranteed to exist in all Python implementations and the names of hash
algorithms available in the current process.
Renames the attribute new in 3.2a0 'algorithms' to 'algorithms_guaranteed'.
2010-09-06 08:30:23 +00:00
Georg Brandl
c86adb4c5c
#9780 : both { and } are not valid fill characters.
2010-09-06 06:49:07 +00:00
Georg Brandl
9e75cad234
Remove redundant word.
2010-09-06 06:45:47 +00:00
Éric Araujo
716ac385d9
Revert accidental commit, apologies for the noise
2010-09-06 01:31:11 +00:00
Raymond Hettinger
db9044e065
Fix nits
2010-09-06 01:29:23 +00:00
Éric Araujo
f63a6fc24e
Update
2010-09-06 01:27:06 +00:00
Raymond Hettinger
92ba2868b6
More updates to whatsnew3.2
2010-09-06 01:16:46 +00:00
Benjamin Peterson
6db773057e
link to docs
2010-09-06 00:32:12 +00:00
Raymond Hettinger
7fefaffcc2
Clean-up example of using fileinput as a context manager.
2010-09-05 23:50:32 +00:00
Éric Araujo
4234ad4266
Fix typos and wording in what’s new 3.2.
...
- The entry about shutil.copytree is just a revert of r84524 which
looks like an unfinished edition.
- The use of gender-neutral language (s/his/their/) removes the
implicit assumption that programmer == male (change agreed by Antoine).
- Other changes should be uncontroversial fixes.
I haven’t rewrapped under 80 lines to keep the diffs readable; I’ll
rewrap later.
2010-09-05 17:32:25 +00:00
Georg Brandl
a9b51d2a0e
#9747 : fix copy-paste error in getresgid() doc.
2010-09-05 17:07:12 +00:00
Georg Brandl
da0a2117aa
Rewrap and consistency fixes.
2010-09-05 11:28:33 +00:00
Raymond Hettinger
d881f31693
Fill-in sqlite3 stubs
2010-09-05 08:54:32 +00:00
Raymond Hettinger
bcbd69666b
Add example of ftplib's new context manager.
2010-09-05 08:46:36 +00:00
Raymond Hettinger
ef2335ca08
Add PEP 391 to whatsnew
2010-09-05 08:35:38 +00:00
Raymond Hettinger
6e8fe9725a
More updates to whatsnew.
2010-09-05 06:13:47 +00:00
Raymond Hettinger
bb734c6707
Add an example
2010-09-05 05:56:44 +00:00
Raymond Hettinger
1784ff0249
More updates to whatsnew
2010-09-05 01:00:19 +00:00
Raymond Hettinger
ebea6fae86
Update whatsnew for Pep3149.
2010-09-05 00:27:25 +00:00
Raymond Hettinger
f95b199339
Update whatsnew for Pep3147.
2010-09-04 23:53:24 +00:00
Raymond Hettinger
02566ec89f
Adopt more descriptive attribute names as suggested on python-dev.
2010-09-04 22:46:06 +00:00
Antoine Pitrou
74a69fa662
Issue #9225 : Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced
...
by the new (and simpler) DUP_TOP_TWO. Performance isn't changed, but
our bytecode is a bit simplified. Patch by Demur Rumed.
2010-09-04 18:43:52 +00:00
Fred Drake
cc645b9a59
add consistent support for the vars and default arguments on all
...
configuration parser classes
(http://bugs.python.org/issue9421 )
2010-09-04 04:35:34 +00:00
Georg Brandl
0b37b333a8
Fix missing word.
2010-09-03 22:49:27 +00:00
Amaury Forgeot d'Arc
661730e2aa
Add an entry in whatsnew about the PyCObject -> PyCapsule move.
...
(It seems that I am the first SWIG user to try python 3.2...)
2010-09-03 22:43:08 +00:00
Georg Brandl
3387f4887f
#9760 : clarify what context expression is.
2010-09-03 22:40:02 +00:00
Georg Brandl
0bb73b8be8
#9767 : doctest run over json docs.
2010-09-03 22:36:22 +00:00
Georg Brandl
8d58216050
More inclusive title.
2010-09-03 22:33:27 +00:00
Georg Brandl
f11c6c46ac
Make PEP section a bit less ugly and at least list implemented PEPs.
2010-09-03 22:20:58 +00:00
Victor Stinner
2b19f35786
Add versionadded tag to PyUnicode_AsUnicodeCopy's doc
2010-09-03 22:13:42 +00:00
Florent Xicluna
0c8414e991
Typo
2010-09-03 20:23:40 +00:00
Daniel Stutzbach
98c07bde45
Doc fix: unicode() is now str()
2010-09-03 18:31:07 +00:00
Victor Stinner
e4ea994f20
Document PyUnicode_AsUnicodeCopy()
2010-09-03 16:23:29 +00:00
Daniel Stutzbach
045b3ba184
Issue #9212 : Added the missing isdisjoint method to the dict_keys and
...
dict_items views. The method is required by the collections.Set ABC,
which the views register as supporting.
2010-09-02 15:06:06 +00:00
Raymond Hettinger
ccb90e3ccd
Keep contents order the same between versions.
2010-09-02 09:17:31 +00:00
Raymond Hettinger
f37ca3c8be
Glossary cleanup
2010-09-01 22:11:53 +00:00
Raymond Hettinger
6f80b4c8b7
Cleanup heapq docs
2010-09-01 21:27:31 +00:00
Georg Brandl
6cb5ad035b
#9677 : fix link.
2010-09-01 21:02:50 +00:00
Raymond Hettinger
a09dc9e38a
'Using Python' now called 'Python Setup'
2010-09-01 20:31:59 +00:00
Antoine Pitrou
1ce3eb5c5b
Issue #8990 : array.fromstring() and array.tostring() get renamed to
...
frombytes() and tobytes(), respectively, to avoid confusion. Furthermore,
array.frombytes(), array.extend() as well as the array.array()
constructor now accept bytearray objects. Patch by Thomas Jollans.
2010-09-01 20:29:34 +00:00
Antoine Pitrou
fce7fd6426
Issue #9549 : sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
...
are now removed, since their effect was inexistent in 3.x (the default
encoding is hardcoded to utf-8 and cannot be changed).
2010-09-01 18:54:56 +00:00
Raymond Hettinger
53c58f8bcc
Forward port sorting howto
2010-09-01 09:15:42 +00:00
Raymond Hettinger
9707fd2ec0
More descriptive title.
2010-09-01 08:57:16 +00:00
Raymond Hettinger
d292a17fc7
2-to-3 fixup for map() example in docs
2010-09-01 07:46:54 +00:00
Raymond Hettinger
20933e08b1
Clean-up bisect docs.
...
* Document the post conditions for bisect_left() and bisect_right().
* Fix the grades example to use more obvious breakpoints
and to use a list comprehension instead of map() which returns
an iterator in Py3.x.
* Improve and expand the examples of searching sorted lists.
* Issue 4356 -- move up reference to the SortedCollection recipe.
2010-09-01 06:58:25 +00:00
Benjamin Peterson
f5a3d699a7
add nonlocal to pydoc topics #9724
2010-08-31 14:31:01 +00:00
Vinay Sajip
40d9a4e854
Improved logging.Formatter date/time formatting documentation.
2010-08-30 18:10:03 +00:00
Benjamin Peterson
6b4fa776ac
rewrite and move open() docs only to functions.rst
2010-08-30 13:19:53 +00:00
Benjamin Peterson
4e4ffb1181
sync open() doc
2010-08-30 12:46:09 +00:00
Antoine Pitrou
b530e1438b
Issue #9715 : improve documentation of the io module
2010-08-30 12:41:00 +00:00
Mark Dickinson
64a38c0eb5
Issue #1512791 : In setframerate method of Wave_write, round non-integral
...
inputs to the nearest integer. Thanks Neil Tallim for the patch.
2010-08-28 17:22:16 +00:00
Georg Brandl
816756182e
#9681 : typo.
2010-08-26 14:30:56 +00:00
Georg Brandl
179249f493
#9689 : add links from overview to in-depth class API descriptions.
2010-08-26 14:30:15 +00:00
Brian Curtin
8790a07927
Fix #7579 . Add docstrings to msvcrt and adjust some wording for bytes.
2010-08-24 05:20:30 +00:00
Benjamin Peterson
17689991e6
only catch AttributeError in hasattr() #9666
2010-08-24 03:26:23 +00:00
Georg Brandl
6a74da3cdb
#9649 : fix default value description.
2010-08-22 20:23:38 +00:00
Benjamin Peterson
3cabbeb077
fix old markup
2010-08-21 21:23:28 +00:00
Benjamin Peterson
2d55e2aab3
provide sample implementations for attrgetter and methodcaller
2010-08-21 20:08:36 +00:00
Benjamin Peterson
c16f8b33e0
fix more indentation
2010-08-21 20:03:15 +00:00
Benjamin Peterson
ffec810d88
indent properly
2010-08-21 20:01:28 +00:00
Senthil Kumaran
6cbe4275cb
Add info about HTTP/1.1 and Connection:Close header.
2010-08-21 16:08:32 +00:00
Benjamin Peterson
23110e7361
alias macintosh to mac_roman #843590
2010-08-21 02:54:44 +00:00
Vinay Sajip
8101021eae
Issue #9606 : Updated documentation for Filter objects.
2010-08-19 19:17:41 +00:00
Victor Stinner
9802b39c12
PYTHONFSENCODING is not available on Windows or Mac OS X
2010-08-19 11:36:43 +00:00
Victor Stinner
e8d5145e18
Create os.fsdecode(): decode from the filesystem encoding with surrogateescape
...
error handler, or strict error handler on Windows.
* Rewrite os.fsencode() documentation
* Improve os.fsencode and os.fsdecode() tests using the new PYTHONFSENCODING
environment variable
2010-08-19 01:05:19 +00:00
Victor Stinner
dbe6042f0a
what's new 3.2: use :mod:
2010-08-18 23:41:33 +00:00
Éric Araujo
358b63a419
Fix typo
2010-08-18 22:35:23 +00:00
Andrew M. Kuchling
4ea04a306f
#7647 : add ST_RDONLY, ST_NOSUID constants to os module.
...
(Also fix a name ordering in the ACKS file.)
2010-08-18 22:30:34 +00:00
Éric Araujo
0fc86b86ed
Fix indentation level
2010-08-18 22:29:54 +00:00
Victor Stinner
94908bbc15
Issue #8622 : Add PYTHONFSENCODING environment variable to override the
...
filesystem encoding.
initfsencoding() displays also a better error message if get_codeset() failed.
2010-08-18 21:23:25 +00:00
Victor Stinner
c14190dc5b
Add versionadded tag to PyModule_GetFilenameObject() doc
2010-08-18 10:57:33 +00:00
Victor Stinner
6c00c1464f
Issue #9425 : Create PyModule_GetFilenameObject() function
...
... to get the filename as a unicode object, instead of a byte string. Function
needed to support unencodable filenames. Deprecate PyModule_GetFilename() in
favor on the new function.
2010-08-17 23:37:11 +00:00
Victor Stinner
6009ece0ed
Replace :func: by :cfunc:
...
To get links to the C functions
2010-08-17 22:01:02 +00:00
Éric Araujo
f5be090bc3
Fix example
2010-08-17 21:24:05 +00:00
Antoine Pitrou
cdfe1c54fc
Add versionadded tags
2010-08-17 21:15:00 +00:00
Antoine Pitrou
bf1a018ce4
Modernize gzip examples
2010-08-17 21:11:49 +00:00
Antoine Pitrou
79c5ef11d5
Issue #3488 : Provide convenient shorthand functions `gzip.compress`
...
and `gzip.decompress`. Original patch by Anand B. Pillai.
2010-08-17 21:10:05 +00:00
Raymond Hettinger
3fccfcb751
Minor rewording to docs for the lru_cache decorator
2010-08-17 19:19:29 +00:00
Benjamin Peterson
7ac98ae3b3
wrap
2010-08-17 17:52:02 +00:00
Giampaolo Rodolà
42382fedcc
fix issue #8807 : adds a context parameter to POP3_SSL class.
2010-08-17 16:09:53 +00:00
Giampaolo Rodolà
ccfb91c89f
fix issue #8866 : parameters passed to socket.getaddrinfo can now be specified as single keyword arguments.
2010-08-17 15:30:23 +00:00
Georg Brandl
67b21b7547
Consistency check for versionadded/changed directives.
2010-08-17 15:07:14 +00:00
Georg Brandl
9e25701e87
Markup nits.
2010-08-17 14:11:59 +00:00
Nick Coghlan
d26c18adcc
Issue #8202 : Set sys.argv[0] to -m rather than -c while searching for the module to execute. Also updates all the cmd_line_script tests to validate the setting of sys.path[0] and the current working directory
2010-08-17 13:06:11 +00:00
Nick Coghlan
eae2da1da7
Issue 9147: Add dis.code_info()
2010-08-17 08:03:36 +00:00
Nick Coghlan
9887683f74
Document and test the resolution of issue 3445 (tolerate missing attributes in functools.update_wrapper, previously implemented as a side effect of the __annotations__ copying patch) and implement issue 9567 (add a __wrapped__ attribute when using update_wrapper)
2010-08-17 06:17:18 +00:00
Nick Coghlan
632a0c1476
Remove some lingering remnants of the short-lived functools.lfu_cache
2010-08-17 05:22:50 +00:00
Benjamin Peterson
ad1e0c5e5f
added versionadded
2010-08-17 03:37:20 +00:00
Benjamin Peterson
45c257f193
add support for abstract class and static methods #5867
2010-08-17 00:52:52 +00:00
Victor Stinner
ad5b1df67f
Add versionadded tag to PySys_FormatStd*() functions doc
2010-08-16 18:39:49 +00:00
Victor Stinner
79766636b6
Issue #9599 : Create PySys_FormatStdout() and PySys_FormatStderr()
...
Write a message formatted by PyUnicode_FromFormatV() to sys.stdout and
sys.stderr.
2010-08-16 17:36:42 +00:00
Florent Xicluna
e3c39ae53e
Replace readfp() with read_file() in configparser documentation.
2010-08-15 20:21:26 +00:00
Mark Dickinson
8858d2cb84
Clarify whatsnew entry for short float repr: roundtripping is not a new feature in 2.7.
2010-08-15 09:43:29 +00:00
Raymond Hettinger
f309828175
Remove the lfu_cache. Add more tests.
2010-08-15 03:30:45 +00:00
Éric Araujo
a893927491
Fix typo
2010-08-14 23:44:13 +00:00
Florent Xicluna
ac521078d7
Remove bad merge (from svnmerge r82301)
2010-08-14 18:03:19 +00:00
Georg Brandl
54ebb78171
Typo fix.
2010-08-14 15:48:49 +00:00
Georg Brandl
8e27fcea07
Wording fix.
2010-08-14 15:46:15 +00:00
Éric Araujo
d7fc374a7a
Oops, fix typo
2010-08-14 05:00:18 +00:00
Éric Araujo
71428876ea
Fix reference (follow-up to #9061 )
2010-08-14 04:55:45 +00:00
Éric Araujo
a85e2175bb
Manually merge r83995: Fix version{added,changed} and spacing in NEWS
2010-08-14 03:59:54 +00:00
Éric Araujo
da668ff24f
Use a marker in generated MANIFEST files, don't touch files without it. Fixes #8688 .
2010-08-14 02:30:34 +00:00
Victor Stinner
47fcb5b4c3
Issue #9542 : Create PyUnicode_FSDecoder() function
...
It's a ParseTuple converter: decode bytes objects to unicode using
PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is.
* Don't specify surrogateescape error handler in the comments nor the
documentation, but PyUnicode_DecodeFSDefaultAndSize() and
PyUnicode_EncodeFSDefault() because these functions use strict error handler
for the mbcs encoding (on Windows).
* Remove PyUnicode_FSConverter() comment in unicodeobject.c to avoid
inconsistency with unicodeobject.h.
2010-08-13 23:59:58 +00:00
Antoine Pitrou
6fdb74f0ae
Re-apply r83871.
2010-08-13 16:26:40 +00:00
Georg Brandl
4d2240915f
Fix copy-paste error.
2010-08-13 15:10:49 +00:00
Victor Stinner
4a2b7a1b14
Issue #9425 : Create PyErr_WarnFormat() function
...
Similar to PyErr_WarnEx() but use PyUnicode_FromFormatV() to format the warning
message.
Strip also some trailing spaces.
2010-08-13 14:03:48 +00:00
Victor Stinner
3603cc5fdb
Issue #9425 : PyFile_FromFd() ignores the name argument
...
This function is only by imp.find_module() which does return the filename in a
separated variable.
2010-08-13 13:34:52 +00:00
Antoine Pitrou
6e451df800
Followup to r83869 and issue #8524 : rename socket.forget() to socket.detach()
...
and make it return the file descriptor.
2010-08-09 20:39:54 +00:00
Senthil Kumaran
f0769e8bd0
Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Docs changed.
2010-08-09 19:53:52 +00:00
Fred Drake
a492362f9a
issue #9452 :
...
Add read_file, read_string, and read_dict to the configparser API;
new source attribute to exceptions.
2010-08-09 12:52:45 +00:00
Antoine Pitrou
f14c263280
Also temporarily revert r83871, to fix compilation on buildbots
2010-08-09 12:47:33 +00:00
Benjamin Peterson
cca65313c4
use 3 space indents
2010-08-09 02:13:10 +00:00
Raymond Hettinger
5b0c1e07ca
Issue 7846: fnmatch cache can grow without bound
...
Updated to solution to use the functools.lru_cache().
Restores the API so that purge() is not needed
(because the cache never gets big).
2010-08-09 02:07:15 +00:00
Antoine Pitrou
e43f9d0ed6
Issue #8524 : Add a forget() method to socket objects, so as to put the
...
socket into the closed state without closing the underlying file
descriptor.
2010-08-08 23:24:50 +00:00
Antoine Pitrou
696e03553b
Issue #477863 : Print a warning at shutdown if gc.garbage is not empty.
2010-08-08 22:18:46 +00:00
Florent Xicluna
c17f17294f
Issue #8047 : Fix the xml.etree serializer to return bytes by default.
...
Use ``encoding="unicode"`` to generate a Unicode string.
2010-08-08 19:48:29 +00:00
Raymond Hettinger
afdeca980d
Issue #4570 : Clean-up tutorial example
2010-08-08 01:30:45 +00:00
Raymond Hettinger
d331ce9e66
Issue #9507 : Named tuple repr will now automatically display the right
...
name in a tuple subclass.
2010-08-08 01:13:42 +00:00
Raymond Hettinger
a6b76ba52e
Improve readability of collections docs by adding a summary table
...
at the top and by list concrete classes before abstract base classes.
2010-08-08 00:29:08 +00:00
Raymond Hettinger
648e725712
Fix typo
2010-08-07 23:37:37 +00:00
Raymond Hettinger
0e833c3227
Document implementation notes for priority queues
2010-08-07 23:31:27 +00:00
Raymond Hettinger
769b6d3009
Clean-up docstring in examples.
2010-08-07 21:31:55 +00:00
Raymond Hettinger
87c9d6cf9c
Improve the docs for bisect to cover common searching tasks.
2010-08-07 07:36:55 +00:00
Raymond Hettinger
08d01eedef
Add partition recipe to itertools docs.
2010-08-07 05:36:53 +00:00
Raymond Hettinger
e9499aef0a
Fix markup
2010-08-07 04:19:49 +00:00
Raymond Hettinger
86f9613957
Improve the whatsnew article on the lru/lfu cache decorators.
2010-08-06 23:23:49 +00:00
Brian Curtin
ef9efbd69c
Fix #9324 : Add parameter validation to signal.signal on Windows in order
...
to prevent crashes.
2010-08-06 19:27:32 +00:00
Gerhard Häring
c34d76cdc3
Issue #3854 : Documented using the sqlite3 module with multiple threads.
2010-08-06 06:12:05 +00:00
Brian Curtin
f045d775fd
Issue #9524 : Document that two CTRL* signals are meant for use only
...
with os.kill.
2010-08-05 18:56:00 +00:00