Re: How to obtain an up-to-date document of tkinter

2017-04-19 Thread Terry Reedy
On 4/19/2017 8:09 PM, Mok-Kong Shen wrote: How could one obtain an up-to-date document of tkinter. http://www.tcl.tk/man/tcl8.6/TkCmd/contents.htm documents the tcl/tk that tkinter wraps. There are a few things that are not included in tkinter. I ask this question because apparently there

Re: Test if Script Already Running

2017-04-19 Thread Cameron Simpson
On 18Apr2017 19:31, Matt wrote: I have a number of simple scripts I run with cron hourly on Centos linux. I want the script to check first thing if its already running and if so exit. In perl I did it with this at the start of every script: use Fcntl ':flock'; INIT { open LH, $0

Re: Bigotry (you win, I give up)

2017-04-19 Thread Nathan Ernst
I've likewise mostly been ignoring this thread as it has gotten out of control. At a few jobs ago, I was nearly daily involved with interviewing candidates. Initially, I was point on "culture fit". i.e. how would the potential employee react to having a phone thrown at them (it happened - I worked

Re: Bigotry (you win, I give up)

2017-04-19 Thread Ben Finney
Rurpy via Python-list writes: > You and Chris refused to find any fault with the use of the two > stereotypes under discussion one of which was "unable-to-learn old > people". I expressed absolutely nothing on that topic, so I didn't “refuse to find any fault”. To claim “you said that is okay” i

The belief that learning is more difficult for older people (was: Bigotry (you win, I give up))

2017-04-19 Thread Ben Finney
"Deborah Swanson" writes: > But this bit caught my eye because I hold the opposite opinion about > old people's ability to learn. > > It is a choice. The topic is complex, and both “It is entirely determined by your own choices” and “It is in no way determined by your own choices” are false. Th

Re: Bigotry (you win, I give up)

2017-04-19 Thread Rurpy via Python-list
On 04/19/2017 01:56 PM, Ben Finney wrote: > Rurpy via Python-list writes: > >> I don't think stupid black people or senile old people should be >> allowable because those are not choosable *behaviors*. But is >> unable-to-learn old people a choosable behavior? You said that's ok. > > No, I didn't

Re: Bigotry (you win, I give up)

2017-04-19 Thread Ethan Furman
On 04/19/2017 05:11 PM, breamore...@gmail.com wrote: This is getting ludicrous. Ben has been using these signatures for years and nobody has said a word. Just because it was challenged before does not mean it was, or is, right / courteous / respectful . Why is it that somebody deliberatel

Re: Bigotry (you win, I give up)

2017-04-19 Thread Ben Finney
Ethan Furman writes: > Will you be filtering your signature lines, then? Because you cannot > simultaneously be courteous to someone and mock their beliefs. I disagree. Beliefs are courteously mocked in this forum every week, and the forum and this community is healthier for that. -- \ “

Re: How to obtain an up-to-date document of tkinter

2017-04-19 Thread breamoreboy
On Thursday, April 20, 2017 at 1:09:45 AM UTC+1, Mok-Kong Shen wrote: > How could one obtain an up-to-date document of tkinter. I ask this > question because apparently there are stuffs of tkinter that > worked in Python 3.5 but no longer in Python 3.6.1. > > M. K. Shen https://docs.python.org/3/

Re: Bigotry (you win, I give up)

2017-04-19 Thread breamoreboy
On Thursday, April 20, 2017 at 12:41:58 AM UTC+1, Ethan Furman wrote: > On 04/19/2017 03:58 PM, Ben Finney wrote: > > Ethan Furman writes: > > > >> […] asking that you be courteous to those who come here to discuss > >> Python. > > > > On that we can agree. Let's be courteous to people here, and ke

RE: Bigotry (you win, I give up)

2017-04-19 Thread Deborah Swanson
> Rupee via Python-list writes: > > > I don't think stupid black people or senile old people should be > > allowable because those are not choosable *behaviors*. But is > > unable-to-learn old people a choosable behavior? You said that's ok. I've mostly been ignoring this thread and its predec

How to obtain an up-to-date document of tkinter

2017-04-19 Thread Mok-Kong Shen
How could one obtain an up-to-date document of tkinter. I ask this question because apparently there are stuffs of tkinter that worked in Python 3.5 but no longer in Python 3.6.1. M. K. Shen -- https://mail.python.org/mailman/listinfo/python-list

Re: Bigotry (you win, I give up)

2017-04-19 Thread Ethan Furman
On 04/19/2017 03:58 PM, Ben Finney wrote: Ethan Furman writes: […] asking that you be courteous to those who come here to discuss Python. On that we can agree. Let's be courteous to people here, and keep discussing Python. Will you be filtering your signature lines, then? Because you canno

Re: Bigotry (you win, I give up)

2017-04-19 Thread Ben Finney
Ethan Furman writes: > […] asking that you be courteous to those who come here to discuss > Python. On that we can agree. Let's be courteous to people here, and keep discussing Python. -- \“Pinky, are you pondering what I'm pondering?” “Wuh, I think | `\ so, Brain, but burlap

Re: Data exchange between python script and bash script

2017-04-19 Thread Erik
[Disclaimer: I have not fully read this thread. If I'm jumping in with something that's irrelevant for other reasons, please just ignore me] On 19/04/17 22:06, Venkatachalam Srinivasan wrote: On Thursday, April 6, 2017 at 12:55:41 AM UTC+2, Gregory Ewing wrote: sensor_data=$(python execute_sen

Re: Data exchange between python script and bash script

2017-04-19 Thread Venkatachalam Srinivasan
On Thursday, April 6, 2017 at 12:55:41 AM UTC+2, Gregory Ewing wrote: > Anssi Saari wrote: > > Bash manual explicitly states command substition (the $(...) structure) > > replaces the command with the standard *output* of the command. > > Another problem is your use of '&' here: > > sensor_da

Re: Data exchange between python script and bash script

2017-04-19 Thread Venkatachalam Srinivasan
On Tuesday, April 4, 2017 at 7:58:56 PM UTC+2, justin walters wrote: > On Tue, Apr 4, 2017 at 10:39 AM, Venkatachalam Srinivasan < > venkatachalam...@gmail.com> wrote: > > > Hi, > > > > Thanks for the answer. I need bash for connecting data exchange between > > two python scripts. To be more speci

Re: Data exchange between python script and bash script

2017-04-19 Thread Venkatachalam Srinivasan
On Wednesday, April 5, 2017 at 2:38:00 PM UTC+2, Anssi Saari wrote: > venkatachalam...@gmail.com writes: > > > For example, the data is printed in > > execute_sensor_process.py as follows: > > > > print >>sys.stderr,sens_data > > > > By printing the data onto sys.stderr and assigning a return vari

Re: Bigotry (you win, I give up)

2017-04-19 Thread Ethan Furman
On 04/19/2017 01:36 PM, Erik wrote: On 19/04/17 21:25, Ethan Furman wrote: Asking that you not denigrate non-Python ideas on the Python list is not asking for "special respect", I have no idea what you just said! :D Yeah, I try to avoid negative checks in code. How about this? special_re

Re: Bigotry (you win, I give up)

2017-04-19 Thread Erik
On 19/04/17 21:25, Ethan Furman wrote: Asking that you not denigrate non-Python ideas on the Python list is not asking for "special respect", I have no idea what you just said! :D This is why I dislike code such as: if not no_results(data) != not_valid: pass ... and I've seen lots of

Re: Bigotry (you win, I give up)

2017-04-19 Thread Ethan Furman
On 04/19/2017 12:56 PM, Ben Finney wrote: Demanding special respect for a class of ideas is not okay. Asking that you not denigrate non-Python ideas on the Python list is not asking for "special respect", it is asking that you be courteous to those who come here to discuss Python. -- ~Ethan

Re: Bigotry (you win, I give up)

2017-04-19 Thread Ben Finney
Rurpy via Python-list writes: > I don't think stupid black people or senile old people should be > allowable because those are not choosable *behaviors*. But is > unable-to-learn old people a choosable behavior? You said that's ok. No, I didn't say that's okay, and I'm not aware of Chris saying

Re: match.groupdict() into a single dict

2017-04-19 Thread MRAB
On 2017-04-19 14:26, Ganesh Pal wrote: Hello friends, I am learning regex and trying to use this to my scripts I need some suggestion on the below code. I need to match all lines of a file that have a specific pattern and return them as a dictionary. Sample line: 'NODE=ADAM-11: | TIME=2017-

Re: Python and the need for speed

2017-04-19 Thread bartc
On 19/04/2017 17:23, Marko Rauhamaa wrote: bartc : Enough works in that 'pcc' project, in terms of file i/o, that it can still run plenty of useful programs, such as compilers. This might have come up before, but do you have a language specification somewhere? (Nothing formal nor up-to-date.

Re: Bigotry (you win, I give up)

2017-04-19 Thread Rurpy via Python-list
On 04/18/2017 04:34 PM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 8:28 AM, Ben Finney > wrote: >> Chris Angelico writes: >> >>> The charge has been examined and dropped. Steven did not violate the >>> CoC. Please stop talking as if he has. He *was accused of* violating >>> it, and then fo

Re: Python and the need for speed

2017-04-19 Thread Marko Rauhamaa
bartc : > Enough works in that 'pcc' project, in terms of file i/o, that it can > still run plenty of useful programs, such as compilers. This might have come up before, but do you have a language specification somewhere? Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Bigotry and hate speech on the python mailing list

2017-04-19 Thread Rurpy via Python-list
On 04/18/2017 04:34 PM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 8:28 AM, Ben Finney > wrote: >> Chris Angelico writes: >> >>> The charge has been examined and dropped. Steven did not violate the >>> CoC. Please stop talking as if he has. He *was accused of* violating >>> it, and then fou

Re: Python and the need for speed

2017-04-19 Thread bartc
On 19/04/2017 15:35, Chris Angelico wrote: On Wed, Apr 19, 2017 at 11:46 PM, bartc wrote: You'd be surprised how easy it is to be non-OS-neutral. I misread that as 'easy to be OS-neutral'. If I turn it around, you're saying it is easy to be OS-specific. But we know that! And that is the pro

Re: Python and the need for speed

2017-04-19 Thread Chris Angelico
On Wed, Apr 19, 2017 at 11:46 PM, bartc wrote: >> You'd be surprised how easy it is to be non-OS-neutral. > > It's not so simple. By OS-neutral I mean code that doesn't depend on special > features of either OS (Ie. Windows and Linux). Not conditional code that > does either Windows stuff or Linux

Re: Python and the need for speed

2017-04-19 Thread bartc
On 19/04/2017 12:27, Chris Angelico wrote: On Wed, Apr 19, 2017 at 8:33 PM, bartc wrote: [Warning: this is nothing to do with Python.] My interpreter is on github as /one/ C source file (a link would be inappropriate here). People can compile it with -O3 or -O2 if they wish. It's a bit simpl

match.groupdict() into a single dict

2017-04-19 Thread Ganesh Pal
Hello friends, I am learning regex and trying to use this to my scripts I need some suggestion on the below code. I need to match all lines of a file that have a specific pattern and return them as a dictionary. Sample line: 'NODE=ADAM-11: | TIME=2017-04-14T05:27:16-07:00 | COND=Some lovely

Re: Looping [was Re: Python and the need for speed]

2017-04-19 Thread Antoon Pardon
Op 16-04-17 om 19:07 schreef Terry Reedy: > On 4/16/2017 11:35 AM, Michael Torrie wrote: >> On 04/16/2017 07:57 AM, bartc wrote: >>> But people just don't want it. >>> >>> /That/ is what surprises me, when people reject things that to me are >>> no-brainers. > > Whereas to me, it is a no-brainer th

Re: Python and the need for speed

2017-04-19 Thread Marko Rauhamaa
Chris Angelico : > On Wed, Apr 19, 2017 at 8:33 PM, bartc wrote: > You'd be surprised how easy it is to be non-OS-neutral. Have you > compiled it on the three major platforms of today (Lin/Win/Mac)? Generally, I don't try to be OS-neutral because 1. I need it for Linux only 2. I don't have W

Re: Python and the need for speed

2017-04-19 Thread Chris Angelico
On Wed, Apr 19, 2017 at 8:33 PM, bartc wrote: > My interpreter is on github as /one/ C source file (a link would be > inappropriate here). People can compile it with -O3 or -O2 if they wish. > It's a bit simpler than building CPython, and OS-neutral; that was > deliberate. Then send me a link, an

Re: Python and the need for speed

2017-04-19 Thread bartc
On 19/04/2017 01:07, Erik wrote: On 19/04/17 00:33, bartc wrote: [Talking about an interpreter that is /not/ for Python] With the sort of lower level programs I write (in another dynamic language not Python), such an assembly layer improved performance 2-3 times over using 100% HLL compiled u

EuroPython 2017: Discounted flights available

2017-04-19 Thread M.-A. Lemburg
This year the Lufthansa group is our preferred airline for EuroPython. The co-operation provides a 5-10% discount for flights to the conference going to Bologna and Florence. *** https://ep2017.europython.eu/en/location/come-to-rimini/ *** Airlines include Lufthansa, Swiss, Austrian, Belgium A

Version 2.1 of my natural language text steganography scheme

2017-04-19 Thread Mok-Kong Shen
Version 2.1 of my natural language text steganography scheme WORDLISTTEXTSTEGANOGRAPHY, having left behind a few initial shortcomings and tiny problems stemming e.g from version incompatibilities of Python, is available on my new home page: http://mok-kong-shen.de. M. K. Shen -- https://mail.pyt