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 anthony-flury
Recipients anthony-flury, lemburg, mark.dickinson, rhettinger, steven.daprano, stutzbach
Date 2021-04-06.10:14:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617704081.08.0.95609887893.issue43737@roundup.psfhosted.org>
In-reply-to
Content
I take your point about warnings etc - but when you come from other languages the Python behavior can initially be very surprising.

The reference section has always seemed to be a very technical document, certainly not targeted at the usual audience of people using Python.

Most Python users don't consider that int/float etc would be in the standard library either - for most users the built-ins are not the same.

Can I suggest:

1) The identity that is mentioned on https://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations should be made more clear - at the moment it is buried in a paragraph and easily missed.

2) The document https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex should also mention the identity and the need to preserve it.

3) A link fromhttps://docs.python.org/3/tutorial/introduction.html#numbers to the document https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex - the introductory tutorial should link to further detail where neccessary.
History
Date User Action Args
2021-04-06 10:14:41anthony-flurysetrecipients: + anthony-flury, lemburg, rhettinger, mark.dickinson, stutzbach, steven.daprano
2021-04-06 10:14:41anthony-flurysetmessageid: <1617704081.08.0.95609887893.issue43737@roundup.psfhosted.org>
2021-04-06 10:14:41anthony-flurylinkissue43737 messages
2021-04-06 10:14:40anthony-flurycreate