R David Murray
12e930f3a4
#17282 : Document unittest.main defaultTest argument.
2014-01-02 13:37:26 -05:00
Benjamin Peterson
3a990c69b8
remove brackets
2014-01-02 12:22:30 -06:00
Benjamin Peterson
8ec15f7a92
merge 3.3 ( #20110 )
2014-01-02 16:48:24 -06:00
R David Murray
9025f1c5c4
whatsnew: sqlite3 uri parm, unittest.main defaultTest, ftplib.Netrc deprecation
2014-01-02 13:44:18 -05:00
R David Murray
6e731b0a41
Merge and update #17282 : Document unittest.main defaultTest argument.
...
In 3.4 defaultTest can also be a list (see issue 15132).
2014-01-02 13:43:02 -05:00
Benjamin Peterson
c22eaecd53
merge 3.3 ( closes #20108 )
2014-01-02 12:26:50 -06:00
Benjamin Peterson
a015bb1e2b
merge 3.3
2013-12-31 22:02:41 -06:00
Benjamin Peterson
fa10ae0978
update copyright year
2013-12-31 22:02:22 -06:00
R David Murray
33ef1aeb1e
whatsnew: mock called_with improvements, socket CAN_BCM support.
...
Also reworded the other entries in the socket section of whatsnew, as
well as a couple of unrelated news entries.
2013-12-31 16:04:50 -05:00
R David Murray
8b2d68245e
whatsnew: random.getrandbits performance.
...
Also fix a NEWS file issue number error, and some spacing fixes in whatsnew.
2013-12-31 15:06:05 -05:00
R David Murray
d592bb2dc4
whatsnew: afic.open supports 'with'.
2013-12-31 13:45:38 -05:00
Zachary Ware
1cb4f607d1
Merge with 3.3
2013-12-31 12:10:24 -06:00
Zachary Ware
340a692283
str subclasses may have non-empty __slots__, bytes subclasses can't.
2013-12-31 12:09:26 -06:00
R David Murray
fced3ec2db
whatsnew: argparse FileType accepts errors and encodings args.
2013-12-31 11:18:01 -05:00
R David Murray
2bc930f044
whatsnew: epoll supports with.
...
Also reworded the description of the feature in the docs.
2013-12-31 11:17:21 -05:00
Christian Heimes
f598558afb
Fixed typo (thx Arfrever)
2013-12-30 09:33:46 +01:00
Michael Foord
4d1639f4e5
Closes issue 20031. Document unittest.TextTestRunner.run method.
2013-12-29 23:38:55 +00:00
R David Murray
2691ee6183
whatsnew: abc.ABC. Also add issue number to news entry and reword.
2013-12-28 23:15:12 -05:00
Antoine Pitrou
3e86ba4e32
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:26:33 +01:00
Antoine Pitrou
e6d2f159fc
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:30:51 +01:00
R David Murray
473f45b4bc
whatsnew: rewrite urllib, doctest, and poplib sections.
...
Also collapse redundant versionadded/versionchanged markup in
poplib.stls entry.
2013-12-27 17:01:16 -05:00
R David Murray
d26538163e
whatsnew: importlib cleanup and source_to_code add; python partial impl.
2013-12-27 14:06:15 -05:00
R David Murray
0e814634e5
whatsnew for gc.get_stats, plus doc tweaks.
...
Clarified the "At the moment" wording, and added the get_stats entry in the
module summary that Serhiy noted was missing at the end of issue 16351.
Given that pydoc lists all the function docstrings, I'm not sure that module
summary section is actually needed; but, it is probably better to address that
when the module is converted to use Argument Clinic. In the meantime we
should keep the list complete.
2013-12-26 15:11:28 -05:00
R David Murray
575fb31955
shelf in with stmt, fish/csh in venv, ElementTree short_empty_elements keyword.
...
Also added versionadded for for fish/csh, fixed indentation of versionadded
for ElementTree.write, and make the behavior of shelf as a context manager
explicit in the docs.
2013-12-25 23:21:03 -05:00
R David Murray
6e39015f61
pty.spawn returns os.waitpid; optimization of BZ2File and LZMAFile.
2013-12-24 22:28:04 -05:00
R David Murray
3edcc7832e
#16832 : s/integer/object/ in docs/docstring, and add whatsnew entry.
2013-12-24 16:13:32 -05:00
R David Murray
5ea95249d5
idle -n deprecation, fix case of pickle section.
2013-12-24 15:59:57 -05:00
R David Murray
d74d09ab4a
Neaten up structure of major sections.
...
Also move tick_counter from deprecated section to removed section.
2013-12-24 15:33:02 -05:00
R David Murray
076deadd81
Move no-longer-supported operating systems into 'removed' section.
2013-12-24 14:59:50 -05:00
R David Murray
e7cf678ad2
Use title case for all section titles except module names.
2013-12-24 14:51:25 -05:00
R David Murray
d17aba7139
sys.getallocatedblocks + regrtest -R, make coverage-report, SO macro goes away.
2013-12-24 14:46:23 -05:00
R David Murray
061efb175f
Use endash in PEP callouts.
...
Despite Serhiy's suggestion in issue18529, the emdash just looks
too long to me, at least in my browser. This usage case is sort
of halfway between endash (connective) and emdash (pause/separator).
2013-12-24 12:35:59 -05:00
R David Murray
6dd1830c25
Move argument clinic into its own section, like the other PEPs.
2013-12-24 12:23:56 -05:00
R David Murray
d91ba206a2
Mention Windows 2000 and OS/2 drops, python-config as shell script.
2013-12-24 12:13:44 -05:00
R David Murray
72420ff3ce
Mention PATHEXT and removed Misc dirs; clarify wording of a NEWS entry.
2013-12-24 10:46:44 -05:00
Serhiy Storchaka
f47036c130
Removed spaces before colons and semicolons.
2013-12-24 11:04:36 +02:00
R David Murray
347f9c7457
Make the 'read on' sentence cover more ground.
2013-12-23 21:30:06 -05:00
R David Murray
bcaaecfe1e
Move other improvements and optimization sections above deprecated.
...
This arrangement means the sections that have summaries come
first, and everything else comes after those.
2013-12-23 21:23:36 -05:00
R David Murray
4d48f2a6e7
Collapse 'python invocation changes' into 'other improvements'.
2013-12-23 21:21:09 -05:00
R David Murray
9217dadd12
Link new module summary entries to their description sections.
2013-12-23 21:08:28 -05:00
Serhiy Storchaka
89e84e7523
Removed spaces before colons and semicolons.
2013-12-24 11:05:24 +02:00
Serhiy Storchaka
a4d170d985
Removed spaces before commas and periods.
2013-12-23 18:20:51 +02:00
R David Murray
68790662fc
Add pep 435 summary entry in new required features, and ensurepip description.
...
Also added a note about platform packagers not being required to install
pip by default, if they provide an appropriate pip hook, to the PEP
description section.
2013-12-23 11:17:51 -05:00
R David Murray
f9976e7254
Add link to selectors description from its summary line.
2013-12-23 10:32:02 -05:00
R David Murray
8d85678d5c
Make summary entry format consistent (always end with pep or issue in parens).
2013-12-23 10:28:57 -05:00
Serhiy Storchaka
2a6145290b
Removed spaces before commas and periods.
2013-12-23 18:21:57 +02:00
Nick Coghlan
6256fcbc97
Close #19734 : ignore pip env vars in ensurepip
2013-12-23 16:16:07 +10:00
R David Murray
3f122d6f44
Mention deprecation and porting sections in intro.
2013-12-22 21:09:16 -05:00
R David Murray
f85b2a8dc7
Reflow 'modulespec' paragraphs.
2013-12-22 21:06:13 -05:00
R David Murray
e9b74d45d3
Make mailing list thread reference an inline link, reword i.e. abbreviation.
2013-12-22 21:05:04 -05:00
R David Murray
809487e5f5
Make the organization of the body and the summary have parallel structure.
...
This means I moved the 'new expected features' section to the top of the
summary, and made a new section with the same name at the start of
the body, turning the previous top level sections there into subsections.
I also added a line to the new first summary section for modulespec (pep 451).
2013-12-22 20:49:40 -05:00
R David Murray
8f7664ab15
Add description of marshal changes.
2013-12-22 20:40:11 -05:00
R David Murray
a93ca971a5
Be consistent in how PEPs are referenced throughout the summary section.
2013-12-22 14:10:21 -05:00
R David Murray
ca7946193f
Rewrite module-globals summary entry, and expand the full description a bit.
2013-12-22 14:05:11 -05:00
R David Murray
2aa9d52ed2
Make argument clinic summary entry parallel to other PEP entries.
...
The existing entry repeated the same info that was in the body text, which
means it didn't satisfy the sections "brevity" requirement :)
2013-12-22 13:57:45 -05:00
Antoine Pitrou
a936c40ede
s/lightweight/minimal/, as per issue #11379 .
2013-12-22 01:57:45 +01:00
Antoine Pitrou
f20ea13996
s/lightweight/minimal/, as per issue #11379 .
2013-12-22 01:57:01 +01:00
R David Murray
c16dfe1837
Make CPython PEP summary entry links consistent, add pep 456 discussion.
2013-12-21 12:32:10 -05:00
Christian Heimes
af01f66817
Issue #16136 : Remove VMS support and VMS-related code
2013-12-21 16:19:10 +01:00
R David Murray
26b80cfde0
Add link from email summary entry to entry in changed module section.
2013-12-20 17:26:52 -05:00
R David Murray
ac18622126
Add links to discussion of multiprocessing spawn/forkserver feature.
2013-12-20 17:23:57 -05:00
R David Murray
748bad2cd0
Tidy up ssl whatsnew references, make ssl section formatting consistent.
...
Also remove some extra blank lines in the ssl doc acctions for tls1.1/1.2,
and reflow a paragraph.
2013-12-20 17:08:39 -05:00
R David Murray
c054040f86
Add link from pickle protocol 4 in summary to the section about it.
2013-12-20 16:38:09 -05:00
R David Murray
cde1a06a54
Include sha3 addition in hashlib section of whatsnew.
...
And link to it from the summary, and link to the Hash Algorithms
section of hashlib from the linked description.
2013-12-20 16:33:52 -05:00
R David Murray
a17e0d873a
No need for single para descriptions to have separate contributed by para.
2013-12-20 16:12:28 -05:00
R David Murray
e0f7a78877
whatsnew: s/no new syntax features planned/no new syntax features added/
2013-12-20 16:04:29 -05:00
R David Murray
0a1021661f
Fix spelling error in single dispatch whatsnew summary, and add link.
2013-12-20 15:00:54 -05:00
R David Murray
f9909c27df
Make the 'PEP 446' string link to the PEP in whatsnew new feature description.
...
I also further qualified the cross reference link, since those are
global names.
2013-12-20 14:50:12 -05:00
R David Murray
6d5cb07382
Move versionadded for tracemalloc into the standard location (right after title)
2013-12-20 14:48:50 -05:00
R David Murray
43ad138160
Move versionadded for ensurepip into the standard location (right after title)
2013-12-20 14:40:11 -05:00
R David Murray
6a14381530
Fix Sphinx markup for asyncio modules so :mod:`asyncio` links work.
2013-12-20 14:37:39 -05:00
R David Murray
fd1ff1c888
Add versionadded to enum docs.
2013-12-20 14:20:49 -05:00
R David Murray
6adb4543fc
Add email package to whatsnew list of significantly improved stdlib modules.
2013-12-20 13:10:43 -05:00
Vinay Sajip
f468d5b259
Closes #19902 : Merged update from 3.3.
2013-12-19 11:51:19 +00:00
Vinay Sajip
800e11b406
Issue #19902 : Added list of logging levels.
2013-12-19 11:50:24 +00:00
Zachary Ware
e61f4df275
Closes #20005 : Fix typo in operator docs. Patch by Claudiu Popa.
2013-12-18 12:22:35 -06:00
Zachary Ware
0bffca006a
Issue #20005 : Fix typo in operator docs. Patch by Claudiu Popa.
2013-12-18 12:21:49 -06:00
Nick Coghlan
9a76735b1d
Close #19946 : use runpy as needed in multiprocessing
...
- handles main files without a suffix
- handles main submodules properly
- adds test cases for the various kinds of __main__
2013-12-17 22:17:26 +10:00
Eric Snow
7cff4cd7e9
Issue #19713 : Fix mistakes in the import page of language reference.
...
These mistakes were introduced by the initial PEP 451 merge.
2013-12-16 23:10:50 -07:00
Eric Snow
ca2d854df8
Issue #19713 : Update importlib docs for module spec changes, including deprecations.
2013-12-16 23:06:52 -07:00
Eli Bendersky
5100311bd8
Issue #20001 : Add the SVG source of the pathlib-inheritance diagram to Hg
2013-12-16 21:13:40 -08:00
Victor Stinner
1d006a2c0e
Backout a1a05e2724dd: shutil.which(bytes) is a new feature and my patch does not work on Windows
2013-12-16 23:39:40 +01:00
Victor Stinner
fffb96ba66
Issue #18283 : shutil.which() now supports bytes argument, not only text argument.
2013-12-16 22:48:48 +01:00
Antoine Pitrou
f6abb70b48
Mention specific exceptions instead of OSError where appropriate.
2013-12-16 21:00:53 +01:00
Antoine Pitrou
0048c98fef
Issue #19921 : When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
...
Patch by Serhiy.
2013-12-16 20:22:37 +01:00
Nick Coghlan
720c7e28cb
Issue #19700 : set __spec__ appropriately in runpy
...
Note that __spec__.name is not currently guaranteed to be in
sys.modules when the code is running, only __name__ is.
The "running module is in sys.modules" invariant will be
expanded to also cover __spec__.name in a subsequent patch.
2013-12-15 20:33:02 +10:00
R David Murray
530a69fafc
#19970 : fix additional typo in 3.4 asyncio docs.
2013-12-14 11:26:06 -05:00
Ezio Melotti
66f8518acb
#19981 : merge with 3.3.
2013-12-14 12:43:08 +02:00
Ezio Melotti
956040a7cc
#19981 : fix typo in email.mailbox docs. Patch by Claudiu Popa.
2013-12-14 12:42:29 +02:00
Brett Cannon
706a7296d7
merge for issue #19963
2013-12-13 13:58:47 -05:00
Brett Cannon
98620d87f2
Issue #19963 : Document that importlib.import_module() will import
...
parent packages automatically.
2013-12-13 13:57:41 -05:00
R David Murray
18701160cc
Merge: #18036 : update .pyc FAQ entry in light of PEP 3147.
2013-12-13 12:30:29 -05:00
R David Murray
d913d9d54e
#18036 : update .pyc FAQ entry in light of PEP 3147.
...
Initial patch by Phil Connell.
2013-12-13 12:29:29 -05:00
Victor Stinner
774b2e0af2
Issue #14432 : Document the removal of the PyFrameObject.f_tstate field
2013-12-13 14:33:01 +01:00
Victor Stinner
86e139ad65
asyncio doc: explain where does the task come from.
2013-12-13 12:51:24 +01:00
Victor Stinner
68bccb4922
asyncio doc: change style of the sequence diagram to focus on the control flow
2013-12-13 12:47:39 +01:00
Victor Stinner
2748bc735e
asyncio: remove references to the Tulip project, rename Tulip to asyncio.
...
Patch written by Vajrasky Kok.
2013-12-13 10:57:04 +01:00
Victor Stinner
441adb8c57
Backout changeset 46393019b650
...
test_capi is failing and the fix is not trivial, I prefer to revert
2013-12-13 04:14:41 +01:00
Victor Stinner
cd0cb8ccd3
Close #19787 : PyThread_set_key_value() now always set the value. In Python 3.3,
...
the function did nothing if the key already exists (if the current value is a
non-NULL pointer).
_testcapi.run_in_subinterp() now correctly sets the new Python thread state of
the current thread when a subinterpreter is created.
2013-12-13 03:22:00 +01:00
Victor Stinner
1c4b892d71
Add a sequence diagram for the chained coroutines example
2013-12-12 12:35:17 +01:00
R David Murray
50bfbb9903
#19063 : fix set_payload handling of non-ASCII string input.
...
This version of the fix raises an error instead of accepting the invalid
input (ie: if a non-ASCII string is used but no charset is specified).
2013-12-11 16:52:11 -05:00
Eric Snow
b282b3d804
Issue #18864 : Add a setter for ModuleSpec.has_location.
2013-12-10 22:16:41 -07:00
Nick Coghlan
1f609e9b02
Issue #19407 : merge PPUG notes from 3.3
2013-12-10 21:31:14 +10:00
Nick Coghlan
b5c4fd0a96
Issue #19407 : add Python Packaging User Guide notes
...
The stdlib docs for package distribution and building extensions
are rather dated, and that isn't expected to change for 2.7 and
3.3.
The Python Packaging User Guide isn't complete either, but it's
already a much better road map for new users than the existing
stdlib docs.
2013-12-10 21:24:55 +10:00
Victor Stinner
a6fa15367f
asyncio doc: simplify task example
2013-12-10 12:20:14 +01:00
Victor Stinner
0839ed4730
asyncio doc: don't document Task.cancel(), already documented in Future.cancel()
2013-12-10 12:18:15 +01:00
Victor Stinner
742520be43
asyncio: document Task.current_task()
2013-12-10 12:14:50 +01:00
Victor Stinner
fc25d629ab
asyncio: don't document private functions
2013-12-10 02:52:49 +01:00
Victor Stinner
34f2946a11
asyncio: fix 2nd task example
2013-12-10 02:51:05 +01:00
Victor Stinner
dbd8950b28
asyncio doc: rewrite the callback hello world to use call_soon() instead of a
...
direct call.
2013-12-10 02:47:22 +01:00
Victor Stinner
b69d62dcac
assyncio doc: rewrite, improve and move coroutine, Future and Task examples
2013-12-10 02:09:46 +01:00
Stefan Krah
29e64548c5
Fix typo.
2013-12-09 19:18:59 +01:00
Stefan Krah
345ec35da3
Fix whitespace.
2013-12-09 19:11:05 +01:00
Stefan Krah
2d181de44c
Merge 3.3.
2013-12-09 19:03:24 +01:00
Victor Stinner
a881a7f205
asyncio doc: explain why the loop is running twice
2013-12-09 13:19:23 +01:00
Victor Stinner
d8f11e9265
asyncio: another Future example using add_done_callback()
2013-12-09 13:04:12 +01:00
Victor Stinner
45c2fd9f8a
asyncio doc: add an example with Future
2013-12-09 12:40:17 +01:00
Stefan Krah
1761fa9dd1
Add libmpdec license.
2013-12-08 20:54:02 +01:00
Nadeem Vawda
bd6932a576
Closes #18430 : Document that peek() may change the position of the underlying
...
file for the BZ2File, GzipFile and LZMAFile classes.
2013-12-08 19:50:05 +01:00
Nadeem Vawda
6976104a36
#18430 : Document that peek() may change the position of the underlying file for
...
the BZ2File, GzipFile and LZMAFile classes.
2013-12-08 19:47:22 +01:00
doko@ubuntu.com
ca616a2709
- Issue #19736 : Add module-level statvfs constants defined for GNU/glibc
...
based systems.
2013-12-08 15:23:07 +01:00
Christian Heimes
5bb414d176
Issue #19343 : Expose FreeBSD-specific APIs in resource module. Original patch by Koobs.
2013-12-08 14:35:55 +01:00
Guido van Rossum
9710ff04ac
Silently ignore unregistering closed files. Fixes issue 19876. With docs and slight test refactor.
2013-12-07 15:57:01 -08:00
Alexandre Vassalotti
d05c9ff845
Issue #6784 : Strings from Python 2 can now be unpickled as bytes objects.
...
Initial patch by Merlijn van Deen.
I've added a few unrelated docstring fixes in the patch while I was at
it, which makes the documentation for pickle a bit more consistent.
2013-12-07 01:09:27 -08:00
Benjamin Peterson
d45a46b60d
merge 3.3 ( #19910 )
2013-12-06 20:12:51 -05:00
Benjamin Peterson
933142a8f2
document that compile() can take bytes ( closes #19910 )
2013-12-06 20:12:39 -05:00
Antoine Pitrou
9bcb1127f1
Mention pickle protocol 4, and some tweaks.
2013-12-07 01:05:57 +01:00
Antoine Pitrou
9858e8b98d
Issue #19900 : improve generalities at the start of the pickle module doc
2013-12-07 00:57:44 +01:00
Antoine Pitrou
d4d60554bc
Issue #19900 : improve generalities at the start of the pickle module doc
2013-12-07 00:56:59 +01:00
Vinay Sajip
1b8b868b84
Merged minor documentation update from 3.3.
2013-12-06 11:23:08 +00:00
Vinay Sajip
b1a92a4c89
Added minor clarification in logging HOWTO.
2013-12-06 11:22:24 +00:00
Antoine Pitrou
710280b6d6
Issue #18840 : Introduce the json module in the tutorial, and deemphasize the pickle module.
2013-12-05 23:48:10 +01:00
Antoine Pitrou
dd799d2e32
Issue #18840 : Introduce the json module in the tutorial, and deemphasize the pickle module.
2013-12-05 23:46:32 +01:00
Antoine Pitrou
f9c54944df
Merge socket doc changes from 3.3
2013-12-04 21:15:24 +01:00
Antoine Pitrou
a5cc9d68b9
Tweak the socket module doc layout
2013-12-04 21:11:03 +01:00
Antoine Pitrou
e3658a70c3
Issue #19882 : tweak docs for socket.close()
2013-12-04 21:02:42 +01:00
Victor Stinner
31d83228c2
asyncio doc: add some notes on the ping example
2013-12-04 11:16:17 +01:00
Victor Stinner
99c2ab4b83
asyncio doc: oh, asyncio module has its own Future class
...
Improve also wait() documentation: mention that the first parameter is a
sequence
2013-12-03 19:17:25 +01:00
Victor Stinner
cf6f72e329
Fix typo in asyncio.AbstractServer documentation
2013-12-03 18:23:52 +01:00
Victor Stinner
c6fba92ebc
asyncio doc: add one more example of coroutines
2013-12-03 17:37:31 +01:00
Victor Stinner
85a2be7da7
ayncio: replace the disclamer with a seealso section
2013-12-03 15:04:36 +01:00
Victor Stinner
15faa9c8ad
asyncio doc: simplify ping example, remove the useless timeout
2013-12-03 15:04:18 +01:00
Victor Stinner
afbf827875
asyncio doc: fix definition of stop() method
2013-12-03 02:05:42 +01:00
Victor Stinner
933a8c82ce
asyncio doc: reorder methods; typo
2013-12-03 01:59:38 +01:00
Victor Stinner
1ca5ba611b
asyncio io: group transports and protocols in a new title
2013-12-03 01:49:43 +01:00
Victor Stinner
0c6f1ca40c
asyncio doc: write a complete TCP echo example, client and server
...
Example based on tcp_echo.py example from Tulip source code.
2013-12-03 01:46:39 +01:00
Victor Stinner
3e09e32c8a
asyncio doc: move coroutine example to the Task page
2013-12-03 01:22:06 +01:00
Victor Stinner
ea3183f5b8
Split asyncio documentation into subfiles
2013-12-03 01:08:00 +01:00
Victor Stinner
fa2ce78a21
asyncio doc: change level of titles
...
Remove also a duplicated Protocols section!
2013-12-03 00:56:27 +01:00
Victor Stinner
b3be72cac3
asyncio doc: reorder sections
2013-12-03 00:49:26 +01:00
Victor Stinner
34d8df5171
asyncio: document wait() function
2013-12-03 00:42:59 +01:00
Victor Stinner
dd339a248c
asyncio doc
...
* complete create_connection() prototype
* link to Server
* document get_extra_info() keys
2013-12-03 00:32:48 +01:00
Christian Heimes
a5768f7292
Issue #19785 : smtplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:44:17 +01:00
Christian Heimes
216d463b1f
Issue #19783 : nntplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:20:11 +01:00
Christian Heimes
1bc7068d7f
Issue #19784 : poplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:10:50 +01:00
Christian Heimes
b8a3f58158
merge
2013-12-02 20:02:04 +01:00
Christian Heimes
48aae57996
Issue #19782 : imaplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:01:29 +01:00
Serhiy Storchaka
6de88b3107
Fixed formatting (was parsed as description list).
2013-12-02 20:31:00 +02:00
Serhiy Storchaka
475546facf
Fixed regex match representation in an example.
2013-12-02 20:23:19 +02:00
Victor Stinner
0c924b83ee
asyncio: sort some methods
2013-12-02 17:52:31 +01:00
Victor Stinner
b09f9b33d2
asyncio doc: group transport method by classes
...
Declare classes because they are mentionned in documentation of other functions
2013-12-02 17:46:04 +01:00
Victor Stinner
e91f180efe
asyncio: more documentation
2013-12-02 17:40:48 +01:00
Victor Stinner
be490633be
asyncio: document network functions, and stream reader/writer
2013-12-02 17:28:32 +01:00
Eli Bendersky
b55c4d4539
Issue #19814 : Clarify argparse's docs w.r.t prefix matching
2013-12-02 05:50:48 -08:00
Eli Bendersky
f3114532e4
Issue #19814 : Clarify argparse's docs w.r.t prefix matching
2013-12-02 05:49:54 -08:00
Victor Stinner
c37dd614b6
asyncio: document locks
2013-12-02 14:31:16 +01:00
Victor Stinner
0da1d29c8a
asyncio: document Queue classes
2013-12-02 14:06:03 +01:00
Victor Stinner
60efaae4f9
Document Task class and task functions
2013-12-02 13:47:23 +01:00
Victor Stinner
3c3c4f5a11
asyncio: cleanup doc
2013-12-02 13:04:25 +01:00
Victor Stinner
550a09ef86
Issue #19833 : Document more asyncio.BaseEventLoop methods
2013-12-02 12:41:54 +01:00
Victor Stinner
4e70bb84e6
Issue #19833 : add 2 examples to asyncio doc (hello world)
2013-12-02 12:21:30 +01:00
Victor Stinner
8dc434e092
Issue #19833 : asyncio doc: add class name to methods
2013-12-02 12:20:57 +01:00
Victor Stinner
5f5657ee50
(Merge 3.3) Issue #19728 : Fix sys.getfilesystemencoding() documentation
2013-12-02 12:17:29 +01:00
Victor Stinner
22d0418f71
Issue #19728 : Fix sys.getfilesystemencoding() documentation
2013-12-02 12:16:46 +01:00
Christian Heimes
e5b5edfa2c
Issue #19781 : ftplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 02:56:02 +01:00
Christian Heimes
1aa9a75fbf
Issue #19509 : Add SSLContext.check_hostname to match the peer's certificate
...
with server_hostname on handshake.
2013-12-02 02:41:19 +01:00
Charles-François Natali
837a6e012f
Issue #19849 : selectors: Document the possibility of early select() wakeup upon
...
EINTR.
2013-12-01 13:23:48 +01:00
Zachary Ware
7c63c85f17
Issue #19845 : Updated the Compiling Python on Windows docs.
2013-11-30 17:03:03 -06:00
Zachary Ware
f8ceb04fcf
Issue #19845 : Updated the Compiling Python on Windows docs.
2013-11-30 16:59:33 -06:00
Vinay Sajip
8b1e2f351d
Closes #19789 : Merged update from 3.3.
2013-11-30 22:46:29 +00:00
Vinay Sajip
a9c179bd3e
Issue #19789 : Clarified documentation for logging.disable.
2013-11-30 22:45:29 +00:00
Guido van Rossum
8519e5ade6
More realistic example for selectors.py.
2013-11-29 14:51:18 -08:00
Charles-François Natali
a951f3d1ac
Remove trailing blanks.
2013-11-29 18:57:47 +01:00
Charles-François Natali
a9f90bc602
Set the FDs non-blocking in the selectors example.
2013-11-29 18:52:51 +01:00
Serhiy Storchaka
0e90e99188
Issue #19795 : Improved markup of True/False constants.
2013-11-29 12:19:53 +02:00
Serhiy Storchaka
fbc1c26803
Issue #19795 : Improved markup of True/False constants.
2013-11-29 12:17:13 +02:00
Eli Bendersky
b6e66ebdf7
Some minor clarifications in the documentation of pathlib + inheritance diagram
2013-11-28 06:53:05 -08:00
Serhiy Storchaka
889d24ee3a
Revert unrelated changes introduced by changeset b2066bc8cab9 (issue #19795 ).
2013-11-29 23:40:35 +02:00
Ned Deily
c034156f26
Change pathlib documentation to use "raise" instead of "throw".
2013-11-27 14:42:55 -08:00
Victor Stinner
5362abf4ec
Issue #19818 : tracemalloc, the number of frame limit cannot be zero anymore
2013-11-27 23:39:55 +01:00
Victor Stinner
3c0481d426
Close #19798 : replace "maximum" term with "peak" in get_traced_memory()
...
documentation. Use also the term "current" for the current size.
2013-11-27 21:39:49 +01:00
Benjamin Peterson
5143ce5a01
merge 3.3 ( #19805 )
2013-11-26 23:05:37 -06:00
Benjamin Peterson
b152e177ef
recommend OrderedDict for this FAQ ( closes #19805 )
2013-11-26 23:05:25 -06:00
Serhiy Storchaka
03cc56539f
Issue #19793 : Improved markup for True/False constants in pathlib documentation.
2013-11-26 21:37:12 +02:00
Serhiy Storchaka
6bfe39272e
Issue #19794 : Improved markup for True/False constants.
2013-11-26 17:33:13 +02:00
Serhiy Storchaka
22dc4d5fa8
Issue #19794 : Improved markup for True/False constants.
2013-11-26 17:32:16 +02:00
Georg Brandl
5831882c08
merge with 3.3
2013-11-26 08:25:45 +01:00
Georg Brandl
1833ac37b5
Markup fix.
2013-11-26 08:25:24 +01:00
Victor Stinner
8e3708d88b
Issue #18874 : allow to call tracemalloc.Snapshot.statistics(cumulative=True)
...
with traceback_limit=1
2013-11-26 00:45:47 +01:00
Victor Stinner
00773df9f3
Issue #18874 : apply Jim Jewett's patch on tracemalloc doc
2013-11-26 00:40:10 +01:00
Ezio Melotti
dd7e291dc3
#13592 , #17087 : add whatsnew entry about regex/match object repr improvements.
2013-11-25 23:20:20 +02:00
Ezio Melotti
613a97e193
#19778 : fix a couple of re reprs in the documentation.
2013-11-25 22:47:01 +02:00
Antoine Pitrou
c7cf5fca7c
Issue #19691 : remove outdated mention about RuntimeError
2013-11-25 19:11:07 +01:00
Antoine Pitrou
9527f16bf4
Issue #19691 : remove outdated mention about RuntimeError
2013-11-25 19:08:32 +01:00
Victor Stinner
d2736affa1
Mention the new tracemalloc module in the What's New in Python 3.4 document
2013-11-25 09:40:27 +01:00
Georg Brandl
d476ab1276
merge with 3.3
2013-11-25 08:52:24 +01:00
Georg Brandl
37b70bb908
Closes #19622 : clarify message about bufsize changes in 3.2.4 and 3.3.1.
2013-11-25 08:48:37 +01:00
Georg Brandl
db5e74fab3
Fix doc markup error.
2013-11-25 08:29:44 +01:00
Ezio Melotti
fb310a9ec6
Merge broken link fix from 3.3.
2013-11-25 06:41:00 +02:00
Ezio Melotti
f5005883ba
Fix broken link in html.entities docs.
2013-11-25 06:40:12 +02:00
Ezio Melotti
250a06c3cb
Add whatsnew section about the html package.
2013-11-25 06:18:47 +02:00
Georg Brandl
4d01c4b6bb
merge with 3.3
2013-11-24 16:18:23 +01:00
Georg Brandl
44d2429a25
Doc/Makefile: also do "make suspicious" during daily autobuild
2013-11-24 16:17:54 +01:00
Georg Brandl
ed007d5b1b
Fix suspicious markup in the docs.
2013-11-24 16:09:26 +01:00
Georg Brandl
472a65a710
Fix a few markup problems in the new import doc.
2013-11-24 12:39:56 +01:00
Zachary Ware
a4b7a7548c
Issue #3158 : doctest can now find doctests in functions and methods
...
written in C.
As a part of this, a few doctests have been added to the builtins module
(on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all
platforms) on float, and test_builtins now runs doctests in builtins.
2013-11-24 01:19:09 -06:00
Serhiy Storchaka
d27b455bbc
Issue #13477 : Added command line interface to the tarfile module.
...
Original patch by Berker Peksag.
2013-11-24 01:53:29 +02:00
Larry Hastings
3a9079742f
Issue #19722 : Added opcode.stack_effect(), which accurately
...
computes the stack effect of bytecode instructions.
2013-11-23 14:49:22 -08:00
Serhiy Storchaka
32eddc1bbc
Issue #16203 : Add re.fullmatch() function and regex.fullmatch() method,
...
which anchor the pattern at both ends of the string to match.
Original patch by Matthew Barnett.
2013-11-23 23:20:30 +02:00
Serhiy Storchaka
3062c9a6c8
Issue #19641 : Added the audioop.byteswap() function to convert big-endian
...
samples to little-endian and vice versa.
2013-11-23 22:26:01 +02:00
Serhiy Storchaka
6787a3806e
Issue #15204 : Deprecated the 'U' mode in file-like objects.
2013-11-23 22:12:06 +02:00
Ezio Melotti
6bdd98622e
#10712 : 2to3 has a new "asserts" fixer that replaces deprecated names of unittest methods.
2013-11-23 21:14:42 +02:00
Ezio Melotti
7571941db6
#19639 : update the repr of the match objects in the docs. Patch by Claudiu Popa.
2013-11-23 20:27:27 +02:00
Antoine Pitrou
c9dc4a2a8a
Issue #17810 : Implement PEP 3154, pickle protocol 4.
...
Most of the work is by Alexandre.
2013-11-23 18:59:12 +01:00
Ezio Melotti
95401c5f6b
#13633 : Added a new convert_charrefs keyword arg to HTMLParser that, when True, automatically converts all character references.
2013-11-23 19:52:05 +02:00
Serhiy Storchaka
be0c3250b1
Issue #19668 : Added support for the cp1125 encoding.
2013-11-23 18:52:23 +02:00
Antoine Pitrou
5bef410471
Tweak ssl docs
2013-11-23 16:16:29 +01:00
Christian Heimes
5de397e158
merge
2013-11-23 15:59:07 +01:00
Christian Heimes
4c05b472dd
Issue #19689 : Add ssl.create_default_context() factory function. It creates
...
a new SSLContext object with secure default settings.
2013-11-23 15:58:30 +01:00
Serhiy Storchaka
235c5e0dd6
Issue #17201 : ZIP64 extensions now are enabled by default.
...
Patch by William Mallard.
2013-11-23 15:55:38 +02:00
Christian Heimes
6b2ff98df4
Correct documentation clientAuth -> CLIENT_AUTH
2013-11-23 14:42:01 +01:00
Christian Heimes
72d28500b3
Issue #19292 : Add SSLContext.load_default_certs() to load default root CA
...
certificates from default stores or system stores. By default the method
loads CA certs for authentication of server certs.
2013-11-23 13:56:58 +01:00
Antoine Pitrou
a30d82f597
Document create_connection
2013-11-23 13:55:35 +01:00
Antoine Pitrou
9a62a1987f
Start documenting the event loop
2013-11-23 13:10:08 +01:00
Antoine Pitrou
4d1046c7e6
Document asyncio transport APIs
2013-11-23 12:50:52 +01:00
Victor Stinner
3728d6ced0
Issue #18874 : Remove tracemalloc.set_traceback_limit()
...
tracemalloc.start() now has an option nframe parameter
2013-11-23 12:37:20 +01:00
Victor Stinner
ed3b0bca3e
Issue #18874 : Implement the PEP 454 (tracemalloc)
2013-11-23 12:27:24 +01:00
Christian Heimes
2427b50fdd
Issue #8813 : X509_VERIFY_PARAM is only available on OpenSSL 0.9.8+
...
The patch removes the verify_flags feature on Mac OS X 10.4 with OpenSSL 0.9.7l 28 Sep 2006.
2013-11-23 11:24:32 +01:00
Ned Deily
44a0db0c1e
Issue #19551 : Update whatsnew.
2013-11-22 22:39:09 -08:00
Nick Coghlan
7bc4b3bee3
Update What's New with PEP 453 progress
2013-11-23 11:59:40 +10:00
Nick Coghlan
9c1aed8f94
Close #7475 : Restore binary & text transform codecs
...
The codecs themselves were restored in Python 3.2, this
completes the restoration by adding back the convenience
aliases.
These aliases were originally left out due to confusing
errors when attempting to use them with the text encoding
specific convenience methods. Python 3.4 includes several
improvements to those errors, thus permitting the aliases
to be restored as well.
2013-11-23 11:13:36 +10:00
Guido van Rossum
f8d0ff9f42
Add source link for asyncio.
2013-11-22 16:53:25 -08:00
Antoine Pitrou
74193af0cf
Finish protocol documentation
2013-11-23 01:21:11 +01:00
Antoine Pitrou
a035e1b000
Start documenting protocols
2013-11-23 01:08:43 +01:00
Guido van Rossum
f0f5d3844a
Mention threadpool interface in asyncio overview.
2013-11-22 15:45:02 -08:00
Antoine Pitrou
bba8682200
Issue #19291 : add crude stubs to the asyncio docs
2013-11-23 00:34:26 +01:00
Andrew Kuchling
b3931d2111
Wording changes
2013-11-22 16:15:28 -05:00
Andrew Kuchling
7a4e2d1751
Wording changes to pathlib docs.
...
Only possibly-controversial change: joinpath() was described as:
"Calling this method is equivalent to indexing the path with each of
the *other* arguments in turn."
'Indexing' is an odd word to use, because you can't subscript Path or
PurePath objects, so I changed it to "combining".
2013-11-22 15:45:02 -05:00
Guido van Rossum
4da459c488
Fix markup of notes recommending asyncio.
2013-11-22 12:27:45 -08:00
Zachary Ware
9ae8742075
Merge heads
2013-11-22 14:04:01 -06:00
Zachary Ware
e19e3f0b91
Issue #18326 : merge with 3.3
2013-11-22 14:03:10 -06:00
Zachary Ware
e1391a0d68
Issue #18326 : Clarify that list.sort's arguments are keyword-only.
...
Also, attempt to reduce confusion in the glossary by not saying there are
different "types" of arguments and parameters.
2013-11-22 13:58:34 -06:00
Guido van Rossum
aa40775817
Add note to asyncore/asynchat recommending asyncio for new code.
2013-11-22 11:57:35 -08:00
Guido van Rossum
5467da860c
Move select, selectors, asyncio to section 18 (IPC).
2013-11-22 11:56:46 -08:00
Guido van Rossum
7a465647e4
asyncio: Pass cancellation from wrapping Future to wrapped Future. By Saúl Ibarra Corretgé (mostly).
2013-11-22 11:47:22 -08:00
Antoine Pitrou
31119e4f10
Issue #19673 : Add pathlib to the stdlib as a provisional module (PEP 428).
2013-11-22 17:38:12 +01:00
Eric Snow
b523f8433a
Implement PEP 451 (ModuleSpec).
2013-11-22 09:05:39 -07:00
Nick Coghlan
50c48b89e3
Close #17916 : dis.Bytecode based replacement for distb
...
- Bytecode.from_traceback() alternate constructor
- current_offset parameter and attribute
Patch by Claudiu Popa
2013-11-23 00:57:00 +10:00
Nick Coghlan
8fbdb097cf
Close #19552 : venv and pyvenv ensurepip integration
2013-11-23 00:30:34 +10:00
Nick Coghlan
8afc8f61f9
Issue #19619 : Update What's New for codec blacklist
2013-11-22 23:00:22 +10:00
Christian Heimes
f22e8e5426
Issue #18147 : Add missing documentation for SSLContext.get_ca_certs().
...
Also change the argument name to the same name as getpeercert()
2013-11-22 02:22:51 +01:00
Christian Heimes
44109d7de7
Issue #17134 : Finalize interface to Windows' certificate store. Cert and
...
CRL enumeration are now two functions. enum_certificates() also returns
purpose flags as set of OIDs.
2013-11-22 01:51:30 +01:00
Christian Heimes
225877917e
Issue #8813 : Add SSLContext.verify_flags to change the verification flags
...
of the context in order to enable certification revocation list (CRL)
checks or strict X509 rules.
2013-11-21 23:56:13 +01:00
Ronald Oussoren
c5cf797342
Issue #14455 : plistlib now supports binary plists and has an updated API.
...
This patch adds support for binary plists on OSX to plistlib (based
on a patch by 'dpounces').
The patch also cleans up the API for the plistlib module.
2013-11-21 15:46:49 +01:00
Christian Heimes
bd3a7f90b5
Issue #18379 : SSLSocket.getpeercert() returns CA issuer AIA fields, OCSP
...
and CRL distribution points.
2013-11-21 03:40:15 +01:00
Christian Heimes
efff7060f8
Issue #18138 : Implement cadata argument of SSLContext.load_verify_location()
...
to load CA certificates and CRL from memory. It supports PEM and DER
encoded strings.
2013-11-21 03:35:02 +01:00
Guido van Rossum
e6e2d9be6e
Clarify where "Documenting Python" can be found.
2013-11-20 11:53:31 -08:00
Christian Heimes
c4ab11050d
Issue #18775 : Add name and block_size attribute to HMAC object. They now
...
provide the same API elements as non-keyed cryptographic hash functions.
2013-11-20 17:35:06 +01:00
Christian Heimes
634919a9fa
Issue #17276 : MD5 as default digestmod for HMAC is deprecated. The HMAC
...
module supports digestmod names, e.g. hmac.HMAC('sha1').
2013-11-20 17:23:06 +01:00
Christian Heimes
985ecdcfc2
ssue #19183 : Implement PEP 456 'secure and interchangeable hash algorithm'.
...
Python now uses SipHash24 on all major platforms.
2013-11-20 11:46:18 +01:00
Ezio Melotti
4a9ee26750
#2927 : Added the unescape() function to the html module.
2013-11-19 20:28:45 +02:00
Andrew Kuchling
0e60f85ce4
Merge from 3.3
2013-11-19 11:06:44 -05:00
Andrew Kuchling
30c5ad2aa2
#1098749 : re-word gettext docs to not encourage using pygettext so much.
...
Also, add a link to the Babel package.
2013-11-19 11:05:20 -05:00
Serhiy Storchaka
58cf607d13
Issue #12892 : The utf-16* and utf-32* codecs now reject (lone) surrogates.
...
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.
Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
2013-11-19 11:32:41 +02:00
Serhiy Storchaka
fd32fffa5a
Issue #8402 : Added the escape() function to the glob module.
2013-11-18 13:06:43 +02:00
Antoine Pitrou
6dd0d461a4
Issue #17618 : Add Base85 and Ascii85 encoding/decoding to the base64 module.
2013-11-17 23:52:25 +01:00
Ezio Melotti
58b7166202
Merge indentation fix in doc example from 3.3.
2013-11-17 22:09:24 +02:00
Ezio Melotti
e65cb190a6
Fix indentation in doc example.
2013-11-17 22:07:48 +02:00
Richard Oudkerk
cfac5181ed
Merge.
2013-11-17 17:03:19 +00:00
Richard Oudkerk
edcf8daaed
Issue 16998: Clarify that += on a shared value is not atomic.
2013-11-17 17:00:38 +00:00
Antoine Pitrou
6b2b084192
Issue #19508 : direct the user to read the security considerations for the ssl module
2013-11-17 15:36:03 +01:00
Antoine Pitrou
9eefe91fc2
Issue #19508 : direct the user to read the security considerations for the ssl module
2013-11-17 15:35:33 +01:00
Nick Coghlan
c610aba1ed
Close #19282 : Native context management in dbm
2013-11-17 15:59:51 +10:00
Ezio Melotti
eb8ea265ba
#19238 : merge with 3.3.
2013-11-17 02:47:38 +02:00
Ezio Melotti
2bbdfe7eda
#19238 : fix typo in documentation.
2013-11-17 02:47:12 +02:00
Ezio Melotti
745d54d2fa
#17806 : Added keyword-argument support for "tabsize" to str/bytes.expandtabs().
2013-11-16 19:10:57 +02:00
Serhiy Storchaka
452bab4acf
Issue #16685 : Added support for writing any bytes-like objects in the aifc,
...
sunau, and wave modules.
2013-11-16 14:01:31 +02:00
Serhiy Storchaka
7714ebbe0e
Issue #5202 : Added support for unseekable files in the wave module.
2013-11-16 13:04:00 +02:00
Vinay Sajip
9c10d6b800
Issue #19504 : Used American spelling for 'customize'.
2013-11-15 20:58:13 +00:00
Andrew Kuchling
587e970be6
Update e-mail address
2013-11-12 10:02:35 -05:00
Jason R. Coombs
3492e39b44
Issue 19544 and Issue #7457 : Restore the read_pkg_file method to distutils.dist.DistributionMetadata accidentally removed in the undo of distutils2.
2013-11-10 18:15:03 -05:00
Andrew Kuchling
2a1838b9df
Issue #19544 and Issue #1180 : Restore global option to ignore ~/.pydistutils.cfg in Distutils, accidentally removed in backout of distutils2 changes.
2013-11-10 18:11:00 -05:00
Vinay Sajip
56b04352f8
Issue #19504 : Used American spelling for 'customize'.
2013-11-15 20:58:47 +00:00
Andrew Kuchling
5e2d45672c
Issue #19544 and Issue #6516 : Restore support for --user and --group parameters to sdist command as found in Python 2.7 and originally slated for Python 3.2 but accidentally rolled back as part of the distutils2 rollback. Closes Issue #6516 .
2013-11-15 13:01:52 -05:00
Nick Coghlan
d4fdbcc078
Issue #17839 : mention base64 change in What's New
2013-11-14 00:24:31 +10:00
Nick Coghlan
8b097b4ed7
Close #17828 : better handling of codec errors
...
- output type errors now redirect users to the type-neutral
convenience functions in the codecs module
- stateless errors that occur during encoding and decoding
will now be automatically wrapped in exceptions that give
the name of the codec involved
2013-11-13 23:49:21 +10:00
Andrew Kuchling
7150787b7e
Merge from 3.3
2013-11-12 10:03:20 -05:00
Nick Coghlan
d0cf0635b3
Close #19406 : Initial implementation of ensurepip
...
Patch by Donald Stufft and Nick Coghlan
2013-11-11 22:11:55 +10:00
Jason R. Coombs
375dc9b8b4
Merge with 3.3 for Issue #19544 and Issue #7457
2013-11-10 18:21:49 -05:00
Serhiy Storchaka
711e91b283
Issue #16685 : Added support for any bytes-like objects in the audioop module.
...
Removed support for strings.
2013-11-10 21:44:36 +02:00