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