[issue5371] Documentation of str.format in library/stdtypes shows incorrect first parameter

2009-02-25 Thread Mitchell Model

New submission from Mitchell Model m...@acm.org:

In the library documentation of standard types, the instance method 
str.format is shown as taking a format-specification as its first 
argument. I'm pretty sure that this is incorrect. When format is called 
through a string, it is that string that is the format specification.

That is, shouldn't
format(format-specification-string, arg) be equivalent to
format-specification-string.format(arg)
?

--
assignee: georg.brandl
components: Documentation
messages: 82722
nosy: MLModel, georg.brandl
severity: normal
status: open
title: Documentation of str.format in library/stdtypes shows incorrect first 
parameter
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5371
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5371] Documentation of str.format in library/stdtypes shows incorrect first parameter

2009-02-25 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Fixed in r69987.

--
nosy: +benjamin.peterson
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5371
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com