Talk:Python (programming language)
|This is the talk page for discussing improvements to the Python (programming language) article.
This is not a forum for general discussion of the article's subject.
|Python (programming language) has been listed as a level-5 vital article in Technology. If you can improve it, please do. This article has been rated as GA-Class.|
|Python (programming language) has been listed as one of the Engineering and technology good articles under the good article criteria. If you can improve it further, please do so. If it no longer meets these criteria, you can reassess it.|
|Current status: Good article|
|This article is of interest to multiple WikiProjects. Click [show] for further details.|
Threads older than 3 months may be archived by .
Steps down after 30 years
Who's doing the math here -- some magazine article? Even December 1989 until July 2018 isn't 30 years. Therefore September 1990 through July 2018 is definitely less than 30 years. If Wikipedia is just duplicating glorified journalistic fluff then what good is it? — Preceding unsigned comment added by 188.8.131.52 (talk • contribs) 12:44, 12 August 2018 (UTC)
- It's from one of the cited sources, which I think was just rounding up. It obviously differs a bit depending on when you count the start, so rather than coming up with something original I just removed the claim for now. -- Beland (talk) 18:32, 30 November 2018 (UTC)
the loop variable of a for loop is NOT local in Python, it is global
in the section
Statements and control flow
it says under the description of the for keyword that it:
iterates over an iterable object, capturing each element to a local variable for use by the attached block.
the variable that the for loop uses is NOT local to the body of the loop, it is GLOBAL to the file:
for name in ['ted', 'ed', 'ned']: pass
print(name) # this will print 'ned' because name is NOT local
(interestingly the loop variable in a list comprehension or generator expression IS local.)
- Well it's not global to the file. If the above is in a function,
namecannot be accessed from another function. Johnuniq (talk) 04:05, 24 November 2018 (UTC)
Order of implementations in the infobox
In the infobox, there is a list of "Major implementations". The list is currently in alphabetical order, but this puts a relatively minor implementation at the beginning. I think listing them in order of importance would be more appropriate. It might be difficult to determine the order of importance, but the Python (programming language)#Implementations section does a good job of briefly explaining the differences between the versions. As CPython is the reference implementation, it should be the first listed in the infobox, and other implementations which are highly compliant and support Python 3 should follow. Implementations which have a limited subset of the Python language or standard library should be later in the list, or not included in the infobox at all. Just my opinion, I made an edit to this infobox list on 20 December 2018 and I'm not going to edit war over it.-gadfium 22:29, 13 March 2019 (UTC)
- Completely agree. Certainly CPython needs to be first; is there an option in the infobox for "other implementations"?
- peterl (talk) 09:00, 14 March 2019 (UTC)
Nomination of Portal:Python (programming language) for deletion
A discussion is taking place as to whether Portal:Python (programming language) is suitable for inclusion in Wikipedia according to Wikipedia's policies and guidelines or whether it should be deleted.
The page will be discussed at Wikipedia:Miscellany for deletion/Portal:Haskell (programming language) (it's part of a bundled nomination) until a consensus is reached, and anyone is welcome to contribute to the discussion. The nomination will explain the policies and guidelines which are of concern. The discussion focuses on high-quality evidence and our policies and guidelines.
Users may edit the page during the discussion, including to improve the page to address concerns raised in the discussion. However, do not remove the deletion notice from the top of the page. North America1000 00:44, 26 March 2019 (UTC)