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

2017-12-20 Thread Gregory Ewing
Steve D'Aprano wrote: 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 don't think it's a demand. I gather that he has been banned from posting on the Python mailing lists, and I think he's ju

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

2017-12-20 Thread Tim Golden
On 20/12/2017 05:52, Steve D'Aprano wrote: 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

Re: Python Templating Language

2017-12-20 Thread Robin Becker
On 17/12/2017 06:41, Abdur-Rahmaan Janhangeer wrote: Hi all, Can somebody point out to me some py-based template languages interpreters resources? Thank you ! https://bitbucket.org/rptlab/preppy -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Templating Language

2017-12-20 Thread Abdur-Rahmaan Janhangeer
The sources of preppy are very nice! Thank you! On Wed, Dec 20, 2017 at 1:25 PM, Robin Becker wrote: > On 17/12/2017 06:41, Abdur-Rahmaan Janhangeer wrote: > >> Hi all, >> >> Can somebody point out to me some py-based template languages interpreters >> resources? >> >> Thank you ! >> >> https://

Python: asyncio and Tkinter

2017-12-20 Thread c.buhtz
I am looking for an "elegant" and "official" way to use asyncio in Tkinter applications. The goal is that the GUI is not freezing while doing some download-tasks (over 100 files from different locations). I am looking around on the web for solutions but couldn't find one. Only some workarounds wit

Re: Python Learning

2017-12-20 Thread Marko Rauhamaa
Larry Martell : > On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa wrote: >> However, one great way to stand out is a portfolio of GitHub >> projects. Several people have gotten an offer largely based on those >> (after they aced the technical interviews). For example, we just >> hired someone wh

binary decision diagrams

2017-12-20 Thread Wild, Marcel, Dr
Hello everybody: I really don't know anything about Python (I'm using Mathematica) but with the help of others learned that g=expr2bdd(f) makes the BDD (=binary decision diagram) g of a Boolean function f. But what is the easiest (fool-proof) way to print out a diagram of g ? Regards, Marcel

binary decision diagrams (BDD)

2017-12-20 Thread Wild, Marcel, Dr
Hello every body, I'm new here and this is my first question. I really don't know anything about Python (I use Mathematica) but with the help of others learned that g=expr2bdd(f) makes the BDD g of a Boolean function f. But what is the easiest (fool-proof) way to print out the diagram of g (i.

Re: Python: asyncio and Tkinter

2017-12-20 Thread Chris Angelico
On Wed, Dec 20, 2017 at 10:42 AM, wrote: > I am looking for an "elegant" and "official" way to use asyncio in > Tkinter applications. The goal is that the GUI is not freezing while > doing some download-tasks (over 100 files from different locations). > > ... > > I think about combining asyncio w

Re: binary decision diagrams

2017-12-20 Thread Devin Jeanpierre
On Mon, Dec 18, 2017 at 5:00 AM, Wild, Marcel, Dr wrote: > Hello everybody: > I really don't know anything about Python (I'm using Mathematica) but with > the help of others learned that > > g=expr2bdd(f) > > makes the BDD (=binary decision diagram) g of a Boolean function f. But > what is th

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

2017-12-20 Thread Rustom Mody
FYI: On Wednesday, December 20, 2017 at 11:22:52 AM UTC+5:30, Steve D'Aprano wrote: > 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. La

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

2017-12-20 Thread Thomas Jollans
On 2017-12-20 14:50, Rustom Mody wrote: > FYI: > > On Wednesday, December 20, 2017 at 11:22:52 AM UTC+5:30, Steve D'Aprano wrote: >> 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 t

Problems with imports on multiple threads, with embedded Python

2017-12-20 Thread geoff . bache
Hi all, I have a multithreaded application using an embedded Python 3.6.4 (upgraded from 3.6.2 today in the hope that the problem was now solved: it doesn't seem to be). The standard library is in a zip file. So long as only one thread is running Python at a time it seems to work fine. But ther

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

2017-12-20 Thread Ziggy
On 2017-12-19, MRAB wrote: >> > The function called by .after should return to the tkinter's event loop. > If you want to display a sequence of pictures, then the function should > call .after to make it call the function again. > > Here's a slightly reworked version: Thanks. I like your soluti

Using the variable type annotation syntax as a placeholder in a nonlocal scope?

2017-12-20 Thread Kirill Balunov
I've asked the same question on StackOverflow, but it seems to me that it is opinion based and will be ignored. So I ask for advice here: Since PEP 526 -- Syntax for Variable Annotations was approved, in Python 3.6+ it is possible to provide type hint i

Re: Python: asyncio and Tkinter

2017-12-20 Thread c.buhtz
X-Post: Dear Chris. On 2017-12-21 00:42 Chris Angelico wrote: > I would recommend threading. You can run your GUI event loop on one > thread, and your network I/O loop on another thread. Thank you very much for your

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread namenobodywants
On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: > Does this have anything specifically to do with Python programming? i'm working on a game-playing script (ie: in python), i want to incorporate pruning into my search algorithm, and i'd like to understand why it works; i'

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread namenobodywants
On Tuesday, December 19, 2017 at 5:34:17 PM UTC-8, Paul Rubin wrote: > It frankly sounds like homework. https://en.wikipedia.org/wiki/Theorem -- https://mail.python.org/mailman/listinfo/python-list

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Bill
namenobodywa...@gmail.com wrote: On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: Does this have anything specifically to do with Python programming? i'm working on a game-playing script (ie: in python), i want to incorporate pruning into my search algorithm, and i'd l

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Steve D'Aprano
On Thu, 21 Dec 2017 08:37 am, Bill wrote: > namenobodywa...@gmail.com wrote: >> On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: >> >>> Does this have anything specifically to do with Python programming? >> i'm working on a game-playing script (ie: in python), i want to inc

property decorator?

2017-12-20 Thread Irv Kalb
I am trying to work through the concept of the @property decorator with respect to object oriented programming. I believe that I understand how the @property and @.setter work - and that they are used to turn what looks like direct access to instance variables into method calls in an object.

Re: property decorator?

2017-12-20 Thread Rob Gaddi
On 12/20/2017 03:56 PM, Irv Kalb wrote: I am trying to work through the concept of the @property decorator with respect to object oriented programming. I believe that I understand how the @property and @.setter work - and that they are used to turn what looks like direct access to instance va

How to edit a function in an interactive python session?

2017-12-20 Thread Peng Yu
Hi, R has the function edit() which allows the editing of the definition of a function. Does python have something similar so that users can edit python functions on the fly? Thanks. https://www.rdocumentation.org/packages/utils/versions/3.4.3/topics/edit -- Regards, Peng -- https://mail.pytho

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Ben Finney
Peng Yu writes: > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. That would depend on which interactive tool you're using. The typical Python REPL [0] tools –

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Steve D'Aprano
On Thu, 21 Dec 2017 12:42 pm, Peng Yu wrote: > Hi, > > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. > > https://www.rdocumentation.org/packages/utils/versions

Re: property decorator?

2017-12-20 Thread Ian Kelly
On Wed, Dec 20, 2017 at 5:56 PM, Irv Kalb wrote: > My questions about this are really historical. From my reading, it looks > like using an @property decorator is a reference to an older approach using a > built in "property" function. But here goes: > > 1) Why were these decorator names chose

Re: property decorator?

2017-12-20 Thread Chris Angelico
On Thu, Dec 21, 2017 at 2:38 PM, Ian Kelly wrote: > On Wed, Dec 20, 2017 at 5:56 PM, Irv Kalb wrote: >> 2) Alternatively, if the getter was going to use the @property decorator, >> then it would seem complimentary to have the decorator name for the >> associated setter function to have the wo

Re: property decorator?

2017-12-20 Thread Cameron Simpson
On 20Dec2017 15:56, Irv Kalb wrote: I am trying to work through the concept of the @property decorator with respect to object oriented programming. I believe that I understand how the @property and @.setter work - and that they are used to turn what looks like direct access to instance varia

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Bill
Steve D'Aprano wrote: On Thu, 21 Dec 2017 08:37 am, Bill wrote: namenobodywa...@gmail.com wrote: On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: Does this have anything specifically to do with Python programming? i'm working on a game-playing script (ie: in python),

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Chris Angelico
On Thu, Dec 21, 2017 at 3:40 PM, Bill wrote: > Steve D'Aprano wrote: >> >> On Thu, 21 Dec 2017 08:37 am, Bill wrote: >> >>> namenobodywa...@gmail.com wrote: On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: > Does this have anything specifically to do with

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Rustom Mody
On Thursday, December 21, 2017 at 7:12:24 AM UTC+5:30, Peng Yu wrote: > Hi, > > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. > > https://www.rdocumentation.org