![]() | This is an archive of past discussions about Python (programming language). Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | ← | Archive 5 | Archive 6 | Archive 7 | Archive 8 | Archive 9 | Archive 10 |
How, exactly, is the tagged statement ("various parts of the language have formal specifications and standards") likely to be challenged, or even vaguely controversial? There is no great big list of specifications adhered to by the stdlib to reference, so either an example would have to be given plus its citation, cluttering up the lede, or the statement would have to be removed, which would be a loss because it does contribute information, and make the point about CPython's de facto-ness. I'm tempted to remove the template right now, because who in their right mind would challenge that statement?, but I'd like to see what the justification is. 79.78.106.225 (talk) 16:10, 7 October 2008 (UTC)
Somebody add one example please. Wipe (talk) 14:49, 12 October 2008 (UTC)
Hello World is simple:
print "Hello World"
But does it add something to this page? I don't see it. If yes I would suggest adding one or two examples at the end of chapter 4, before chapter "Implementations". It would be better to give the link to a long overview —Preceding unsigned comment added by KumpelBert (talk • contribs) 21:45, 14 October 2008 (UTC)
This really doesn't belong in the "Implementations" section. Not sure if the new-ish user who reverted it there is the same as the IP who added it a couple days ago. In any case, Cython (and Pyrex) are different languages than Python and are not implementations. It's true that there is an intersection between the valid Cython programs and the valid Python programs, but there is a considerable disjunction on both sides too.
Probably equally important is that Cython is still a quite experimental language, not something in widespread use. We've seen lots of real Python implementations come and go over the years (Vyper, Prothon, etc). Some new effort, however well meaning and useful it might be, should find a notable audience and user base before being listed here. In truth, I think that Stackless is slightly borderline for where it is mentioned, but it was at least for a while pretty widely used, so inclusion is plausible. LotLE×talk 00:33, 13 October 2008 (UTC)
Is it "van Rossum" or "Van Rossum"? His personal page says: van Rossum 0x6adb015 (talk) 12:06, 10 October 2008 (UTC)
Guido comes from Holland, in Holland is the middle name always written in lowercase. So his name should be written as "van Rossum" (KumpelBert (talk) 20:32, 14 October 2008 (UTC))
Guido's web page has the correct capitalization rules. It's Guido van Rossum, but when the first name is not present it's Van Rossum. You can look it up in a style guide if you don't believe me (or Guido). --64.238.49.65 (talk) 15:01, 20 October 2008 (UTC) (rodney drenth)
Hi, I was wondering why there are no code examples in the article except for the syntax highlighting picture which doesnt really convey anything usefull about python as a language. Other programming articles such as C, C++ and Perl among others have large amount of code examples, most notably the perl article has a vast amount of examples. Is wikipedia against code examples on programming articles? I would be more then happy to post examples if someone can assure me that examples are allowed but more importantly that they are needed (I think they are) Thanks. -- I just read through the article and saw the "Statements and control flow" section, i think code examples for each of these statements would be usefull, do you agree? Also should the heading not be "Statements and 'flow control'" (pips just for emphasis) Thanks Tehpron (talk) 11:17, 21 October 2008 (UTC)
There seem to be several pictures "removed" without explanation. Anybody has a clue? yamaplos 17:00, 31 October 2008 (UTC) —Preceding unsigned comment added by Yamaplos (talk • contribs)
People keep deleting my entries on this subject. If you don't like things the way I put them, would you please edit them to be more appropriate?
I believe Pippy does belong with this article. What other grown-up programming language is massively (500.000+ and counting) distributed to school-kids worldwide? so, how would you phrase it if you don't like mine? Where else would you put it? Sure, I guess it can also have its own page, but even if it doesn't, Pippy has to be mentioned in Wikipedia, and the Python page is the obvious place that quantum of data belongs with.
yamaplos 17:05, 4 November 2008 (UTC) —Preceding unsigned comment added by Yamaplos (talk • contribs)
I've reverted the removal of an external link. (I didn't add the link, just tweaked the test, as did another editor after me.) The link is to a tutorial at python.org. There is already links to the main python.org page; also to the documentation at python.org. It doesn't seem too much for a link to the official tutorial. peterl (talk) 21:06, 20 November 2008 (UTC) Yes, I see the NoMoreLinks tag, but the wording there is 'consider carefully
this word is miss used several times, it takes to a lower level, this discipline of knowledge it some much more that "a way we think". I ask kindly if someone could use a another word. Philosophy its not a word to use so vaguely. --190.161.73.209 (talk) 21:21, 24 November 2008 (UTC)
It seems that the colored syntax box PNG-equivalent is wrongly rendered; the PNG is missing some variable that shows OK when looking at the SVG. Anybody knows how to fix that? 0x6adb015 (talk) 14:24, 3 February 2009 (UTC)
This article has been reviewed as part of Wikipedia:WikiProject Good articles/Project quality task force. I believe the article currently meets the criteria and should remain listed as a Good article. The article history has been updated to reflect this review. This is certainly one of the better programming language GAs, but I do have a few minor observations:
A nice piece of work nevertheless. --Malleus Fatuorum 15:21, 3 March 2009 (UTC)
Is it really needed? What ABC was inspired by seems tangential at best, let alone giving that much space to a quote from Guido about it. I'll remove it, and probably just put in a note that ABC was inspired by SETL in the history section, unless someone thinks it adds significant value. 79.78.72.145 (talk) 16:48, 3 March 2009 (UTC)
Python's official name is "Python programming language", as seen on the website (http://www.python.org/) and in the PSF Trademark Usage Policy (http://www.python.org/psf/trademarks/). To quote the latter:
Always use any trademark as an adjective only, followed by a generic noun. For instance, it is correct to refer to the Python programming language (adjective) but not simply to Python (noun). Don't use the trademark as a verb ("Python your software today!").
Despite the fact that hardly anybody uses the long name, I think that the title of this page should be "Python programming language", not "Python (programming language)" --En-Cu-Kou (talk) 23:44, 17 March 2009 (UTC)
there should be some mention of support for closures in the article, no? —Preceding unsigned comment added by 24.130.24.6 (talk) 05:46, 29 March 2009 (UTC)
"However, many problems are not speed critical, and as computer hardware continues to become exponentially faster (Moore's Law), languages do have more hardware resources available."
We've hit the Von Neumann bottleneck. Processors have continued getting faster, but at a decling rate. Website traffic volumes continue to increase. —Preceding unsigned comment added by 208.240.243.170 (talk) 22:59, 29 April 2009 (UTC)
"Despite being dynamically typed, Python is strongly typed, forbidding nonsense operations (for example, adding a number to a string) rather than silently attempting to make sense of them."
Sounds a bit critical of loosely typed languages (not that I'm a fan :)
Revise?
While being dynamically typed, Python is also strongly typed which forbids operations between unrelated types (for example, adding a number to a string) rather than assuming the programmer intends for one the types to be converted. —Preceding unsigned comment added by Dawnofdigital (talk • contribs) 03:07, 1 May 2009 (UTC)
The point wasn't that it was awesome python code, rather that it mocks a code example from Ruby's website with their silly perl-esq sigils and magical behavior.
# Python knows what you mean, even if you want to do math on an entire set
cities = set(("""London
Oslo
Paris
Amsterdam
Berlin""".split() ))
visited = set(("Berlin", "Oslo"))
print ( "I still need to visit the following cities: "
+ ", ".join(cities - visited) )
# Ruby knows what you
# mean, even if you
# want to do math on
# an entire Array
cities = %w[ London
Oslo
Paris
Amsterdam
Berlin ]
visited = %w[Berlin Oslo]
puts "I still need " +
"to visit the " +
"following cities:",
cities - visited
Granted the python example would look nicer with the set literal syntax a la 3.0.
I also subclassed list and overloaded the subtract operator to duplicate this behavior, just to prove that python > *. —Preceding unsigned comment added by 75.69.35.85 (talk) 11:46, 6 May 2009 (UTC)
Python's core is not so minimalistic. Try Forth, Lua, or Io to get a feel what should be considered as a minimalism in syntax and/or semantics. —Preceding unsigned comment added by 4th-otaku (talk • contribs) 18:30, 18 May 2009 (UTC)
I've got ActivePython on my PC, and I'm trying to work out where it sits as an implementation. Nothing here, nothing at the ActivePython page, nothing particular at the ActiveState website. Is it just a re-compile of CPython? —Preceding unsigned comment added by 203.206.162.148 (talk) 05:30, 25 May 2009 (UTC)
This is what the intro says: {cquote|[Python] features a fully dynamic type system and automatic memory management, similar to Perl, Ruby, Scheme, and Tcl.} Memory management in that part of the article links to real memory management (the kind the OS' do). Shouldn't that read: "garbage collection"? If not, why? Also what kind of "memory management" does Scheme posess, seeing as it is a (traditional) functional programming language, and thus supports no types. Will be watching the page. Thanks in advance. --Paxcoder (talk) 22:14, 27 June 2009 (UTC)
Would it be possible for someone who knows a little more about such things to provide some sort of commentary about the changes between the 2.x and 3.x versions of Python? I came over here hoping for a neat summary of the kind Wikipedia is good at, and was unable to find one. me_and (talk) 20:54, 28 June 2009 (UTC)
" Knoppix inventor Klaus Knopper handed over the Best Open Source Programming Language prize, this year hotly disputed among the jury. The distinction went to Python. "The thing can do anything," Knopper expressed. Martin von Löwis of the Python Foundation accepted the award for the Python community. " -> http://www.linux-magazine.com/online/news/cebit_2009_openstreetmap_wins_two_linux_new_media_awards —Preceding unsigned comment added by 88.157.200.123 (talk) 22:23, 28 June 2009 (UTC)
I think it does not deserve a mention in the 'Standard library' section, specifically because it's not in the stdlib. Natively, Python provides an interface to C++; Boost only provides some glue to make it easier. Mentioning Boost in this section is analogous to mentioning, say, SQLObject as well, because it provides glue to make database manipulation easier, on top of the sqlite (in the stdlib). Reading the section again closely, the part about extension modules should be rewritten to put the emphasis on what mechanisms are provided in vanilla CPython, rather than fiddling with specific examples and shoutouts. —Preceding unsigned comment added by 79.78.91.76 (talk) 14:48, 18 July 2009 (UTC)
Should something be mentioned about the easter egg in Python 3.0, i.e running the code "import antigravity" opening http://xkcd.com/353/?Because it sure mentions it on xkcd--Strigoides (talk) 09:47, 24 July 2009 (UTC)
The 'influenced' entry in the box mentions some little-known languages such as Falcon and BeanShell. Seems like the influence is marginal (particularly for BeanShell). What's the criteria for the 'influenced' section? Shall I remove those two from the influenced list? peterl (talk) 21:29, 4 August 2009 (UTC)
TODO: I think this article would benefit from having a list of examples showing the python syntax. —Preceding unsigned comment added by 8.7.228.252 (talk) 04:05, 5 November 2009 (UTC)
How could Java have influenced Python, since it wasn't released until 1995? Peter Ballard (talk) 12:00, 23 November 2009 (UTC)
Python has changed throughout its life, not just at its inception. --Paddy (talk) 18:08, 23 November 2009 (UTC)
logging
module, which is very much a clone of the equivalent Java library. --Cybercobra (talk) 18:37, 23 November 2009 (UTC)
The following section was removed from the article Boolean data type:
begin removed text
The Python programming language allows all objects to be tested for their truth value. The following values are considered false:
__bool__
[1] and __len__
.In all other cases, objects are considered true.
An explicit bool
type was added to the language in version 2.3, consisting of the values True
and False
, which can be used in arithmetic expressions as 1 and 0.[2]
Boolean operators and Boolean built-in types always return one of the Boolean values True and False except for the operators "or
" and "and
" which return one of their operands (from left to right, the first operand that determines the Boolean value of the expression).[3]
>>> class spam: pass # spam is assigned a class object.
...
>>> eggs = "eggs" # eggs is assigned a string object.
>>> spam == eggs # (Note double equals sign for equality testing).
False
>>> spam != eggs # != and == always return bool values.
True
>>> spam and eggs # and returns an operand.
'eggs'
>>> spam or eggs # or also returns an operand.
<class __main__.spam at 0x01292660>
>>>
end removed text
Is there a place for this text in the Python-related articles? Perhaps in the Wikibook? Thanks, and all the best, --Jorge Stolfi (talk) 23:59, 30 December 2009 (UTC)
You should add an "hello world" program... —Preceding unsigned comment added by 89.139.110.116 (talk) 00:46, 6 March 2010 (UTC)
import __hello__
{{cite web}}
: External link in |title=
(help)