[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-12 Thread Éric Araujo
Éric Araujo added the comment: Alright, thanks for replying :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-11 Thread Ross Lagerwall
Ross Lagerwall added the comment: http://docs.python.org/release/3.1.3/library/tempfile.html doesn't to have an "Examples" section like 3.2 and 3.3. It appears to have been introduced in b172d7537b99 with #5178. -- ___ Python tracker

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-11 Thread Éric Araujo
Éric Araujo added the comment: May I ask why 3.1 was not fixed too? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: Fixed the examples for Python 3. It writes and reads bytes now. Also fixed the old Python 2 print statement. -- assignee: docs@python -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed status: open -> closed versions: +Python 3.3

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 87d89f767b23 by Ross Lagerwall in branch '3.2': Issue #11818: Fix tempfile examples for Python 3. http://hg.python.org/cpython/rev/87d89f767b23 -- nosy: +python-dev ___ Python tracker

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread eduardo
New submission from eduardo : >From the example: http://docs.python.org/py3k/library/tempfile.html#examples The error message is weird... but I guess the problem is the default mode 'w+b'. Python 3.3a0 (default:78a66c98288d, Apr 9 2011, 16:13:31) [GCC 4.4.5] on linux2 Type "help", "copyrigh