[issue4286] Discrepancy in format string documentation

2008-11-08 Thread dlfjessup

New submission from dlfjessup <[EMAIL PROTECTED]>:

In the documentation for Format Strings
(http://docs.python.org/dev/3.0/library/string.html#formatstrings), the
grammar has the following rule:

> conversion::=  "r" | "s"

However, the documentation later reads:

> Three conversion flags are currently supported: '!s' which calls str()
on the value, '!r' which calls repr() and '!a' which calls ascii().

This implies that the correct rule for the grammar is:

> conversion::=  "a" | "r" | "s"

--
assignee: georg.brandl
components: Documentation
messages: 75648
nosy: dlfjessup, georg.brandl
severity: normal
status: open
title: Discrepancy in format string documentation
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4286>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5126] Space character returns false from isprintable() method

2009-02-01 Thread dlfjessup

New submission from dlfjessup :

I am running IDLE on Windows XP.  The version information when IDLE
boots is:

Python 3.0 (r30:67507, Dec  3 2008, 20:14:27) [MSC v.1500 32 bit
(Intel)] on win32

I ran the following test case:

>>> ' '.isprintable()
False

However, according to
http://docs.python.org/3.0/library/stdtypes.htm#str.isprintable, "...the
ASCII space (0x20) ... is considered printable."

This seems pretty broken to me.

--
messages: 80919
nosy: dlfjessup
severity: normal
status: open
title: Space character returns false from isprintable() method
type: behavior
versions: Python 3.0

___
Python tracker 
<http://bugs.python.org/issue5126>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com