Commit Graph

10774 Commits

Author SHA1 Message Date
Brett Cannon 98135d07e7 Mention that people going the source compatibility route should run 2to3 to find pain points. 2011-02-05 22:22:47 +00:00
Brett Cannon 45aa7cc7a7 Soften wording on doctest. 2011-02-05 22:16:40 +00:00
Brett Cannon ce71ab2d69 Re-arrange and clarify some __future__ import statements.
The absolute_import statement got moved to a new Python 2.5 and Newer section
as it was available since then. The division statement got moved to Common
Gotchas since it has been around for so long that any modern Python program can
use it.
2011-02-05 22:05:05 +00:00
Gregory P. Smith e09d2f1614 issue7678 - Properly document how to replace a shell pipeline so that SIGPIPE
happens when the end exits before the beginning.
2011-02-05 21:47:25 +00:00
Martin v. Löwis 738236dbd6 Issue #11067: Add PyType_GetFlags, to support PyUnicode_Check
in the limited ABI
2011-02-05 20:35:29 +00:00
Éric Araujo 5405a0b3d3 Use an internal reference instead of hard-coded URI. 2011-02-05 16:03:12 +00:00
Antoine Pitrou bd866e972c Everybody hates this one :) (bytes indexing) 2011-02-05 12:13:38 +00:00
Antoine Pitrou e6a1464b89 Soften the wording about tracebacks. Reference cycles *don't*
prevent garbage collection! (fortunately)
2011-02-05 12:01:07 +00:00
Antoine Pitrou 5c28cfdc0c Fix entries pertaining to file I/O 2011-02-05 11:53:39 +00:00
Antoine Pitrou 8d8f7c5e01 Mention -b and -bb 2011-02-05 11:40:05 +00:00
Antoine Pitrou 7095721d3e Mention asyncore and Twisted in the library FAQ. 2011-02-05 11:24:15 +00:00
Antoine Pitrou 11480b6fe3 Mention concurrent.futures and update answers about the GIL. 2011-02-05 11:18:34 +00:00
Antoine Pitrou f7005243e5 Update test of "why is Python installed" FAQ. 2011-02-05 11:04:01 +00:00
Antoine Pitrou 09264b66f2 Mention Cython and remove obsolete alternatives 2011-02-05 10:57:17 +00:00
Antoine Pitrou eb50ba5ab7 Update info in the GUI FAQ 2011-02-05 10:43:57 +00:00
Antoine Pitrou eefb97cb57 Mention that seek and tell over a TextIOWrapper can be very slow. 2011-02-04 20:11:11 +00:00
Brett Cannon 4b0c24a3ae use 3-space indents. 2011-02-03 22:14:58 +00:00
Brett Cannon 8045d97819 Add a HOWTO on how to port from Python 2 to Python 3. 2011-02-03 22:01:54 +00:00
Georg Brandl e951e917c6 Punctuation typos. 2011-02-03 07:08:25 +00:00
Raymond Hettinger 0446b21a51 Punctuation typo. 2011-02-02 21:12:39 +00:00
Eric Smith 7b5011b4a3 Wording fix. 2011-02-01 21:31:22 +00:00
Brian Curtin bd0c897332 #11083 typo: RuntimeException -> RuntimeError 2011-01-31 19:35:02 +00:00
Raymond Hettinger 92acd67756 Recommend use of the tracker during the RC phase or just before a beta. 2011-01-31 06:34:47 +00:00
Raymond Hettinger 9c2fc47788 Fix minor grammar nits.
Revert r88272 -- the examples are more readable with spacing.
Add todos for difflib and logging.
2011-01-31 06:14:48 +00:00
Eli Bendersky e2ae80730d Mention new parameter and attributes of the difflib.SequenceMatcher class added in 3.2 (issue 2986) 2011-01-31 04:21:40 +00:00
Eli Bendersky f30793a6bb Fix PEP-8 violation in argparse usage example (similar examples in argparse.rst do follow PEP-8) 2011-01-31 04:10:23 +00:00
Eli Bendersky d7cde5daff Fix some grammar and typos 2011-01-31 04:05:52 +00:00
Georg Brandl 6ddc16b41e Update suspicious ignore file. 2011-01-30 14:02:36 +00:00
Raymond Hettinger ce227e3518 Clarify the status of get_string() and recommend using the binary API. 2011-01-30 08:20:37 +00:00
Raymond Hettinger 994d38059a Add entry for the mailbox fixups. 2011-01-30 07:56:03 +00:00
R. David Murray b7deff1ddc #9124: mailbox now accepts binary input and uses binary internally
Although this patch contains API changes and is rather weighty for an
RC phase, the mailbox module was essentially unusable without the patch
since it would produce UnicodeErrors when handling non-ascii input
at arbitrary and somewhat mysterious places, and any non-trivial amount
of email processing will encounter messages with non-ascii bytes.
The release manager approved the patch application.

The changes allow binary input, and reject non-ASCII string input early
with a useful message instead of failing mysteriously later.  Binary
is used internally for reading and writing the mailbox files.  StringIO
and Text file input are deprecated.

Initial patch by Victor Stinner, validated and expanded by R. David Murray.
2011-01-30 06:21:28 +00:00
Raymond Hettinger b02f7c00ae List known build/install problems for OS X. 2011-01-30 05:37:16 +00:00
Raymond Hettinger c7bb159acd Markup nits. 2011-01-30 01:10:07 +00:00
Raymond Hettinger 62399747a5 Add section for http.client.
Link to OS X build instructions.
Add back issue references for datetime.
2011-01-30 00:55:47 +00:00
Raymond Hettinger 519c308939 Typos. 2011-01-30 00:39:00 +00:00
Giampaolo Rodolà ac039aee4d fix reference to issue where the addition of select.PIPE_BUF was discussed 2011-01-29 13:24:33 +00:00
Raymond Hettinger 08d4293013 Add entry for str.format_map().
Add bullet list and reference to documentation section.
2011-01-29 08:51:57 +00:00
Eric Smith 598b513a5d Added a placeholder for str.format_map, as discussed with Raymond. My prose is horrible, some cleanup is required. 2011-01-28 20:23:25 +00:00
Michael Foord e180d3953f Issue 10573: revert unittest docs to first / second
Minor internal change to unittest.TestCase.assertCountEqual
Reviewed by R. David Murray
2011-01-28 19:51:48 +00:00
Łukasz Langa 66c908e6bf #11027: documented how to override SECTCRE 2011-01-28 11:57:30 +00:00
Raymond Hettinger 469271d4ea More source links 2011-01-27 20:38:46 +00:00
Vinay Sajip 1a90f9c52f Issue 11008: docs updated to show versionadded for dictConfig. 2011-01-27 19:14:16 +00:00
Raymond Hettinger e6f0abf34a More typical sample invocation of tarfile. 2011-01-27 07:34:45 +00:00
Raymond Hettinger 712d2b4f4b Add missing attributions. 2011-01-27 06:46:54 +00:00
Raymond Hettinger 8d09cb2127 Update todo list. 2011-01-27 06:10:18 +00:00
Raymond Hettinger 7626ef93b7 Add an entry for tarfile. 2011-01-27 05:48:56 +00:00
Raymond Hettinger a199368b23 More source links. 2011-01-27 01:20:32 +00:00
Raymond Hettinger a63a312a3f Issue #11014: Make 'filter' argument in tarfile.Tarfile.add() into a
keyword-only argument.  The preceding positional argument was deprecated,
so it made no sense to add filter as a positional argument.

(Patch reviewed by Brian Curtin and Anthony Long.)
2011-01-26 20:34:14 +00:00
Raymond Hettinger e3b8f7c0fa Markup nits. 2011-01-26 19:36:13 +00:00
Raymond Hettinger 14eb4c356e Add a few imports to examples. 2011-01-26 01:13:26 +00:00
Antoine Pitrou cfad97b3ca Fix the description of PIPE_BUF 2011-01-25 17:24:57 +00:00
Antoine Pitrou da7be3e7b7 Fix the doc for PIPE_BUF 2011-01-25 16:28:44 +00:00
Raymond Hettinger 902f320232 Typo. 2011-01-25 08:01:01 +00:00
Raymond Hettinger da4a05de7e Add entries for select and site. 2011-01-25 07:46:07 +00:00
Raymond Hettinger 2f707c98fb Add math.erfc and turtledemo. 2011-01-25 06:58:01 +00:00
Raymond Hettinger f9b8a19d75 Typo. 2011-01-25 05:53:27 +00:00
Raymond Hettinger 2c63906283 Nits. 2011-01-25 02:38:59 +00:00
Raymond Hettinger a4cfb4292a Add entry for the math module. 2011-01-25 02:35:58 +00:00
Raymond Hettinger f4f0e6c7a7 Add entry for io.BytesIO.getbuffer(). 2011-01-24 22:14:42 +00:00
Terry Reedy feac624827 Issue #11000 ast.parse parses source, not just expressions. 2011-01-24 21:36:03 +00:00
Terry Reedy 2a6ac15f26 Update last tix code example for 3.x, as already done for previous examples. 2011-01-24 20:48:40 +00:00
Georg Brandl 009a6bd675 Fix label syntax. 2011-01-24 19:59:08 +00:00
Georg Brandl 8e490de616 Typo fix. 2011-01-24 19:53:18 +00:00
R. David Murray 7b1aae9a52 #10960: fix 'stat' links, link to lstat from stat, general tidy of stat doc.
Original patch by Michal Nowikowski, with some additions and wording
fixes by me.

I changed the wording from 'Performs a stat system call' to 'Performs
the equivalent of a stat system call', since on Windows there are no
stat/lstat system calls involved.  I also extended Michal's breakout
of the attributes into a list to the other paragraphs, and rearranged
the order of the paragraphs in the 'stat' docs to make it flow
better and put it in what I think is a more logical/useful order.
2011-01-24 19:34:58 +00:00
Raymond Hettinger a80ab10bc2 Typos. 2011-01-24 18:19:01 +00:00
Raymond Hettinger ead4975b9f Missing source links. 2011-01-24 16:28:06 +00:00
Raymond Hettinger 399bf7be41 Fix markup and add todo. 2011-01-24 10:11:12 +00:00
Raymond Hettinger e7dfe74ce3 Add entry for hash_info(). 2011-01-24 09:17:24 +00:00
Raymond Hettinger 9a236b0235 Add section for urllib.parse. 2011-01-24 09:01:27 +00:00
Raymond Hettinger a3b7a14d16 Add entry for the html module. 2011-01-24 05:26:00 +00:00
Raymond Hettinger d0d59b138d Add entry for hashlib and expand the GC entry. 2011-01-24 05:07:13 +00:00
Raymond Hettinger acff595a4e Add entries for dis, dbm, and ctypes. 2011-01-24 01:51:49 +00:00
Raymond Hettinger 50307b684d Add entries for array, asyncore, csv, compileall, and ast. 2011-01-24 01:18:30 +00:00
Raymond Hettinger 971f48320b minor clean-up. 2011-01-23 21:32:18 +00:00
Raymond Hettinger cbc903bc7e Add tracker references. 2011-01-23 21:13:27 +00:00
Raymond Hettinger 98b140c196 Add entry for reprlib. 2011-01-23 21:05:46 +00:00
Raymond Hettinger 0929b1fc70 Add entry for shutil's archiving operations. 2011-01-23 11:29:08 +00:00
Antoine Pitrou 00d650baaa Fix JSON docs about loads() accepting only str objects, not bytes. 2011-01-21 21:37:32 +00:00
Raymond Hettinger 2e042d3dc2 Use a Latin-1 example that won't break the LaTeX PDF build. 2011-01-21 09:18:19 +00:00
Raymond Hettinger 7a168d96dd Add example for __wrapped__. 2011-01-21 04:59:00 +00:00
Raymond Hettinger f1dae31ea6 Clarify what changed with respect to date ranges and two-digit years. 2011-01-21 03:00:00 +00:00
Alexander Belopolsky 9ee94dec18 Corrected the entry about new year range in the time module. 2011-01-20 19:51:31 +00:00
Raymond Hettinger 00db6aa4a6 Add an entry for the code repository. 2011-01-20 09:47:04 +00:00
Raymond Hettinger 2270d58a2d Make an entry for the os module's bytes accessors.
Split codecs into a separate section.  Rewrite
the Unicode section.
2011-01-20 09:04:39 +00:00
Raymond Hettinger 03ca1a92af Add hasattr() example. 2011-01-20 04:12:37 +00:00
Raymond Hettinger a275c989c9 Add more examples 2011-01-20 04:03:19 +00:00
Georg Brandl ecdd63f56c #10944: add c_bool to types table. 2011-01-19 20:05:49 +00:00
Alexander Belopolsky 41a99bc20d Issue #10934: Fixed and expanded Internaldate2tuple() and
Time2Internaldate() documentation.  Thanks Joe Peterson for the report
and the original patch.
2011-01-19 19:53:30 +00:00
Raymond Hettinger be9994e0d1 Fix markup. 2011-01-19 08:44:33 +00:00
Georg Brandl f3923cf9fd Suppress trailing spaces in table paragraphs. 2011-01-19 08:42:03 +00:00
Raymond Hettinger 89c1cd1fdd Expand entry for pydoc. 2011-01-19 04:43:45 +00:00
Raymond Hettinger c1dfa2e7c3 Improve looks by replacing a bullet list with a table. 2011-01-19 04:24:57 +00:00
Raymond Hettinger 4bea978f65 Add examples for inspect. 2011-01-19 04:14:34 +00:00
David Malcolm 4934864853 Fix typo in example of barrier timeouts from r88102 2011-01-18 23:45:53 +00:00
Raymond Hettinger 2c3865b210 Expand barrier example to show time-outs. 2011-01-18 22:58:33 +00:00
Raymond Hettinger e0f1f3234c Missing word. 2011-01-18 21:14:27 +00:00
Raymond Hettinger 23ab1016a0 Reword the OrderedDict entry to emphasize the default behavior,
to show equivalent code, and to provide a use case.
2011-01-18 20:25:04 +00:00
Raymond Hettinger c8a16867f6 Typos. 2011-01-18 09:01:34 +00:00
Raymond Hettinger ba5512f8f2 More nits. 2011-01-18 08:28:01 +00:00
Raymond Hettinger c136b048b3 Nits. 2011-01-18 07:15:39 +00:00