Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #60626

Re: python for everyday tasks

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <negaipub@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'table.': 0.07; 'received:localnet': 0.09; 'references.': 0.09; 'translate': 0.10; 'python': 0.11; 'translation': 0.12; "wouldn't": 0.14; '"got': 0.16; 'article:': 0.16; 'involved?': 0.16; 'subject:tasks': 0.16; 'subject:python': 0.16; 'java,': 0.16; 'wrote:': 0.18; 'header :User-Agent:1': 0.23; 'case.': 0.24; 'java': 0.24; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'bunch': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'table,': 0.31; 'figure': 0.32; 'table': 0.34; "can't": 0.35; 'received:google.com': 0.35; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'url:2004': 0.39; 'url:12': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'first': 0.61; 'saturday': 0.68; 'either:': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:content-type; bh=Rbji70f9luB/WiMe/5IkB5ZNL1lyRq3dQJRMiwhLvVw=; b=L+Rzgo1xcwe3tnqdsNZz8a7GRI8cwTLYlNRJbvyFbYR+TSbTzMfcVBLC4hylnpY2hO AismGuIlg4jW9LdFPu5RSwnaqqcVU4eqhjEhVCMyvJKc5kcdOAYnpLUDVtdf70UIO4Y1 sw3IV7XjqAHlbofujDcX8nw6Pcx5s+AEQelsbOWJ19oKsoVc/wevM2ADKHRIZbPB6QXE o7DOwN3/Y019vb58dW/5VRjgikj7/xrXt7oAUj4SOd1QlxeUfcdZcW7z+K0KdUHmLvjV j0BlnqJ3Ju8hav3RJ78FVHtbfGXFkvKnFP1Y2v8kizi+fMLNKS5v6vaJktKtEeMhZ4R9 Rx7A==
X-Received by 10.204.123.199 with SMTP id q7mr32289974bkr.10.1385575538554; Wed, 27 Nov 2013 10:05:38 -0800 (PST)
From Pavel Volkov <negaipub@gmail.com>
To python-list@python.org
Subject Re: python for everyday tasks
Date Wed, 27 Nov 2013 22:05:35 +0400
User-Agent KMail/4.11.3 (Linux/3.12.0-gentoomelf; KDE/4.11.3; x86_64; ; )
In-Reply-To <52900c74$0$29993$c3e8da3$5496439d@news.astraweb.com>
References <5737051f-26d4-4771-b4a0-d41062f1a4ef@googlegroups.com> <52900c74$0$29993$c3e8da3$5496439d@news.astraweb.com>
MIME-Version 1.0
Content-Transfer-Encoding 7Bit
Content-Type text/plain; charset="us-ascii"
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3312.1385575541.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1385575541 news.xs4all.nl 15973 [2001:888:2000:d::a6]:57024
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60626

Show key headers only | View raw


On Saturday 23 November 2013 02:01:26 Steven D'Aprano wrote:
> * Python is not Java, and Java is not Python either:
> 
> http://dirtsimple.org/2004/12/python-is-not-java.html
> http://dirtsimple.org/2004/12/java-is-not-python-either.html

Thanks for all those references.
There's this statement in the first article:

"Got a switch statement? The Python translation is a hash table, not a bunch 
of if-then statments. Got a bunch of if-then's that wouldn't be a switch 
statement in Java because strings are involved? It's still a hash table. "

I can't figure out how would you translate a switch statement into hash table 
in general case.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

python for everyday tasks koch.mate@gmail.com - 2013-11-22 15:59 -0800
  Re: python for everyday tasks Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-23 02:01 +0000
    Re: python for everyday tasks wxjmfauth@gmail.com - 2013-11-25 02:12 -0800
      Re: python for everyday tasks Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-25 13:33 +0000
      Re: python for everyday tasks Michael Torrie <torriem@gmail.com> - 2013-11-25 08:11 -0700
        Re: python for everyday tasks wxjmfauth@gmail.com - 2013-11-25 08:17 -0800
      Re: python for everyday tasks Chris Angelico <rosuav@gmail.com> - 2013-11-26 02:38 +1100
      Re: python for everyday tasks Ben Finney <ben+python@benfinney.id.au> - 2013-11-26 10:35 +1100
      Re: python for everyday tasks Chris Angelico <rosuav@gmail.com> - 2013-11-26 11:09 +1100
    Re: python for everyday tasks Pavel Volkov <negaipub@gmail.com> - 2013-11-27 22:05 +0400
    Re: python for everyday tasks Michael Torrie <torriem@gmail.com> - 2013-11-27 11:15 -0700
    Re: python for everyday tasks Chris Angelico <rosuav@gmail.com> - 2013-11-28 10:11 +1100
  Re: python for everyday tasks Ned Batchelder <ned@nedbatchelder.com> - 2013-11-22 18:32 -0800
  Re: python for everyday tasks Dan Stromberg <drsalists@gmail.com> - 2013-11-22 22:28 -0800
  Re: python for everyday tasks Dan Stromberg <drsalists@gmail.com> - 2013-11-22 22:36 -0800
  Re: python for everyday tasks Chris Angelico <rosuav@gmail.com> - 2013-11-23 18:25 +1100
    Re: python for everyday tasks koch.mate@gmail.com - 2013-11-23 16:54 -0800

csiph-web