Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?) Date: Fri, 27 Nov 2015 00:15:10 +1100 Lines: 31 Message-ID: References: <87d1v5emhl.fsf@elektro.pacujo.net> <564e6a62$0$1620$c3e8da3$5496439d@news.astraweb.com> <565592e9$0$1615$c3e8da3$5496439d@news.astraweb.com> <87k2p54tdr.fsf@elektro.pacujo.net> <565652e1$0$1619$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de m3MVtKpnhMvGNlPZJK7sTA9bUqPtx2ejyOolm4uzBaEQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'binary': 0.05; 'cc:addr :python-list': 0.09; '(ie.': 0.09; 'python': 0.10; 'language,': 0.11; 'interpreter': 0.15; 'subject: \n ': 0.15; 'thu,': 0.15; '(also': 0.16; 'binary,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'fwiw': 0.16; 'literals.': 0.16; 'lower-case': 0.16; 'octal': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sharp': 0.16; 'simpler,': 0.16; 'subject:?)': 0.16; 'typo': 0.16; 'workings': 0.16; 'wrote:': 0.16; 'byte': 0.18; 'instance,': 0.18; 'language': 0.19; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'purposes': 0.20; 'assuming': 0.22; "python's": 0.23; 'second': 0.24; 'header :In-Reply-To:1': 0.24; 'compare': 0.27; 'message- id:@mail.gmail.com': 0.27; '(although': 0.29; 'document,': 0.29; 'character': 0.29; 'allows': 0.30; 'rules': 0.31; 'german': 0.32; 'useful': 0.33; 'languages': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'so,': 0.35; 'could': 0.35; 'attempt': 0.35; 'nov': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'smaller': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'mean': 0.38; 'means': 0.39; 'subject:-': 0.39; 'called': 0.40; 'your': 0.60; 'more': 0.63; 'different': 0.63; 'complete': 0.63; 'between': 0.65; 'here': 0.66; '26,': 0.72; 'capital': 0.72; '"ss",': 0.84; 'chrisa': 0.84; 'latin': 0.84; 'syntax?': 0.84; 'turkish': 0.84; 'world?': 0.84; 'to:none': 0.91 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=E+TM6QcRrUzD/BXVoTQrkIxA+JyEzBdmxEldpcMdZ5Q=; b=LvnCyYmkSUqN3MTbSIStlsnC8eS3tXwewO6tolATalKCVlU+3DffZ9Sk9K+QEQgFDx dtPQk97aSdi0lK8ykH1qfOWbz3l2MYNIyw7Twg+FidlNJW/osxZVKEYrOGDSPCCpiFbB bi0ygOgC19VRuiJ3XP3gcH9nTLn7jAOLsggqZcVL6PqiaFjqPrD3tpfRNcLMKIxATMQF hx9eitlMtj2A8aD4Ujn8UnhSJc2zxuild39lzOsIKg9qxTS48qscb860lP+i2RqYjw7I A8gScnYXFwllDvIr+1FmeMiGzOuRfEr0TksNQ4tO05yZCTYq4HMZlvpEC8/VbPS/VqDW vECw== X-Received: by 10.50.225.38 with SMTP id rh6mr2883274igc.13.1448543710337; Thu, 26 Nov 2015 05:15:10 -0800 (PST) In-Reply-To: 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:99577 On Thu, Nov 26, 2015 at 11:53 PM, BartC wrote: > FWIW here is that list of features that are different between Python and my > language, or that work a different way, or that I think could be a useful > addition. (Although Python's internal workings make many impractical.) > > http://pastebin.com/JrVTher6 > > This is not an attempt to compare the complete languages as they are for > different purposes (mine is more low-level, simpler, smaller and designed to > make it easier to create an efficient byte-code interpreter for it). "I think Python now has hex, octal and binary literals. X allows any base from 2 to 16: 2x10101 is binary, while 4x101 is quaternary (ie. 20)." Do you mean that 4x101 means 1*(4*4) + 0*(4) + 1? If so, it would be 17, not 20. Is this a typo in the document, or am I misunderstanding your syntax? #14 and #15: Are you assuming that a character is a byte and that diacritical-free English is the only language in the world? Case insensitivity is a *pain* when you try to be language-agnostic; for instance, the case-folding rules of English state that U+0069 LATIN SMALL LETTER I and U+0049 LATIN CAPITAL LETTER I are identical, but Turkish would upper-case the first to U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE and lower-case the second to U+0131 LATIN SMALL LETTER DOTLESS I. German has U+00DF LATIN SMALL LETTER SHARP S (also called eszett), which traditionally upper-cases to "SS", which lower-cases to "ss". ChrisA