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 |
||
(5 intermediate revisions by the same user not shown) | |||
Line 136:
Cheers.—[[User:InternetArchiveBot|'''<span style="color:darkgrey;font-family:monospace">InternetArchiveBot</span>''']] <span style="color:green;font-family:Rockwell">([[User talk:InternetArchiveBot|Report bug]])</span> 22:12, 1 December 2017 (UTC)
== Technical tag ==
I just read over the article, and came away mostly baffled. I am reasonably computer literate, and recognize some of the terms in the lead, but came away with only a slightly better understanding of Python than I had before I read it. Someone with more expertise needs to take a shot at making this more readable for the general public. Imagine your mom reading this, your mom who knows how to send and receive emails and can open up a Word document but who has never modified her computer registry or attempted to replace her internal hard drive— she knows there is a difference between a Mac and a PC, but isn't sure what it is. How would you explain Python to ''her'' in a way that would allow her to understand it? That is what this article needs to fix. The multiple links in the lead, etc., are good for obtaining this information, but Mom shouldn't have to click on a bunch of links to understand the basics of this article. Anyhow, someone please think about it. Thanks! [[User:KDS4444|KDS4444]] ([[User talk:KDS4444|talk]]) 23:30, 21 August 2017 (UTC)
:I disagree. I think this is a well-written article about the subject, and the first sentence provides plenty of context. The lead sentence "Python is a widely used high-level programming language for general-purpose programming, created by Guido van Rossum and first released in 1991." tells anyone what this article is about. Of course the rest of the article becomes more technical, but if you were not into programming one would read the first sentence and then move on. This article is less technical and uses less jargon than similar articles such as [[Java_(programming_language)]], [[C_(programming_language)]] and [[C++]]. [[User:Peterl|peterl]] ([[User talk:Peterl|talk]]) 09:10, 22 August 2017 (UTC)
:I agree the article should be more readable for the general public, and this is also true for other programming language articles. When reading a wikipedia article about a car or a plant, I do not generally find a flow of bombastic jargon terms about the physics inside the engine or some very technical biology stuff. For example, is it really necessary to say "object-oriented, imperative, functional and procedural"? At least it seems non necessary to say it is procedural, this is not a very in-depth information, most useful languages used in engineering (not academia) are procedural; it does not mean so much to me.[[User:Danieldanielcolo|Danieldanielcolo]] ([[User talk:Danieldanielcolo|talk]]) 09:55, 25 February 2018 (UTC)
::Yes, it is necessary to say "object-oriented, imperative, functional and procedural". These are different programming paradigms, and not all procedural languages have these other styles. So it's quite relevant. [[User:Peterl|peterl]] ([[User talk:Peterl|talk]]) 08:24, 27 February 2018 (UTC)
I disagree as well. I only started a little while ago,and I think I've gotten the hang of it. Here are some reasons I think it's good:
1.It has "batteries included". That means it comes with everything you need to get started.
2.It has good documentation.
There is a pretty big online community,
and the download comes with a help program.
There are also lots of books.
3.Good for beginners. Python is easy to learn,but very powerful.
I think you should try. [[User:CrazyMinecart88|CrazyMinecart88]] ([[User talk:CrazyMinecart88|talk]]) 19:09, 25 February 2018 (UTC)
== "fewer lines of code" in lead? ==
The lead says, "''and a syntax that allows programmers to express concepts in fewer lines of code''". Should that be removed? I have two problems. One, fewer than what (it says fewer than C or Java, but that's not saying much because they're small languages)? And two, it's not my experience anyway: compared to some languages (e.g. Perl, Matlab), I'd say Python is more verbose but also more readable. And it's not what I'd call a defining feature of python. [[User:Adpete|Adpete]] ([[User talk:Adpete|talk]]) 01:36, 14 March 2018 (UTC)
:OK, I'm removing it. [[User:Adpete|Adpete]] ([[User talk:Adpete|talk]]) 02:02, 21 March 2018 (UTC)
I disagree. It says (said) "express *concepts* in fewer lines of code. Trying to create a hash map of linked lists in C requires an enormous number of LOC (assuming one statement = one line). I ''would'' consider the syntax a defining characteristic of the language. The statement was well ref'd, so I'd like it back in. [[User:Peterl|peterl]] ([[User talk:Peterl|talk]]) 03:27, 21 March 2018 (UTC)
:Well I think you'd struggle to find a language which is less verbose than C for creating a linked list. But for the sentence to belong in the lead (let alone the first paragraph), Python should be less verbose than all, or nearly all, other languages. One ref says it is less verbose than C or Java (but I suspect that is also true for most other languages), and the other has a table showing 1/(lines of code): C 1, C++ 2.5, Fortran 2, Java 2.5, Visual Basic 4.5, Python Perl and Smalltalk all 6. So it's ahead of some pretty small languages, and equal with Perl and Smalltalk - nothing special. And it's from studies done in 1998-2000, so out of date. [[User:Adpete|Adpete]] ([[User talk:Adpete|talk]]) 06:05, 21 March 2018 (UTC)
== Python 2 & 3 ==
Should the second sentence of the lead in our very highest level introductory article on Python throw new readers immediately into the issue of Py2 vs Py3? See [https://en.wikipedia.org/w/index.php?title=Python_(programming_language)&diff=837035671&oldid=836970091] & [https://en.wikipedia.org/w/index.php?title=Python_(programming_language)&diff=837036635&oldid=837036269]. [[User:Andy Dingley|Andy Dingley]] ([[User talk:Andy Dingley|talk]]) 09:53, 18 April 2018 (UTC)
:No, thanks for removing it. I take the point about 2 and 3 being different languages, but that is a detail for elsewhere in the article. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 10:02, 18 April 2018 (UTC)
:: I think it's more than a "detail" and could use a substantial section. However it doesn't belong ''so early''. Python is growing rapidly at the moment. A lot of Python coders now (by head count, rather than LoC count) have simply never used 2. We could even try an article on the two (easily notable), but I think that would probably get stomped as [[WP:NOTMANUAL]]. [[User:Andy Dingley|Andy Dingley]] ([[User talk:Andy Dingley|talk]]) 10:09, 18 April 2018 (UTC)
== Adding a "Learning Methods" section ==
Hello. New wiki editor here so I apologize if this topic has been hashed out before(although I couldn't find it in the talk archives). Would it be a good idea to add a short section about commond, and free, ways that programmers learn Python? I am thinking Python's built in library [https://docs.python.org/3.7/library/turtle.html turtle], Google's [https://developers.google.com/edu/python/ free python course], etc. Since many people who land on this wiki will have at least a cursory interest in actually learning the basics of Python, it seems like a good place to encourage free and open source materials. [[User:Muhareer|Muhareer]] ([[User talk:Muhareer|talk]]) 15:32, 23 August 2018 (UTC)
* It would have to be compliant with [[WP:NOTHOWTO]]. [[User:ALTAF ANSARI04/sandbox]] certainly isn't.
: There's also the problem that it's now the start of term for Indian colleges and already we've seen a lot of trivial vandalism, and some well-intentioned but inappropriate changes. As a result, the article is likely to be locked from editing by new editors altogether.
: It is difficult to use WP articles for three things simultaneously, although colleges keep trying! The article ''should'' be here as an encyclopedia article. It's not Wikipedia's role to be a classroom exercise in how to write articles though, obvious though that is as a thing to do in colleges. So it's good to get students engaged with article writing, but it must never be at the cost of the encyclopedia quality of those articles. Students also want to write a whole new article from scratch, and that's hard, as so many topics have been started now and what they need is expansion and improvement, not initial creation. It's much harder to ''teach'' article writing, when it's work on an existing article than when it's all new. The third goal that colleges keep wanting to do is to write "how to" tutorial articles. These just don't belong ''here''. There are places they do belong, even within Wikimedia projects, but not on the encyclopedia. [[User:Andy Dingley|Andy Dingley]] ([[User talk:Andy Dingley|talk]]) 09:21, 24 August 2018 (UTC)
== Semi-protected edit request on 17 September 2018 ==
{{edit semi-protected|Python (programming language)|answered=yes}}
Delete "(see Wikipedia's "Python IDE" article), " since there is not such article (any more?) and the link target is the same as the "see also" a few lines above. [[Special:Contributions/2001:638:A0A:1192:1CFE:845C:B132:107F|2001:638:A0A:1192:1CFE:845C:B132:107F]] ([[User talk:2001:638:A0A:1192:1CFE:845C:B132:107F|talk]]) 10:59, 17 September 2018 (UTC)
:[[File:Yes check.svg|20px|link=|alt=]] '''Done'''<!-- Template:ESp --> <span style="text-shadow:#396 0.2em 0.2em 0.5em; class=texhtml">[[User:L293D|<b style="color:#060">L293D</b>]] ([[User talk:L293D#top|<b style="color:#000">☎</b>]] • [[Special:Contributions/L293D|<b style="color:#000">✎</b>]])</span> 11:45, 17 September 2018 (UTC)
== Reads like a fan page ==
I came to this page to read about Python, but first I had to sit through how awesome the creator is, how long he worked as a leader and innovator, see a picture of him drinking beer... <!-- Template:Unsigned IP --><small class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/73.221.162.176|73.221.162.176]] ([[User talk:73.221.162.176#top|talk]]) 15:05, 16 October 2018 (UTC)</small> <!--Autosigned by SineBot-->
:Agreed. I cut the "History" section substantially and substituted a different photo of van Rossum from [[Commons:Category:Guido van Rossum]]. Because there are separates article on the [[history of Python]] and [[Guido van Rossum]], I hope we won't get too many complaints about these changes.
:In the future, please feel free to make these kinds of changes yourself. The Wikimedia culture encourages us to [[Wikipedia:Be bold#Be careful|be bold but not reckless]], writing from a [[Wikipedia:Neutral point of view|neutral point of view]], [[Wikipedia:Citing sources|citing credible sources]].
:In particular, if you still think that this reads like a fan page, feel free to make other edits -- but don't be surprised or offended if others have have different ideas. There's a fine art to communicating more by saying less. [[User:DavidMCEddy|DavidMCEddy]] ([[User talk:DavidMCEddy|talk]]) 16:33, 16 October 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.)
[[User:Quizdog|Quizdog]] ([[User talk:Quizdog|talk]]) 03:32, 24 November 2018 (UTC)
:Well it's not global to the file. If the above is in a function, <code>name</code> cannot be accessed from another function. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 04:05, 24 November 2018 (UTC)
== 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? <!-- Template:Unsigned --><small class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:216.228.181.182|216.228.181.182]] ([[User talk:216.228.181.182#top|talk]] • [[Special:Contributions/216.228.181.182|contribs]]) 12:44, 12 August 2018 (UTC)</small>
: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. -- [[User:Beland|Beland]] ([[User talk:Beland|talk]]) 18:32, 30 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.-<span style="font-family:cursive; color:grey;">[[User talk:gadfium|gadfium]]</span> 22:29, 13 March 2019 (UTC)
:Completely agree. Certainly CPython needs to be first; is there an option in the infobox for "other implementations"?
:[[User:Peterl|peterl]] ([[User talk:Peterl|talk]]) 09:00, 14 March 2019 (UTC)
== Nomination of [[:Portal:Python (programming language)]] for deletion ==
<div class="floatleft" style="margin-bottom:0">[[File:Ambox warning orange.svg|48px|alt=|link=]]</div>A discussion is taking place as to whether '''[[:Portal:Python (programming language)]]''' is suitable for inclusion in Wikipedia according to [[Wikipedia:List of policies and guidelines|Wikipedia's policies and guidelines]] or whether it should be [[Wikipedia:Deletion policy|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.<!-- Template:afd-notice --> <span class="smallcaps" style="font-variant:small-caps;">[[User:Northamerica1000|North America]]<sup>[[User talk:Northamerica1000|<span style="font-size: x-small;">1000</span>]]</sup></span> 00:44, 26 March 2019 (UTC)
== PEP 8 ==
[[PEP8]] redirects here but is not explained in the article. -- [[User:Beland|Beland]] ([[User talk:Beland|talk]]) 15:48, 30 November 2018 (UTC)
:Good point. I added it in. [[User:Peterl|peterl]] ([[User talk:Peterl|talk]]) 04:51, 26 March 2019 (UTC)
== Languages that influenced Python ==
There is a section ''Languages influenced by Python''. There should also be a section describing what languages that influenced Python. It seems likely to me that some of the features that are listed as being influenced by Python were actually features of languages that existed prior to Python. [[User:Sam Tomato|Sam Tomato]] ([[User talk:Sam Tomato|talk]]) 17:03, 27 July 2019 (UTC)
|