Re: [Python-ideas] What about regexp string litterals : re".*" ?

2017-03-28 Thread Paul Moore
On 28 March 2017 at 08:54, Simon D. wrote: > I believe that the u"" notation in Python 2.7 is defined by while > importing the unicode_litterals module. That's not true. The u"..." syntax is part of the language. from future import unicode_literals is something completely different. > Each regex

Re: [Python-ideas] What about regexp string litterals : m".*" ?

2017-03-28 Thread Simon D.
* Chris Angelico [2017-03-28 16:37:16 +1100]: > But I think a better solution will be for regex literals to be > syntax-highlighted differently. If they're a truly-supported syntactic > feature, they can be made visually different in your editor, making > the distinction blatantly obvious. > > Th

Re: [Python-ideas] What about regexp string litterals : re".*" ?

2017-03-28 Thread Simon D.
* Serhiy Storchaka [2017-03-27 18:39:19 +0300]: > There are several regular expression libraries for Python. One of them is > included in the stdlib, but this is not the first regular expression library > in the stdlib and may be not the last. Particular project can choose using > an alternative r