Talk:Practical numbers: Difference between revisions

Line 57:
 
::A long time ago when this started I read the PEP on Python typing. The document was the result of collaboration between a Python project and Cython. In order to compile their project with Cython, for efficiency they had to make changes to the Python such that it no longer ran in Python which they wanted to use for development (more fool them). The result is a type scheme which is written by humans, ignored by Python but read by Cython to produce more efficient code (could be called C typing rather than Python typing!!!). Them what be at Python encourage developers of official projects to use Python typing. Them what be at Python complain regularly that most submissions just use <b>Any</b> everywhere. Rosettacode is not Python and I don't care what them what be at Python think or want to achieve. Rosettacode is not the place for a self appointed spokesperson for them what be at Python to continually vandalize well produced and suitable Rosettacode submissions. The MH typing is meant to be deduced from the code by the compiler (good luck with that with a language like Python) and read by humans to explain functionality. The MH is richer than the Python typing and obviously is better as a comment (though I think it is an attempt to make a silk purse from a pig's ear), the Python typing would be needed if the object was to compile the code using Cython for efficiency.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:28, 1 April 2021 (UTC)
 
::: Thanks Nigel.
::: The MH comments are just a brief summary to remind me of the value that I'm trying to define.
::: I could write them in English (to protect the nativist immune system from anaphylactic shock)
::: (though that would be wordier and harder to read at a glance – hardly a very obvious enhancement)
::: On past form though, I suspect that the attack would then simply shift its focus to new targets. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 15:30, 1 April 2021 (UTC)
 
==Python: Comment on type hints for the functional example==
9,655

edits