On Sat, Feb 23, 2013 at 2:24 PM, Ezio Melotti <ezio.melo...@gmail.com> wrote: > Hi, > > On Sat, Feb 23, 2013 at 5:33 AM, daniel.holth > <python-check...@python.org> wrote: >> http://hg.python.org/peps/rev/de69fe61f300 >> changeset: 4764:de69fe61f300 >> user: Daniel Holth <dho...@fastmail.fm> >> date: Fri Feb 22 22:33:09 2013 -0500 >> summary: >> PEP 426: replace implied 'version starts with' with new ~= operator >> > > I haven't seen any discussion about this, but FWIW CSS [0] and JQuery > [1] use ^= for this purpose. > ^ also indicates the beginning of the string in regular expressions > (this is why ^= was chosen for CSS/JQuery). > They also use ~= to indicate "attribute contains word" [0][2]. > Perl also has a similar-looking operator [3] (=~) used to test a regex match.
Daniel is a fan of this syntax, but I think it is inferior to the implied approach, so don't expect it to survive to any accepted version of the PEP :) Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com