Content deleted Content added
m Archiving 2 discussion(s) from Talk:Python (programming language)) (bot |
m Archiving 2 discussion(s) from Talk:Python (programming language)) (bot |
||
Line 349:
:There are several different implementations of Python, and speed is relevant to the implementation rather than to the language. This is also true of C implementations, but the difference in speed is greater with Python than with modern optimising C compilers. Different benchmark programs will also give significantly different results.
:Such a statement belongs in our articles on, for example, [[CPython]] or [[PyPy]], with suitable sources, rather than in this article on the language.-<span style="font-family:cursive; color:grey;">[[User talk:gadfium|gadfium]]</span> 07:48, 16 June 2014 (UTC)
== Python 2 types ==
The table of types only describes Python 3 types, and it describes 'str' as 'A character string: an immutable sequence of Unicode codepoints.' which is of course very true for python 3, but very wrong in python 2. Python 2 is still quite commonly used, and in python 2 str is ASCII rather than unicode, and there is a base type 'basestring' and a subclass 'unicode'.
There are likely other differences between the two versions, and I think it is worth having them side by side in the table, rather than only describe Python 3. The other main difference I can see is that py3 int is essentially the py2 long, and py3 'bytes' is probably buffer() in py2, but I am not sure about that one.
If we didnt include python 2 in the table, I would like to add a note under the table that explains that the Python 3 'str' and 'int' are the Python 2 'unicode' and 'long', and the Python 2 types 'str' and 'int', which existed due to hardware/architecture/performance issues rather than ideal-world language "beauty", have been dropped in Python 3. <span style="font-variant:small-caps">[[User:John Vandenberg|John Vandenberg]] <sup>'''([[User talk:John Vandenberg|chat]])'''</sup></span> 06:00, 12 July 2014 (UTC)
== Influenced Javascript ==
It appears that someone has added "[Citation Needed]" next to Javascript in the Influenced property of the Infobox.
Here are two citations regarding how Python influenced ECMAScript (and, thus, Javascript):
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Array_comprehensions#Differences_to_the_older_JS1.7.2FJS1.8_comprehensions
[[User:Wes.turner|Wes Turner]] ([[User talk:Wes.turner|talk]]) 21:19, 4 November 2014 (UTC)
: Wouldn't they be more convincing if they contained the word "Python"? [[User:Andy Dingley|Andy Dingley]] ([[User talk:Andy Dingley|talk]]) 21:44, 4 November 2014 (UTC)
|