Vinay Sajip
1397ce1821
Logging documentation updates.
2010-12-24 12:03:48 +00:00
Alexander Belopolsky
fca8beed4a
Added an XXX note to describe timedelta/timedelta feature.
2010-12-24 04:22:40 +00:00
Raymond Hettinger
6518f5e780
Fix docs and comment for r87454.
2010-12-24 00:52:54 +00:00
Alexander Belopolsky
b2eacd9129
Issue #9063 : Corrected the tzinfo example.
2010-12-24 00:24:11 +00:00
Alexander Belopolsky
0d26798bbc
Issue #10587 : Document the meaning of str methods.
2010-12-23 02:58:25 +00:00
Michael Foord
eaedfcb400
Another trivial typo correction in whatsnew
2010-12-22 18:28:51 +00:00
Vinay Sajip
689b68ad2d
Logging documentation updates.
2010-12-22 15:04:15 +00:00
Michael Foord
5e9b14c39e
Minor typo corrections in whatsnew
2010-12-22 10:39:04 +00:00
Raymond Hettinger
f35a34cbab
Add todo
2010-12-22 09:11:54 +00:00
Alexander Belopolsky
1a7a2e03b2
Both PEP 3131 and the current implementation use NFKC normalization
...
for identifiers. Fixed the documentation to agree.
2010-12-22 01:37:36 +00:00
Raymond Hettinger
cfee0e83eb
Document the alternate format for :ref:.
2010-12-21 20:52:12 +00:00
Raymond Hettinger
6778fa9b2a
Reference the release schedule
2010-12-21 20:09:55 +00:00
Raymond Hettinger
8ebe27f300
Deprecate assertDictContainsSubset()
2010-12-21 19:24:26 +00:00
Antoine Pitrou
f259076790
Suggest sys.maxsize as a reliable way to know whether the interpreter is 64-bit.
...
(part of #10735 )
2010-12-21 18:49:01 +00:00
Vinay Sajip
01094e1fe4
Logging documentation updates.
2010-12-19 13:41:26 +00:00
Vinay Sajip
c63619bcf2
Logging documentation reorganised.
2010-12-19 12:56:57 +00:00
Georg Brandl
09a7df8301
#3243 follow-up: remove debugging print and fix docs; data is a bytes object.
2010-12-19 12:33:52 +00:00
Senthil Kumaran
7bc0d872dd
Issue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li and Chris AtLee.
2010-12-19 10:49:52 +00:00
Georg Brandl
c88435023c
Fix markup error and update suspicious file.
2010-12-19 10:28:46 +00:00
Vinay Sajip
7504302875
Logging documentation update.
2010-12-19 06:02:31 +00:00
Ezio Melotti
addc6f5a21
#10573 : use actual/expected consistently in unittest methods. The order of the args of assertCountEqual is also changed.
2010-12-18 20:00:04 +00:00
Georg Brandl
0bdfbfa276
#10723 : add missing builtin exceptions.
2010-12-18 17:51:28 +00:00
R. David Murray
32e1771daf
#10728 : the default for printing help is sys.stdout, not stderr.
2010-12-18 16:39:06 +00:00
Georg Brandl
77570e2d0e
Fix typo.
2010-12-18 16:21:58 +00:00
Antoine Pitrou
197c9c945e
Make this a note again.
2010-12-18 12:33:06 +00:00
Georg Brandl
eebb252e6b
Use kbd role.
2010-12-18 12:01:15 +00:00
Georg Brandl
5d53fdd1ac
Typo fix.
2010-12-18 11:58:12 +00:00
Georg Brandl
101234bc83
Add attribution.
2010-12-18 11:53:25 +00:00
Raymond Hettinger
2b8861fa70
Nits.
2010-12-18 11:20:52 +00:00
Steven Bethard
fd311a712d
Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg for beta2 on the tracker.
2010-12-18 11:19:23 +00:00
Raymond Hettinger
04129748ae
Minor markup and wording fixups.
2010-12-18 10:57:50 +00:00
Raymond Hettinger
d73be67c3f
Minor wordsmithing and markup fix-ups.
2010-12-18 10:48:26 +00:00
Raymond Hettinger
3094ed8c69
Enhance argparse example to show aliases.
2010-12-18 09:41:32 +00:00
Raymond Hettinger
c539a2a88e
Add link to a sample solution to a common problem.
2010-12-17 23:31:30 +00:00
Daniel Stutzbach
c5895dcc15
Fix typo
2010-12-17 22:28:07 +00:00
Łukasz Langa
79a06ed567
fix for an embarrassing autoformatting SNAFU. Thanks for your alertness, Antoine.
2010-12-17 22:05:46 +00:00
Łukasz Langa
2b38b6cee8
configparser hype coming up!
2010-12-17 21:57:32 +00:00
Łukasz Langa
71b37a5d6d
100% test coverage, better mapping protocol compatibility, some minor bugfixes
2010-12-17 21:56:32 +00:00
Daniel Stutzbach
2a1e3e67b3
Issue2690: Update docs to reflect the change made by issue2690.
2010-12-17 20:53:03 +00:00
Raymond Hettinger
09f44140aa
Expand the LBYL glossary entry.
2010-12-17 20:19:50 +00:00
Antoine Pitrou
988dbd7bc2
Issue #10711 : Remove HTTP 0.9 support from http.client. The `strict`
...
parameter to HTTPConnection and friends is deprecated.
2010-12-17 17:35:56 +00:00
Daniel Stutzbach
7cb3051dc3
Issue 8753: Added documentation for Py_ReprEntr and Py_ReprLeave.
2010-12-17 16:31:32 +00:00
R. David Murray
94f58c3a65
#10454 : clarify the compileall docs and help messages.
2010-12-17 16:29:07 +00:00
R. David Murray
a396463db3
#10559 : provide instructions for accessing sys.argv when first mentioned.
2010-12-17 16:11:40 +00:00
Łukasz Langa
b25a791802
configparser API cleanup: default values now sensible, slightly incompatible.
...
Backwards compatible alternative values possible as documented.
Done by Łukasz Langa, approved by Raymond and Fred.
2010-12-17 01:32:29 +00:00
Antoine Pitrou
12de8ac215
Credit Florent for porting
2010-12-16 13:33:56 +00:00
Raymond Hettinger
202717db67
Add todo for WSGI
2010-12-16 10:06:11 +00:00
Éric Araujo
930df31987
Add missing docs and directives related to PEP 3147 and byte-compilation
2010-12-16 06:28:48 +00:00
Éric Araujo
971dc01e8a
Fix one versionchanged
2010-12-16 03:13:05 +00:00
Raymond Hettinger
9743e4f616
Improve the ContextDecorator example.
2010-12-16 02:24:12 +00:00
Éric Araujo
f68fa05f7b
Add versionadded directive missing from r78983.
2010-12-16 02:10:11 +00:00
Éric Araujo
1d55c7ea9b
Advertise “python -m test” over test.regrtest (r87296 followup)
2010-12-16 01:40:26 +00:00
Łukasz Langa
7f64c8a512
Broken ConfigParser removed, SafeConfigParser renamed to ConfigParser.
...
Life is beatiful once again.
2010-12-16 01:16:22 +00:00
Raymond Hettinger
bb9686f66f
Thank you ispell.
2010-12-16 00:53:05 +00:00
Raymond Hettinger
48f3bd331c
Nits
2010-12-16 00:30:53 +00:00
Éric Araujo
055d2e0da4
Advertise “python -m” instead of direct filename.
2010-12-16 00:23:30 +00:00
Raymond Hettinger
6046e22db3
Entries for ElementTree, collectionsm, functools and ZipFile.
2010-12-16 00:21:08 +00:00
Éric Araujo
d6c5f749d8
No need to generate a link for something that’s just above.
2010-12-16 00:07:01 +00:00
Antoine Pitrou
810023db3e
Issue #8844 : Regular and recursive lock acquisitions can now be interrupted
...
by signals on platforms using pthreads. Patch by Reid Kleckner.
2010-12-15 22:59:16 +00:00
Éric Araujo
119cda0fd2
Mark up one missed None in pkgutil.rst ( #8851 )
2010-12-15 22:37:27 +00:00
Raymond Hettinger
07a605b1c7
Entry for decimal and fractions.
2010-12-15 22:35:03 +00:00
Raymond Hettinger
480ed78c0e
Add entries for structseq, ContextDecorator, and various C-API changes.
2010-12-15 22:07:15 +00:00
Éric Araujo
2d6bb12e1b
Add disclaimer about MinGW compat in distutils docs ( #6007 ). Patch by Chris Lambacher.
2010-12-15 22:06:35 +00:00
Éric Araujo
4433a5fdc0
Fix wrong name in docstring and doc ( #10693 ). Original patch by Eli Bendersky.
2010-12-15 20:26:30 +00:00
Terry Reedy
17a59252e8
Issue 10534, difflib: tweak doc; test new SequenceMatcher instance attributes; avoid unneeded lists of SM.b2j keys and items in .__chain_b. Do not backport.
2010-12-15 20:18:10 +00:00
Alexander Belopolsky
50ba19ee45
Use sentence case in section titles consistently
2010-12-15 19:47:37 +00:00
Raymond Hettinger
99db3fd03b
Elaborate on the calculation used in the random module.
2010-12-15 19:33:49 +00:00
Éric Araujo
67f0b6c5f2
Use nested method directives, rewrap long lines, fix whitespace.
2010-12-15 19:30:15 +00:00
Raymond Hettinger
e434b3b681
Add intro to the changed modules section.
2010-12-15 19:20:01 +00:00
Éric Araujo
d00862ac27
Improve trace documentation ( #9264 ). Patch by Eli Bendersky.
2010-12-15 19:09:58 +00:00
Antoine Pitrou
b8eb9cbd71
Move the urllib-inherited API to a distinguished section
2010-12-15 19:07:26 +00:00
Raymond Hettinger
0358a17838
Move email section in with other modules. Fix markup.
2010-12-15 19:00:38 +00:00
Raymond Hettinger
a55ffbc84e
Minor regroupings.
2010-12-15 18:31:57 +00:00
Raymond Hettinger
bba537bc96
Adopt Antoine's suggestion to improve readability with module subsections.
2010-12-15 18:20:19 +00:00
Raymond Hettinger
e0a960012f
Add entries for the random module and the collections module.
2010-12-15 17:54:13 +00:00
Andrew M. Kuchling
42877fec3a
Typo fix
2010-12-15 02:37:01 +00:00
R. David Murray
d89bc3ff59
#10705 : document what the values of debuglevel are and mean.
2010-12-15 02:19:14 +00:00
Raymond Hettinger
ffad35ef27
Nits
2010-12-14 21:12:03 +00:00
Vinay Sajip
9a6b400a59
Logging documentation update.
2010-12-14 19:40:21 +00:00
R. David Murray
ec07331eea
#775964 : skip YP/NIS entries instead of failing the test
...
Also includes doc updates mentioning that these entries may not
be retrievable via getgrnam and getgrgid.
Patch by Bobby Impollonia.
2010-12-14 16:20:53 +00:00
Gregory P. Smith
8edd99d085
Issue #6559 : fix the subprocess.Popen pass_fds implementation. Add a unittest.
...
Issue #7213 : Change the close_fds default on Windows to better match the new
default on POSIX. True when possible (False if stdin/stdout/stderr are
supplied).
Update the documentation to reflect all of the above.
2010-12-14 13:43:30 +00:00
R. David Murray
7ec754b7da
#1078919 : make add_header automatically do RFC2231 encoding when needed.
...
Also document the use of three-tuples if control of the charset
and language is desired.
2010-12-13 23:51:19 +00:00
R. David Murray
796343b198
#10698 : fix typo in example.
2010-12-13 22:50:30 +00:00
Vinay Sajip
fd94b173ce
Logging documentation update.
2010-12-13 18:49:08 +00:00
Vinay Sajip
7292b884bd
Logging documentation update.
2010-12-13 18:43:57 +00:00
Vinay Sajip
9466fe88a7
Logging documentatio update.
2010-12-13 08:54:02 +00:00
Gregory P. Smith
f560485388
Get rid of the close_fds DeprecationWarning. Changes the default on a per
...
platform basis. It remains False on Windows and changes to True on all
other platforms (POSIX). Based on python-dev discussion and
http://bugs.python.org/issue7213 .
2010-12-13 06:45:02 +00:00
Vinay Sajip
1d5d6856e2
Logging documentation - further update.
2010-12-12 22:47:13 +00:00
Vinay Sajip
97b886dc8c
Logging documentation - further update.
2010-12-12 22:45:35 +00:00
Vinay Sajip
36675b6a0f
Logging documentation - further update.
2010-12-12 22:30:17 +00:00
Antoine Pitrou
7bdfe7755b
Improve readability of the socket docs
2010-12-12 20:57:12 +00:00
Antoine Pitrou
64a467d790
Homogenize the "optional OS services" menu
2010-12-12 20:34:49 +00:00
Antoine Pitrou
f10f162db9
Consistent ordering of availability statements
2010-12-12 20:17:29 +00:00
Antoine Pitrou
e72b586b02
Fix heading level
2010-12-12 20:13:31 +00:00
Antoine Pitrou
a654090840
Remove redundant sentence, and fix markup
2010-12-12 20:09:18 +00:00
Antoine Pitrou
cc4edd59d6
Add link to the buffer protocol description from the memory description.
2010-12-12 20:01:43 +00:00
Antoine Pitrou
8abc93580d
Better explain the buffer interface (hopefully)
2010-12-12 19:59:47 +00:00
Antoine Pitrou
36730e8bc1
Make this a warning and fix indentation
2010-12-12 18:25:25 +00:00
Antoine Pitrou
19d6ce0f73
Obsolete aliases needn't be documented
2010-12-12 18:14:34 +00:00
Antoine Pitrou
b387ad6eec
Remove reference to stuff which is already obsolete in 2.x.
2010-12-12 18:12:40 +00:00
Antoine Pitrou
c58bde159f
SET_LINENO was removed in 2.3
2010-12-12 18:09:53 +00:00
Vinay Sajip
f234eb9c32
Logging documentation - further update.
2010-12-12 17:37:27 +00:00
Vinay Sajip
0e65cf0b6a
Logging documentation - further update.
2010-12-12 13:49:39 +00:00
Vinay Sajip
5286ccfdf8
Logging documentation - further update.
2010-12-12 13:25:29 +00:00
Vinay Sajip
a18b959473
Logging documentation update.
2010-12-12 13:20:55 +00:00
Benjamin Peterson
28a4dce6a8
remove (un)transform methods
2010-12-12 01:33:04 +00:00
Georg Brandl
18d378dc3d
Fix markup.
2010-12-11 22:19:34 +00:00
Martin v. Löwis
6d9839d011
Add versionchanged for parameter type changes.
2010-12-11 19:22:04 +00:00
Martin v. Löwis
dd5909725c
Adjust PySlice_GetIndices documentation to signature change.
2010-12-11 18:17:22 +00:00
Georg Brandl
cc9d237fe7
Fix typo.
2010-12-10 19:22:11 +00:00
Alexander Belopolsky
fc55789cae
Updated UCD version and unicode.org links to Unicode 6.0.0
2010-12-10 18:11:24 +00:00
Raymond Hettinger
070ec70cbe
Move nntp entry back to changed modules section and add entry for non-ascii import directories.
2010-12-10 17:45:13 +00:00
Vinay Sajip
dfa0a2abcf
Minor documentation tweak.
2010-12-10 08:17:05 +00:00
Raymond Hettinger
522cc0a9a1
Reclassify some entries and remove a couple of minor ones.
2010-12-10 01:19:15 +00:00
Raymond Hettinger
21ec4bc296
Overview of email module and recategorize various entries.
2010-12-10 01:09:01 +00:00
Raymond Hettinger
5eb6390fc7
Doh! Example pasted twice, but only once in the right place.
2010-12-09 23:43:34 +00:00
Georg Brandl
fb1720b0f5
Fix "seperate".
2010-12-09 18:08:43 +00:00
Raymond Hettinger
792c076cce
Entries for datetime, callable, and collections.Counter.
2010-12-09 16:41:54 +00:00
Victor Stinner
53a9dd776e
Issue #10546 : UTF-16-LE and UTF-16-BE *do* support non-BMP characters
...
Fix the doc and add tests.
2010-12-08 22:25:45 +00:00
Alexander Belopolsky
84cc06288d
Edited the Unicode 6.0.0 entry to add unicode.org links and trim the summary.
2010-12-08 21:38:46 +00:00
Alexander Belopolsky
72572319fc
Added a datetime new features entry
2010-12-08 21:21:56 +00:00
Raymond Hettinger
515fabbf96
Entry for inspect.getattr_static().
2010-12-08 11:33:19 +00:00
Raymond Hettinger
b1ff4024a8
Example of argparge with subparsers.
2010-12-08 11:19:45 +00:00
Raymond Hettinger
2ffa671de7
range() example
2010-12-08 10:18:21 +00:00
Raymond Hettinger
24a0941a0f
Nits.
2010-12-08 06:50:02 +00:00
Raymond Hettinger
83d8079ee7
Clean-ups.
2010-12-08 06:48:33 +00:00
Raymond Hettinger
b105519710
Add example for concurrent.futures.
2010-12-08 06:42:41 +00:00
Raymond Hettinger
3fcf002994
Update whatsnew. Salt the random number seed.
2010-12-08 01:13:53 +00:00
Raymond Hettinger
2c1ecc300e
Martin's name with Unicode.
2010-12-07 09:55:02 +00:00
Raymond Hettinger
c2c7c37377
Make the example a little more interesting and useful.
2010-12-07 09:44:21 +00:00
Raymond Hettinger
673ccf20dc
Clean-ups and examples.
2010-12-07 09:37:11 +00:00
Raymond Hettinger
68f1e8d87f
Spelling.
2010-12-07 09:24:30 +00:00
Raymond Hettinger
a0266335f5
More cleanups and examples.
2010-12-07 08:52:41 +00:00
Raymond Hettinger
677e10a45e
Add example for the entry for argparse
2010-12-07 06:45:30 +00:00
Raymond Hettinger
b5d793309e
Add entry for new pdb features
2010-12-07 02:04:56 +00:00
Raymond Hettinger
3f9734c0f4
Add entry for the new sysconfig module.
2010-12-07 01:47:52 +00:00
David Malcolm
778645a379
Fix typo
2010-12-07 00:32:04 +00:00
Raymond Hettinger
1fa7682c26
Note improvements to the docs.
2010-12-06 23:31:36 +00:00
Georg Brandl
fbb56ed8fb
Remove visible XXX comments.
2010-12-06 22:02:48 +00:00
Raymond Hettinger
b87ba269e0
Typo fixups.
2010-12-06 04:31:40 +00:00
Georg Brandl
65b2eb9dfe
Fix title.
2010-12-05 11:42:38 +00:00
Raymond Hettinger
e5e1a987b2
Nits and todos
2010-12-05 08:35:21 +00:00
Georg Brandl
3ad46757f4
Apply rest of #10628 , and add a few todo comments.
2010-12-05 07:59:29 +00:00
Raymond Hettinger
413abbc277
Spelling
2010-12-05 07:06:47 +00:00
Raymond Hettinger
dc2f9b5c98
Update the unittest section.
2010-12-05 07:02:45 +00:00
Raymond Hettinger
e5e728babd
New string format character.
2010-12-05 06:35:16 +00:00
Raymond Hettinger
d8fae4e6ad
Optimization notes.
2010-12-05 05:39:54 +00:00
Raymond Hettinger
43b5a857d6
Describe the transform/untranform methods
2010-12-05 04:04:21 +00:00
Raymond Hettinger
dadf93c910
Note the updates to range objects.
2010-12-05 02:56:21 +00:00
Raymond Hettinger
c269ae87c1
Optimization of Timsort.
2010-12-05 01:01:52 +00:00
Raymond Hettinger
a5a3554b4d
Start the argparse entry.
2010-12-05 00:39:18 +00:00
Raymond Hettinger
6e35394ed5
Mention itertools.accumulate().
2010-12-04 23:42:12 +00:00
Raymond Hettinger
6f04adc54b
Fill-in stub for concurrent.futures
2010-12-04 22:56:25 +00:00
Raymond Hettinger
d9404b5741
Doc nit.
2010-12-04 20:51:36 +00:00
Georg Brandl
46402378ca
Fix markup errors.
2010-12-04 19:06:18 +00:00
Georg Brandl
bccb8be262
Update suspicious exceptions.
2010-12-04 19:06:14 +00:00
Gregory P. Smith
8c647cd737
clarify the docs and new warning message.
2010-12-04 18:11:44 +00:00
Victor Stinner
13d49ee7d6
Issue #10601 : sys.displayhook uses 'backslashreplace' error handler on
...
UnicodeEncodeError.
2010-12-04 17:24:33 +00:00
Georg Brandl
cbc79c76a8
Add display/undisplay pdb commands.
2010-12-04 16:21:42 +00:00
Georg Brandl
44f2b640ff
#7245 : Add a SIGINT handler on continue in pdb that allows to break a program again by pressing Ctrl-C.
2010-12-04 16:00:47 +00:00
Martin v. Löwis
932e49e394
Fix PEP number.
2010-12-04 13:49:32 +00:00
Łukasz Langa
2cf9ddb390
configparser: fixed inconsistency where in SafeConfigParser option values
...
were ensured to be strings but section names and option keys were not.
Behaviour unchanged for RawConfigParser and ConfigParser.
2010-12-04 12:46:01 +00:00
Gregory P. Smith
09b0b3a655
issue10622: fix superflous scrollbar on the right side of <pre> boxes in the
...
generated html docs. visible in chrome, possibly other webkit browsers.
2010-12-04 11:36:58 +00:00
Georg Brandl
1acb746d79
Add the "interact" pdb command from pdb++.
2010-12-04 11:20:26 +00:00
Georg Brandl
732324a3f8
#7905 : Actually respect the keyencoding parameter to shelve.Shelf.
2010-12-04 11:12:43 +00:00
Georg Brandl
9d8711964f
#1772833 : add -q command line option.
2010-12-04 10:47:18 +00:00
Georg Brandl
8334fd9285
Add an "optimize" parameter to compile() to control the optimization level, and provide an interface to it in py_compile, compileall and PyZipFile.
2010-12-04 10:26:46 +00:00
Georg Brandl
d9e833c70a
#6045 : provide at least get() and setdefault() for all dbm modules.
2010-12-04 09:14:36 +00:00
Gregory P. Smith
d23047b62c
issue7213 + issue2320: Cause a DeprecationWarning if the close_fds argument is
...
not passed to subprocess.Popen as the default value will be changing in a
future Python to the safer and more often desired value of True.
DeprecationWarnings that show up in a lot of existing code are controversial
and have caused pain in the past. I'd like to leave this on for 3.2 beta1 and
see how things go. We can remove the warning if it is deemed too noisy during
any betas. (case study: the md5 and sha module DeprecationWarnings are loathed
around the world as those modules were never going to be removed in 2.x and
2to3 has a fixer for code that uses them)
2010-12-04 09:10:44 +00:00
Georg Brandl
e8b0d619b9
Fix typo.
2010-12-04 09:04:04 +00:00
Alexander Belopolsky
942af5a9a4
Issue #10557 : Fixed error messages from float() and other numeric
...
types. Added a new API function, PyUnicode_TransformDecimalToASCII(),
which transforms non-ASCII decimal digits in a Unicode string to their
ASCII equivalents.
2010-12-04 03:38:46 +00:00
Michael Foord
37d120aeb4
Issue 10620: Specifying test modules by path instead of module name to 'python -m unittest'
2010-12-04 01:11:21 +00:00
Martin v. Löwis
4d0d471a80
Merge branches/pep-0384.
2010-12-03 20:14:31 +00:00
Georg Brandl
500be24a64
Fix indentation.
2010-12-03 19:56:42 +00:00
Antoine Pitrou
bed81c882b
Add an "advanced topics" section to the io doc.
2010-12-03 19:14:17 +00:00
Terry Reedy
74a7c67db1
2010-12-03 18:57:42 +00:00
Georg Brandl
38e117d20a
Fix punctuation.
2010-12-03 17:19:27 +00:00
Łukasz Langa
b6a6f5f886
Issue 10499: Modular interpolation in configparser
2010-12-03 16:28:00 +00:00
Georg Brandl
1eb40bc945
Markup consistency fixes.
2010-12-03 15:30:09 +00:00
Nick Coghlan
37ee850b10
Issue 2690: Add support for slicing and negative indices to range objects (includes precalculation and storage of the range length).
...
Refer to the tracker issue for the language moratorium implications of this change
2010-12-03 14:26:13 +00:00
Vinay Sajip
615615291f
logging: Added getLogRecordFactory/setLogRecordFactory with docs and tests.
2010-12-03 11:50:38 +00:00
Georg Brandl
34e9fc2e82
Add a line with the actual changes.
2010-12-03 09:45:33 +00:00
Nick Coghlan
7bb30b72d8
Improve Pydoc interactive browsing ( #2001 ). Patch by Ron Adam.
...
* A -b option to start an enhanced browsing session.
* Allow -b and -p options to be used together.
* Specifying port 0 will pick an arbitrary unused socket port.
* A new browse() function to start the new server and browser.
* Show Python version information in the header.
* A *Get* field which takes the same input as the help() function.
* A *Search* field which replaces the Tkinter search box.
* Links to *Module Index*, *Topics*, and *Keywords*.
* Improved source file viewing.
* An HTMLDoc.filelink() method.
* The -g option and the gui() and serve() functions are deprecated.
2010-12-03 09:29:11 +00:00
R. David Murray
bb7b753cfc
Add missing versionchanged, correct 'throw' wording to 'raise'.
2010-12-03 04:26:18 +00:00
R. David Murray
b579dba119
#1486713 : Add a tolerant mode to HTMLParser.
...
The motivation for adding this option is that the the functionality it
provides used to be provided by sgmllib in Python2, and was used by,
for example, BeautifulSoup. Without this option, the Python3 version
of BeautifulSoup and the many programs that use it are crippled.
The original patch was by 'kxroberto'. I modified it heavily but kept his
heuristics and test. I also added additional heuristics to fix #975556 ,
#1046092 , and part of #6191 . This patch should be completely backward
compatible: the behavior with the default strict=True is unchanged.
2010-12-03 04:06:39 +00:00
Brian Curtin
79cdb661f5
Fix #10554 . Added context manager support to Popen objects.
...
Added a few common Popen uses to the tests like we've done for a few other
instances of adding context managers. Eventually the entire test suite
could be converted to use the context manager format.
2010-12-03 02:46:02 +00:00
Raymond Hettinger
2d93e6ee63
Update the itertools.accumulate() docs.
2010-12-03 02:33:53 +00:00
Raymond Hettinger
d8ff4658fb
Simplify the signature for itertools.accumulate() to match numpy. Handle one item iterable the same way as min()/max().
2010-12-03 02:09:34 +00:00
Michael Foord
5074df623b
Issue 7911: unittest.TestCase.longMessage defaults to True for improved failure messages by default
2010-12-03 00:53:09 +00:00
Georg Brandl
1203720ffb
Re-add accidentally removed line.
2010-12-02 22:35:25 +00:00
R. David Murray
a0b44b5adb
#8989 : add 'domain' keyword to make_msgid.
...
Patch by Adrian von Bidder.
2010-12-02 21:47:19 +00:00
Brian Curtin
52173d4959
Fix #9333 . Expose os.symlink on Windows only when usable.
...
In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege
is an account privilege that is required to be held by the user. Not only
must the privilege be enabled for the account, the activated privileges for
the currently running application must be adjusted to enable the requested
privilege.
Rather than exposing an additional function to be called prior to the user's
first os.symlink call, we handle the AdjustTokenPrivileges Windows API call
internally and only expose os.symlink when the privilege escalation was
successful.
Due to the change of only exposing os.symlink when it's available, we can
go back to the original test skipping methods of checking via `hasattr`.
2010-12-02 18:29:18 +00:00
Georg Brandl
02524629f3
#7475 : add (un)transform method to bytes/bytearray and str, add back codecs that can be used with them from Python 2.
2010-12-02 18:06:51 +00:00
Georg Brandl
de0ab5eab3
#10597 : fix Py_SetPythonHome docs by pointing to where the meaning of PYTHONHOME is already documented.
2010-12-02 18:02:01 +00:00
Georg Brandl
c1673681fd
Fix-up documentation of makedirs().
2010-12-02 09:06:12 +00:00
Terry Reedy
5a22b65117
Issue 9299 Add exist_ok parameter to os.makedirs to suppress 'File exists' exception. Patch by Ray Allen.
2010-12-02 07:05:56 +00:00
Raymond Hettinger
3cdf871a8c
Neaten-up random module docs.
2010-12-02 05:35:35 +00:00
Raymond Hettinger
2fdc7b1f75
Add an example to the random docs.
2010-12-02 02:41:33 +00:00
Raymond Hettinger
c74d518e73
Fix markup
2010-12-02 01:38:25 +00:00
Alexander Belopolsky
507e3f8d9d
With Raymond's approval added a paragraph describing Unicode 6.0.0 changes. Not reST formatted.
2010-12-02 00:05:57 +00:00
Raymond Hettinger
30c7362436
Clean-up last update (missing comma, unnecessary spacing change, spurious backtick).
2010-12-01 23:45:20 +00:00
Raymond Hettinger
adb8146e53
Add itertools.accumulate().
2010-12-01 22:50:36 +00:00
Georg Brandl
419e3de373
Fix some markup and style in the unittest docs.
2010-12-01 15:44:25 +00:00
Georg Brandl
f7f5a82b36
#10594 : fix parameter names in PyList API docs.
2010-12-01 15:36:33 +00:00
Georg Brandl
063f237812
Add missing word, and add a better reference to the actual function.
2010-12-01 15:32:43 +00:00
Raymond Hettinger
5ce0aa236f
Add recipe to itertools doc.
2010-12-01 10:49:19 +00:00
Raymond Hettinger
c79fb0e52d
Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None.
2010-12-01 03:45:41 +00:00
Ezio Melotti
ed3a7d2d60
#10273 : Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
2010-12-01 02:32:32 +00:00
Ezio Melotti
6090187656
#10535 : Enable silenced warnings in unittest by default
2010-12-01 00:56:10 +00:00
Raymond Hettinger
00f2f97dbd
Doc and docstring nits.
2010-12-01 00:47:56 +00:00
Raymond Hettinger
cc03858d8f
Documentation nits.
2010-11-30 20:02:57 +00:00
Raymond Hettinger
7496b4171e
Add example, tighten text, and minor clean-ups.
2010-11-30 19:15:45 +00:00
Daniel Stutzbach
d01df46848
Fix typo: "ofbytes" should be "of bytes"
2010-11-30 17:49:53 +00:00
Raymond Hettinger
dcb4491b0a
Add some internal links.
2010-11-30 17:45:41 +00:00
Éric Araujo
ff2a4ba78c
Let’s keep “throw” for the generator method and use “raise” elsewhere.
2010-11-30 17:20:31 +00:00
Nick Coghlan
9fc443cf59
Issue 9873: the URL parsing functions now accept ASCII encoded byte sequences in addition to character strings
2010-11-30 15:48:08 +00:00
Georg Brandl
5aa580f279
Fix typo.
2010-11-30 14:57:54 +00:00
Georg Brandl
53afa6d239
Fix input type for zlib.
2010-11-30 08:20:16 +00:00
Georg Brandl
8f358aa758
#10584 : fix bad links.
2010-11-30 07:43:28 +00:00
Raymond Hettinger
5e20bab422
Neaten-up a bit.
2010-11-30 07:13:04 +00:00
Nick Coghlan
234515afe5
Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple.
2010-11-30 06:19:46 +00:00
Georg Brandl
8175daec10
Fix heading style inconsistencies.
2010-11-29 14:53:15 +00:00
Georg Brandl
51be98a920
Fix indentation bug.
2010-11-29 14:50:54 +00:00
Senthil Kumaran
6f1070485f
Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
...
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.
2010-11-29 11:54:17 +00:00
Raymond Hettinger
40b8cf528f
Do not add an obsolete unittest name to Py3.2.
2010-11-29 01:38:25 +00:00
Ezio Melotti
1de911592e
Add callable() to the built-in functions table.
2010-11-28 04:18:54 +00:00
Benjamin Peterson
f6861ae12a
there's now a setup.py switch for this
2010-11-28 02:51:28 +00:00
Antoine Pitrou
e71362d3de
Issue #10518 : Bring back the callable() builtin.
...
Approved by Guido (BDFL) and Georg (RM).
2010-11-27 22:00:11 +00:00
Terry Reedy
dc9b17d922
Add version-added note twice for new difflib SequenceMatcher autojunk parameter.
2010-11-27 20:52:14 +00:00
Antoine Pitrou
a66e029a9d
Make doc for PyErr_Format() up to date.
2010-11-27 20:40:43 +00:00
Raymond Hettinger
6e165b30de
Issue 10242: unittest.assertItemsEqual makes too many assumptions.
2010-11-27 09:31:37 +00:00
Éric Araujo
76338ec37d
Rewrap long lines + minor edits
2010-11-26 23:46:18 +00:00
Éric Araujo
8acb67c059
Use link-generating markup (see #9312 )
2010-11-26 23:31:07 +00:00
Georg Brandl
fe12390b45
Better example for os.system(): do not change the system time.
2010-11-26 12:12:14 +00:00
Georg Brandl
326c57d1d9
Typo fix.
2010-11-26 12:10:06 +00:00
Georg Brandl
62f52c484d
Remove parenthetical remark that is confusing now that the module is not named "__builtin__" anymore.
2010-11-26 12:08:19 +00:00
Georg Brandl
f51a6c7d74
#10420 : fix docs of bdb.effective().
2010-11-26 12:05:48 +00:00
Georg Brandl
c877a7c201
Use PyLong_FromLong where appropriate.
2010-11-26 11:55:48 +00:00
Georg Brandl
8449932320
#10526 : fix typo.
2010-11-26 11:50:13 +00:00
Eric Smith
984bb58000
Issue #7094 : Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon.
2010-11-25 16:08:06 +00:00
Terry Reedy
99f9637de8
Issue 2986: Add autojunk paramater to SequenceMatcher to turn off heuristic. Patch by Terry Reedy, Eli Bendersky, and Simon Cross
2010-11-25 06:12:34 +00:00
Ezio Melotti
17f9b3d289
Add NEWS entry for r86732 and fix double function in the table.
2010-11-24 22:02:18 +00:00
Brian Curtin
1b9df39620
Fix #8879 . Add os.link support to Windows.
...
Additionally, the st_ino attribute of stat structures was not being filled
in. This was left out of the fix to #10027 and was noticed due to
test_tarfile failing when applying the patch for this issue. An earlier
version of the fix to #10027 included st_ino, but that attribute got lost
in the shuffle of a few review/fix cycles. All tests pass.
2010-11-24 20:24:31 +00:00
Ezio Melotti
f21c7ed39d
#10299 : Add a table that lists all the built-in functions in functions.rst
2010-11-24 20:18:02 +00:00
Terry Reedy
6d2ab7126e
Issue 1859: Doc that textwrap does not break on \n (pending possible behavior patch). Patch by Jeremy Thurgood.
2010-11-23 20:17:24 +00:00
Georg Brandl
4f13d6145f
assert.h is also included. Thanks to Savio Sena.
2010-11-23 18:14:57 +00:00
Georg Brandl
57410c12e8
#10511 : clarification of what heaps are; suggested by Johannes Hoff.
2010-11-23 08:37:54 +00:00
Georg Brandl
5a9326502d
#10468 : document Unicode exception creation and access functions.
2010-11-23 07:54:19 +00:00
Ezio Melotti
2baf1a69f4
#9424 : add a DeprecationWarning for assertEquals, assertNotEquals, assertAlmostEquals, assertNotAlmostEquals, and assert_
2010-11-22 12:56:58 +00:00
Éric Araujo
28053fb174
Remove unnecessary `object` base class in docs ( #10366 ).
...
Also add a note about inheritance from `object` being default.
2010-11-22 03:09:19 +00:00