Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?) Date: Thu, 26 Nov 2015 19:15:21 -0500 Lines: 18 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 X-Trace: news.uni-berlin.de 6dnK/hsRkcMAkUttPewnFgd3n8LmYTQyemdMtaxEAQsQ== Cancel-Lock: sha1:hZwTgVqCOFQuqAnnjqHRq8nA5Mw= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'comparison.': 0.16; 'insensitive': 0.16; 'osx': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:?)': 0.16; 'unfair': 0.16; 'windows:': 0.16; 'worst': 0.16; 'windows': 0.20; 'examples': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'header:X-Complaints-To:1': 0.26; 'chris': 0.26; 'supported': 0.27; 'equivalent': 0.27; 'disk': 0.27; 'sure,': 0.29; "i'm": 0.30; 'received:comcast.net': 0.33; 'handle': 0.34; 'mapping': 0.35; 'unicode': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'received:org': 0.37; 'version': 0.38; 'means': 0.39; 'test': 0.39; 'does': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'within': 0.64; 'greek': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: c-68-39-93-111.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) 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:99607 Chris Angelico writes: > Windows: I'm not sure, and frankly, I don't trust it. A quick test > showed a couple of failures: > > It might be case insensitive only for ASCII. Windows uses a simple WCHAR->WCHAR (lower->upper) mapping for case comparison. it doesn't handle those cases, but it does handle all BMP characters that have a simple case equivalent within the BMP as of the unicode version that Microsoft supported when the disk was formatted. It's unfair to pick the two worst examples that you know offhand and declare that this means "only for ASCII". Pick any latin-1 (etc) diacritic, any letter of the greek and cyrillic alphabet, and it'll handle them just fine. OSX fails the same cases, incidentally.