A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-February/124251.html below:

[Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operator

[Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operator [Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operatorEzio Melotti ezio.melotti at gmail.com
Sat Feb 23 05:24:04 CET 2013
Hi,

On Sat, Feb 23, 2013 at 5:33 AM, daniel.holth
<python-checkins at python.org> wrote:
> http://hg.python.org/peps/rev/de69fe61f300
> changeset:   4764:de69fe61f300
> user:        Daniel Holth <dholth at 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.

Best Regards,
Ezio Melotti

[0]: http://www.w3.org/TR/selectors/#selectors
[1]: http://api.jquery.com/attribute-starts-with-selector/
[2]: http://api.jquery.com/attribute-contains-word-selector/
[3]: http://perldoc.perl.org/perlop.html#Binding-Operators
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4