[issue17271] NamedTemporaryFile expects bytes, not string in documentation for tempfile module

2013-02-21 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement versions: +Python 3.3, Python 3.4 _

[issue17271] NamedTemporaryFile expects bytes, not string in documentation for tempfile module

2013-02-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 82343bbf8868 by Ezio Melotti in branch '3.2': #17271: update example in tempfile docs. http://hg.python.org/cpython/rev/82343bbf8868 New changeset a9993d40821f by Ezio Melotti in branch '3.3': #17271: merge with 3.2. http://hg.python.org/cpython/rev

[issue17271] NamedTemporaryFile expects bytes, not string in documentation for tempfile module

2013-02-21 Thread Jason S Friedman
New submission from Jason S Friedman: Page is http://docs.python.org/3/library/tempfile.html#module-tempfile. The code in question currently reads: >>> f = NamedTemporaryFile(delete=False) >>> f ', mode 'w+b' at 0x384698> >>> f.name '/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/tmpG7V1Y0' >