Mailing List Archive

[issue45872] Turtle: invalid example for write doc
Éric Araujo <merwok@netwok.org> added the comment:

The doc for the font parameter is: a triple (fontname, fontsize, fonttype)
but the default value in the signature is: font='Arial'

I do not know what’s font name vs font type!
Do you know if it’s valid to have font='Arial', in which case the doc should be amended? or is the default value wrong? (also not sure if it’s a default value or an example)

----------
nosy: +eric.araujo
title: Turtle documentation, write() -> Turtle: invalid example for write doc

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45872>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45872] Turtle: invalid example for write doc [ In reply to ]
Change by Terry J. Reedy <tjreedy@udel.edu>:


----------
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Doc for turtle.write missing the tuple part of the font param in 3.10+
type: -> behavior
versions: +Python 3.11

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45872>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com