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


Groups > comp.lang.python > #25863

Re: the meaning of rユ.......ï¾

From Henrik Faber <hfaber@invalid.net>
Newsgroups comp.lang.python
Subject Re: the meaning of rユ.......ï¾
Date 2012-07-23 15:24 +0200
Organization Aioe.org NNTP Server
Message-ID <jujja3$dfn$1@speranza.aioe.org> (permalink)
References <CAEMsKDun53k2Kyk9TFT1kBxFB2zgp7rhA3W0LLPuS74+nbwiPA@mail.gmail.com> <mailman.2455.1343030385.4697.python-list@python.org> <500d0632$0$1504$c3e8da3$76491128@news.astraweb.com> <roy-D44797.08552123072012@news.panix.com>

Show all headers | View raw


On 23.07.2012 14:55, Roy Smith wrote:
> In article <500d0632$0$1504$c3e8da3$76491128@news.astraweb.com>,
>  Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote:
> 
>> Technically, no, it's a SyntaxError, because the Original Poster has used 
>> some sort of "Smart Quotes" characters r’‘ instead of good old fashioned 
>> typewriter-style quotes r'' or r"".
>>
>> If you're going to ask programming questions using an email client that 
>> changes what you type, including smart quotes, special hyphens or other 
>> characters, you're going to have a bad time.
> 
> Some day, we're going to have programming languages that take advantage 
> of the full unicode character set.  Right now, we're working in ASCII 
> and creating silly digrams/trigrams like r'' for raw strings (and triple-quotes for multi-line 
> strings).  Not to mention <=, >=, ==, !=.  And in languages other than 
> python, things like ->, => (arrows for structure membership), and so on.

I disagree. Firstly, Python could already support the different types of
strings even with the ASCII character set. For example, the choice could
have made to treat the apostophe string 'foo' differently from the
double quote string "foo". Then, the backtick could have been used `foo`.

Bash for example uses all three and all three have very different
meanings. Python is different: explicit is better than implicit, and I'd
rather have the "r" the signifies what weird magic is going on instead
of having some weird language rules. It would not be different with some
UTF-8 "rawstring" magic backticks.

Secondly, there's a reason that >=, <= and friends are in use. Every
keyboard has a > key and every keyboard has a = key. I don't know any
that would have >=, <= or != as UTF-8. It is useful to use only a
limited set of characters.

And if I think of PHP's latest fiasco that happened with unicode
characters, it makes me shudder to think you'd want that stuff in
Python. If I remember correctly, it was the Turkish locale that they
stuggled with: Turkey apparently does not have a capital "I", so some
weird PHP magic code broke with the Turkish locale in effect. Having to
keep crap like that in mind is just plain horrible. I'm very happy with
the way Python does it.

Best regards,
Henrik

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


Thread

Re: the meaning of r’.......‘ Chris Angelico <rosuav@gmail.com> - 2012-07-23 17:59 +1000
  Re: the meaning of r’.......‘ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-23 08:07 +0000
    Re: the meaning of rユ.......ï¾ Roy Smith <roy@panix.com> - 2012-07-23 08:55 -0400
      Re: the meaning of rユ.......�¾ Chris Angelico <rosuav@gmail.com> - 2012-07-23 23:06 +1000
        Re: the meaning of r¹.......?3Ž4 Roy Smith <roy@panix.com> - 2012-07-23 09:22 -0400
        Re: the meaning of rユ.......�¾ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-23 15:59 +0000
          Re: the meaning of rユ.......�¾ Chris Angelico <rosuav@gmail.com> - 2012-07-24 02:10 +1000
          Re: the meaning of r?.......?¾ Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-07-23 16:46 -0400
          Re: the meaning of r`.......` Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-07-24 10:45 +0200
      Re: the meaning of rユ.......ï¾ Alex Strickland <sscc@mweb.co.za> - 2012-07-23 15:10 +0200
      Re: the meaning of rユ.......�¾ Dave Angel <d@davea.name> - 2012-07-23 09:22 -0400
        Re: the meaning of rユ.......�¾ Larry Hudson <orgnut@yahoo.com> - 2012-07-24 00:01 -0700
      Re: the meaning of rユ.......ï¾ Henrik Faber <hfaber@invalid.net> - 2012-07-23 15:24 +0200
        Re: the meaning of rユ.......ï¾ Chris Angelico <rosuav@gmail.com> - 2012-07-23 23:35 +1000
          Re: the meaning of rユ.......ï¾ Henrik Faber <hfaber@invalid.net> - 2012-07-23 15:52 +0200
            Re: the meaning of rユ.......ï¾ Henrik Faber <hfaber@invalid.net> - 2012-07-23 15:55 +0200
              Re: the meaning of rユ.......ï¾ Henrik Faber <hfaber@invalid.net> - 2012-07-23 15:59 +0200
                Re: the meaning of rユ.......ï¾ Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2012-07-23 16:08 +0200
                Re: the meaning of rユ.......ï¾ Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-23 15:43 +0100
                Re: the meaning of rユ.......ï¾ Henrik Faber <hfaber@invalid.net> - 2012-07-23 16:43 +0200
                Re: the meaning of rユ.......ï¾ Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-23 16:29 +0100
                Re: the meaning of rユ.......ï¾ John Gordon <gordon@panix.com> - 2012-07-23 15:56 +0000
                Re: the meaning of rユ.......ï¾ Chris Angelico <rosuav@gmail.com> - 2012-07-24 02:09 +1000
                Re: the meaning of rユ.......ï¾ Ben Finney <ben+python@benfinney.id.au> - 2012-07-25 00:35 +1000
                Re: the meaning of rユ.......ï¾ Chris Angelico <rosuav@gmail.com> - 2012-07-25 00:50 +1000
                Re: the meaning of rユ.......ï¾ Maarten <maarten.sneep@knmi.nl> - 2012-07-24 07:44 -0700
                Re: the meaning of rユ.......ï¾ Ben Finney <ben+python@benfinney.id.au> - 2012-07-25 13:07 +1000
                Re: the meaning of rユ.......ï¾ Chris Angelico <rosuav@gmail.com> - 2012-07-25 14:11 +1000
                Re: the meaning of rユ.......ï¾ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-25 06:07 +0000
                Re: the meaning of rユ.......ï¾ Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-25 07:37 +0100
                Re: the meaning of rユ.......ï¾ Ben Finney <ben+python@benfinney.id.au> - 2012-07-25 16:43 +1000
                Re: the meaning of rユ.......ï¾ Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-25 08:13 +0100
                Re: the meaning of rユ.......ï¾ Ian Kelly <ian.g.kelly@gmail.com> - 2012-07-25 09:21 -0600
                Re: the meaning of rユ.......ï¾ Ian Kelly <ian.g.kelly@gmail.com> - 2012-07-24 10:36 -0600
                Re: the meaning of rユ.......ï¾ Chris Angelico <rosuav@gmail.com> - 2012-07-25 02:42 +1000
                Re: the meaning of rユ.......ï¾ Ethan Furman <ethan@stoneleaf.us> - 2012-07-24 09:59 -0700
                Re: the meaning of rユ.......ï¾ Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-24 10:02 -0400
                Re: the meaning of rユ.......ï¾ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-23 17:10 +0000
                Re: the meaning of rユ.......ï¾ rusi <rustompmody@gmail.com> - 2012-07-23 08:08 -0700
              Re: the meaning of rユ.......ï¾ Jan Riechers <janpeterr@freenet.de> - 2012-07-23 21:29 +0300
            Re: the meaning of rユ.......ï¾ Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-23 10:10 -0400
              Re: the meaning of rユ.......ï¾ Henrik Faber <hfaber@invalid.net> - 2012-07-23 16:40 +0200
                Re: the meaning of rユ.......ï¾ Chris Angelico <rosuav@gmail.com> - 2012-07-24 00:53 +1000
                Re: the meaning of rユ.......ï¾ Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-23 11:02 -0400
              Re: the meaning of rユ.......ï¾ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-23 16:54 +0000
            Re: the meaning of rユ.......ï¾ Chris Angelico <rosuav@gmail.com> - 2012-07-24 00:19 +1000
              Re: the meaning of rユ.......ï¾ Henrik Faber <hfaber@invalid.net> - 2012-07-23 16:42 +0200
                Re: the meaning of rユ.......ï¾ Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-07-23 14:10 -0400
            Re: the meaning of rユ.......ï¾ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-23 16:53 +0000
        Re: the meaning of r?.......ï¾ MRAB <python@mrabarnett.plus.com> - 2012-07-23 16:46 +0100
        Re: the meaning of rユ.......ï¾ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-23 16:33 +0000
          Re: the meaning of rユ.......ï¾ Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-07-23 14:43 -0400
      Re: the meaning of rユ.......ï¾ Henrik Faber <hfaber@invalid.net> - 2012-07-23 15:26 +0200
      Re: the meaning of r.......ïŸ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-23 15:49 +0000
        Re: the meaning of r.......ïŸ Serhiy Storchaka <storchaka@gmail.com> - 2012-07-26 16:34 +0300
      Re: the meaning of rユ.......ï¾ Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-07-23 12:19 -0400
      Re: the meaning of r?.......?¾ Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-07-23 13:44 -0400
  Re: the meaning of r’.......‘ John Roth <johnroth1@gmail.com> - 2012-07-23 17:50 -0700
  Re: the meaning of r’.......‘ John Roth <johnroth1@gmail.com> - 2012-07-23 17:50 -0700

csiph-web