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, georg.brandl, pitrou, r.david.murray
Date 2012-04-17.09:40:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334655631.53.0.204372348534.issue14586@psf.upfronthosting.co.za>
In-reply-to
Content
@Brandl truncate() was the issue I ran into, no other reason. I have started on the rest of the IO module tho. I know the patch is not working but I ran into problems with getting cpython to change functions from positional to keyword.

@all
cpython                | Python                        | Status
-----------------------+-------------------------------+-------
iobase_readlines       | readline(limit=-1)            | patch v2
iobase_readline        | readlines(hint=-1)            | patch v2
iobase_seek            | seek(offset, whence=SEEK_SET) | patch v2
iobase_truncate        | truncate(size=None)           | patch v2
fileio_seek            | seek(offset, whence=SEEK_SET) | patch v2
fileio_read            | read(n=-1)                    | patch v2
textiowrapper_read     | read(n=-1)                    | ToDo
textiowrapper_readline | readline(limit=-1)            | ToDo
textiowrapper_seek     | seek(offset, whence=SEEK_SET) | ToDo
textiowrapper_truncate | truncate(size=None)           | ToDo
textiobase_read        | read(n=-1)                    | ToDo
textiobase_readline    | readline(limit=-1)            | ToDo
{bufferedio.c}         |                               | ToDo
{bytesio.c}            |                               | ToDo
{stringio.c}           |                               | ToDo

ps.
I am using code from within other C files and http://docs.python.org/dev/extending/extending.html#keyword-parameters-for-extension-functions to base my patch on but I still get "x()" takes no keyword arguments". What have I missed/Are the docs correct?
History
Date User Action Args
2012-04-17 09:40:31TheBiggerGuysetrecipients: + TheBiggerGuy, georg.brandl, pitrou, r.david.murray, docs@python
2012-04-17 09:40:31TheBiggerGuysetmessageid: <1334655631.53.0.204372348534.issue14586@psf.upfronthosting.co.za>
2012-04-17 09:40:30TheBiggerGuylinkissue14586 messages
2012-04-17 09:40:30TheBiggerGuycreate