Talk:Python (programming language)/Archive 6: Difference between revisions

Content deleted Content added
MiszaBot I (talk | contribs)
m Archiving 2 thread(s) from Talk:Python (programming language).
MiszaBot I (talk | contribs)
m Archiving 2 thread(s) from Talk:Python (programming language).
Line 277:
 
But seriously, if nobody disagrees within a couple days or so, I guess I'll remove Slackware from that list.--[[User:I80and|I80and]] ([[User talk:I80and|talk]]) 13:34, 24 July 2008 (UTC)
== Logo ==
 
Is that snake logo official? According to the creator of Python, the programming language Python does not relate to the snake, but to the Monty python flying circus. The logo should therefore be a big fot IMO.
--[[User:Malin Tokyo|Malin Randstrom]] ([[User talk:Malin Tokyo|talk]]) 07:32, 19 September 2008 (UTC)
:: The logo is however a snake. First one was a little green snake, the recent one is the one you can see in the article. Just go to the official Python site, you’ll see it. [[fr:User:Leafcat|fr:Leafcat]] 13:49, 1 October 2008 (UTC) <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/90.21.71.43|90.21.71.43]] ([[User talk:90.21.71.43|talk]]) </span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->
 
== Code samples ==
 
I came across a good non-trivial code sample on the German Wikipedia, an implementation of [[quicksort]]. See [[:de:Python_(Programmiersprache)]].
<source lang="python">
def quicksort(liste):
if len(liste) <= 1:
return liste
pivotelement = liste[0]
links = [element for element in liste[1:] if element < pivotelement]
rechts = [element for element in liste[1:] if element >= pivotelement]
return quicksort(links) + [pivotelement] + quicksort(rechts)
</source>
 
Perhaps I'm not looking hard enough, but I don't see an obvious place to put it. I'm also not entirely sure what I need to do GFDL-wise to import the code sample here. [[User:Karl Dickman|Karl&nbsp;Dickman]]&nbsp;[[User talk:Karl Dickman|<sup>talk</sup>]] 21:02, 25 September 2008 (UTC)
 
: [[Python syntax and semantics]]? I'm pretty proud that this article ''doesn't'' have much in the way of code, to be honest. [[user:thumperward|Chris Cunningham (not at work)]] - [[user talk:thumperward|talk]] 21:03, 25 September 2008 (UTC)