Talk:Python (programming language)

From Wikipedia, the free encyclopedia
  (Redirected from Talk:Python programming language)
Jump to navigation Jump to search
Good articlePython (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.
Article milestones
DateProcessResult
March 7, 2007Good article nomineeListed
February 17, 2009Peer reviewReviewed
March 3, 2009Good article reassessmentKept
Current status: Good article

Steps down after 30 years[edit]

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 216.228.181.182 (talkcontribs) 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[edit]

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.)

Quizdog (talk) 03:32, 24 November 2018 (UTC)

Well it's not global to the file. If the above is in a function, name cannot be accessed from another function. Johnuniq (talk) 04:05, 24 November 2018 (UTC)

PEP 8[edit]

PEP8 redirects here but is not explained in the article. -- Beland (talk) 15:48, 30 November 2018 (UTC)

Good point. I added it in. peterl (talk) 04:51, 26 March 2019 (UTC)

Order of implementations in the infobox[edit]

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[edit]

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)