117 Commits

Author SHA1 Message Date
Neal Norwitz
708b06887b Fix SF bug #766288, property() example gives syntax error 2003-07-05 17:38:25 +00:00
Raymond Hettinger
ceb58a7dd1 Fix nits found by Tools\scripts\texcheck.py 2003-05-16 03:08:36 +00:00
Neal Norwitz
218496888c backports:
revision 1.127
date: 2003/01/04 02:16:22;  author: rhettinger;  state: Exp;  lines: +1 -1
SF bug #655271: Slightly modify locals() doc

Clarify the operation of locals().

revision 1.125
date: 2002/12/17 01:08:06;  author: nnorwitz;  state: Exp;  lines: +6 -1
Fix SF # 641111, Undocumented side effect of eval

Try to clear up confusion about the current globals being copied
into a globals dict passed to eval().  This wording (more or less)
was suggested in bug report.  It should probably be made clearer.

revision 1.124
date: 2002/12/17 01:02:57;  author: nnorwitz;  state: Exp;  lines: +78 -0
Fix SF #642742, property() builtin not documented

Added doc for functions new to 2.2:  classmethod property staticmethod super
Taken from docstrings.  Could use review.
Hope there wasn't a reason why these shouldn't have been added.
2003-02-02 19:08:58 +00:00
Fred Drake
176f3a6599 Document that apply() is deprecated. See:
http://mail.python.org/pipermail/python-dev/2003-January/031556.html
2003-01-02 04:54:22 +00:00
Fred Drake
80ee73809a Update example for the type() function to use the currently accepted
preference of using "is" instead of "==" to compare types, use
built-in names where available, and point to the isinstance()
function.
Closes SF bug #632196.
2002-11-01 21:34:39 +00:00
Raymond Hettinger
79c78f4bf6 Backport 1.108 documenting Py2.3's impending deprecation of divmod()
for complex numbers.
2002-10-06 02:16:52 +00:00
Fred Drake
31940037d3 Another try at clarifying what goes into and comes out of Unicode objects. 2002-09-24 21:01:07 +00:00
Fred Drake
6f3c65422d Clarify that len() of a Unicode string returns the number of storage units,
not abstract characters.
2002-09-24 13:57:32 +00:00
Raymond Hettinger
501ff27543 Fix typo 2002-09-04 15:02:53 +00:00
Fred Drake
e35aa233b2 Add a note that apply() is needed since the extended call syntax is
completely equivalent.
2002-08-22 14:27:22 +00:00
Fred Drake
5180ed871b reduce(): Clarified what is returned in the case of a sequence 1 item long and
initial/default value.
2002-07-17 13:55:46 +00:00
Fred Drake
68510797cd Note that unicode() can raise LookupError for unknown codecs.
Closes SF bug #513666.
2002-07-09 05:27:12 +00:00
Fred Drake
aa10404b7e Fix typo: "an Unicode string" --> "a Unicode string"
Clarify the return value when the parameter is a Unicode object.
2002-07-08 14:29:28 +00:00
Fred Drake
20ef4e108d Clarify the version information for the unicode() built-in.
Closes SF bug #575272.
2002-06-29 16:11:08 +00:00
Fred Drake
ca547d47e3 Add a version annotation for the help() function. 2002-04-17 12:54:56 +00:00
Fred Drake
830764ae11 Added missing version annotation for dict(). 2002-03-06 02:29:50 +00:00
Michael W. Hudson
06efb77910 backport tim_one's checkin of
revision 1.101 of libfuncs.tex

SF bug #501591:  dir() doc is old
Bugfix candidate.

+ Updated dir() description to match actual 2.2 behavior.

+ Replaced the dir(sys) example with dir(struct), because the former
  was way out of date and is bound to change frequently, while the
  latter is stable.

+ Added a note cautioning that dir() is supplied primarily for
  convenience at an interactive prompt (hoping to discourage its
  use as the foundation of introspective code outside the core).
2002-02-23 08:31:37 +00:00
Fred Drake
732299ff63 Add documentation for the help() built-in; contributed by Ka-Ping Yee.
This is part of SF patch #494622.
2001-12-18 16:31:08 +00:00
Fred Drake
526c7a0101 Ensure that complex() only accepts a string argument as the first arg,
and only if there is no second arg.
This closes SF patch #479551.
2001-12-13 19:52:22 +00:00
Fred Drake
5172adca81 Minor clarification of the zip() description, based on a comment sent to
python-docs.
2001-12-03 18:35:05 +00:00
Fred Drake
3570551d6f Remove most references to __members__ and __methods__, leaving only one pair
of references that now state that these attributes have been removed,
directing the reader to the dir() function.
This closes SF bug #456420.
2001-12-03 17:32:27 +00:00
Fred Drake
0b66310476 When referring to a formal parameter from the description, use the name given
with the signature, not an ad hoc abbreviated form.
2001-11-07 06:28:47 +00:00
Fred Drake
66ded524ba apply() documentation: Remove a detail about the implementation that does
not affect the API.  Clean up the text about call syntax apply() is
equivalent to.  Based on comments by Thomas Guettler.
2001-11-07 06:22:25 +00:00
Tim Peters
a427a2b8d0 Rename "dictionary" (type and constructor) to "dict". 2001-10-29 22:25:45 +00:00
Fred Drake
ef7d08a661 Some style changes and typo fixes. 2001-10-26 15:04:33 +00:00