Re: a regex question

2019-10-25 Thread dieter
Maggie Q Roth writes: > There are two primary types of lines in the log: > > 60.191.38.xx/ > 42.120.161.xx /archives/1005 > > I know how to write regex to match each line, but don't get the good result > with one regex to match both lines. > > Can you help? When I look at these line

Re: keying by identity in dict and set

2019-10-25 Thread dieter
Steve White writes: > Regarding my question > "Is there some fatal reason that this approach must never be > used, besides the lack of documentary support for it?" > If finally dawned on me that there is a use-case for containers that > would preclude using object identity for keys. That is,

Re: How to decode UTF strings?

2019-10-25 Thread MRAB
On 2019-10-26 03:10, Arne Vajhøj wrote: On 10/25/2019 4:52 PM, DFS wrote: =?iso-8859-9?b?T/B1eg==?= =?utf-8?Q?=EB=AF=B8?= =?GBK?B?0Pu66A==?= =?UTF-8?B?zp3Or866zr/PgiDOks6tz4HOs86/z4I=?= How does something like: from email.header import decode_header def test(s): print(s) s2 =

Re: How to decode UTF strings?

2019-10-25 Thread Arne Vajhøj
On 10/25/2019 4:52 PM, DFS wrote: =?iso-8859-9?b?T/B1eg==?= =?utf-8?Q?=EB=AF=B8?= =?GBK?B?0Pu66A==?= =?UTF-8?B?zp3Or866zr/PgiDOks6tz4HOs86/z4I=?= How does something like: from email.header import decode_header def test(s): print(s) s2 = decode_header(s) print(s2[0][0]) pri

Re: Fwd: python 8.0

2019-10-25 Thread Batuhan Taskaya
> but python is only up to version 3.8 He probably meant 3.8.0 but there was a python 8 (as an april 1 joke by victor stinner) https://mail.python.org/archives/list/python-...@python.org/thread/4P46WYJTZUKJ2EABQSASI7CD643YY5QL/ On Fri, Oct 25, 2019, 6:32 PM Gene Heskett wrote: > On Friday 25 Oct

Re: Fwd: python 8.0

2019-10-25 Thread Gene Heskett
On Friday 25 October 2019 02:35:06 Ebuka Amadi wrote: > -- Forwarded message - > From: Ebuka Amadi > Date: Thu, 24 Oct 2019 at 22:31 > Subject: python 8.0 > To: > > > Dear team i downloaded python 8.0 am finding it hard to install it i > hope to get a step by stem instructions to

Re: python 8.0

2019-10-25 Thread Igor Korot
Hi, On Fri, Oct 25, 2019 at 9:19 AM Ebuka Amadi wrote: > > -- Forwarded message - > From: Ebuka Amadi > Date: Thu, 24 Oct 2019 at 22:31 > Subject: python 8.0 > To: > > > Dear team i downloaded python 8.0 am finding it hard to install it i hope > to get a step by stem instruction

Multi-language programing playground

2019-10-25 Thread Vishal Rana via Python-list
Folks, I wanted to share a multi-language programming playground that I created recently. I hope you will find it useful. https://code.labstack.com/program Thanks -- https://mail.python.org/mailman/listinfo/python-list

Fwd: python 8.0

2019-10-25 Thread Ebuka Amadi
-- Forwarded message - From: Ebuka Amadi Date: Thu, 24 Oct 2019 at 22:31 Subject: python 8.0 To: Dear team i downloaded python 8.0 am finding it hard to install it i hope to get a step by stem instructions to do this on my PC its a core i5 -- https://mail.python.org/mailman/lis

Re: a regex question

2019-10-25 Thread Antoon Pardon
On 25/10/19 12:22, Maggie Q Roth wrote: > Hello > > There are two primary types of lines in the log: > > 60.191.38.xx/ > 42.120.161.xx /archives/1005 > > I know how to write regex to match each line, but don't get the good result > with one regex to match both lines. Could you provid

Re: a regex question

2019-10-25 Thread Brian Oney via Python-list
On October 25, 2019 12:22:44 PM GMT+02:00, Maggie Q Roth wrote: >Hello > >There are two primary types of lines in the log: > >60.191.38.xx/ >42.120.161.xx /archives/1005 > >I know how to write regex to match each line, but don't get the good >result >with one regex to match both

a regex question

2019-10-25 Thread Maggie Q Roth
Hello There are two primary types of lines in the log: 60.191.38.xx/ 42.120.161.xx /archives/1005 I know how to write regex to match each line, but don't get the good result with one regex to match both lines. Can you help? Thanks, Maggie -- https://mail.python.org/mailman/listi