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

2017-04-02 Thread Mark Lawrence via Python-ideas
On 03/04/2017 02:22, Neil Girdhar wrote: Same. One day, Python will have a decent parsing library. Nothing here https://wiki.python.org/moin/LanguageParsing suits your needs? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawre

Re: [Python-ideas] Introduce BaseTimeoutError

2017-04-02 Thread Nathaniel Smith
On Sun, Apr 2, 2017 at 4:08 PM, Terry Reedy wrote: > Both are subclasses of OSError but mean different things. TimeoutError > means that something in 'your system' did not respond. Socket.timeout means > that a foreign system did not respond. (I am leaving out a local socket > connection.) The

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

2017-04-02 Thread Neil Girdhar
Same. One day, Python will have a decent parsing library. On Friday, March 31, 2017 at 4:21:51 AM UTC-4, Stephan Houben wrote: > > Hi all, > > FWIW, I also strongly prefer the Verbal Expression style and consider > "normal" regular expressions to become quickly unreadable and > unmaintainable.

Re: [Python-ideas] Introduce BaseTimeoutError

2017-04-02 Thread Terry Reedy
On 4/1/2017 3:27 PM, Ram Rachum wrote: Today I got burned because I had code that did this: except TimeoutError: When it should have done this: except socket.timeout: Both are subclasses of OSError but mean different things. TimeoutError means that something in 'your system' did no

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

2017-04-02 Thread Stephen J. Turnbull
Stephan Houben writes: > FWIW, I also strongly prefer the Verbal Expression style and consider > "normal" regular expressions to become quickly unreadable and > unmaintainable. > > Verbal Expressions are also much more composable. So are grammars. But REs aren't so bad or incomposable if y