[RELEASE] Python 3.6.4 is now available

2017-12-19 Thread Ned Deily
On behalf of the Python development community and the Python 3.6 release team, I am happy to announce the availability of Python 3.6.4, the fourth maintenance release of Python 3.6. Detailed information about the changes made in 3.6.4 can be found in the change log here: https://docs.python.org/3

Re: Problem with timeit

2017-12-19 Thread Steve D'Aprano
On Tue, 19 Dec 2017 02:27 am, ast wrote: > I discovered that log functions from math module > works with integers, whatever their size, there is > no conversion to float. > >> import math >> x = 123456**123456 >> math.log10(x) > 628577.7303641582 (instantaneous) > > so 628578 digits Nice! I

Re: [OT] Python and Excel

2017-12-19 Thread Rustom Mody
On Tuesday, December 19, 2017 at 4:38:17 AM UTC+5:30, Les Cargill wrote: > oliver wrote: > > That would be amazing. I still have nightmares of when I had to create this > > big options analysis VBA program in Excel 2007. > > > > > Odd - I haven't found VBA itself to be all that horrible. Yeah, i

Tkinter,show pictures from the list of files in catalog-problem

2017-12-19 Thread Ziggy
I have a problem with this code, it seems to work but first it shows the picture then supposed to iterate through file list and shows them each changed after 3seconds however show just the last one from list. https://paste.pound-python.org/show/txvB4IBtlUrn3TuB0rtu/ -- https://mail.python.org/

Re: Tkinter,show pictures from the list of files in catalog-problem

2017-12-19 Thread Rhodri James
On 19/12/17 18:33, Ziggy wrote: I have a problem with this code, it seems to work but first it shows the picture then supposed to iterate through file list and shows them each changed after 3seconds however show just the last one from list. https://paste.pound-python.org/show/txvB4IBtlUrn3TuB

Re: Tkinter,show pictures from the list of files in catalog-problem

2017-12-19 Thread MRAB
On 2017-12-19 18:33, Ziggy wrote: I have a problem with this code, it seems to work but first it shows the picture then supposed to iterate through file list and shows them each changed after 3seconds however show just the last one from list. https://paste.pound-python.org/show/txvB4IBtlUrn3T

Re: What is wrong with this regex for matching emails?

2017-12-19 Thread alister via Python-list
On Mon, 18 Dec 2017 07:57:27 +1100, Ben Finney wrote: > Peng Yu writes: > >> Hi, >> >> I would like to extract "a...@efg.hij.xyz". But it only shows ".hij". > > Others have address this question. I'll answer a separate one: > >> Does anybody see what is wrong with it? Thanks. > > One thing th

Re: correctness proof for alpha-beta algorithm

2017-12-19 Thread namenobodywants
On Monday, December 18, 2017 at 10:16:07 PM UTC-8, Terry Reedy wrote: > Where or how have you looked so far? How formal do you want? i want full-on formal with lots of rigor and every possible detail spelled out; i've looked in a couple of books but my best lead so far is a paper by knuth call

Re: [Python-Dev] [RELEASE] Python 3.6.4 is now available

2017-12-19 Thread Hasan Diwan
Grats to all! On 19 December 2017 at 00:42, Ned Deily wrote: > On behalf of the Python development community and the Python 3.6 > release team, I am happy to announce the availability of Python 3.6.4, > the fourth maintenance release of Python 3.6. Detailed information > about the changes made

Re: What is wrong with this regex for matching emails?

2017-12-19 Thread Chris Angelico
On Wed, Dec 20, 2017 at 7:21 AM, alister via Python-list wrote: > On Mon, 18 Dec 2017 07:57:27 +1100, Ben Finney wrote: >> A more correct match would boil down to: >> >> * Match any printable Unicode characters (not just ASCII). >> >> * Locate the *last* ‘@’ character. (An email address may contai

Re: What is wrong with this regex for matching emails?

2017-12-19 Thread alister via Python-list
On Wed, 20 Dec 2017 08:21:02 +1100, Chris Angelico wrote: > On Wed, Dec 20, 2017 at 7:21 AM, alister via Python-list > wrote: >> On Mon, 18 Dec 2017 07:57:27 +1100, Ben Finney wrote: >>> A more correct match would boil down to: >>> >>> * Match any printable Unicode characters (not just ASCII). >>

Re: What is wrong with this regex for matching emails?

2017-12-19 Thread Random832
On Mon, Dec 18, 2017, at 02:01, Chris Angelico wrote: > Hmm, is that true? I was under the impression that the quoting rules > were impossible to match with a regex. Or maybe it's just that they're > impossible to match with a *standard* regex, but the extended > implementations (including Python'

Re: correctness proof for alpha-beta algorithm

2017-12-19 Thread Steve D'Aprano
On Wed, 20 Dec 2017 07:23 am, namenobodywa...@gmail.com wrote: > On Monday, December 18, 2017 at 10:16:07 PM UTC-8, Terry Reedy wrote: > >> Where or how have you looked so far? How formal do you want? > > i want full-on formal with lots of rigor and every possible detail spelled > out; i've loo

adding elif to for

2017-12-19 Thread bob gailer
Has any thought been given to adding elif to the for statement? for x in foo:     if y: break elif a==b:     something else:     something else as a shortcut to: for x in foo:     if y: break else:     if a==b:     something else:     something else bob gailer -- https://mail.python.org/

Re: adding elif to for

2017-12-19 Thread Bill
bob gailer wrote: Has any thought been given to adding elif to the for statement? I don't think it is a good idea because it needlessly, from my point of view, embeds too much complexity into a single construct (making it more difficult to maintain, for instance). That's what language designe

Re: adding elif to for

2017-12-19 Thread Skip Montanaro
Apologies. Misread your question. Skip On Dec 19, 2017 6:16 PM, "Skip Montanaro" wrote: > > Has any thought been given to adding elif to the for statement? > > > Time machine at work I think: > > https://docs.python.org/3/reference/compound_stmts.html#the-if-statement > > Skip > -- https://mai

Re: adding elif to for

2017-12-19 Thread Skip Montanaro
Has any thought been given to adding elif to the for statement? Time machine at work I think: https://docs.python.org/3/reference/compound_stmts.html#the-if-statement Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Python and Excel

2017-12-19 Thread Thomas Jollans
On 2017-12-18 20:16, MRAB wrote: > Those who use Excel might find this interesting: > > Microsoft Considers Adding Python as an Official Scripting Language to > Excel > https://www.bleepingcomputer.com/news/microsoft/microsoft-considers-adding-python-as-an-official-scripting-language-to-excel/ >

[META] Are the list admins honouring Posting Prohibited demands?

2017-12-19 Thread Steve D'Aprano
This is possibly a question for the list admins... I notice that Lawrence D’Oliveiro has taken up labelling his posts with a demand that his posts are not to be posted to the Python-List mailing list. I also see that his posts are not showing up on the mailing list archive. Is this a coincidence