[Python-Dev] Oddity PEP 0 key

Arfrever Frehtes Taifersar Arahesis arfrever.fta at gmail.com
Sat May 2 12:34:05 CEST 2009


2009-05-02 07:34:15 Stephen J. Turnbull napisał(a):
> Barry Warsaw writes:
>  > On May 1, 2009, at 5:55 PM, Michael Foord wrote:
>  > 
>  > > P for Proposal (to replace Active Proposal)? Every active PEP is a  
>  > > proposal...
>  > 
>  > +1
>  > 
>  > Maybe even s/Active/Proposed/g ?
> 
> Shouldn't that be
> 
>     s/Active/Proposed/<g>

No. 
From `info sed 'sed Programs' 'The "s" Command'`:

> The `s' Command
> ===============
> 
>    The syntax of the `s' (as in substitute) command is
> `s/REGEXP/REPLACEMENT/FLAGS'.  The `/' characters may be uniformly
> replaced by any other single character within any given `s' command.
> The `/' character (or whatever other character is used in its stead)
> can appear in the REGEXP or REPLACEMENT only if it is preceded by a `\'
> character.
> ...
>    The `s' command can be followed by zero or more of the following
> FLAGS:
> 
> `g'
>      Apply the replacement to _all_ matches to the REGEXP, not just the
>      first.


-- 
Arfrever Frehtes Taifersar Arahesis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090502/5aeec9c5/attachment.pgp>


More information about the Python-Dev mailing list