Eric Smith
11529195ca
Changed some ValueError's to KeyError and IndexError.
...
Corrected code for invalid conversion specifier.
Added tests to verify.
Modified string.Formatter to correctly expand format_spec's,
and added a limit to recursion depth. Added _vformat()
method to support both of these.
2007-09-04 23:04:22 +00:00
Fred Drake
0af17617c5
fix typo
2007-09-04 19:43:19 +00:00
Georg Brandl
c53c9666f5
Add a dict view usage example.
2007-09-04 17:58:02 +00:00
Georg Brandl
952aea2ce6
Change docs for builtins that now return iterators.
2007-09-04 17:50:40 +00:00
Georg Brandl
d22a8152bc
Docs on dictviews.
2007-09-04 17:43:37 +00:00
Fred Drake
2e74878ef2
remove/update many of the references to dict.iter*()
2007-09-04 17:33:11 +00:00
Guido van Rossum
afe0cd194f
Correction an issue reported by Mark Summerfeld.
2007-09-04 16:23:16 +00:00
Georg Brandl
2d14098125
More abc docs.
2007-09-04 15:45:25 +00:00
Thomas Heller
476157bea5
Make the _wrap_close type (which is returned by os.popen) iterable.
...
This should fix the Lib\test\test_uuid.py test on Windows.
2007-09-04 11:27:47 +00:00
Martin v. Löwis
85bcc66bb4
Convert code from sys.stdin.encoding to UTF-8 in
...
interactive mode. Fixes #1100.
2007-09-04 09:18:06 +00:00
Thomas Wouters
53de1902e7
Update ref docs on slicing.
2007-09-04 09:03:59 +00:00
Georg Brandl
aeaa546d7e
Initial documentation for the abc
module.
2007-09-04 08:11:03 +00:00
Georg Brandl
7a8e58249c
Fix the string formatting docs for now; if the feature is changed again, the docs can be changed too.
2007-09-04 07:27:54 +00:00
Georg Brandl
a1e9ef7a62
Fix up the types module docs.
2007-09-04 07:23:09 +00:00
Georg Brandl
6911e3ce3f
Convert all print statements in the docs.
2007-09-04 07:15:32 +00:00
Georg Brandl
c9879246a2
Add "print" command to pdb, "print s" previously invoked the print statement.
2007-09-04 07:07:56 +00:00
Georg Brandl
cb8ecb142b
Doc update for __xslice__ removal.
2007-09-04 06:35:14 +00:00
Martin v. Löwis
4a7b5d5b4f
Decode input() with stdin.encoding. Fixes #1097.
2007-09-04 05:24:49 +00:00
Skip Montanaro
4edae68f2f
CVS -> Subversion
2007-09-04 02:52:00 +00:00
Skip Montanaro
a86f5d4029
I always think of the language when I see "ABC". Emphasize the meaning of
...
the acronym.
2007-09-04 02:48:01 +00:00
Guido van Rossum
5eb520cf1e
Fix sinple typo.
2007-09-04 02:40:38 +00:00
Matthias Klose
4207f78746
- Add support for linking the bsddb module against BerkeleyDB 4.6.x.
2007-09-03 23:44:29 +00:00
Gregory P. Smith
1d6ec653d0
fix test, use bytes not unicode and let the test raise its internal exception
...
rather than just complaining about stderr not being what we expected masking
the true problem.
2007-09-03 16:48:32 +00:00
Gregory P. Smith
25523d27e7
regenerated
2007-09-03 16:44:55 +00:00
Gregory P. Smith
6c3572673d
test for strlcpy (so i can use it in _bsddb.c)
2007-09-03 16:44:06 +00:00
Eric Smith
4cb4e4e882
Fix segfault discovered by Ron Adam. Not checking for terminating right bracket in "'{0[}'.format(())". Fixed, and tests added.
2007-09-03 08:40:29 +00:00
Martin v. Löwis
f82d9b52fa
Patch #1076: Use wide API for registry functions.
2007-09-03 07:43:05 +00:00
Martin v. Löwis
5d12abe0b1
Patch #1075: Use wide API to format error messages.
2007-09-03 07:40:24 +00:00
Georg Brandl
c76473d887
Fix Mac build, patch #1091 by Humberto Diogenes.
2007-09-03 07:27:49 +00:00
Georg Brandl
e4ac7504c9
Tutorial formatting patch by Robin Stocker.
2007-09-03 07:10:24 +00:00
Eric Smith
9d4ba3970f
Removed used_args param from string.Formatter.get_field. It was left in by mistake from an earlier edit.
2007-09-02 15:33:26 +00:00
Collin Winter
c79461b164
Partial py3k-ification of Doc/library/: convert has_key references into either 'k in d' or __contains__; normalize raise statements; convert print statements into print function calls.
2007-09-01 23:34:30 +00:00
Collin Winter
2ac0121305
Run 2to3's fix_has_key over distutils.
2007-09-01 20:37:22 +00:00
Collin Winter
0470689215
Run 2to3's fix_has_key over Lib/plat-os2emx/.
2007-09-01 20:35:04 +00:00
Collin Winter
ba21f618a3
Fix refleaks in test_with caused by reusing the same exception instance over and over.
2007-09-01 20:29:04 +00:00
Collin Winter
c59dacdbd8
Fix a poorly-translated raise statement in contextlib.
2007-09-01 20:27:58 +00:00
Collin Winter
1966f1c98f
Fix refleaks exposed by test_raise.
2007-09-01 20:26:44 +00:00
Kurt B. Kaiser
1963ad3126
Saving a file containing unicode failed.
2007-09-01 19:47:39 +00:00
Andrew M. Kuchling
bbb809ee6f
I'm not actually an author
2007-09-01 19:26:28 +00:00
Georg Brandl
b355304ea4
Document PyCFunctionWithKeywords, add comment for PEP 3123.
2007-09-01 16:19:25 +00:00
Georg Brandl
a6f52786b7
Document sets' "<" and ">" operations.
2007-09-01 15:49:30 +00:00
Georg Brandl
fb5d3675f8
Use symbolic name for METH_VARARGS.
2007-09-01 15:27:35 +00:00
Georg Brandl
34cb852611
Use symbolic name for METH_VARAGS.
2007-09-01 15:25:27 +00:00
Georg Brandl
f2fc934a77
Get rid of METH_OLDARGS.
2007-09-01 13:59:50 +00:00
Georg Brandl
55ac8f0f26
Get rid of the remaining versionadded/versionchanged directives.
2007-09-01 13:51:09 +00:00
Georg Brandl
1617457cff
Remove versionadded/versionchanged in the reference.
2007-09-01 12:38:06 +00:00
Georg Brandl
321976b6e7
Remove versionadded and versionchanged directives, fold information into text where necessary.
2007-09-01 12:33:24 +00:00
Georg Brandl
2326a79de1
Add a warning text about mixing bytes and strings.
2007-09-01 12:08:51 +00:00
Eric Smith
37f10386f1
Changed to use 'U' argument to PyArg_ParseTuple, instead of manually checking for unicode objects.
2007-09-01 10:56:01 +00:00
Georg Brandl
a95207ab3b
Fix RST link.
2007-09-01 07:34:27 +00:00