Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81538
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.098 |
| X-Spam-Evidence | '*H*': 0.82; '*S*': 0.01; 'remaining': 0.07; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pairs': 0.16; "where's": 0.16; 'wrote:': 0.18; 'wed,': 0.18; '(the': 0.22; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'interpret': 0.24; 'cc:2**0': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'respective': 0.29; 'tim': 0.29; 'message-id:@mail.gmail.com': 0.30; 'languages': 0.32; 'run': 0.32; 'received:google.com': 0.35; 'marks': 0.36; 'should': 0.36; 'two': 0.37; 'nov': 0.38; 'pm,': 0.38; 'quote': 0.39; 'most': 0.60; 'simply': 0.61; 'happen': 0.63; 'effectively': 0.66; '26,': 0.68; 'to:none': 0.92; 'imagine': 0.93; 'quotation': 0.93; 'wait,': 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=IN2+L7fK5moox7KizzErodl3+e0m9hiOxwjv/4LHSWs=; b=QVUS14yXm5Oyq1nRv7DCSGdV+zjjwZQqq4ztW8DleE8WBXarDO06LSn2i8noYJuNDQ 2rO2NvjWLFrh4OTGmGpqiul2G5/ilfmqW9Ai0ihmRgHmc7CFDpNJjbLSAOxB/vIQ2d7D PjDAnU3VGWCMMabUVZFWGBZKNFlkiUK48Ns4rnhPxNeP1aoSUxjO3ZYh23uz/VaSW9Mj IXX0aqOVf+u5yFFtJhURQr7MhgKpm1ccdaoEftciCGJEgsNdKd074A88ZLI2roN4fdon a6NKoPX2TYNHqbAgtWkgZs6yKIIUchamdusuGrwQYVtbq2MtzFnE0u+wev0KOJZ+Gwv4 0gBA== |
| MIME-Version | 1.0 |
| X-Received | by 10.42.64.143 with SMTP id g15mr24433831ici.59.1416965556204; Tue, 25 Nov 2014 17:32:36 -0800 (PST) |
| In-Reply-To | <54752A7C.2060800@tundraware.com> |
| References | <grifkb-kpo1.ln1@ozzie.tundraware.com> <mailman.16297.1416962599.18130.python-list@python.org> <54752A7C.2060800@tundraware.com> |
| Date | Wed, 26 Nov 2014 12:32:36 +1100 |
| Subject | Re: Quotation Ugliness |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| 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.16302.1416965564.18130.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1416965564 news.xs4all.nl 2914 [2001:888:2000:d::a6]:60729 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:81538 |
Show key headers only | View raw
On Wed, Nov 26, 2014 at 12:18 PM, Tim Daneliuk <tundra@tundraware.com> wrote:
>> And what should happen with mismatched quotes?
>>
>> do("th/*is", "and", "th*/at")
>
>
> Match pairs as usual, and let the remaining unterminated quote run on.
Wait, what? Where's an unterminated quote? I can imagine two ways of
reading this: one the way most programming languages would interpret
it (the /* and */ are both simply part of their respective strings,
and have no significance), and the "anything nests in anything" way,
in which the quotation marks inside /* */ are effectively inverted;
neither of those leaves an unterminated quote.
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-25 18:18 -0600
Re: Quotation Ugliness Tim Chase <python.list@tim.thechases.com> - 2014-11-25 18:40 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-25 19:18 -0600
Re: Quotation Ugliness Chris Angelico <rosuav@gmail.com> - 2014-11-26 12:32 +1100
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 00:00 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 00:00 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-25 19:18 -0600
Re: Quotation Ugliness Chris Angelico <rosuav@gmail.com> - 2014-11-26 11:44 +1100
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-25 19:20 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-25 19:20 -0600
Re: Quotation Ugliness Tim Chase <python.list@tim.thechases.com> - 2014-11-25 19:44 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 00:01 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 00:01 -0600
Re: Quotation Ugliness Ben Finney <ben+python@benfinney.id.au> - 2014-11-26 12:54 +1100
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 00:04 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 00:04 -0600
Using a password with ‘sudo’ (was: Quotation Ugliness) Ben Finney <ben+python@benfinney.id.au> - 2014-11-26 18:02 +1100
Re: Quotation Ugliness Chris Angelico <rosuav@gmail.com> - 2014-11-26 18:10 +1100
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 08:59 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 08:59 -0600
Re: Quotation Ugliness Tim Chase <python.list@tim.thechases.com> - 2014-11-26 06:56 -0600
Re: Quotation Ugliness Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2014-11-26 15:45 +0200
Re: Quotation Ugliness Chris Angelico <rosuav@gmail.com> - 2014-11-27 01:37 +1100
Re: Quotation Ugliness Tim Chase <python.list@tim.thechases.com> - 2014-11-26 08:26 -0600
Re: Quotation Ugliness Chris Angelico <rosuav@gmail.com> - 2014-11-27 02:07 +1100
Re: Quotation Ugliness Chris Angelico <rosuav@gmail.com> - 2014-11-27 02:09 +1100
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 09:36 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 09:36 -0600
Re: Quotation Ugliness Chris Angelico <rosuav@gmail.com> - 2014-11-27 02:48 +1100
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 09:55 -0600
Re: Quotation Ugliness random832@fastmail.us - 2014-11-26 11:00 -0500
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 10:02 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 10:02 -0600
Re: Quotation Ugliness Chris Angelico <rosuav@gmail.com> - 2014-11-27 03:13 +1100
Re: Quotation Ugliness random832@fastmail.us - 2014-11-26 11:16 -0500
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 10:54 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 10:54 -0600
Re: Quotation Ugliness alister <alister.nospam.ware@ntlworld.com> - 2014-11-26 16:45 +0000
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 10:54 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 09:55 -0600
Re: Quotation Ugliness random832@fastmail.us - 2014-11-26 10:53 -0500
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 08:58 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 08:58 -0600
Re: Quotation Ugliness Chris Angelico <rosuav@gmail.com> - 2014-11-27 02:06 +1100
Re: Quotation Ugliness Tim Chase <python.list@tim.thechases.com> - 2014-11-26 09:23 -0600
Re: Quotation Ugliness Ben Finney <ben+python@benfinney.id.au> - 2014-11-27 07:24 +1100
Re: Quotation Ugliness random832@fastmail.us - 2014-11-26 09:12 -0500
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 09:02 -0600
Re: Quotation Ugliness Tim Daneliuk <tundra@tundraware.com> - 2014-11-26 09:02 -0600
Re: Quotation Ugliness random832@fastmail.us - 2014-11-26 10:16 -0500
csiph-web