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


Groups > comp.lang.python > #76727

Re: proposed syntax for multiline anony-functions (hopefully?)

Newsgroups comp.lang.python
Date 2014-08-21 02:27 -0700
References <1bd05b41-ad00-4ce8-8678-de51205ebc3b@googlegroups.com> <mailman.13240.1408609103.18130.python-list@python.org>
Message-ID <448bfea1-213d-4276-98eb-883ca134a421@googlegroups.com> (permalink)
Subject Re: proposed syntax for multiline anony-functions (hopefully?)
From icefapper@gmail.com

Show all headers | View raw


> tag_handler = {
> 
>     "span": lambda content: content,
> 
>     "div": lambda content: "\n"+content+"\n",
> 
>     "p": lambda content: "\n"+content+"\n",
> 
>     "br": lambda content: "\n",
> 
> }
> 
> 
> 
> If you wanted to expand one of those to have statements in it, you'd
> 
> have to take it out-of-line and break the flow. 

what 'bout, well , this?
tag_handler = { 
    "span": 
lambda content: content, 
    "div": 
            lambda content: 
"\n"+content+"\n", 
    "p": 
  lambda content: "\n"+content+"\n", 
    "br": 
     lambda content: "\n", 
} 

yours truly is trying to convey the actual fact that python could already be untidy; what has kept the language tidy so far is partly because moral developers 
(the syntax being another half)

yours truly will hence think the proposition won't be directly untidifying the syntax -- much in the sense that not-caring-for-ws-in-"{" won't.

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


Thread

proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 00:55 -0700
  Re: proposed syntax for multiline anony-functions (hopefully?) Chris Angelico <rosuav@gmail.com> - 2014-08-21 18:18 +1000
    Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 01:59 -0700
      Re: proposed syntax for multiline anony-functions (hopefully?) Chris Angelico <rosuav@gmail.com> - 2014-08-21 19:05 +1000
    Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 02:06 -0700
    Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 02:27 -0700
  Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 02:14 -0700
    Re: proposed syntax for multiline anony-functions (hopefully?) Marko Rauhamaa <marko@pacujo.net> - 2014-08-21 12:27 +0300
      Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 02:30 -0700
        Re: proposed syntax for multiline anony-functions (hopefully?) alex23 <wuwei23@gmail.com> - 2014-08-22 15:15 +1000
    Re: proposed syntax for multiline anony-functions (hopefully?) Terry Reedy <tjreedy@udel.edu> - 2014-08-21 06:07 -0400
  Re: proposed syntax for multiline anony-functions (hopefully?) Travis Griggs <travisgriggs@gmail.com> - 2014-08-22 13:05 -0700
    Re: proposed syntax for multiline anony-functions (hopefully?) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 19:20 +1000
  Re: proposed syntax for multiline anony-functions (hopefully?) Dan Stromberg <drsalists@gmail.com> - 2014-08-22 16:48 -0700
  Re: proposed syntax for multiline anony-functions (hopefully?) Dan Stromberg <drsalists@gmail.com> - 2014-08-22 16:58 -0700
    Re: proposed syntax for multiline anony-functions (hopefully?) Marko Rauhamaa <marko@pacujo.net> - 2014-08-23 10:37 +0300

csiph-web