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 iritkatriel
Recipients docs@python, ilai, iritkatriel, xtreak
Date 2021-11-27.00:44:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637973878.76.0.997681326987.issue38497@roundup.psfhosted.org>
In-reply-to
Content
It's documented as a positional arg:

Template.open(file, mode)
https://docs.python.org/3/library/pipes.html#pipes.Template.open


but accepts it also as the kwarg "rw".

So these are ok:
from pipes import Template; Template().open('/tmp/f', rw='r')
from pipes import Template; Template().open('/tmp/f', 'r')

And this is not:
from pipes import Template; Template().open('/tmp/f', mode='r')
History
Date User Action Args
2021-11-27 00:44:39iritkatrielsetrecipients: + iritkatriel, docs@python, xtreak, ilai
2021-11-27 00:44:38iritkatrielsetmessageid: <1637973878.76.0.997681326987.issue38497@roundup.psfhosted.org>
2021-11-27 00:44:38iritkatriellinkissue38497 messages
2021-11-27 00:44:38iritkatrielcreate