Irit Katriel <iritkatriel@gmail.com> added the comment:
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')
----------
nosy: +iritkatriel
title: Wrong argument name in documentation for pipes.Template.open -> [doc] Wrong argument name in documentation for pipes.Template.open
type: -> behavior
versions: +Python 3.10, Python 3.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue38497>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
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')
----------
nosy: +iritkatriel
title: Wrong argument name in documentation for pipes.Template.open -> [doc] Wrong argument name in documentation for pipes.Template.open
type: -> behavior
versions: +Python 3.10, Python 3.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue38497>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com