New submission from Ian Jackson <[email protected]>:
The section "Fancier Output Formatting" has the example below. This will
remind many UK readers of the 2016 EU referendum. About half of those readers
will be quite annoyed.
This annoyance seems entirely avoidable; a different example which did not
refer to politics would demonstrate the behaviour just as well.
Changing this example would (in the words of the CoC) also show more empathy,
and be more considerate towards, python contributors unhappy with recent
political developments in the UK, without having to make anyone else upset in
turn.
>>> year = 2016
>>> event = 'Referendum'
>>> f'Results of the {year} {event}'
'Results of the 2016 Referendum'
>>> yes_votes = 42_572_654
>>> no_votes = 43_132_495
>>> percentage = yes_votes / (yes_votes + no_votes)
>>> '{:-9} YES votes {:2.2%}'.format(yes_votes, percentage)' 42572654 YES
votes 49.67%'
----------
assignee: docs@python
components: Documentation
messages: 360883
nosy: diziet, docs@python
priority: normal
severity: normal
status: open
title: referendum reference is needlessly annoying
versions: Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39480>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com