Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: psss...I want to move from Perl to Python Date: Fri, 29 Jan 2016 18:19:38 +1100 Lines: 20 Message-ID: References: <56ab10f4$0$1606$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de r2b7y48T+bu2YUS8mpADjQPCZmSc7ZxgV1fLaCL3Ng/w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'warnings': 0.03; 'subject:Python': 0.05; 'assignment': 0.07; 'perl,': 0.07; 'cc:addr:python-list': 0.09; 'python': 0.10; 'jan': 0.11; 'syntax': 0.13; '2016': 0.16; 'dire': 0.16; 'discussion?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'references': 0.23; 'header:In-Reply-To:1': 0.24; 'discussion': 0.24; 'chris': 0.26; 'point.': 0.27; 'equivalent': 0.27; 'fri,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'perl': 0.29; 'objects': 0.29; 'too.': 0.30; 'work.': 0.30; "i'd": 0.31; 'probably': 0.31; "d'aprano": 0.33; 'steven': 0.33; 'running': 0.34; 'received:google.com': 0.35; 'attempt': 0.35; 'subject:': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'names': 0.38; 'wrong': 0.38; 'subject:from': 0.39; 'enough': 0.39; 'your': 0.60; "you'll": 0.61; 'to,': 0.63; 'between': 0.65; 'differences': 0.66; 'biggest': 0.67; 'chrisa': 0.84; 'to:none': 0.91; 'subject:want': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=Pg2auF5hxunsY2kT+sTRAIC9T9spK9ciwOgO9q5+PrA=; b=l+y5cnVCqWLCTqql55+O2COlsm6UBpTuHl0HHBo8WJpbAVdh7W+VeR+FzjYSHnxVlm x2PQYyen3TVBJC8HTrLuOoYl+nogAt57V6sDyXaWW7a0j3+ngpsWmmk9ULpc3boGTvpu t8bcMUYRgkFDxemqxbh0OzmveoukvZjTKgu4a/XRAm2qjSczRP6kyU2cbT9yJLlCs7S+ khlojWiF9N2XVby58yMmmS26BClge7fOqaYA2dvrqoQabr/IlNJ8OF7w5/9i7lRWhgqg bYK4a6mmuEFHe7Sb2SQNw1aDxJjBIMBGjstdCSjhwlHvg5ZhwWNznrd4HVfzraG1ZgoG QeKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=Pg2auF5hxunsY2kT+sTRAIC9T9spK9ciwOgO9q5+PrA=; b=HB+XWWnfAWyyY/+B+cCMu318ihQMcmRNfZlLRQwIaeViIU96XIuVIIKIjqyszyFnvg Xd2AQ+yQeqHCgjebwbeujzZp2iQKnJ0Qju1VDw3nJ/ncC21mgm8IHEP06bd05TEJ+1NG Nb0p7ci1ASw8ZY05/LRupvQpTGq+x0nNstY5L6Xb2UNZ7Cs/ij8gLmADMQ1q7ncHUY87 Wlq4sFeVVLg3JXvQEvh9YmZuO2obkoZMbl6W6A2mYLz5G6qfS2vW+D8miYIdr1cEAPRu Cfz9jSLwF52XTtXF5uUWiTp9tu0UXxRqvlWvldk1LST3xSjb7FGpOfNDeaaBmr0QcweO oKqw== X-Gm-Message-State: AG10YOROJ2CfYdodpLYc0ZwKxhWyHD3OU7lEWoBxgoXBl/qI5d8FUHE+OnaPWhc2tKNaoXiktzeW37hshy60NA== X-Received: by 10.107.40.76 with SMTP id o73mr7861846ioo.157.1454051978652; Thu, 28 Jan 2016 23:19:38 -0800 (PST) In-Reply-To: <56ab10f4$0$1606$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102215 On Fri, Jan 29, 2016 at 6:12 PM, Steven D'Aprano wrote: > On Fri, 29 Jan 2016 11:25 am, Chris Angelico wrote: > >> Probably the biggest thing to take note of is the Python object model >> - how names and objects and assignment work. It's pretty >> straight-forward, but if it's not what you're used to, you'll need to >> get your head around it. Here's a good talk on the subject: >> >> http://nedbatchelder.com/text/names1.html > > > Every time I make a half-hearted attempt to learn enough Perl syntax to get > started, I keep running into the differences between $foo, %foo and @foo > and dire warnings about what happens if you use the wrong sigil, and then I > get confused. Is there a good discussion of how names and references work > in Perl, equivalent to Ned's discussion? Ooh. Good point. I'd like to see one of those too. ChrisA