Tim Peters
c885443479
Stop producing or using OverflowWarning. PEP 237 thought this would
...
happen in 2.3, but nobody noticed it still was getting generated (the
warning was disabled by default). OverflowWarning and
PyExc_OverflowWarning should be removed for 2.5, and left notes all over
saying so.
2004-08-25 02:14:08 +00:00
Dave Cole
07fda7e3a0
Updated the socketpair() docstring and documentation to explain that the
...
default famility is AF_UNIX if defined for the platform, otherwise the
default is AF_INET.
2004-08-23 05:16:23 +00:00
Tim Peters
656f7e4b40
Removed redundant versionadded{} for NDIFF_DIFF. Virtually everything
...
in this section is new in 2.4, and that's all mentioned already in
versionadded{} thingies at the end of the section. It hurts readability
to have them after every line <wink>.
2004-08-23 00:26:42 +00:00
Neal Norwitz
8bd5cb342c
Add version info
2004-08-22 21:48:37 +00:00
Tim Peters
c6cbab0db4
Added NDIFF_DIFF option.
2004-08-22 19:43:28 +00:00
Raymond Hettinger
d3b0babf66
SF bug #1013760 : Error in Chapter 4 of Tutorial
...
Fit a nit.
2004-08-22 15:24:33 +00:00
Neal Norwitz
5268c3955a
sf #1009373 , #1005936 . fix underscores in index entries in PDF files.
...
I couldn't test this, but it didn't break anything and the patch
reported fixed the problem.
Bugfix candidate.
2004-08-21 15:13:52 +00:00
Neal Norwitz
7109b287cf
Fix grammar, spotted by Hye-Shik Chang
2004-08-20 23:13:26 +00:00
Johannes Gijsbers
8e3bec5418
Correct argument specifications of load_compiled and load_source: the file
...
argument is optional on both (the format string is "ss|O!").
2004-08-20 14:38:56 +00:00
Johannes Gijsbers
c89061817b
Quote # as \# to make lib compile again.
2004-08-20 14:37:05 +00:00
Neal Norwitz
8623b36ee0
Try to improve grammar and use versionadded
2004-08-20 02:36:27 +00:00
Neal Norwitz
525b315326
Fix markup. versionchanged automatically adds a period, so remove the extra one.
2004-08-20 01:52:42 +00:00
Tim Peters
026f8dc103
Now that they've settled down, document doctest directives.
2004-08-19 16:38:58 +00:00
Martin v. Löwis
336e85f56a
Patch #900727 : Add Py_InitializeEx to allow embedding without signals.
2004-08-19 11:31:58 +00:00
Fred Drake
c6f3c8b612
fix SF bug #1008690 : Incorrect <link rel="index"> href in Tutorial
...
The make_head_and_body() function used a hardcoded value for the
<link> element for the index; this patch causes the proper output
filename to be captured during the transformation phase so it can be
used during the page assembly phase.
2004-08-19 01:37:48 +00:00
Matthias Klose
cf02e31683
Remove commented definition of the MKHOWTO macro.
2004-08-18 22:27:04 +00:00
Matthias Klose
5b75f7d19b
Remove zero-byte gif files from generated html docs
2004-08-18 22:17:44 +00:00
Martin v. Löwis
75b9da4aaf
Patch #995126 : Correct directory size, and generate GNU tarfiles by default.
2004-08-18 13:57:44 +00:00
Martin v. Löwis
ae075b6cb7
Patch #1011144 : Correct regex for coding decls.
2004-08-18 13:25:05 +00:00
Martin v. Löwis
deacce2c87
Patch #800236 : add HTTPResponse.getheaders().
2004-08-18 12:46:26 +00:00
Raymond Hettinger
01884d56f4
Deprecate sys.exitfunc in favor of the atexit module.
...
Per Guido, sys.exitfunc will be kept around for backwards compatability
but atexit will become the one preferred way to do it.
2004-08-18 02:50:00 +00:00
Michael W. Hudson
0ccff074cd
This is Mark Russell's patch:
...
[ 1009560 ] Fix @decorator evaluation order
From the description:
Changes in this patch:
- Change Grammar/Grammar to require
newlines between adjacent decorators.
- Fix order of evaluation of decorators
in the C (compile.c) and python
(Lib/compiler/pycodegen.py) compilers
- Add better order of evaluation check
to test_decorators.py (test_eval_order)
- Update the decorator documentation in
the reference manual (improve description
of evaluation order and update syntax
description)
and the comment:
Used Brett's evaluation order (see
http://mail.python.org/pipermail/python-dev/2004-August/047835.html )
(I'm checking this in for Anthony who was having problems getting SF to
talk to him)
2004-08-17 17:29:16 +00:00
Raymond Hettinger
8de636e2ae
SF bug #951482 : New module: doc versus action
...
Strengthen the warnings about creating bogus objects using the new module.
2004-08-17 02:31:55 +00:00
Raymond Hettinger
cb40ba1f5e
SF bug #805304 : super instances don't support item assignment
...
Document a nuance of super(). It is designed to work well with dotted
attribute lookup but not with equivalent implicit lookups using operators
or statements.
2004-08-17 02:21:45 +00:00
Andrew M. Kuchling
7ec7584813
Typo fix
2004-08-16 16:12:23 +00:00
Raymond Hettinger
d3fe2395b4
Minor improvements to the threading introduction:
...
* Expand the example to show a join.
* Mention the use case of I/O running concurrent with a computational
thread.
* Be a tad more forceful about recommending Queue over other approaches
to synchonization.
* Eliminate discussion around having a single interpreter. This is a
more advanced discussion that belongs in the library reference and
in a section on extending and embedding.
2004-08-16 05:11:04 +00:00
Raymond Hettinger
8df4e6b020
Fix punctuation typo.
2004-08-15 23:51:38 +00:00
Raymond Hettinger
2864b808c7
Add a notes section to the docs:
...
* Discuss representation error versus loss of significance.
* Document special values including qNaN, sNaN, +0, -0.
* Show the suprising display of non-normalized zero values.
2004-08-15 23:47:48 +00:00
Raymond Hettinger
5c8d29cb13
SF patch #872326 : generator expression implementation
...
(Contributed by Jiwon Seo.)
Add genexps to the reference manual.
2004-08-15 23:28:10 +00:00
Skip Montanaro
e5069019e7
Add get_history_item and replace_history_item functions to the readline
...
module. Closes patch #675551 . My apologies to Michal Vitecek for taking so
long to process this.
2004-08-15 14:32:06 +00:00
Johannes Gijsbers
b112d6ed78
bug 990669: os.path.normpath may alter the meaning of a path if it contains
...
symbolic links. This has been documented in a comment since 1992, but is now in
the library reference as well.
2004-08-14 14:41:32 +00:00
Tim Peters
83e259a2c2
Another microburst of snail-like progress.
2004-08-13 21:55:21 +00:00
Tim Peters
41a65ea7fe
Doctest has new traceback gimmicks in 2.4. While trying to document
...
them (which they are now), I had to rewrite the code to understand
it. This has got to be the most DWIM part of doctest -- but in context
is really necessary.
2004-08-13 03:55:05 +00:00
Neal Norwitz
2e56c8a260
SF #1005913 , Patch to allow building of paper-*/dist.pdf by Jeff Epler
...
There were subsections without sections, so drop a sub.
2004-08-13 02:56:16 +00:00
Neal Norwitz
ee6511b309
Fix the version number in which changes were made
2004-08-13 02:34:06 +00:00
Tim Peters
2603960525
Markup fiddling.
2004-08-13 01:49:12 +00:00
Tim Peters
8a3b69ca8f
Excruciatingly slow progress on the docs. Option flags / directive names
...
are documented now, and ripped out a bunch of "private name" convolutions.
2004-08-12 22:31:25 +00:00
Michael W. Hudson
5e897959db
This is my patch
...
[ 1004703 ] Make func_name writable
plus fixing a couple of nits in the documentation changes spotted by MvL
and a Misc/NEWS entry.
2004-08-12 18:12:44 +00:00
Fred Drake
568671fc0f
avoid version numbers in the text where possible
2004-08-10 21:20:10 +00:00
Fred Drake
ba100c98ad
clarify the behavior of the .first() and .last() methods for empty
...
databases
this should be backported to the release23-maint branch
2004-08-10 19:22:48 +00:00
Andrew M. Kuchling
f54ac7e0ee
Spelling fix
2004-08-10 19:01:50 +00:00
Fred Drake
d62d507b9a
added missing documentation for UseForeignDTD() (new in 2.3)
...
someone should backport to the release23-maint branch
2004-08-10 17:18:32 +00:00
Fred Drake
fb568ca52a
add descriptions for many of the new error codes
2004-08-10 16:47:18 +00:00
Fred Drake
9d92d5a9ac
minor changes to make this format again
2004-08-10 15:41:03 +00:00
Tim Peters
c2388a2b9c
Start rewriting doctest's LaTeX docs. Damn, this is slow going!
2004-08-10 01:41:28 +00:00
Andrew M. Kuchling
24884a5ccc
[Patch #1005465 ] Markup tweaks
2004-08-09 17:36:56 +00:00
Andrew M. Kuchling
7f203b847b
Add item
2004-08-09 14:48:28 +00:00
Fred Drake
151df0794d
- make a module reference a hyperlink
...
- wrap a long line
2004-08-09 14:12:05 +00:00
Fred Drake
830d8b8b80
fix markup nit
2004-08-09 14:06:58 +00:00
Dave Cole
9dc19c2515
Ooops - for some reason I had the wrong versionadded...
2004-08-09 05:59:09 +00:00
Dave Cole
331708b226
Patch #1003700 : Add socketpair function to socket module.
2004-08-09 04:51:41 +00:00
Tim Peters
feec4533e2
Bug 1003935: xrange overflows
...
Added XXX comment about why the undocumented PyRange_New() API function
is too broken to be worth the considerable pain of repairing.
Changed range_new() to stop using PyRange_New(). This fixes a variety
of bogus errors. Nothing in the core uses PyRange_New() now.
Documented that xrange() is intended to be simple and fast, and that
CPython restricts its arguments, and length of its result sequence, to
native C longs.
Added some tests that failed before the patch, and repaired a test that
relied on a bogus OverflowError getting raised.
2004-08-08 07:17:39 +00:00
Andrew M. Kuchling
7219cbea8d
Remove MacOS 9 ref
2004-08-07 21:35:06 +00:00
Andrew M. Kuchling
c16affa811
Remove MacOS 9 refs
2004-08-07 21:33:44 +00:00
Andrew M. Kuchling
67ca703aca
[Patch #862531 ] Update version numbers.
2004-08-07 21:30:13 +00:00
Andrew M. Kuchling
2ee6a7027a
[Patch #999280 ] Update kwargs in pickle docs to match implementations
2004-08-07 20:25:55 +00:00
Andrew M. Kuchling
4eb1a00cc1
[Patch #1003861 from Dima Dorfman] Fix markup in concrete.tex:
...
PyObject* o -> PyObject *o to be consistent with the
rest of the file
- Correct markup for Py_True
- Remove duplicate description of PyBool_Check
2004-08-07 20:19:24 +00:00
Andrew M. Kuchling
672d2ba773
Use LaTeX markup
2004-08-07 20:17:48 +00:00
Andrew M. Kuchling
17e33e4c93
[Bug #914375 ] Crude modulefinder docs, but the module's code is very hard to read and it's not clear which bits are public and which aren't. The module's author should really be doing this (and using docstrings in the code, too)
2004-08-07 20:13:34 +00:00
Andrew M. Kuchling
32dbddafd5
Remove various modules that have been documented
2004-08-07 19:21:59 +00:00
Andrew M. Kuchling
cbd81556bb
[Bug #827209 ] Add footnote from Alex M. about listcomps leaking their index variables
2004-08-07 19:16:32 +00:00
Andrew M. Kuchling
59a27f1d6e
Various minor edits
2004-08-07 19:10:36 +00:00
Andrew M. Kuchling
4cbe95cdd1
[Bug #866222 ] Update docs to match the module
2004-08-07 19:06:48 +00:00
Andrew M. Kuchling
fe80b63663
[Bug #991883 ] Document calling condition
2004-08-07 17:53:05 +00:00
Michael W. Hudson
1baa248021
Fix
...
[ 1000841 ] "make pdf" failure w/ 2.4 docs
in the suggested way, by uglifying a URL.
2004-08-07 17:39:35 +00:00
Andrew M. Kuchling
0188cdb115
[Bug #998066 ] Mention result mismatch
2004-08-07 17:28:17 +00:00
Michael W. Hudson
b6d9fc38e8
Patch:
...
[ 1003863 ] adds an index entry for __all__ to the tutorial
2004-08-07 17:05:42 +00:00
Andrew M. Kuchling
8def876d36
[Bug #873146 ] Document pickletools module (haven't tested the LaTeX yet)
2004-08-07 16:53:59 +00:00
Michael W. Hudson
049e7aaa0f
Point out that the setdefault defaults the value to None. Inspired by
...
Michael Chermside's thinking about patch #748126 (the chief upshot of
which thinking was "reject it!").
2004-08-07 16:41:34 +00:00
Andrew M. Kuchling
cbbee6fed5
[Bug #984952 ] Include more material from PEP 307.
...
I haven't tried to include all the material on old-style classes using protocols 0,1. The details are lengthy; someone who knows
more about the pickle module should decide if they're important enough
to be in the docs or not.
2004-08-07 16:24:18 +00:00
Andrew M. Kuchling
14d535c3d4
[Bug #984952 ] Include some material from PEP 307
2004-08-07 15:49:24 +00:00
Andrew M. Kuchling
6f937b1c30
[Bug #998307 ] Use open() instead of file() in docs
2004-08-07 15:11:24 +00:00
Fred Drake
9bae19e8b1
fix two typos in markup
2004-08-07 14:28:37 +00:00
Andrew M. Kuchling
e30c4d4ddc
Add recent items
2004-08-07 13:58:02 +00:00
Andrew M. Kuchling
38dc2a6bf7
Simplify language
2004-08-07 13:24:12 +00:00
Andrew M. Kuchling
ac6428756a
Add string concat item
2004-08-07 13:13:31 +00:00
Andrew M. Kuchling
ba59be04fa
Bump version
2004-08-06 18:55:48 +00:00
Andrew M. Kuchling
34ed2b020a
Typo fix; use 'in-place' instead of 'inplace'
2004-08-06 18:55:09 +00:00
Raymond Hettinger
52a21b8e65
SF patch #980695 : efficient string concatenation
...
(Original patch by Armin Rigo).
2004-08-06 18:43:09 +00:00
Fred Drake
3f5c654deb
fix markup nit, typo
2004-08-06 03:34:20 +00:00
Fred Drake
6bd8e842e4
update to reflect the new significance of the "@" character
2004-08-05 21:11:27 +00:00
Phillip J. Eby
1884dda233
Warn that settrace() is implementation rather than language
...
definition, per Guido's request in off-list email.
2004-08-05 12:13:46 +00:00
Matthias Klose
4c8fa42aca
Doc/lib/libfuncs.tex: correct items in itemize
...
Doc/dist/dist.tex: avoid uncommenting the verbose environment (by the py2texi tool)
2004-08-04 23:18:49 +00:00
Vinay Sajip
1cf56d0b8a
Updated Logger.log() documentation to clarify that lvl parameter should be an integer.
2004-08-04 08:36:44 +00:00
Hye-Shik Chang
e9ddfbb412
SF #989185 : Drop unicode.iswide() and unicode.width() and add
...
unicodedata.east_asian_width(). You can still implement your own
simple width() function using it like this:
def width(u):
w = 0
for c in unicodedata.normalize('NFC', u):
cwidth = unicodedata.east_asian_width(c)
if cwidth in ('W', 'F'): w += 2
else: w += 1
return w
2004-08-04 07:38:35 +00:00
Fred Drake
f901abdd62
allow ctime(), gmtime(), and localtime() to take None as equivalent to an omitted arg
...
(closes SF bug #658254 , patch #663482 )
2004-08-03 17:58:55 +00:00
Fred Drake
d04573fef0
This allows additional commands to be provided for existing setup.py
...
scripts without modifying either the distutils installation or the
setup.py scripts of packages with which the new commands will be used.
Specifically, an option is added to distutils that allows additional
packages to be searched for command implementations in addition to
distutils.command. The additional packages can be specified on the
command line or via the installation or personal configuration files
already loaded by distutils.
For discussion, see the thread starting with:
http://mail.python.org/pipermail/distutils-sig/2004-August/004112.html
This closes SF patch #102241 .
2004-08-03 16:37:40 +00:00
Fred Drake
2be406bd9f
let's avoid the extra nesting where reasonable
2004-08-03 16:02:35 +00:00
Martin v. Löwis
9513e34ac4
Patch #823072 : add option to NOT use ~/.netrc in nntplib.NNTP().
2004-08-03 14:36:32 +00:00
Raymond Hettinger
70fcdb8be0
Document general mappings for the locals argument for exec and execfile().
2004-08-03 05:17:58 +00:00
Fred Drake
bec69f6a2e
fix a little lie ;-(
2004-08-02 23:05:25 +00:00
Neal Norwitz
7fdd92f31f
Fix typo though
2004-08-02 21:56:33 +00:00
Fred Drake
e72bd4d621
fix markup error
2004-08-02 21:50:26 +00:00
Fred Drake
0c84c7f915
start filling in documentation on extending distutils
2004-08-02 21:39:11 +00:00
Andrew M. Kuchling
77a602fbf2
Add PEP318
2004-08-02 13:48:18 +00:00
Andrew M. Kuchling
d91fcbe265
Add import change; add empty section for function decorators
2004-08-02 12:44:28 +00:00
Andrew M. Kuchling
1455f795e2
Update item
2004-08-02 12:09:58 +00:00
Raymond Hettinger
829d6c4138
Fix doubled word.
2004-08-02 08:36:07 +00:00
Anthony Baxter
c2a5a63654
PEP-0318, @decorator-style. In Guido's words:
...
"@ seems the syntax that everybody can hate equally"
Implementation by Mark Russell, from SF #979728 .
2004-08-02 06:10:11 +00:00
Tim Peters
fd7dc5169c
Typo repair.
2004-08-02 04:30:37 +00:00