This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author TheBiggerGuy
Recipients TheBiggerGuy, docs@python
Date 2012-04-15.02:04:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334455473.06.0.710562653974.issue14586@psf.upfronthosting.co.za>
In-reply-to
Content
The Python docs suggest that io.IOBase.truncate' should take a keyword argument of 'size'.
However this causes a 'TypeError':
  TypeError: truncate() takes no keyword arguments

Suggest that the docs are changed to 'truncate(size)' or CPython is changed to allow the keyword.

http://docs.python.org/py3k/library/io.html?highlight=truncate#io.IOBase.truncate
http://docs.python.org/library/io.html?highlight=truncate#io.IOBase.truncate
History
Date User Action Args
2012-04-15 02:04:33TheBiggerGuysetrecipients: + TheBiggerGuy, docs@python
2012-04-15 02:04:33TheBiggerGuysetmessageid: <1334455473.06.0.710562653974.issue14586@psf.upfronthosting.co.za>
2012-04-15 02:04:32TheBiggerGuylinkissue14586 messages
2012-04-15 02:04:32TheBiggerGuycreate