On 2018-04-15 13:31, Kirill Balunov wrote:
>
>
> 2018-04-15 10:58 GMT+03:00 Yubin Ruan :
>
> [this is a bit late...]
>
> Did you really have any benchmark for it? I know what you are doing but it
> seems to be a pre-mature optimization. If this really is the
Hi everyone,
I am struggling writing a right regex that match what I want:
Problem Description:
Given a string like this:
>>>string = "false_head aaa bbb false_tail \
true_head some_text_here ccc ddd eee
true_tail"
I want to match the all the text surrounded by those " ",
but
On Wednesday, June 15, 2016 at 12:18:31 PM UTC+8, Lawrence D’Oliveiro wrote:
> On Wednesday, June 15, 2016 at 3:28:37 PM UTC+12, Yubin Ruan wrote:
>
> > I want to match the all the text surrounded by those " ",
>
> You are trying to use regex (type 3 grammar) t
Hi, everyone, I have some problem understand the rule which the python compiler
use to parsing the multiline string.
Consider this snippet:
str_1 = "foo"
str_2 = "bar"
print "A test case" + \
"str_1[%s] " + \
"str_2[%s] " % (str_1, str_2)
Why would the snippet above give me an "T
Hi,
I'm migrating my code to python3 now and find it hard to deal with python's
'str' and 'bytes' type. It's kind of painful.
One thing I find really confusing is that, writing to a socket requires
argument to be of type 'bytes'(otherwise python throw 'str does not support
buffer interfa
On Mon, Jun 05, 2017 at 05:16:55PM +0200, Maria Alonso-Martirena wrote:
> Good morning,
>
>
>
> You asked me to subscribe before writing to you and i've already done so. I
> need your help: I’ve just downloaded Python for Windows (versión 3.6.1.).
> However, when I try to open it, it just says “