Nick Coghlan
a0cf90e3b1
Close #14947 : add missing cross-reference to Language Definition from the new dynamic type creation functions. Also cleaned up the general wording of the docs
2012-05-30 22:17:30 +10:00
Brian Curtin
d648fa2627
Fix #14943 . Merge 3.2
2012-05-29 18:36:40 -05:00
Brian Curtin
13c70345ca
Fix #14943 . Update the proper default value and list the proper argument names in the explanation.
2012-05-29 18:34:45 -05:00
R David Murray
abfc37491c
#10839 : raise an error on add of duplicate unique headers in new email policies
...
This feature was supposed to be part of the initial email6 checkin, but it got
lost in my big refactoring.
In this patch I'm not providing an easy way to turn off the errors, but they
only happen when a header is added programmatically, and it is almost never
the right thing to do to allow the duplicate to be added. An application that
needs to add duplicates of unique headers can create a policy subclass to
allow it.
2012-05-29 09:14:44 -04:00
Vinay Sajip
aa88d32574
Merged upstream changes.
2012-05-29 12:53:00 +01:00
Vinay Sajip
4126a7dc17
Added pyvenv docs to 'Python Setup and Usage' section.
2012-05-29 12:52:14 +01:00
Richard Oudkerk
87ea780e8e
Use Python 3.x-style keyword only arg in Array()
...
Previously a Python 2.x compatible hack was used for
multiprocessing.sharedctypes.Array(). Also the documented
signature was wrong.
2012-05-29 12:01:47 +01:00
Eli Bendersky
737b173355
Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree.
...
Add attrib keyword to Element and SubElement in _elementtree.
Patch developed with Ezio Melotti.
2012-05-29 06:02:56 +03:00
R David Murray
7ef3ff3f2e
#12515 : email now registers a defect if the MIME end boundary is missing.
...
This commit also restores the news item for 167256 that it looks like
Terry inadvertently deleted. (Either that, or I don't understand
now merging works...which is equally possible.)
2012-05-27 22:20:42 -04:00
R David Murray
80e0aee95b
#1672568 : email now registers defects for base64 payload format errors.
...
Which also means that it is now producing *something* for any base64
payload, which is what leads to the couple of older test changes in
test_email. This is a slightly backward incompatible behavior change,
but the new behavior is so much more useful than the old (you can now
*reliably* detect errors, and any program that was detecting errors by
sniffing for a base64 return from get_payload(decode=True) and then doing
its own error-recovery decode will just get the error-recovery decode
right away). So this seems to me to be worth the small risk inherent
in this behavior change.
This patch also refactors the defect tests into a separate test file,
since they are no longer just parser tests.
2012-05-27 21:23:34 -04:00
R David Murray
adbdcdbd95
#14925 : email now registers a defect for missing header/body separator.
...
This patch also deprecates the MalformedHeaderDefect. My best guess is that
this defect was rendered obsolete by a refactoring of the parser, and the
corresponding defect for the new parser (which this patch introduces) was
overlooked.
2012-05-27 20:45:01 -04:00
R David Murray
e1398f77ea
#11785 : fix the :mod: references in email package submodule titles.
2012-05-27 17:17:53 -04:00
R David Murray
79cf3bad1b
#11785 : fix the :mod: references in email package submodule titles.
...
Also adds the TOC entry for headerregistry.
2012-05-27 17:10:36 -04:00
R David Murray
ea9766897b
Make headerregistry fully part of the provisional api.
...
When I made the checkin of the provisional email policy, I knew that
Address and Group needed to be made accessible from somewhere. The more
I looked at it, though, the more it became clear that since this is a
provisional API anyway, there's no good reason to hide headerregistry as
a private API. It was designed to ultimately be part of the public API,
and so it should be part of the provisional API.
This patch fully documents the headerregistry API, and deletes the
abbreviated version of those docs I had added to the provisional policy
docs.
2012-05-27 15:03:38 -04:00
Georg Brandl
38e0e1ec85
Fix markup.
2012-05-27 09:31:10 +02:00
R David Murray
d1a30c939c
#8739 : upgrade smtpd to RFC 5321 and 1870.
...
smtpd now handles EHLO and has infrastructure for extended smtp command mode.
The SIZE extension is also implemented. In order to support parameters on
MAIL FROM, the RFC 5322 parser from the email package is used to parse the
address "token".
Logging subclasses things and overrides __init__, so it was necessary to
update those __init__ functions in the logging tests to make the logging tests
pass.
The original suggestion and patch were by Alberto Trevino. Juhana Jauhiainen
added the --size argument and SIZE parameter support. Michele Orrù improved
the patch and added more tests. Dan Boswell conditionalized various bits of
code on whether or not we are in HELO or EHLO mode, as well as some other
improvements and tests. I finalized the patch and added the address parsing.
2012-05-26 14:33:59 -04:00
Nick Coghlan
53c920052b
Issue #14814 : Add a basic ipaddress tutorial (thanks to Sandro Tosi for the initial conversion from Peter Moody's wiki version)
2012-05-27 01:53:33 +10:00
Georg Brandl
039b01d015
Add missing versionadded.
2012-05-26 09:11:22 +02:00
R David Murray
d2d521eafd
#665194 : Add a localtime function to email.utils.
...
Without this function people would be tempted to use the other date functions
in email.utils to compute an aware localtime, and those functions are not as
good for that purpose as this code. The code is Alexander Belopolsy's from
his proposed patch for issue 9527, with a fix (and additional tests) by Brian
K. Jones.
2012-05-25 23:22:59 -04:00
Vinay Sajip
b5267631cb
Merged upstream changes.
2012-05-26 03:48:27 +01:00
Vinay Sajip
7ded1f0f69
Implemented PEP 405 (Python virtual environments).
2012-05-26 03:45:29 +01:00
R David Murray
cb448cf108
#12586 : Expand What's New email entry with provisional policy features.
2012-05-25 22:25:56 -04:00
R David Murray
0b6f6c82b5
#12586 : add provisional email policy with new header parsing and folding.
...
When the new policies are used (and only when the new policies are explicitly
used) headers turn into objects that have attributes based on their parsed
values, and can be set using objects that encapsulate the values, as well as
set directly from unicode strings. The folding algorithm then takes care of
encoding unicode where needed, and folding according to the highest level
syntactic objects.
With this patch only date and time headers are parsed as anything other than
unstructured, but that is all the helper methods in the existing API handle.
I do plan to add more parsers, and complete the set specified in the RFC
before the package becomes stable.
2012-05-25 18:42:14 -04:00
R David Murray
0fa2edd08f
#14731 : add preliminary What's New entry for policy framework.
2012-05-25 17:59:56 -04:00
R David Murray
c27e52265b
#14731 : refactor email policy framework.
...
This patch primarily does two things: (1) it adds some internal-interface
methods to Policy that allow for Policy to control the parsing and folding of
headers in such a way that we can construct a backward compatibility policy
that is 100% compatible with the 3.2 API, while allowing a new policy to
implement the email6 API. (2) it adds that backward compatibility policy and
refactors the test suite so that the only differences between the 3.2
test_email.py file and the 3.3 test_email.py file is some small changes in
test framework and the addition of tests for bugs fixed that apply to the 3.2
API.
There are some additional teaks, such as moving just the code needed for the
compatibility policy into _policybase, so that the library code can import
only _policybase. That way the new code that will be added for email6
will only get imported when a non-compatibility policy is imported.
2012-05-25 15:01:48 -04:00
Nick Coghlan
b47b53941a
Placeholder in What's New for the major packaging infrastructure changes
2012-05-26 01:31:25 +10:00
Petri Lehtinen
fa52cbd5e6
#14863 : Update the documentation of os.fdopen()
2012-05-24 21:49:59 +03:00
Petri Lehtinen
1a01ebc41c
#14863 : Update the documentation of os.fdopen()
...
There's no bufsize argument anymore, and os.fdopen() is only a very
thin wrapper around open() anymore. Change the documentation to
reflect that.
2012-05-24 21:46:36 +03:00
Hynek Schlawack
f0bf135cd1
Restore [] where default arguments are not keywords
2012-05-22 16:14:56 +02:00
Hynek Schlawack
979f37afd2
Restore [] where default arguments are not keywords
...
Reverts some changes of d13fdd97cc8e.
2012-05-22 16:12:18 +02:00
Nick Coghlan
161ea6a349
Fix typo
2012-05-22 23:04:42 +10:00
Nick Coghlan
a497b44238
Fix the versionadded tags for a couple of my recent changes
2012-05-22 23:02:00 +10:00
Georg Brandl
945a3ada7f
Avoid useless indentation.
2012-05-21 20:28:58 +02:00
Antoine Pitrou
389e8c85cd
Remove outdated statement.
2012-05-21 19:23:00 +02:00
Nick Coghlan
3267a30de1
Close #13585 : add contextlib.ExitStack to replace the ill-fated contextlib.nested API
2012-05-21 22:54:43 +10:00
Hynek Schlawack
6e49ac2406
#14804 : Remove [] around optional arguments with default values
...
3.3 specific additions to d13fdd97cc8e.
2012-05-21 13:41:25 +02:00
Hynek Schlawack
87d8200978
#14804 : Remove [] around optional arguments with default values
2012-05-21 13:35:03 +02:00
Hynek Schlawack
dfa465243c
#14804 : Remove [] around optional arguments with default values
2012-05-21 11:01:54 +02:00
Hynek Schlawack
44f7cf0b2f
Fix `versionchanged` tags for json.load
...
`versionchanged` tags about 2.7 are useless in 3.x branches.
2012-05-20 18:34:11 +02:00
Hynek Schlawack
f54c0604c8
Fix `versionchanged` tags for json.load
...
`versionchanged` tags about 2.7 are useless in 3.x branches.
2012-05-20 18:32:53 +02:00
Vinay Sajip
07162d4142
Closes #14864 : Added documentation on how to undo the effects of a logging.disable() call. Thanks to user Guillaume for the suggestion.
2012-05-20 15:37:33 +01:00
Vinay Sajip
69d8493899
Fixes #14864 : Added documentation on how to undo the effects of a logging.disable() call.
2012-05-20 15:36:17 +01:00
Nick Coghlan
305acf2fff
Remove an incorrect implementation detail
2012-05-20 21:22:27 +10:00
Nick Coghlan
dc9b2555a8
Issue #14814 : addition of the ipaddress module (stage 1 - code and tests)
2012-05-20 21:01:57 +10:00
Hynek Schlawack
7db768cf0e
Document when json.load's parse_constant behaviour changed
...
It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
2012-05-20 12:04:01 +02:00
Hynek Schlawack
1203e83d28
Document when json.load's parse_constant behaviour changed
...
It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
2012-05-20 12:03:17 +02:00
Charles-François Natali
6c7bf42656
Merge.
2012-05-20 11:43:28 +02:00
Charles-François Natali
b93f9fa700
Issue #12760 : Add some mising documentation about the new `x` exclusive
...
creation flag to open().
2012-05-20 11:41:53 +02:00
Nick Coghlan
b267475ccf
Clarify a paragraph in the new metaclass docs
2012-05-20 19:36:40 +10:00
Nick Coghlan
337b2bfbc4
Describe the default hash correctly, and mark a couple of CPython implementation details
2012-05-20 18:30:49 +10:00
Nick Coghlan
78770f0b78
Fix typo in new metaclass docs
2012-05-20 18:15:11 +10:00
Raymond Hettinger
010ce3283a
Minor change to default lru size. Set default to a power of two.
2012-05-19 21:20:48 -07:00
Nick Coghlan
7fc570a51e
Close #14588 : added a PEP 3115 compliant dynamic type creation mechanism
2012-05-20 02:34:13 +10:00
Petri Lehtinen
7c5ba513b9
#14494 : Document that absolute imports became default in 3.0 instead of 2.7.
2012-05-19 18:38:43 +03:00
Petri Lehtinen
079bfc962d
#14494 : Document that absolute imports became default in 3.0 instead of 2.7.
2012-05-19 18:36:33 +03:00
Hynek Schlawack
d527259f14
#13152 : Allow to specify a custom tabsize for expanding tabs in textwrap
...
Patch by John Feuerstein.
2012-05-19 13:33:11 +02:00
Petri Lehtinen
ed3639595a
Fix time.time() references in the time module docs
...
Closes #14842 .
2012-05-18 21:28:47 +03:00
Petri Lehtinen
1033b310a3
Fix time.time() references in the time module docs
...
Closes #14842 .
2012-05-18 21:22:47 +03:00
Antoine Pitrou
fc6acccbaf
Remove outdated statements about threading and imports.
2012-05-18 13:57:04 +02:00
Antoine Pitrou
79341e7865
Add a mention of the new import locks in whatsnew.
2012-05-17 21:13:45 +02:00
Antoine Pitrou
6c6d3a2f9f
Move import lock-related functions to a separate doc section.
2012-05-17 19:00:35 +02:00
Antoine Pitrou
ea3eb88bca
Issue #9260 : A finer-grained import lock.
...
Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
2012-05-17 18:55:59 +02:00
Antoine Pitrou
5cec9d2ae5
Add mention of decoding optimizations in the what's new document.
2012-05-17 17:37:02 +02:00
R David Murray
dd95974509
#14823 : Simplify threading.Lock.acquire argument discussion.
2012-05-17 09:14:28 -04:00
R David Murray
f7a6615719
#14823 : Simplify threading.Lock.acquire argument discussion.
2012-05-17 09:13:30 -04:00
Antoine Pitrou
de9ac6c2e5
Issue #14780 : urllib.request.urlopen() now has a `cadefault` argument to use the default certificate store.
...
Initial patch by James Oakley.
2012-05-16 21:40:01 +02:00
Hynek Schlawack
07542a0629
#14692 Fix json docs to reflect changes in json.load
...
The behaviour of the parse_constant callback changed insofar that 'null',
'true', 'false' don't trigger its call anymore.
Patch by Serhiy Storchaka
2012-05-16 19:08:36 +02:00
Hynek Schlawack
9729fd4427
#14692 Fix json docs to reflect changes in json.load
...
The behaviour of the parse_constant callback changed insofar that 'null',
'true', 'false' don't trigger its call anymore.
Patch by Serhiy Storchaka
2012-05-16 19:01:04 +02:00
Hynek Schlawack
51b2ed51f0
#14809 : Add HTTP status codes from RFC 6585 to http.server and http.client
...
Patch by EungJun Yi.
2012-05-16 09:51:07 +02:00
R David Murray
a32df1e0e6
merge #1440472 : reflow
2012-05-15 22:13:55 -04:00
R David Murray
28e68ea6ea
#1440472 : reflow
2012-05-15 22:13:29 -04:00
R David Murray
b3ad106dca
merge #1440472 : Explain that email parser/generator isn't *quite* "idempotent"
2012-05-15 22:09:14 -04:00
R David Murray
ea1badbfef
#1440472 : Explain that email parser/generator isn't *quite* "idempotent"
2012-05-15 22:07:52 -04:00
Charles-François Natali
9b704ec9e1
Add versionadded for hmac.secure_compare().
2012-05-15 21:00:32 +02:00
Giampaolo Rodola'
0fb41b56ea
remove unused import in asyncore doc
2012-05-15 15:46:00 +02:00
Giampaolo Rodola'
ffa1d0b8d5
#14807 : move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning.
2012-05-15 15:30:25 +02:00
Benjamin Peterson
d5a1c44455
PEP 415: Implement suppression of __context__ display with an exception attribute
...
This replaces the original PEP 409 implementation. See #14133 .
2012-05-14 22:09:31 -07:00
R David Murray
d91dc62379
Merge #14766 : Add correct algorithm for when a 'time' object is naive.
...
This patch also clarifies the definition of Naive and Aware.
Original patch by Greg Weller, I modified the first hunk
somewhat to make the exposition even clearer (I hope).
2012-05-14 22:19:10 -04:00
R David Murray
539f239e88
#14766 : Reflow the altered paragraphs.
2012-05-14 22:17:23 -04:00
R David Murray
9075d8b771
#14766 : Add correct algorithm for when a 'time' object is naive.
...
This patch also clarifies the definition of Naive and Aware.
Original patch by Greg Weller, I modified the first hunk
somewhat to make the exposition even clearer (I hope).
2012-05-14 22:14:46 -04:00
Ezio Melotti
c31dd2b564
#14405 : merge with 3.2.
2012-05-14 13:32:26 +03:00
Ezio Melotti
e768b06f16
#14405 : remove outdated/broken/duplicate links.
2012-05-14 13:26:45 +03:00
Mark Dickinson
a9d9d17f8b
Issue #14245 : Merge changes from 3.2.
2012-05-13 21:02:22 +01:00
Mark Dickinson
ba3b0d84bd
Issue #14245 : Improve floating-point entry in FAQ. Thanks Zbyszek Jędrzejewski-Szmek for some of the wording.
2012-05-13 21:00:35 +01:00
Antoine Pitrou
9a2349030a
Issue #14417 : Mutating a dict during lookup now restarts the lookup instead of raising a RuntimeError (undoes issue #14205 ).
2012-05-13 20:48:01 +02:00
Charles-François Natali
7feb9f4225
Issue #14532 : Add a secure_compare() helper to the hmac module, to mitigate
...
timing attacks. Patch by Jon Oberheide.
2012-05-13 19:53:07 +02:00
Brett Cannon
d200bf534b
Add importlib.util.resolve_name().
2012-05-13 13:45:09 -04:00
Ezio Melotti
faedde3e1f
#14770 : merge with 3.2.
2012-05-13 20:17:40 +03:00
Ezio Melotti
b35480e1d2
#14770 : improve the library FAQ.
2012-05-13 20:14:04 +03:00
Brett Cannon
62961dde31
Issue #13959 : Document imp.find_module/load_module as deprecated.
...
The code itself does not raise a DeprecationWarning as the functions
are technically fine, it's just a bad API. Unfortunately experience
has shown that the terrible API has been exposed in various places,
necessitating that it stick around probably until py4k comes around
since it is such a shift to move over to importlib.find_loader().
2012-05-13 13:04:21 -04:00
Sandro Tosi
708d88c334
merge with 3.2
2012-05-13 11:01:36 +02:00
Sandro Tosi
3918b1ebfb
Issue #14793 : fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe
2012-05-13 11:01:20 +02:00
Martin v. Löwis
7fb79fcb64
Issue #14366 : Support lzma compression in zip files.
...
Patch by Serhiy Storchaka.
2012-05-13 10:06:36 +02:00
Brett Cannon
ee78a2b51c
Issue #13959 : Introduce importlib.find_loader().
...
The long-term goal is to deprecate imp.find_module() in favour of this
API, but it will take some time as some APIs explicitly return/use what
imp.find_module() returns.
2012-05-12 17:43:17 -04:00
Sandro Tosi
36c4e38f73
merge with 3.2
2012-05-12 23:30:05 +02:00
Sandro Tosi
38b86b4cf5
correctly define what 'fill' could be; thanks to Leland Hulbert from docs@
2012-05-12 23:29:32 +02:00
Antoine Pitrou
424246fbf3
Issue #14082 : shutil.copy2() now copies extended attributes, if possible.
...
Patch by Hynek Schlawack.
2012-05-12 19:02:01 +02:00
Brett Cannon
c049952de7
Issue #13959 : Have
...
importlib.abc.FileLoader.load_module()/get_filename() and
importlib.machinery.ExtensionFileLoader.load_module() have their
single argument be optional as the loader's constructor has all the
ncessary information.
This allows for the deprecation of
imp.load_source()/load_compile()/load_package().
2012-05-11 14:48:41 -04:00
Brett Cannon
0c59b039b8
Deprecate the imp constants related to imp.get_suffixes().
2012-05-11 14:27:29 -04:00
Brett Cannon
cb66eb0dec
Issue #13959 : Deprecate imp.get_suffixes() for new attributes on
...
importlib.machinery that provide the suffix details for import.
The attributes were not put on imp so as to compartmentalize
everything importlib needs for setting up imports in
importlib.machinery.
This also led to an indirect deprecation of inspect.getmoduleinfo() as
it directly returned imp.get_suffix's returned tuple which no longer
makes sense.
2012-05-11 12:58:42 -04:00
Richard Oudkerk
59d5404bc7
Issue #14753 : Make multiprocessing treat negative timeouts as it did in 3.2
...
In Python 3.2 and earlier, Process.join() and Connection.poll()
treated negative timeouts as zero timeouts. Earlier versions from
the 3.3 line of development treat them as infinite timeouts.
The patch reverts to the old behaviour.
2012-05-10 16:11:12 +01:00
Antoine Pitrou
fda08b0860
Some nits in the pickle docs.
2012-05-10 15:38:47 +02:00
Antoine Pitrou
a9494f6c53
Some nits in the pickle docs.
2012-05-10 15:38:30 +02:00
Antoine Pitrou
b2eeced5ea
Removed outdated statement about pickle's and marshal's relative performance.
2012-05-10 15:18:40 +02:00
Antoine Pitrou
cc6c673a69
Removed outdated statement about pickle's and marshal's relative performance.
2012-05-10 15:18:20 +02:00
Ezio Melotti
fd7aaab184
#14763 : merge with 3.2.
2012-05-10 15:33:13 +03:00
Ezio Melotti
bf3165b971
#14763 : document default maxsplit value for str.split.
2012-05-10 15:30:42 +03:00
R David Murray
7ca8d1f748
Merge: Improve the grammar of a non-sentence.
2012-05-08 21:29:06 -04:00
R David Murray
b98b37f101
Improve the grammar of a non-sentence.
2012-05-08 21:28:24 -04:00
Nadeem Vawda
bc459bb484
Rename lzma.check_is_supported() to is_check_supported() to avoid grammatical confusion.
2012-05-06 23:01:51 +02:00
Nadeem Vawda
f55b329edc
Add lzma.{encode,decode}_filter_properties().
2012-05-06 23:01:27 +02:00
Georg Brandl
75d5d8c781
Merge with 3.2.
2012-05-06 21:39:59 +02:00
Georg Brandl
0958a4d63d
Fix document title for Sphinx.
2012-05-06 21:39:35 +02:00
Ezio Melotti
b55d9e3e19
#14034 : merge indentation fixes from 3.2.
2012-05-06 17:05:54 +03:00
Ezio Melotti
9ab3fdd8cb
#14034 : fix indentation.
2012-05-06 17:05:16 +03:00
Ezio Melotti
df5bedbf88
#14034 : merge argparse tutorial from 3.2.
2012-05-06 16:34:43 +03:00
Ezio Melotti
6cc7a41c2f
#14034 : added the argparse tutorial. Patch by Tshepang Lekhonkhobe.
2012-05-06 16:15:35 +03:00
Nadeem Vawda
7e126205e6
Closes #13989 : Add support for text modes to gzip.open().
...
Also, add tests for gzip.open().
2012-05-06 15:04:01 +02:00
Larry Hastings
faf91e75ab
Issue #14705 : Add 'p' format character to PyArg_ParseTuple* for bool support.
2012-05-05 16:54:29 -07:00
Lars Gustäbel
7a919e9930
Issue #13815 : TarFile.extractfile() now returns io.BufferedReader objects.
...
The ExFileObject class was removed, some of its code went into _FileInFile.
2012-05-05 18:15:03 +02:00
Antoine Pitrou
9a86447c12
Add some whatsnew entries
2012-05-04 23:15:47 +02:00
Larry Hastings
76ad59b7e8
Issue #14127 : Add ns= parameter to utime, futimes, and lutimes.
...
Removed futimens as it is now redundant.
Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat
and ns= parameter to utime--it once again preserves exact metadata on Linux!
2012-05-03 00:30:07 -07:00
Martin v. Löwis
cc1c146c7a
Merge sphinx changes
2012-05-01 18:15:13 +02:00
Martin v. Löwis
24a05f787e
Include micro version even if it is 0.
2012-05-01 16:27:55 +02:00
Benjamin Peterson
49a69e4d48
strip is_ prefixes on clock_info fields
2012-05-01 09:38:34 -04:00
Georg Brandl
67c1444454
Update timeit documentation w.r.t default timer changes.
2012-05-01 11:59:36 +02:00
Georg Brandl
ebb29640fa
Suspicious markup check.
2012-05-01 09:29:56 +02:00
Martin v. Löwis
f6b16a4b50
Issue #14371 : Support bzip2 in zipfile module.
...
Patch by Serhiy Storchaka.
2012-05-01 07:58:44 +02:00
Ned Deily
ca9bfe17be
Issue #10433 : merge
2012-04-30 11:15:38 -07:00
Ned Deily
2e20968feb
Issue #10433 : Document unique behavior of 'os.getgroups' on Mac OS X.
2012-04-30 11:14:02 -07:00
Ezio Melotti
cfc104ee76
#14558 : merge with 3.2.
2012-04-30 19:11:11 +03:00
Ezio Melotti
3d6d7a5e15
#14558 : document the module, argv, and testLoader args of unittest.main.
2012-04-30 19:10:28 +03:00
Senthil Kumaran
d3433918e7
Issue11352 - Update cgi module docs
2012-04-30 22:43:46 +08:00
Senthil Kumaran
290416f364
Issue11352 - Update cgi module docs
2012-04-30 22:43:13 +08:00
Georg Brandl
514880caae
Review of doc changes re PEP 418.
2012-04-30 12:50:30 +02:00
Brett Cannon
c204348906
Write the What's New for the importlib stuff.
2012-04-29 20:59:41 -04:00
Sandro Tosi
89c4eef435
Issue #14691 : indent the traceback so the example is highlighted
2012-04-29 20:33:28 +02:00
Raymond Hettinger
b77b5c308d
merge
2012-04-29 09:35:39 -07:00
Raymond Hettinger
99a56386f1
Issue 14688: Fix typo
2012-04-29 09:32:30 -07:00
Ezio Melotti
5fe0f4e369
#14519 : merge with 3.2.
2012-04-29 11:48:54 +03:00
Ezio Melotti
a0b1d1eea2
#14519 : fix the regex used in the scanf example.
2012-04-29 11:47:28 +03:00
Ezio Melotti
5fbd37e57a
Merge markup fix in unittest doc from 3.2.
2012-04-29 10:53:31 +03:00
Ezio Melotti
b8e336b974
Fix markup in unittest doc.
2012-04-29 10:52:18 +03:00
Senthil Kumaran
4ca008b643
issue6085 - update docs in default branch
2012-04-29 13:44:14 +08:00
Senthil Kumaran
db727b4a77
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler
2012-04-29 13:41:03 +08:00
Senthil Kumaran
1aacba497b
Fix Issue6085 - SimpleHTTPServer address_string to return client ip instead of client hostname
2012-04-29 12:51:54 +08:00
Ezio Melotti
0ce1649674
#14461 : merge with 3.2.
2012-04-29 07:35:22 +03:00
Ezio Melotti
0a6b5419b0
#14461 : fix wording.
2012-04-29 07:34:46 +03:00
Senthil Kumaran
4b7698c468
issue14427 - Document Request.get_header and Request.header_items
2012-04-29 11:51:56 +08:00
Senthil Kumaran
8dc500476a
issue14427 - Document Request.get_header and Request.header_items
2012-04-29 11:50:39 +08:00
Ezio Melotti
e240947cc0
#14155 : merge note about \b from 3.2.
2012-04-29 04:53:20 +03:00
Ezio Melotti
285e51b7e0
#14155 : add a note about \b.
2012-04-29 04:52:30 +03:00
Victor Stinner
fe98e2fc83
Issue #14428 : Use the new time.perf_counter() and time.process_time() functions
...
* Replace "time.clock on windows, or time.time" with time.perf_counter()
* profile module: only use time.process_time() instead of trying different
functions providing the process time
* timeit module: use time.perf_counter() by default, time.time() and
time.clock() can still be used using --time and --clock options
* pybench program: use time.perf_counter() by default, add support for
the new time.process_time() and time.perf_counter() functions, but stay
backward compatible. Use also time.get_clock_info() to display information
of the timer.
2012-04-29 03:01:20 +02:00
Victor Stinner
47620a6611
Close #14309 : Deprecate time.clock()
...
Use time.perf_counter() or time.process_time() instead.
2012-04-29 02:52:39 +02:00
Victor Stinner
ec89539ccc
Issue #14428 , #14397 : Implement the PEP 418
...
* Rename time.steady() to time.monotonic()
* On Windows, time.monotonic() uses GetTickCount/GetTickCount64() instead of
QueryPerformanceCounter()
* time.monotonic() uses CLOCK_HIGHRES if available
* Add time.get_clock_info(), time.perf_counter() and time.process_time()
functions
2012-04-29 02:41:27 +02:00
Victor Stinner
ca6e40f12a
Time doc: documentation that the CLOCK_* constants and clock_*() functions are
...
not always available.
2012-04-28 23:47:33 +02:00
Sandro Tosi
4aff7ed332
Issue #14448 : merge with 3.2
2012-04-28 11:19:59 +02:00
Sandro Tosi
100b889ccd
Issue #14448 : add reference to IANA timezone database; thanks to Georg/Nick suggestions
2012-04-28 11:19:37 +02:00
Brett Cannon
efad00d520
Issue #14646 : __import__() now sets __loader__ if need be.
...
importlib.util.module_for_loader also will set __loader__ along with
__package__. This is in conjunction to a forthcoming update to PEP 302
which will make these two attributes required for loaders to set.
2012-04-27 17:27:14 -04:00
Jesus Cea
990eff0776
Backing out 86dc014cdd74. Not ready yet
2012-04-26 17:05:31 +02:00
Jesus Cea
2b47f0a23f
Close #10142 : Support for SEEK_HOLE/SEEK_DATA
2012-04-26 16:39:35 +02:00
Marc-Andre Lemburg
4fe29c9657
Issue #14605 : Rename _SourcelessFileLoader to SourcelessFileLoader.
...
This time also recreating the Python/importlib.h file to make
make happy. See the ticket for details.
2012-04-25 02:31:37 +02:00
Marc-Andre Lemburg
ac8805a01a
Issue #14605 : Revert renaming of _SourcelessFileLoader, since it caused
...
the buildbots to fail.
2012-04-25 02:11:07 +02:00
Marc-Andre Lemburg
2945e78b05
Issue #14605 : Rename _SourcelessFileLoader to SourcelessFileLoader
2012-04-25 01:36:48 +02:00
Antoine Pitrou
5438ed1572
Issue #4892 : multiprocessing Connections can now be transferred over multiprocessing Connections.
...
Patch by Richard Oudkerk (sbt).
2012-04-24 22:56:57 +02:00
Sandro Tosi
17feca0efc
Issue #14448 : merge with 3.2
2012-04-24 19:46:29 +02:00
Sandro Tosi
d11d0d6343
Issue #14448 : mention pytz; patch by Andrew Svetlov
2012-04-24 19:46:06 +02:00
Georg Brandl
f4095837a7
Fix location of versionaddeds and empty lines.
2012-04-24 19:16:24 +02:00
Sandro Tosi
f0c10f0840
Issue #14554 : merge with 3.2
2012-04-24 18:39:53 +02:00
Sandro Tosi
3e29d93007
Issue #14554 : correct example for captured_stdout(); patch by Tshepang Lekhonkhobe
2012-04-24 18:39:24 +02:00
Sandro Tosi
d57c73bbdd
Issue #13478 : merge with 3.2
2012-04-24 18:12:13 +02:00
Sandro Tosi
e6c3462607
Issue #13478 : document timeit.default_timer()
2012-04-24 18:11:46 +02:00
Sandro Tosi
011c9aa822
Issue #13587 : merge with 3.2
2012-04-24 17:37:02 +02:00
Sandro Tosi
08ccbf4be9
Issue #13587 : use the right RFC2617 name for WWW-Authenticate; patch by Aaron Maenpaa
2012-04-24 17:36:41 +02:00
R David Murray
0b7d7c9544
Merge #14640 : Fix typos/syntax in pyporting.rst.
...
Patch by Dionysios Kalofonos.
2012-04-23 14:45:45 -04:00
R David Murray
790e005669
#14640 : Fix typos/syntax in pyporting.rst.
...
Patch by Dionysios Kalofonos.
2012-04-23 14:44:00 -04:00
Sandro Tosi
8c52ab597f
Issue #14641 : merge with 3.2
2012-04-23 19:45:45 +02:00
Sandro Tosi
cfdba61c3c
Issue #14641 : minor fixes to sockets Howto; patch by Dionysios Kalofonos
2012-04-23 19:45:07 +02:00
Brett Cannon
938d44d59c
Issue #14605 : Expose importlib.abc.FileLoader and
...
importlib.machinery.(FileFinder, SourceFileLoader,
_SourcelessFileLoader, ExtensionFileLoader).
This exposes all of importlib's mechanisms that will become public on
the sys module.
2012-04-22 19:58:33 -04:00
Senthil Kumaran
df7070a751
issue2193 - Update docs about the legal characters allowed in Cookie name
2012-04-22 10:31:52 +08:00
Senthil Kumaran
a42665f4d4
issue2193 - Update 3.2 docs about legal characters allowed in Cookie name
2012-04-22 10:30:17 +08:00
Michael Foord
3af125a4aa
Closes issue 14634. unittest.mock.create_autospec now supports keyword only arguments.
2012-04-21 18:22:28 +01:00
Michael Foord
2cd48738ba
Closes issue 14636. mock objects raise exceptions from an iterable side_effect
2012-04-21 15:52:11 +01:00
Brett Cannon
1b5123aae5
Issue #14628 : Document the fact that import always returns the module
...
as found in sys.modules and not as what the loader returns (even
though it is required to by PEP 302).
2012-04-20 15:57:46 -04:00
Larry Hastings
6fe20b3aee
Issue #14127 : Add st_{cma}time_ns fields to os.stat() result object.
2012-04-19 15:07:49 -07:00
Martin v. Löwis
aa2efcb0bc
Issue #14098 : New functions PyErr_GetExcInfo and PyErr_SetExcInfo.
...
Patch by Stefan Behnel.
2012-04-19 14:33:43 +02:00
Ned Deily
05fac022ec
Remove webbrowser doc reference to the previously removed internet-config option.
2012-04-18 12:55:57 -07:00
Ned Deily
cc19140607
Remove webbrowser doc reference to the previously removed internet-config option.
2012-04-18 12:48:52 -07:00
Brian Curtin
09b86d1196
Fix #14600 . Correct reference handling and naming of ImportError convenience function
2012-04-17 16:57:09 -05:00
Charles-François Natali
c8ce715a82
Issue #14087 : multiprocessing: add Condition.wait_for(). Patch by sbt.
2012-04-17 18:45:57 +02:00
Vinay Sajip
f138f8c1ab
Merged cookbook corrections from 3.2.
2012-04-17 00:41:39 +01:00
Vinay Sajip
62930e1cc5
Corrected version numbers in cookbook example.
2012-04-17 00:40:48 +01:00
Brian Curtin
bded894499
Add versionadded tags to newly added ImportError convenience functions.
2012-04-16 18:14:09 -05:00
Brian Curtin
c07bda0a5a
Correct warnings when building the docs for the nonexistet :arg: role. Changed to asterisks.
2012-04-16 15:24:02 -05:00
Brian Curtin
bd43974037
Add documentation for the new PyErr_SetFromImport* functions
2012-04-16 15:14:36 -05:00
Vinay Sajip
e8a463d791
Merged tweaks to cookbook example from 3.2.
2012-04-16 15:47:05 +01:00
Vinay Sajip
59b9a79a5a
Tweaked format of cookbook example.
2012-04-16 15:46:18 +01:00
Vinay Sajip
1b7101968a
Merged cookbook update from 3.2.
2012-04-16 15:29:28 +01:00
Vinay Sajip
b00e8f108d
Added cookbook example for BOM insertion.
2012-04-16 15:28:50 +01:00
Victor Stinner
0db176f8f6
Issue #14386 : Expose the dict_proxy internal type as types.MappingProxyType
2012-04-16 00:16:30 +02:00