Commit Graph

103 Commits

Author SHA1 Message Date
Raymond Hettinger
ceb58a7dd1 Fix nits found by Tools\scripts\texcheck.py 2003-05-16 03:08:36 +00:00
Fred Drake
594d4c5581 At the site of an indexed reference to print, point to the relevant
documentation.  Closes SF bug #723136.
2003-04-30 16:43:51 +00:00
Fred Drake
bdd096a927 - added example of using a comparison function with list.sort(), and
explained the construction of a [(key, value), ...] list as an
  alternative
- backport additional notes on list use from Python 2.3 documentation;
  mostly warnings about what not to rely on
2003-03-20 22:20:43 +00:00
Gustavo Niemeyer
fac559c533 Backported fix to [521782] unreliable file.read() error handling. 2003-03-04 00:50:24 +00:00
Neal Norwitz
e6c6163f46 Fix SF bug #687655, String formatting conversions misleading 2003-02-17 18:59:54 +00:00
Raymond Hettinger
4e17346422 SF patch 664183 and SF bug 664044: Note that both u'%s' % 'x' and
'%s' % u'x'  return a unicode object.
2003-01-13 04:33:36 +00:00
Raymond Hettinger
398c4ed102 SF Bug 645777: list.extend() works with any iterable and is no longer
experimental.
2002-12-29 05:59:09 +00:00
Fred Drake
0d800ca915 Note that str.zfill() and the optional argument to str.strip(),
.lstrip(), and .rstrip() were all added in 2.2.2.  ;-(
Closes SF bug #639170.
2002-11-16 00:45:14 +00:00
Fred Drake
b8a1fe4ed3 - The "-" format flag overrides the "0" flag, not the "-" flag.
- Documented the alternate forms, which were claimed to be documented
  but were not.
2002-10-25 16:56:16 +00:00
Raymond Hettinger
989aa004f4 Backport 1.94:
Patch 543387.  Document deprecation of complex %, //,and divmod().
2002-10-05 15:41:56 +00:00
Raymond Hettinger
2d4b27ea36 Backport 1.100: Discussion of Stop Iteration in the Iterator Protocol. 2002-10-05 15:38:16 +00:00
Fred Drake
4295443c46 Extend some comments on the order of values in the returns from
dict.items/keys/values/iteritems/iterkeys/itervalues().
2002-08-19 22:01:19 +00:00
Fred Drake
18f8ade7ad Clarify that the bool instances are acceptable return values from
__nonzero__(), in response to SF bug #579991.
2002-08-07 15:41:31 +00:00
Fred Drake
003eb03287 Clarify the return value of __nonzero__(): It *must* be an integer.
Closes SF bug #579991.
2002-07-12 17:15:45 +00:00
Raymond Hettinger
a08ded0e9f Added missing index entries for mapping methods. Closes patch #548693. 2002-05-15 15:50:32 +00:00
Fred Drake
d77dfe010f Remove extra period produced by previous change. 2002-05-02 17:54:01 +00:00
Fred Drake
9526aef3ff Correct information on support for repietition & concatenation for buffer
and xrange objects.
This closes SF bug #550555.
2002-05-02 05:57:07 +00:00
Fred Drake
e94427eed2 Add a note about when the "%r" formatting code was added. 2002-04-30 14:54:31 +00:00
Walter Dörwald
1c097b7102 Backport the following changes:
Misc/NEWS 1.387->1.388
Lib/test/string_tests.py 1.10->1.11, 1.12->1.14,
Lib/test/test_unicode.py 1.50->1.51, 1.53->1.54, 1.55->1.56
Lib/test/test_string.py 1.15->1.16
Lib/string.py 1.61->1.63
Lib/test/test_userstring.py 1.5->1.6, 1.11, 1.12
Objects/stringobject.c 2.156->2.159
Objects/unicodeobject.c 2.137->2.139
Doc/lib/libstdtypes.tec 1.87->1.88

Add a method zfill to str, unicode and UserString
and change Lib/string.py accordingly
(see SF patch http://www.python.org/sf/536241)

This also adds Guido's fix to test_userstring.py
and the subinstance checks in test_string.py
and test_unicode.py.
2002-04-22 11:57:06 +00:00
Anthony Baxter
93e81e7c1f backport fdrake's patch:
Document the optional argument to the .strip(), .rstrip(), .strip() string
methods.
Part of SF feature #444708.

Original patches were:
python/dist/src/Doc/lib/libstdtypes.tex:1.87
2002-04-18 05:22:33 +00:00
Michael W. Hudson
98305a0d34 Take Tim's work on file.truncate out of 2.2.1 again. 2002-03-17 15:55:50 +00:00
Michael W. Hudson
fe69139f7e Backport Tim's work on getting file.truncate working better on Win32.
"cvs diff | patch" managed to stick the NEWS item in the 2.2 final
section!  I wonder which silly man wrote patch <wink>.
2002-03-16 18:19:33 +00:00
Fred Drake
9fcd9b2b1f Added index entries similar to some recommended by Skip, and used the word
"interpolation" in the text, to make the string formatting material easier to
find.
This closes SF bug #487165.
2001-12-28 04:37:37 +00:00
Fred Drake
6048ce95a9 Added documentation for str.decode().
This closes SF bug #490823.
2001-12-10 16:43:08 +00:00
Fred Drake
b38784e4a0 Slightly improved indexing for the string-% operator, thanks to comments
from Skip Montanaro.  There is one weirdness in the final index for HTML, but
that is low priority.
2001-12-03 22:15:56 +00:00